English
Language : 

M16C80 Datasheet, PDF (298/358 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/80 SERIES
M16C/80 Group
30. CPU Rewrite Mode
Full Status Check
By performing full status check, it is possible to know the execution results of erase and program
operations. Figure 30.8 shows a full status check flowchart and the action to be taken when each error
occurs.
Read status register
(When reading the status register, set an even number address in the
user ROM area).
YES
SR4=1 and SR5
=1 ?
NO
Command
sequence error
NO
SR5=0?
YES
Block erase error
Execute the clear status register command (5016)
to clear the status register. Try performing the
operation one more time after confirming that the
command is entered correctly.
Should a block erase error occur, the block in error
cannot be used.
NO
SR4=0?
YES
Program error
(page or lock bit)
Execute the read lock bit status command (7116) to
see if the block is locked. After removing lock,
execute write operation in the same way. If the
error still occurs, the page in error cannot be used.
SR3=0? NO
YES
Program error
(block)
After erasing the block in error, execute write
operation one more time. If the same error still
occurs, the block in error cannot be used.
End (block erase, program)
Note: When one of SR5 to SR3 is set to 1, none of the page program, block erase, erase all unlock
blocks and lock bit program commands is accepted. Execute the clear status register command
(5016) before executing these commands.
Figure 30.8 Full status check flowchart and remedial procedure for errors
Rev.1.00 Aug. 02, 2005 Page 287 of 329
REJ09B0187-0100