|
S9S12C128F0MFUE Datasheet, PDF (626/690 Pages) Freescale Semiconductor, Inc – Reference Manual | |||
|
◁ |
Chapter 21 128 Kbyte Flash Module (S12FTS128K1V1)
Table 21-13. FSTAT Field Descriptions
Field
Description
5
PVIOL
4
ACCERR
2
BLANK
1
FAIL
0
DONE
Protection Violation â The PVIOL ï¬ag indicates an attempt was made to program or erase an address in a
protected Flash array memory area. The PVIOL ï¬ag is cleared by writing a 1 to PVIOL. Writing a 0 to the PVIOL
ï¬ag has no effect on PVIOL. While PVIOL is set, it is not possible to launch another command.
0 No protection violation detected
1 Protection violation has occurred
Access Error â The ACCERR ï¬ag indicates an illegal access to the Flash array caused by either a violation of
the command write sequence, issuing an illegal command (illegal combination of the CMDBx bits in the FCMD
register) or the execution of a CPU STOP instruction while a command is executing (CCIF=0). The ACCERR ï¬ag
is cleared by writing a 1 to ACCERR. Writing a 0 to the ACCERR ï¬ag has no effect on ACCERR. While ACCERR
is set, it is not possible to launch another command.
0 No access error detected
1 Access error has occurred
Flash Array Has Been Veriï¬ed as Erased â The BLANK ï¬ag indicates that an erase verify command has
checked the Flash array and found it to be erased. The BLANK ï¬ag is cleared by hardware when CBEIF is
cleared as part of a new valid command write sequence. Writing to the BLANK ï¬ag has no effect on BLANK.
0 If an erase verify command has been requested, and the CCIF ï¬ag is set, then a 0 in BLANK indicates the
array is not erased
1 Flash array veriï¬es as erased
Flag Indicating a Failed Flash Operation â In special modes, the FAIL ï¬ag will set if the erase verify operation
fails (Flash array veriï¬ed as not erased). Writing a 0 to the FAIL ï¬ag has no effect on FAIL. The FAIL ï¬ag is cleared
by writing a 1 to FAIL. While FAIL is set, it is not possible to launch another command.
0 Flash operation completed without error
1 Flash operation failed
Flag Indicating a Failed Operation is not Active â In special modes, the DONE ï¬ag will clear if a program,
erase, or erase verify operation is active.
0 Flash operation is active
1 Flash operation is not active
21.3.2.7 Flash Command Register (FCMD)
The FCMD register deï¬nes the Flash commands.
Module Base + 0x0006
7
6
5
4
R
0
0
CMDB6
CMDB5
W
3
2
1
0
0
0
CMDB2
CMDB0
Reset
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 21-11. Flash Command Register (FCMD)
Bits CMDB6, CMDB5, CMDB2, and CMDB0 are readable and writable during a command write
sequence while bits 7, 4, 3, and 1 read 0 and are not writable.
626
MC9S12C-Family / MC9S12GC-Family
Freescale Semiconductor
Rev 01.24
|
▷ |