Chapter 20 96 Kbyte Flash Module (S12FTS96KV1)
Freescale Semiconductor
MC9S12C-Family / MC9S12GC-Family
599
Rev 01.24
20.4.1.3
Valid Flash Commands
summarizes the valid Flash commands along with the effects of the commands on the Flash
array.
CAUTION
A Flash word must be in the erased state before being programmed.
Cumulative programming of bits within a Flash word is not allowed.
Table 20-17. Valid Flash Commands
FCMD
Meaning
Function on Flash Array
0x05
Erase
Verify
Verify all bytes in the Flash array are erased.
If the Flash array is erased, the BLANK bit will set in the FSTAT register upon command completion.
0x20
Program
Program a word (2 bytes) in the Flash array.
0x40
Sector
Erase
Erase all
1024
bytes in a sector of the Flash array.
0x41
Mass
Erase
Erase all bytes in the Flash array.
A mass erase of the full Flash array is only possible when
FPLDIS,
FPHDIS
,
and FPOPEN bits in
the FPROT register are set prior to launching the command.
Summary of Contents for MC9S12C Family
Page 689: ......