English
Language : 

M16C6S_09 Datasheet, PDF (176/208 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C/6S Group
Flash Memory Version
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
FMR0
register
bit
Status name
Contents
"0"
"1"
Value
after
reset
SR7 (D7) FMR00 Sequencer status
Busy
Ready
1
SR6 (D6)
Reserved
-
-
SR5 (D5) FMR07 Erase status
Terminated normally Terminated in error
0
SR4 (D4) FMR06 Program status Terminated normally Terminated in error
0
SR3 (D3)
Reserved
-
-
SR2 (D2)
Reserved
-
-
SR1 (D1)
Reserved
-
-
SR0 (D0)
Reserved
-
-
• 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.
Rev.5.01 Dec 10, 2009 page 176 of 201
REJ03B0014-0501