English
Language : 

M16C Datasheet, PDF (225/262 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Preliminary Specifications REV.B
Mitsubishi microcomputers
Specifications in this manual are tentative and subject to change.
M16C / 6N Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
CPU Rewrite Mode
Program status (SR4)
The program status informs the operating status of the auto write operation to the CPU. When a write
error occurs, it is set to 1.
The program status is reset to 0 when cleared.
When an erase command is in error (which occurs if the command entered after the block erase
command (2016) is not the confirmation command (D016)), both the program status and erase status
(SR5) are set to 1.
When the program status or erase status is 1, the following commands entered by command write are
not accepted.
Also, in one of the following cases, both SR4 and SR5 are set to 1 (command sequence error):
(1) When the valid command is not entered correctly.
(2) When the data entered in the second bus cycle of the lock bit program (7716/D016), block erase
(2016/D016), or erase all unlock blocks (A716/D016) is not the D016 or FF16. However, if FF16 is
entered, read array is assumed and the command that has been set up in the first bus cycle is
cancelled.
Block status after program
If excessive data are written (phenomenon whereby the memory cell becomes depressed which
results in data not being read correctly), "1" is set for the program status after-program at the end of the
page write operation. In other words, when writing ends successfully, "8016" is output; when writing
fails, "9016" is output; and when excessive data are written, "8816" is output.
Table 23-2. Definition of each bit in status register
Each bit of
SRD
SR7 (bit7)
SR6 (bit6)
SR5 (bit5)
SR4 (bit4)
SR3 (bit3)
SR2 (bit2)
SR1 (bit1)
SR0 (bit0)
Status name
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
-
-
-
-
-
-
225