mc68hc912bl16 Freescale Semiconductor, Inc, mc68hc912bl16 Datasheet - Page 119

no-image

mc68hc912bl16

Manufacturer Part Number
mc68hc912bl16
Description
16-bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
15.2.4 BDM Registers
INSTRUCTION — BDM Instruction Register (hardware command)
H/F — Hardware/Firmware Flag
DATA — Data Flag
R/W — Read/Write Flag
BKGND — Hardware request to enter active background mode
MC68HC912BL16TS/D
RESET:
Seven BDM registers are mapped into the standard 64-Kbyte address space when BDM is active. Map-
ping is shown in Table 40.
The content of the INSTRUCTION register is determined by the type of background command being
executed. The STATUS register indicates BDM operating conditions. The SHIFT register contains data
being received or transmitted via the serial interface. The ADDRESS register is temporary storage for
BDM commands. The CCRSAV register preserves the content of the CPU12 CCR while BDM is active.
The only registers of interest to users are the STATUS register and the CCRSAV register. The other
BDM registers are only used by the BDM firmware to execute commands. The registers are accessed
by means of the hardware READ_BD and WRITE_BD commands, but should not be written during
BDM operation (except the CCRSAV register which could be written to modify the CCR value).
The INSTRUCTION register is written by the BDM hardware as a result of serial data shifted in on the
BKGD pin. It is readable and writable in Special Peripheral mode on the parallel bus. It is discussed
here for two conditions: when a hardware command is executed and when a firmware command is
executed.
The INSTRUCTION register can be read or written in all modes. The hardware clears the INSTRUC-
TION register if 512 E-clock cycles occur between falling edges from the host.
The bits in the BDM instruction register have the following meanings when a hardware command is
executed.
Indicates that data accompanies the command.
0 = Firmware instruction
1 = Hardware instruction
0 = No data
1 = Data included in command
0 = Write
1 = Read
Bit 7
H/F
0
DATA
6
0
Freescale Semiconductor, Inc.
For More Information On This Product,
$FF02–$FF03
$FF04–$FF05
Address
R/W
$FF00
$FF01
$FF06
5
0
Go to: www.freescale.com
Table 40 BDM registers
BKGND
4
0
BDM Instruction Register
BDM Status Register
BDM Shift Register
BDM Address Register
BDM CCR Holding Register
W/B
3
0
Register
BD/U
2
0
1
0
0
Bit 0
0
0
(BDM) $FF00
119

Related parts for mc68hc912bl16