English
Language : 

M16C6K9 Datasheet, PDF (267/292 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C/6K9 Group
CPU Reprogram Mode
Program Command (4016)
Program operation starts when the command code “4016” is issued in the 1st bus cycle. If the address and
data are issued in the 2nd bus cycle, program operation (data programming and verification) will start.
_____
Whether the program operation is completed can be conformed by reading the status register or the RY/BY
status flag. When the program starts, the read status register mode is accessed automatically and the
content of the status register can be read on the date bus (D7–D0). The status register bit 7 (SR7) is set to
“0” at the same time when the program operation starts and is returned to “1” upon the completion of the
program operation. In this case, the read status register mode remains active until the Read Array Command
(FF16) is issued.
_____
The RY/BY status flag is “0” during program operation and “1” when the program operation is completed
same as the status register bit 7.
After the program, reading the status register can check the result. Refer to the section where the status
register is detailed.
Start
Write 4016
Write
Write address
Write data
Status register read
(The address for reading the status register
should be even and within the user ROM area.)
SR7=1? or NO
RY/BY=1?
YES
NO
SR4=0?
Program error
YES
Program completed
Fig.BB-3 Program flowchart
Rev.1.00 Jun 06, 2003 page 267 of 290