Table 30-2. EzPort commands (continued)
Command
Description
Code
Address
Bytes
Data Bytes
Accepted when
secure?
READ
Flash Read Data
0x03
1+
No
FAST_READ
Flash Read Data at High Speed
0x0B
1+
No
SP
Flash Section Program
0x02
4 - SECTION
No
SE
Flash Sector Erase
0xD8
0
No
BE
Flash Bulk Erase
0xC7
0
0
RESET
Reset Chip
0xB9
0
0
Yes
WRFCCOB
Write FCCOB Registers
0xBA
0
12
FAST_RDFCCOB
Read FCCOB registers at high
speed
0xBB
0
No
1. Address must be 32-bit aligned (two LSBs must be zero).
2. One byte of dummy data must be shifted in before valid data is shifted out.
3. Address must be 32-bit aligned (two LSBs must be zero).
4. Please see the Flash Memory chapter for a definition of section size. Total number of data bytes programmed must be a
multiple of 4.
5. Bulk Erase is accepted when security is set and only when the BEDIS status field is not set.
6. The flash will be in NVM Special mode, restricting the type of commands that can be executed through WRITE_FCCOB
when security is enabled.
30.3.1 Command descriptions
This section describes the module commands.
30.3.1.1 Write Enable
CMD[7:0]=0x06
EZP_CK
EZP_CS
EZP_D
EZP_Q
Figure 30-2. Write Enable command sequence
The Write Enable (WREN) command sets the write enable register field in the EzPort
status register. The write enable field must be set for a write command (SP, SE, BE,
WRFCCOB) to be accepted. The write enable register field clears on reset, on a Write
Disable command, and at the completion of write command. This command must not be
used if a write is already in progress.
Chapter 30 EzPort
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
Freescale Semiconductor, Inc.
661