Datasheet
Section 22 Flash Memory
R01UH0309EJ0500 Rev. 5.00 Page 1163 of 1408
Sep 24, 2012
H8S/2456, H8S/2456R, H8S/2454 Group
22.6 Full Status Check
When an error occurs, the FMERSF or FMPRSF bit in FLMSTR becomes 1 to indicate
occurrence of the error. Read these status bits (full status check) to check the operation results.
Table 22.7 shows the errors and FLMSTR status and figure 22.6 shows a flowchart of full status
check processing and corrective actions for each error.
Table 22.7 Errors and Register Status
State of FLMSTR
(Status Register)
FMERSF Bit
(SR5)
FMPRSF Bit
(SR4) Error Error Conditions
1 1 Command
sequence error
• When a command is not issued correctly
• When an invalid value (a value other than
H'D0xx or H'FFxx) is written in the second
bus cycle of a block erase command*
1 0 Erase error
• When a block erase command is issued but
the block is not erased correctly
• When a block blank check command is
issued and the checked block is not blank
0 1 Programming
error
• When a program command is issued but
automatic writing is not done correctly
Note: * When H'FFxx is written in the second bus cycle of this command, the flash memory
enters the read array mode and the command code written in the first bus cycle is
ignored.