English
Language : 

K60P100M100SF2RM Datasheet, PDF (664/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Flash Operation in Low-Power Modes
28.4.12.3 Program Check Command
The Program Check command tests a previously programmed program flash or data flash
longword to see if it reads correctly at the specified margin level.
Table 28-40. Program Check Command FCCOB Requirements
FCCOB Number
0
1
2
3
4
8
9
A
B
FCCOB Contents [7:0]
0x02 (PGMCHK)
Flash address [23:16]
Flash address [15:8]
Flash address [7:0]1
Margin Choice
Byte 0 expected data
Byte 1 expected data
Byte 2 expected data
Byte 3 expected data
1. Must be longword aligned (Flash address [1:0] = 00).
Upon clearing CCIF to launch the Program Check command, the FTFL sets the read
margin for 1s according to Table 28-41, reads the specified longword, and compares the
actual read data to the expected data provided by the FCCOB. If the comparison at
margin-1 fails, the MGSTAT0 bit is set.
The FTFL then sets the read margin for 0s, re-reads, and compares again. If the
comparison at margin-0 fails, the MGSTAT0 bit is set. The CCIF flag is set after the
Program Check operation completes.
The supplied address must be longword aligned (the lowest two bits of the byte address
must be 00):
• Byte 0 data is expected at the supplied address ('start'),
• Byte 1 data is expected at byte address start + 0b01,
• Byte 2 data is expected at byte address start + 0b10, and
• Byte 3 data is expected at byte address start + 0b11.
NOTE
See the description of margin reads, Margin Read Commands
Table 28-41. Margin Level Choices for Program Check
Read Margin Choice
0x01
0x02
Margin Level Description
Read at 'User' margin-1 and 'User' margin-0
Read at 'Factory' margin-1 and 'Factory' margin-0
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
664
Freescale Semiconductor, Inc.