English
Language : 

MC68HC912DG128 Datasheet, PDF (367/452 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Development Support
Background Debug Mode
18.4.5.1 STATUS
The STATUS register is read and written by the BDM hardware as a
result of serial data shifted in on the BKGD pin.
Read: all modes.
Write: Bits 3 through 5, and bit 7 are writable in all modes. Bit 6,
BDMACT, can only be written if bit 7 H/F in the INSTRUCTION register
is a zero. Bit 2, CLKSW, can only be written if bit 7 H/F in the
INSTRUCTION register is a one. A user would never write ones to bits
3 through 5 because these bits are only used by BDM firmware.
BIT 7
6
5
4
3
2
1
ENBDM BDMACT ENTAG
SDV
TRACE CLKSW
-
RESET:
0
1
0
0
0
0
0
(NOTE 1)
RESET:
0
0
0
0
0
0
0
STATUS— BDM Status Register(1)
1. ENBDM is set to 1 by the firmware in Special Single Chip mode.
BIT 0
-
0
0
Special
Single Chip
& Periph
All other
modes
$FF01
ENBDM — Enable BDM (permit active background debug mode)
0 = BDM cannot be made active (hardware commands still
allowed).
1 = BDM can be made active to allow firmware commands.
BDMACT — Background Mode Active Status
BDMACT becomes set as active BDM mode is entered so that the
BDM firmware ROM is enabled and put into the map. BDMACT is
cleared by a carefully timed store instruction in the BDM firmware as
part of the exit sequence to return to user code and remove the BDM
memory from the map. This bit has 4 clock cycles write delay.
0 = BDM is not active. BDM ROM and registers are not in map.
1 = BDM is active and waiting for serial commands. BDM ROM and
registers are in map
MC68HC912DG128 — Rev 3.0
MOTOROLA
Development Support
For More Information On This Product,
Go to: www.freescale.com
Technical Data
367