|
M16C30P_07 Datasheet, PDF (235/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES | |||
|
◁ |
M16C/30P Group
19. Flash Memory Version
19.3.8 Full Status Check
If an error occurs when a program or erase operation is completed, the FMR06 to FMR07 bits in the FMR0
register are set to â1â, indicating a specific error. Therefore, execution results can be confirmed by checking
these bits (full status check).
Table 19.8 lists Errors and FMR0 Register State. Figure 19.13 shows a flow chart of the Full Status Check and
Handling Procedure for Each Error.
Table 19.8 Errors and FMR0 Register State
FMR0 Register
(Status Register) State
FMR07 bit FMR06 bit
Error
Error Occurrence Conditions
(SR5 bit) (SR4 bit)
Command
⢠Command is written incorrectly
1
1
Sequence error ⢠A value other than âxxD0hâ or âxxFFhâ is written in the
second bus cycle of the lock bit program or block erase
command (1)
Erase error
⢠The block erase command is executed on a locked block
1
0
⢠The block erase command is executed on an unlock
block and auto erase operation is not completed as
expected (2)
Program error ⢠The program command is executed on locked blocks
⢠The program command is executed on unlocked blocks
0
1
but program operation is not completed as expected
⢠The lock bit program command is executed but program
operation is not completed as expected (2)
NOTES:
1. The flash memory enters read array mode by writing command code âxxFFhâ in the second bus
cycle of these commands. The command code written in the first bus cycle becomes invalid.
2. When the FMR02 bit is set to â1â (lock bit disabled), no error occurs even under the conditions
above.
Rev.1.22 Mar 29, 2007 Page 219 of 291
REJ09B0179-0122
|
▷ |