8 cfm command register (cfmcmd), 4 cfm operation, 8 cfm command register (cfmcmd) -16 – Motorola ColdFire MCF5281 User Manual
Page 128: Cfm operation -16
ColdFire Flash Module (CFM)
6-16
Freescale Semiconductor
6.3.4.8
CFM Command Register (CFMCMD)
The CFMCMD is the register to which Flash program, erase, and verify commands are written.
CFMCMD is readable and writable in all modes. Writes to bit 7 have no effect and reads return 0.
6.4
CFM Operation
The CFM registers, subject to the restrictions previously noted, can generally be read and written (see
Section 6.3.4, “Register Descriptions
” for details). Reads of the CFM array occur normally and writes
behave according to the setting of the KEYACC bit in CFMCR. Program, erase, and verify operations are
2
BLANK
Erase Verified Flag. The BLANK flag indicates that the erase verify command
(RDARY1) has checked the two interleaved Flash physical blocks and found them
to be blank. Clear BLANK by writing it to 1. Writing a 0 has no effect.
1 Flash physical blocks verify as erased.
0 If an erase verify command has been requested, and the CCIF flag is set, then
the selected Flash physical blocks are not blank.
1–0
—
Reserved, should be cleared.
7
6
0
Field
—
CMD
Reset
0000_0000
R/W
R/W
Address
IPSBAR + 0x1D_0024
Figure 6-12. CFM Command Register (CFMCMD)
Table 6-11. CFMCMD Field Descriptions
Bits
Name
Description
7
—
Reserved, should be cleared.
6–0
CMD[6:0]
Command. Valid Flash user mode commands are shown in
. Writing a
command in user mode other than those listed in
will set the ACCERR
flag in CFMUSTAT.
Table 6-12. CFMCMD User Mode Commands
Command
Name
Description
0x05
RDARY1
Erase verify (all 1s)
0x20
PGM
Longword program
0x40
PGERS
Page erase
0x41
MASERS
Mass erase
0x06
PGERSVER
Page erase verify
Table 6-10. CFMUSTAT Field Descriptions
Bits
Name
Description
MCF5282 and MCF5216 ColdFire Microcontroller User’s Manual, Rev. 3