ColdFire Flash Module (CFM)
MCF52235 ColdFire® Integrated Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
17-13
17.3.3.7
CFMUSTAT — CFM User Status Register
The CFMUSTAT register defines the flash command controller status and flash memory access, protection
and verify status.
Figure 17-11. CFM User Status Register (CFMUSTAT)
CFMUSTAT register bits CBEIF, PVIOL, ACCERR, and BLANK are readable and writable while CCIF
is readable but not writable, and remaining bits read 0 and are not writable.
The CFMUSTAT register bits CBEIF, CCIF, PVIOL, ACCERR, and BLANK are available as external
signals cfm_status_bits[7:4,2] on the module boundary.
NOTE
Only one CFMUSTAT register bit can be cleared at a time.
IPSBAR
Offset:
0x1D_0020 (CFMUSTAT)
Access: User read/write
7
6
5
4
3
2
1
0
R
CBEIF
CCIF
PVIOL
ACCERR
0
BLANK
0
0
W
Reset:
1
1
0
0
0
0
0
0
Table 17-11. CFMUSTAT Field Descriptions
Field
Description
7
CBEIF
Command buffer empty interrupt flag
The CBEIF flag, set by the flash command controller, indicates that the address, data and command
buffers are empty so that a new command write sequence can be started. The CBEIF flag is cleared by
writing a 1 to CBEIF as part of a command write sequence. Writing a 0 to the CBEIF flag has no effect
on CBEIF but can be used to abort a command write sequence. The CBEIF flag can generate an interrupt
if the CBEIE bit in the CFMMCR register is set.
1 = Buffers are ready to accept a new command write sequence.
0 = Buffers are full.
6
CCIF
Command complete interrupt flag
The CCIF flag, set by the flash command controller, indicates that there are no more commands pending.
The CCIF flag is cleared by the flash command controller when CBEIF is cleared and sets upon
completion of all active and pending commands. Writing to the CCIF flag has no effect on CCIF. The CCIF
flag can generate an interrupt if the CCIE bit in the CFMMCR register is set.
1 = All commands are completed.
0 = Command in progress.
5
PVIOL
Protection violation
The PVIOL flag, set by the flash command controller, indicates an attempt was made to program or erase
an address in a protected flash logical sector. The PVIOL flag is cleared by writing a 1 to PVIOL. Writing
a 0 to the PVIOL flag has no effect on PVIOL. While the PVIOL flag is set, it is not possible to launch a
command or start a command write sequence.
1 = Protection violation has occurred.
0 = No protection violation has been detected.
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:MCF52234CVM60,
MCF52235CVM60