English
Language : 

M16C26 Datasheet, PDF (207/239 Pages) Renesas Technology Corp – 16-BIT CMOS SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/20 SERIES
Udenvdeelropment
Preliminary Specifications Rev. 0.9
Specifications in this manual are tentative and subject to change.
CPU Rewrite Mode (Flash Memory Version)
M16C/26 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Table 1.20.2. Definition of each bit in status register
Each SRD bit
Status name
SR7 (D7)
SR6 (D6)
SR5 (D5)
SR4 (D4)
SR4 (D3)
SR2 (D2)
SR1 (D1)
SR0 (D0)
Write state machine (WSM)
Reserved
Erase status
Program status
Program status after program
Reserved
Reserved
Reserved
Definition
“1”
“0”
Ready
_
Terminated in error
Terminated in error
Terminated in error
_
_
_
Busy
_
Terminated normally
Terminated normally
Terminated normally
_
_
_
Full Status Check
By performing full status check, it is possible to know the execution results of erase and program
operations. Figure 1.20.6 shows a full status check flowchart and the action to be taken when each
error occurs.
Read status register (Set an address to even when reading the status register)
SR4=1/FMR06
and
SR5=1/FMR07?
YES
Command
sequence error
NO
(1) Execute the Clear Status Register command (5016) to clear
the status register.
(2) Try performing the operation one more time after confirming
that the command is entered correctly.
SR5=0?/FMR07? NO Block erase error
YES
NO
SR4=0?/FMR06?
Program error
YES
End (block erase, program)
(1) Execute the Clear Status Register command to set the erase
status flag to. "0".
(2) Re-execute the Block Erase command.
(3) Until erase error disappears, please retry (1) and (2) at least
3 times.
Note 1: If the error still occurs, the block in error cannot be used.
[During programming]
(1) Execute the Clear Status Register command to set the
program status flag to "0".
(2) Re-execute the Program command.
Note 2: If the error still occurs, the block in error cannot be used.
Note: When one of SR5 to SR4 is set to 1, neither program nor block erase commands
are accepted. Execute the clear status register command (5016) before executing
these commands.
Figure 1.20.6. Full status check flowchart and remedial procedure for errors
Renesas Technology Corp.
201