English
Language : 

S912XHZ512F1VAG Datasheet, PDF (747/978 Pages) Freescale Semiconductor, Inc – Covers MC9S12XHZ384, MC9S12XHZ256
Chapter 21 Background Debug Module (S12XBDMV2)
21.3.2.4 BDM Global Page Index Register (BDMGPR)
Register Global Address 0x7FFF08
7
6
R
W
Reset
BGAE
0
BGP6
0
5
BGP5
0
4
BGP4
0
3
BGP3
0
2
BGP2
0
Figure 21-6. BDM Global Page Register (BDMGPR)
1
BGP1
0
0
BGP0
0
Read: All modes through BDM operation when not secured
Write: All modes through BDM operation when not secured
Table 21-5. BDMGPR Field Descriptions
Field
7
BGAE
6–0
BGP[6:0]
Description
BDM Global Page Access Enable Bit — BGAE enables global page access for BDM hardware and firmware
read/write instructions The BDM hardware commands used to access the BDM registers (READ_BD_ and
WRITE_BD_) can not be used for global accesses even if the BGAE bit is set.
0 BDM Global Access disabled
1 BDM Global Access enabled
BDM Global Page Index Bits 6–0 — These bits define the extended address bits from 22 to 16. For more
detailed information regarding the global page window scheme, please refer to the S12X_MMC Block Guide.
21.3.3 Family ID Assignment
The family ID is a 8-bit value located in the firmware ROM (at global address: 0x7FFF0F). The read-only
value is a unique family ID which is 0xC1 for S12X devices.
21.4 Functional Description
The BDM receives and executes commands from a host via a single wire serial interface. There are two
types of BDM commands: hardware and firmware commands.
Hardware commands are used to read and write target system memory locations and to enter active
background debug mode, see Section 21.4.3, “BDM Hardware Commands”. Target system memory
includes all memory that is accessible by the CPU.
Firmware commands are used to read and write CPU resources and to exit from active background debug
mode, see Section 21.4.4, “Standard BDM Firmware Commands”. The CPU resources referred to are the
accumulator (D), X index register (X), Y index register (Y), stack pointer (SP), and program counter (PC).
Hardware commands can be executed at any time and in any mode excluding a few exceptions as
highlighted (see Section 21.4.3, “BDM Hardware Commands”) and in secure mode (see Section 21.4.1,
“Security”). Firmware commands can only be executed when the system is not secure and is in active
background debug mode (BDM).
MC9S12XHZ512 Data Sheet Rev. 1.06
Freescale Semiconductor
747