English
Language : 

M16C1N Datasheet, PDF (204/238 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/10 SERIES
M16C/1N Group
19. Flash Memory Version
19.5.5 Status Register
The status register indicates the operating status of the flash memory and whether an erase or pro-
gramming 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 19.5 shows the status register.
In EW0 mode, the status register can be read in the following cases:
• When a given even address in the user ROM area is read after writing the Read Status Register
command
• When a given even address in the user ROM area is read after executing the program, or block erase
command but before executing the read array command.
(1) 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.
(2) Erase status (SR5 and FMR07 bits)
Refer to 19.5.6 Full status check.
(3) Program status (SR4 and FMR06 bits)
Refer to 19.5.6 Full status check.
Table 19.5 Status register
Status
register
bit
SR7 (D7)
FMR0
register
bit
FMR00
Status name
Sequencer status
"0"
Busy
Contents
"1"
Ready
Value
after
reset
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, block and erase commands are not
accepted.
• D0-D7: Indicates the data bus which is read out when the read status register command is executed.
Rev.1.00 Oct 20, 2004 page 192 of 222
REJ09B0007-0100Z