English
Language : 

M16C28 Datasheet, PDF (338/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/28 Group (M16C/28, M16C/28B)
18. Flash Memory Version
18.8 Status Register
The status register indicates the operating status of the flash memory and whether or not erase or pro-
gram operation is successfully completed. The FMR00, FMR06, and FMR07 bits in the FMR0 register
indicate the status of the status register.
Table 18.6 lists the status register.
In EW mode 0, the status register can be read in the following cases:
(1) Any even address in the user ROM area is read after writing the read status register command
(2) Any even address in the user ROM area is read from when the program or block erase command is
executed until when the read array command is executed.
18.8.1 Sequence Status (SR7 and FMR00 Bits )
The sequence status indicates the flash memory operating status. It is set to “0” (busy) while the auto-
program and auto-erase operation is being executed and “1” (ready) as soon as these operations are
completed. This bit indicates “0” (busy) in erase-suspend mode.
18.8.2 Erase Status (SR5 and FMR07 Bits)
Refer to 18.8.4 Full Status Check.
18.8.3 Program Status (SR4 and FMR06 Bits)
Refer to 18.8.4 Full Status Check.
Table 18.6 Status Register
Bits in the Bits in the
SRD register FMR0
register
Status name
SR7 (D7) FMR00 Sequence status
SR6 (D6)
Reserved
SR5 (D5) FMR07 Erase status
SR4 (D4) FMR06 Program status
SR3 (D3)
Reserved
SR2 (D2)
Reserved
SR1 (D1)
Reserved
SR0 (D0)
Reserved
Contents
"0"
"1"
Busy
Ready
-
-
Completed normally Terminated by error
Completed normally Terminated by error
-
-
-
-
-
-
-
-
Value
after
reset
1
0
0
• D7 to D0: Indicates the data bus which is read out when executing the read status register command.
• The FMR07 bit (SR5) and FMR06 bit (SR4) are set to “0” by executing the clear status register command.
• When the FMR07 bit (SR5) or FMR06 bit (SR4) is set to "1", the program and block erase command are not accepted.
Rev. 2.00 Jan. 31, 2007 page 318 of 385
REJ09B0047-0200