7 cfm user status register (cfmustat), 7 cfm user status register (cfmustat) -15 – Motorola ColdFire MCF5281 User Manual
Page 127

ColdFire Flash Module (CFM)
Freescale Semiconductor
6-15
6.3.4.7
CFM User Status Register (CFMUSTAT)
The CFMUSTAT reports Flash state machine command status, array access errors, protection violations,
and blank check status.
NOTE
Only one CFMUSTAT bit should be cleared at a time.
7
6
5
1
0
Field
CBEIF
CCIF
PVIOL ACCERR
—
BLANK
—
Reset
1100_0000
R/W
R/W
R
R/W
Address
IPSBAR + 0x1D_0020
Figure 6-11. CFM User Status Register (CFMUSTAT)
Table 6-10. CFMUSTAT Field Descriptions
Bits
Name
Description
7
CBEIF
Command buffer empty interrupt flag. The CBEIF flag indicates that the command
buffer for the interleaved Flash physical blocks is empty and that a new command
sequence can be started. Clear CBEIF by writing it to 1. Writing a 0 to CBEIF has
no effect but can be used to abort a command sequence. The CBEIF bit can trigger
an interrupt request if the CBEIE bit is set in CFMMCR. While CBEIF is clear, the
CFMCMD register is not writable.
1 Command buffer is ready to accept a new command.
0 Command buffer is full.
6
CCIF
Command complete interrupt flag. The CCIF flag indicates that no commands are
pending for the Flash physical blocks. CCIF is set and cleared automatically upon
start and completion of a command. Writing to CCIF has no effect. The CCIF bit
can trigger an interrupt request if the CCIE bit is set in CFMCR.
1 All commands are completed
0 Command in progress
5
PVIOL
Protection violation flag. The PVIOL flag indicates an attempt was made to initiate
a program or erase operation in a Flash logical sector denoted as protected by
CFMPROT. Clear PVIOL by writing it to 1. Writing a 0 to PVIOL has no effect. While
PVIOL is set in any this register, it is not possible to launch another command.
1 A protection violation has occurred
0 No failure
4
ACCERR
Access error flag. The ACCERR flag indicates an illegal access to the CFM array
or registers caused by a bad program or erase sequence. ACCERR is cleared by
writing it to 1. Writing a 0 to ACCERR has no effect. While ACCERR is set in this
register, it is not possible to launch another command. See
,” for details on what sets the ACCERR flag.
1 Access error has occurred
0 No failure
3
—
Reserved, should be cleared.
MCF5282 and MCF5216 ColdFire Microcontroller User’s Manual, Rev. 3