FLASH MEMORY VERSION
7902 Group User’s Manual
20-23
20.2 Flash memory CPU reprogramming mode
Fig. 20.2.8 Full status check flowchart and actions to be taken if any error has ocurred
Read status register
SR.5 = 0?
Completed.
NO
YES
Erase error
YES
Command sequence
error
SR.4 = 1
and
SR.5 = 1
?
SR.4 = 0?
NO
YES
Programming error
SR.3 = 0?
NO
YES
Excessive
programming error
Execute the clear status command to clear SR.4 and SR.5 to “0.”
Execute the correct command again.
Note: If the same error occurs, however, the block cannot be used.
Note: Under the condition that any of SR.5, SR.4, and SR.3 = “1,” none of the page programming, block erase, erase-all-unlocked-blocks,
and lock bit programming commands can be accepted. To execute any of these commands, in advance, execute the clear status
register command.
Execute the clear status command to clear SR.5 to “0.”
Execute the read lock bit status command. If the lock bit of the block
where an error has occurred, be sure to set the lock bit invalidity select
bit (bit 2 at address 9E16) to “1.”
Execute the block erase or erase-all-unlocked-blocks command again.
Note: If the same error occurs, however, the block cannot be used.
Also, when the lock bit in = “1,” the block cannot be used.
[At page programming command execution]
Execute the clear status command to clear SR.4 to “0.”
Execute the read lock bit status command. If the lock bit of the block
where an error has occurred, be sure to set the lock bit invalidity select
bit (bit 2 at address 9E16) to “1.”
Execute the page programming command again.
Note: If the same error occurs, however, the block cannot be used.
Also, when the lock bit in = “1,” the block cannot be used.
[At lock bit programming command execution]
Execute the clear status command to clear SR.4 to “0.”
Set the lock bit invalidity select bit (bit 2 at address 9E16) to “1.”
Execute the block erase command to erase the block where an error has
occurred.
Execute the lock bit programming command again.
Note: If the same error occurs, however, the block cannot be used.
Execute the clear status command to clear SR.3 to “0.”
Execute the block erase command to erase the block where an error has
occurred.
Execute the page programming command again.
Note: If the same error occurs, however, the block cannot be used.