Information
30.3.1.4 Read Data
The Read Data (READ) command returns data from the flash memory . The initial
address must be 32-bit aligned (the two LSBs must be zero).
Data continues being returned for as long as the EzPort chip select (EZP_CS) is asserted,
with the address automatically incrementing. In this way, the entire contents of flash can
be returned by one command. Attempts to read from an address which does not fall
within the valid address range (see Flash Memory Map for EzPort Access) for the flash
memory regions returns junk data.
For this command to return the correct data, the EzPort clock (EZP_CK) must run at the
internal system clock divided by eight or slower. This command is not accepted if the
WEF, WIP, or FS bit in the EzPort status register is set.
30.3.1.5 Read Data at High Speed
The Read Data at High Speed command (FAST_READ) is identical to the READ
command, except for the inclusion of a dummy byte following the address bytes and
before the first data byte is returned.
This command can be run with an EzPort clock (EZP_CK) frequency of half the internal
system clock frequency of the micro-controller or slower. This command is not accepted
if the WEF, WIP, or FS bit in the EzPort status register is set.
30.3.1.6 Section Program
The Section Program (SP) command programs up to one section of flash memory which
has previously been erased. A section is defined as the smaller of the flash sector size or
half the size of the Programming Acceleration RAM. The starting address of the memory
to program is sent after the command word and must be a 64-bit aligned address (the
three LSBs must be zero).
As data is shifted in, the EzPort buffers the data in Programming Acceleration RAM
before executing a 'Program Section' command within the flash (see Flash Block Guide
for more detail). For this reason, the number of bytes to program must be a multiple of 8
and up to one flash section can be programmed at a time.
Attempts to program more than one section, across a sector boundary or from an initial
address which does not fall within the valid address range (see Flash Memory Map for
EzPort Access) for the flash causes the WEF flag to set.
Chapter 30 EzPort
K20 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc. 705
