English
Language : 

M30222 Datasheet, PDF (221/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
Serial I/O Mode 1 (Flash Memory Version)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Status Register (SRD)
The status register indicates operating status of the flash memory and status such as whether an erase
operation or a program ended successfully or in error. It can be read by writing the read status register
command (7016). Also, the status register is cleared by writing the clear status register command
(5016). Table 1.80 gives the definition of each status register bit. After clearing the reset, the status
register outputs “8016”.
Table 1.80. Status register (SRD)
Each SRD bit
Status name
SR7 (bit 7)
SR6 (bit 6)
SR5 (bit 5)
SR4 (bit 4)
SR3 (bit 3)
SR2 (bit 2)
SR1 (bit 1)
SR0 (bit 0)
Write state machine (WSM) status
Reserved
Erase status
Program status
Reserved
Reserved
Reserved
Reserved
Definition
1
Ready
_
Terminated in error
Terminated in error
_
_
_
_
0
Busy
_
Terminated normally
Terminated normally
_
_
_
_
Sequencer status (SR7)
After power-on, the sequencer status is set to 1 (ready).
The sequencer status indicates the operating status of the device. This status bit is set to 0 (busy) during write
or erase operation and is set to 1 upon completion of these operations.
Erase Status (SR5)
The erase status reports the operating status of the automatic erase operation. If an erase error occurs, it is
set to “1”. When the erase status is cleared, it is set to “0”.
Program Status (SR4)
The program status reports the operating status of the auto write operation. If a write error occurs, it is set to
“1”. When the program status is cleared, it is set to “0”.
1-222