English
Language : 

M16C Datasheet, PDF (257/262 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Preliminary Specifications REV.B
Specifications in this manual are tentative and subject to change.
Mitsubishi microcomputers
M16C / 6N Group
Standard Serial I/O Mode
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 25-2 gives the definition of the status register bits. After clearing the reset, the status register outputs
"8016".
Table 25-2. Status register (SRD)
Each bit of
SRD
Status name
SR7 (bit7)
SR6 (bit6)
SR5 (bit5)
SR4 (bit4)
SR3 (bit3)
SR2 (bit2)
SR1 (bit1)
SR0 (bit0)
Write state machine (WSM) status
Reserved
Erase status
Program status
Block status after program
Reserved
Reserved
Reserved
Definition
"1"
"0"
Ready
Busy
-
-
Terminated in error Terminated normally
Terminated in error Terminated normally
Terminated in error Terminated normally
-
-
-
-
-
-
Write State Machine (WSM) Status (SR7)
The write status machine (WSM) status indicates the operating status of the flash memory. When power
is turned on, it is set to "1" (ready). The bit is set to "0" (busy) during an auto write- or an auto erase
operation, but it is set back to "1" when the operation ends.
Erase Status (SR5)
The erase status reports the operating status of the auto erase operation. It is set to "1" if an erase error
occurs. 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. It is set to "1" if a write error
occurs. When the program status is cleared, it is set to "0".
257