English
Language : 

M16C Datasheet, PDF (241/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
Parallel I/O Mode
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Status Register
The status register indicates status such as whether an erase operation or a program ended successfully
or in error. It can be read under the following conditions.
(1) In the read array mode or lock bit status mode, when the read status register command (7016) is
written and the block address is subsequently read.
(2) In the period from when the page program auto write or auto erase starts to when the read array
command (FF16) or the read lock bit status command (7116) is input.
The status register is cleared in the following situations.
(1) When the clear status register command (5016) is written
(2) When in the deep power down mode
(3) When power is turned off
Table 24-6 gives the definition of each status register bit. When power is turned on or returning from the
deep power down mode, the status register outputs "8016".
Table 24-6. Status register
Symbol
SR7 (D7)
SR6 (D6)
SR5 (D5)
SR4 (D4)
SR3 (D3)
SR2 (D2)
SR1 (D1)
SR0 (D0)
Status
Write state machine (WSM) status
Reserved
Erase status
Program status
Program status after-program
Reserved
Reserved
Reserved
"1"
Ready
Definition
"0"
Busy
Ended in error
Ended in error
Ended in error
Ended successfully
Ended successfully
Ended successfully
Write State Machine (WSM) Status (SR7)
The write state machine (WSM) status indicates the operating status of the flash memory. When
power is turned on or returning from deep power down mode, it is set to "1". This bit is "0" (busy)
during the auto write- or erase operation and becomes "1" when the operation ends.
Erase Status (SR5)
The erase status reports the operating status of the auto 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".
241