EzPort
MCF52211 ColdFire® Integrated Microcontroller Reference Manual, Rev. 2
19-4 Freescale Semiconductor

19.4.1 Command Descriptions

19.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.

19.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.

19.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 6543210
RFS WEF CRL WEN WIP
W
Reset: 0/11
1Reset value reflects if flash security is enabled or disabled out of reset.
000 0 000
Figure 19-2. EzPort Status Register
Table 19-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.