![NXP Semiconductors freescale semiconductor ColdFire MCF51CN128 Series Reference Manual Download Page 436](http://html1.mh-extra.com/html/nxp-semiconductors/freescale-semiconductor-coldfire-mcf51cn128-series/freescale-semiconductor-coldfire-mcf51cn128-series_reference-manual_1721790436.webp)
Version 1 ColdFire Debug (CF1_DEBUG)
MCF51CN128 Reference Manual, Rev. 6
Freescale Semiconductor
20-17
20.3.5
BDM Address Attribute Register (BAAR)
BAAR defines the address space for memory-referencing BDM commands. BAAR[R, SZ] are loaded
directly from the BDM command, while the lower five bits can be programmed from the external
READ_DREG
Reads CSR3[31
–
0] from the BDM interface. Classified as a non-intrusive BDM command.
WRITE_DREG
Writes CSR3[23
–
0] from the BDM interface. Classified as a non-intrusive BDM command.
WDEBUG Instruction No operation during the core’s execution of a WDEBUG instruction
DRc: 0x03 (CSR3)
Access: Supervisor write-only
BDM read/write
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
R
0
BFC
DIV8
BFCDIV
0
0
0
0
0
0
0
0
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 20-6. Configuration/Status Register 3 (CSR3)
Table 20-11. CSR3 Field Descriptions
Field
Description
31
Reserved, must be cleared.
30
BFCDIV8
BDM flash clock divide by 8.
0 Input to the flash clock divider is the bus clock
1 Input to the flash clock divider is the bus clock divided by 8
29–24
BFCDIV
BDM flash clock divider. The BFCDIV8 and BFCDIV fields specify the frequency of the internal flash clock when
performing a mass erase operation initiated by setting XCSR[ERASE]. These fields must be loaded with the
appropriate values prior to the setting of XCSR[ERASE] to initiate a mass erase operation in the flash memory.
This field divides the bus clock (or the bus clock divided by 8 if BFCDIV8 is set) by the value defined by the
BFCDIV plus one. The resulting frequency of the internal flash clock must fall within the range of 150–200 kHz for
proper flash operations. Program/erase timing pulses are one cycle of this internal flash clock, which corresponds
to a range of 5–6.7
μ
s. The automated programming logic uses an integer number of these pulses to complete
an erase or program operation.
if BFCDIV8 = 0, then f
FCLK
= f
Bus
÷ ( 1)
if BFCDIV8 = 1, then f
FCLK
= f
Bus
÷ (8 × ( 1)
where f
FCLK
is the frequency of the flash clock and f
Bus
is the frequency of the bus clock.
23–0
Reserved for future use by the debug module, must be cleared.
Table 20-10. CSR3 Reference Summary (continued)
Method
Reference Details