English
Language : 

M16C80 Datasheet, PDF (321/358 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/80 SERIES
M16C/80 Group
32. Standard serial I/O mode
Full Status Check
Results from executed erase and program operations can be known by running a full status check. Figure
32.18 shows a flowchart of the full status check and explains how to remedy errors which occur.
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 32.18 Full status check flowchart and remedial procedure for errors
Example Circuit Application for The Standard Serial I/O Mode 1
The below figure shows a circuit application for the standard serial I/O mode 1. Control pins will vary
according to peripheral unit (programmer), therefore see the peripheral unit (programmer) manual for
more information.
Clock input
BUSY output
Data input
Data output
CLK1
RTS1(BUSY)
RXD1
TXD1
M16C/80 Flash
memory version
CNVss
NMI
P50(CE)
P55(EPM)
(1) Control pins and external circuitry will vary according to peripheral unit (programmer). For more
information, see the peripheral unit (programmer) manual.
(2) In this example, the microprocessor mode and standard serial I/O mode are switched via a switch.
Figure 32.19 Example circuit application for the standard serial I/O mode 1
Rev.1.00 Aug. 02, 2005 Page 310 of 329
REJ09B0187-0100