EzPort
MCF52235 ColdFire® Integrated Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
21-4
21.4.1
Command Descriptions
21.4.1.1
Write Enable
The Write Enable command sets the write enable register bit in the status register. The write enable bit must
be set for a Write Configuration Register (WRCR), Page Program (PP), Sector Erase (SE), or Bulk Erase
(BE) command to be accepted. The write enable register bit clears on reset, on a Write Disable command,
and at the completion of a write, program, or erase command.
This command should not be used if a write is already in progress.
21.4.1.2
Write Disable
The Write Disable command clears the write enable register bit in the status register.
This command should not be used if a write is already in progress.
21.4.1.3
Read Status Register
The Read Status Register command returns the contents of the EzPort Status register.
IPSBAR
Offset:
Access: read/write
7
6
5
4
3
2
1
0
R
FS
WEF
CRL
WEN
WIP
W
Reset:
0/1
1
1
Reset value reflects if flash security is enabled or disabled out of reset.
0
0
0
0
0
0
0
Figure 21-2. EzPort Status Register
Table 21-3. EzPort Status Register Field Description
Field
Descriptions
7
FS
Flash Security. Status flag that indicates if the flash memory is in secure mode. In secure mode, the following
commands are not accepted: Read (READ), Fast Read (FAST_READ), Page Program (PP), Sector Erase
(SE). Secure mode can be exited by performing a Bulk Erase (BE) command, which erases the entire contents
of the flash memory.
0 Flash is not in secure mode.
1 Flash is in secure mode.
6
WEF
Write Error Flag. Status flag that indicates if there has been an error with an erase or program instruction inside
the flash controller due to attempting to program or erase a protected sector, or if there is an error in the flash
memory after performing a Bulk Erase command. The flag clears after a Read Status Register (RDSR)
command.
0 No error on previous erase/program command.
1 Error on previous erase/program command.
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