20.07.2015 Views

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix Standard Serial I/O Mode (Flash Memory Version)Mitsubishi microcomputers<strong>M16C</strong> / <strong>62</strong> <strong>Group</strong>SINGLE-CHIP 16-BIT CMOS MICROCOMPUTERStatus Register (SRD)The status register indicates operating status of the flash memory and status such as whether an eraseoperation or a program ended successfully or in error. It can be read by writing the read status registercommand (7016). Also, the status register is cleared by writing the clear status register command (5016).Table 1.31.2 gives the definition of each status register bit. After clearing the reset, the status registeroutputs “8016”.Table 1.31.2. Status register (SRD)SRD0 bitsSR7 (bit7)SR6 (bit6)SR5 (bit5)SR4 (bit4)SR3 (bit3)SR2 (bit2)SR1 (bit1)SR0 (bit0)Status nameWrite state machine (WSM) statusReservedErase statusProgram statusBlock status after programReservedReservedReservedDefinition"1" "0"ReadyBusy--Terminated in error Terminated normallyTerminated in error Terminated normallyTerminated in error Terminated normally------Write State Machine (WSM) Status (SR7)The write state machine (WSM) status indicates the operating status of the flash memory. Whenpower is turned on, “1” (ready) is set for it. The bit is set to “0” (busy) during an auto write or auto eraseoperation, 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. If an erase error occurs, it isset 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 isset to “1”. When the program status is cleared, it is set to “0”.266

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!