|
M16C30P_07 Datasheet, PDF (236/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES | |||
|
◁ |
M16C/30P Group
19. Flash Memory Version
Full status check
FMR06 =1
and
FMR07=1?
NO
FMR07=0?
YES
YES
Command
sequence error
NO
Erase error
(1) Execute the clear status register command and set the SR4 and SR5
bits to â0â (completed as expected) .
(2) Rewrite command and execute again.
(1) Execute the clear status register command and set the SR5 bit to â0â.
(2) Execute the lock bit read status command. Set the FMR02 bit to â1â
(lock bit disabled) if the lock bit in the block where the error occurred is
set to â0â (locked).
(3) Execute the block erase command again.
(4) Execute (1), (2) and (3) at least 3 times until an erase error is not
generated.
NOTE: If similar error occurs, that block cannot be used.
If the lock bit is set to â1â (unlocked) in (2) above, that block
cannot be used.
FMR06=0?
YES
NO
Program error
[When a program operation is executed]
(1) Execute the clear status register command and set the SR4 bit to â0â
(completed as expected) .
(2) Execute the read lock bit status command and set the FMR02 bit to â1â
if the lock bit in the block where the error occurred is set to 0.
(3) Execute the program command again.
NOTE: When a similar error occurs, that block cannot be used.
If the lock bit is set to â1â in (2) above, that block cannot be used.
[When a lock bit program operation is executed]
(1) Execute the clear status register command and set the SR4 bit to â0â.
(2) Set the FMR02 bit in the FMR0 register to â1â.
(3) Execute the block erase command to erase the block where the error
occurred.
(4) Execute the lock bit program command again.
NOTE: If similar error occurs, that block cannot be used.
Full status checkcompleted
NOTE: When either FMR06 or FMR07 bit is set to â1â (terminated by error) , the program, block erase,
lock bit program and read lock bit status commands cannot be accepted.
Execute the clear status register command before each command.
Figure 19.13 Full Status Check and Handling Procedure for Each Error
Rev.1.22 Mar 29, 2007 Page 220 of 291
REJ09B0179-0122
|
▷ |