English
Language : 

M16C62N Datasheet, PDF (173/213 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
CPU Rewrite Mode (Flash Memory Version)
Mitsubishi microcomputers
M16C / 62N Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Full Status Check
By performing full status check, it is possible to know the execution results of erase and program
operations. Figure 1.29.7 shows a full status check flowchart and the action to be taken when each
error occurs.
Read status register
(Set an address to even
when reading the status
register)
YES
SR4=1 and SR5
=1 ?
Command
sequence error
NO
SR5=0? NO Block erase error
YES
SR4=0? NO
Program error
YES
End (block erase, program)
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.
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.
Note: When one of SR5 to SR4 is set to 1, none of the program, erase all blocks, and
block erase commands is accepted. Execute the clear status register command
(5016) before executing these commands.
Figure 1.29.7. Full status check flowchart and remedial procedure for errors
172