English
Language : 

M16C6K9 Datasheet, PDF (288/292 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C/6K9 Group
Standard Serial I/O Mode
Full status check
By performing full status check, the execution result of erase and program operations can be known. Fig.EE-
13 shows the full status check flowchart and the method to deal with the error.
Read status register
SR4=1 ? and YES
SR5=1 ?
Command
sequence error
NO
SR5=0? NO
YES
NO
SR4=0?
YES
Block erase error
Program error
Execute the clear status register command (5016)
to clear the status register. Try to perform the
operation again after conforming that the
commands is entered correctly.
Should block erase error occur, the block can not
be used.
Should program error occur, the block can not be
used.
End (block erase, program)
Note: When SR5 or SR4 is set to "1", neither of the program nor block erase
commands are accepted. Execute the clear status register command (5016)
before executing these commands.
Fig.EE-13 Full status check flowchart and the method to deal with errors
Rev.1.00 Jun 06, 2003 page 288 of 290