R01UH0136EJ0210 Rev.2.10
Page 687 of 800
Jul 31, 2012
M16C/64A Group
30. Flash Memory
30.8.6.1
Full Status Check
If an error occurs, bits FMR06 and FMR07 in the FMR0 register become 1, indicating the occurrence
of an error. Therefore, the execution results can be confirmed by checking these status bits (full
status check).
Figure 30.15 Full Status Check
Table 30.18
Errors and FMR0 Register States
FMR00 Register
Error
Error Occurrence Conditions
FMR07 bit FMR06 bit
1
1
Command
sequence error
• Command is written incorrectly.
• Data other than xxD0h and xxFFh is written in the second
bus cycle of the lock bit program, block erase, block
blank check, or read lock bit status command.
1
0
Erase error
• The block erase command is executed on a locked block.
• The block erase command is executed on an unlocked
block, but the auto-erase operation is not completed as
expected.
• The block blank check command is executed, and the
check result is not blank.
0
1
Program error
• The program command is executed on a locked block.
• The program command is executed on an unlocked
block, but the auto-program operation is not completed
as expected.
• The lock bit program command is executed, but the lock
bit is not written as expected.
Notes:
1.
When writing xxFFh in the second bus cycle of the command, the flash memory becomes the
state before executing the command, and the command code written in the first bus cycle is
cancelled.
2.
When the FMR02 bit is 1 (lock bit disabled), no error occurs even under the conditions above.
Full status check
FMR06 = 1
and
FMR07 = 1?
No
Command sequence
error
Yes
FMR07 = 0?
Yes
Erase error
No
Program error
No
Full status check
completed
FMR06 = 0?
FMR07, FMR06: Bits in the FMR0 register
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...