English
Language : 

K60P100M100SF2RM Datasheet, PDF (652/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Flash Operation in Low-Power Modes
• The command write sequence used to set FTFL command parameters and launch
execution
• A description of all FTFL commands available
28.4.10.1 Command Write Sequence
FTFL commands are specified using a command write sequence illustrated in Figure
28-34. The FTFL module performs various checks on the command (FCCOB) content
and continues with command execution if all requirements are fulfilled.
Before launching a command, the ACCERR and FPVIOL bits in the FSTAT register
must be zero and the CCIF flag must read 1 to verify that any previous command has
completed. If CCIF is zero, the previous command execution is still active, a new
command write sequence cannot be started, and all writes to the FCCOB registers are
ignored.
28.4.10.1.1 Load the FCCOB Registers
The user must load the FCCOB registers with all parameters required by the desired
FTFL command. The individual registers that make up the FCCOB data set can be
written in any order.
28.4.10.1.2 Launch the Command by Clearing CCIF
Once all relevant command parameters have been loaded, the user launches the command
by clearing the FSTAT[CCIF] bit by writing a '1' to it. The CCIF flag remains zero until
the FTFL command completes.
The FSTAT register contains a blocking mechanism, which prevents a new command
from launching (can't clear CCIF) if the previous command resulted in an access error
(FSTAT[ACCERR]=1) or a protection violation (FSTAT[FPVIOL]=1). In error
scenarios, two writes to FSTAT are required to initiate the next command: the first write
clears the error flags, the second write clears CCIF.
28.4.10.1.3 Command Execution and Error Reporting
The command processing has several steps:
1. The FTFL reads the command code and performs a series of parameter checks and
protection checks, if applicable, which are unique to each command.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
652
Freescale Semiconductor, Inc.