|
MC9S12HY64 Datasheet, PDF (578/792 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers | |||
|
◁ |
48 KByte Flash Module (S12FTMRC48K1V1)
Table 16-14. FSTAT Field Descriptions (continued)
Field
Description
3
MGBUSY
2
RSVD
Memory Controller Busy Flag â The MGBUSY ï¬ag reï¬ects the active state of the Memory Controller.
0 Memory Controller is idle
1 Memory Controller is busy executing a Flash command (CCIF = 0)
Reserved Bit â This bit is reserved and always reads 0.
1â0
Memory Controller Command Completion Status Flag â One or more MGSTAT ï¬ag bits are set if an error
MGSTAT[1:0] is detected during execution of a Flash command or during the Flash reset sequence. See Section 16.4.5,
âFlash Command Description,â and Section 16.6, âInitializationâ for details.
16.3.2.8 Flash Error Status Register (FERSTAT)
The FERSTAT register reï¬ects the error status of internal Flash operations.
Offset Module Base + 0x0007
7
6
5
4
3
2
1
R
0
0
0
0
0
0
DFDIF
W
Reset
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 16-12. Flash Error Status Register (FERSTAT)
All ï¬ags in the FERSTAT register are readable and only writable to clear the ï¬ag.
Table 16-15. FERSTAT Field Descriptions
0
SFDIF
0
Field
Description
1
DFDIF
Double Bit Fault Detect Interrupt Flag â The setting of the DFDIF ï¬ag indicates that a double bit fault was
detected in the stored parity and data bits during a Flash array read operation or that a Flash array read operation
was attempted on a Flash block that was under a Flash command operation.1 The DFDIF ï¬ag is cleared by
writing a 1 to DFDIF. Writing a 0 to DFDIF has no effect on DFDIF.
0 No double bit fault detected
1 Double bit fault detected or an invalid Flash array read operation attempted
0
SFDIF
Single Bit Fault Detect Interrupt Flag â With the IGNSF bit in the FCNFG register clear, the SFDIF ï¬ag
indicates that a single bit fault was detected in the stored parity and data bits during a Flash array read operation
or that a Flash array read operation was attempted on a Flash block that was under a Flash command operation.1
The SFDIF ï¬ag is cleared by writing a 1 to SFDIF. Writing a 0 to SFDIF has no effect on SFDIF.
0 No single bit fault detected
1 Single bit fault detected and corrected or an invalid Flash array read operation attempted
1 The single bit fault and double bit fault ï¬ags are mutually exclusive for parity errors (an ECC fault occurrence can be either
single fault or double fault but never both). A simultaneous access collision (read attempted while command running) is
indicated when both SFDIF and DFDIF ï¬ags are high.
16.3.2.9 P-Flash Protection Register (FPROT)
The FPROT register defines which P-Flash sectors are protected against program and erase operations.
MC9S12HY/HA-Family Reference Manual, Rev. 1.04
578
Freescale Semiconductor
|
▷ |