Datasheet
M16C/6S Group Flash Memory Version
R01DS0201EJ0502 Rev.5.02 page 176 of 203
Dec 25, 2012
Status Register
The status register indicates the operating status of the flash memory and whether an erase or program-
ming operation terminated normally or in error. The status of the status register can be known by reading
the FMR0 register’s FMR00, FMR06, and FMR07 bits.
Table 1.21.3 shows the status register.
In EW0 mode, the status register can be read in the following cases:
(1) When a given even address in the user ROM area is read after writing the Read Status Register
command
(2) When a given even address in the user ROM area is read after executing the Program, Block Erase,
Erase All Unlocked Block, or Lock Bit Program command but before executing the Read Array
command.
Sequencer Status (SR7 and FMR00 Bits )
The sequence status indicates the operating status of the flash memory. SR7 = 0 (busy) during auto
programming and auto erase is set to “1” (ready) at the same time the operation finishes.
Erase Status (SR5 and FMR07 Bits)
Refer to “Full Status Check.”
Program Status (SR4 and FMR06 Bits)
Refer to “Full Status Check.”
Table 1.21.3. Status Register
• D0 to D7: Indicates the data bus which is read out when the Read Status Register command is executed.
Status
register
bit
SR4 (D
4)
SR5 (D
5)
SR7 (D
7)
SR6 (D
6)
Status name
Contents
SR1 (D
1)
SR2 (D
2)
SR3 (D
3)
SR0 (D
0)
Program status
Erase status
Sequencer status
Reserved
Reserved
Reserved
Reserved
"1"
Ready
Terminated in error
Terminated in error
-
-
-
-
-
"0"
Busy
Terminated normally
Terminated normally
-
-
-
-
-
Reserved
FMR0
register
bit
FMR00
FMR07
FMR06
Value
after
reset
1
0
0
• The FMR07 bit (SR5) and FMR06 bit (SR4) are cleared to “0” by executing the Clear Status Register
command.
• When the FMR07 bit (SR5) or FMR06 bit (SR4) = 1, the Program and Block Erase are not accepted.