English
Language : 

MC68HC912BL16 Datasheet, PDF (121/128 Pages) Freescale Semiconductor, Inc – 16-Bit Microcontroller
Freescale Semiconductor, Inc.
Table 42 REGN Decoding
REGN Value
100
101
110
111
Instruction
D
X
Y
SP
STATUS — BDM Status Register
Bit 7
6
5
4
3
2
ENBDM BDMACT ENTAG SDV TRACE
0
RESET
01
1
0
0
0
0
RESET:
0
0
0
0
0
0
NOTES:
1. ENBDM is set to 1 by the firmware in Special Single Chip mode.
(BDM) $FF01
1
Bit 0
0
0
0
0
Sp Sing Chip
& Peripheral
0
0 All other modes
This register can be read or written by BDM commands or firmware.
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 not active; BDM ROM and registers are not in map
1 = BDM active and waiting for serial commands; BDM ROM and registers are in map
Care should be taken that the BDMACT bit is not unintentionally changed with the WRITE_NEXT firm-
ware command. If it is unintentionally changed from 1 to 0, it will cause a system runaway as it will dis-
able the BDM firmware ROM while the CPU12 is executing BDM firmware.The following two commands
show how BDMACT may unintentionally get changed from 1 to 0.
WRITE_X with data $FEFE
WRITE_NEXT with data $C400
The first command writes the data $FEFE to the X index register.The second command writes the data
$C4 to the $FF00 INSTRUCTION register and also writes the data $00 to the $FF01 STATUS register.
ENTAG — Instruction Tagging Enable
Set by the TAGGO instruction and cleared when BDM is entered. The serial system is disabled and the
tag function enabled 16 cycles after this bit is written.
0 = Tagging not enabled, or BDM active
1 = Tagging active (BDM cannot process serial commands while tagging is active.)
SDV — Shifter Data Valid
Shows that valid data is in the serial interface shift register. Used by BDM firmware.
0 = No valid data
1 = Valid Data
TRACE — Asserted by the TRACE1 instruction
MC68HC912BL16TS/D
For More Information On This Product,
121
Go to: www.freescale.com