English
Language : 

M30222 Datasheet, PDF (191/237 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
dUevnedloerpment
Specifications in this manual are tentative and subject to change
MITSUBISHI MICROCOMPUTERS
M30222 Group
Rev. G
CPU Rewrite Mode (Flash Memory Version)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Program Command (4016)
Program operation starts when the command code "4016" is written in the first bus cycle. Then, if the address and
data to program are written in the second bus cycle, program operation (data programming and verification) will
start.
Whether the write operation is completed can be confirmed 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 is read into the data bus (D0–D7). The status register bit 7 (SR7) is set to 0 at the same time the write
operation starts and is returned to 1 upon completion of the write operation. In this case, the read status register
mode remains active until the Read Array command (FF16) is written.
The RY/BY status flag is 0 during write operation and 1 when the write operation is completed as is the status
register bit 7. At program end, program results can be checked by reading the status register. Figure 1.152 shows
an example of a program flowchart.
Fig. 1.152. Program flowchart
Start
Write 401 6
Write address
and data
Read status
register
SR7=1? NO
or
RY/BY=1
YES
NO
SR4= 0
YES
Program complete
Program error
1-192