21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix Standard Serial I/O Mode (Flash Memory Version)Mitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERFull Status CheckResults from executed erase and program operations can be known by running a full status check. Figure1.31.19 shows a flowchart of the full status check and explains how to remedy errors which occur.Read status registerSR4=1 and SR5=1 ?NOYESCommandsequence errorExecute the clear status register command (5016)to clear the status register. Try performing theoperation one more time after confirming that thecommand is entered correctly.SR5=0?YESNOBlock erase errorShould a block erase error occur, the block in errorcannot be used.SR4=0?YESNOProgram error (pageor 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 theerror still occurs, the page in error cannot beused.SR3=0?YESNOProgram error(block)After erasing the block in error, execute writeoperation one more time. If the same error stilloccurs, 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 theclear status register command (5016) before executing these commands.Figure 1.31.19. Full status check flowchart and remedial procedure for errors270

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!