03.08.2013 Views

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Register Global Address 0x3_FF06<br />

Figure 5-4. BDM CCR Holding Register (BDMCCR)<br />

Read: All modes through BDM operation when not secured<br />

Write: All modes through BDM operation when not secured<br />

<strong>MC9S12VR</strong> <strong>Family</strong> Reference Manual, Rev. 2.8<br />

Background Debug Module (S12SBDMV1)<br />

7 6 5 4 3 2 1 0<br />

R<br />

W<br />

Reset<br />

CCR7 CCR6 CCR5 CCR4 CCR3 CCR2 CCR1 CCR0<br />

Special Single-Chip Mode 1 1 0 0 1 0 0 0<br />

All Other Modes 0 0 0 0 0 0 0 0<br />

NOTE<br />

When BDM is made active, the CPU stores the content of its CCR register<br />

in the BDMCCR register. However, out of special single-chip reset, the<br />

BDMCCR is set to 0xD8 and not 0xD0 which is the reset value of the CCR<br />

register in this CPU mode. Out of reset in all other modes the BDMCCR<br />

register is read zero.<br />

When entering background debug mode, the BDM CCR holding register is used to save the condition code<br />

register of the user’s program. It is also used for temporary storage in the standard BDM firmware mode.<br />

The BDM CCR holding register can be written to modify the CCR value.<br />

5.3.2.2 BDM Program Page Index Register (BDMPPR)<br />

Register Global Address 0x3_FF08<br />

R<br />

W<br />

7 6 5 4 3 2 1 0<br />

BPAE<br />

0 0 0<br />

Figure 5-5. BDM Program Page Register (BDMPPR)<br />

Read: All modes through BDM operation when not secured<br />

Write: All modes through BDM operation when not secured<br />

BPP3 BPP2 BPP1 BPP0<br />

Reset 0 0 0 0 0 0 0 0<br />

= Unimplemented, Reserved<br />

Table 5-4. BDMPPR Field Descriptions<br />

Field Description<br />

7<br />

BPAE<br />

3–0<br />

BPP[3:0]<br />

BDM Program Page Access Enable Bit — BPAE enables program page access for BDM hardware and<br />

firmware read/write instructions The BDM hardware commands used to access the BDM registers (READ_BD<br />

and WRITE_BD) can not be used for global accesses even if the BGAE bit is set.<br />

0 BDM Program Paging disabled<br />

1 BDM Program Paging enabled<br />

BDM Program Page Index Bits 3–0 — These bits define the selected program page. For more detailed<br />

information regarding the program page window scheme, please refer to the S12S_MMC Block Guide.<br />

<strong>Freescale</strong> <strong>Semiconductor</strong> 181

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!