English
Language : 

M16C6NK Datasheet, PDF (298/404 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
21. Flash Memory Version
21.3.8 Full Status Check
If an error occurs when a program or erase operation is completed, the FMR06, FMR07 bits in the FMR0
register are set to “1”, indicating a specific error. Therefore, execution results can be confirmed by check-
ing these bits (full status check).
Table 21.6 lists errors and FMR0 register state. Figure 21.12 shows a flow chart of the full status check
and handling procedure for each error.
Table 21.6 Errors and FMR0 Register Status
FRM00 Register
(Status Register)
Status
FMR07 bit FMR06 bit
(SR5)
(SR4)
Error
Error Occurrence Conditions
1
1 Command • Command is written incorrectly
Sequence • A value other than “xxD0h” or “xxFFh” is written in the second
error
bus cycle of the lock bit program, block erase or erase all
unlocked block command (1)
1
0
Erase error • The block erase command is executed on a locked block (2)
• The block erase or erase all unlocked block command is
executed on an unlock block and auto erase operation is not
completed as expected
0
1
Program error • The program command is executed on locked blocks (2)
• The program command is executed on unlocked blocks but
program operation is not completed as expected
• The lock bit program command is executed but program
operation is not completed as expected
NOTES:
1. The flash memory enters read array mode by writing command code “xxFFh” in the second bus cycle of
these commands. The command code written in the first bus cycle becomes invalid.
2. When the FMR02 bit in the FMR0 register is set to “1” (lock bit disabled), no error occurs even under
the conditions above.
Rev.2.00 Nov 28, 2005 page 280 of 378
REJ09B0124-0200