Full Status Check - Renesas R8C/18 Series Hardware Manual

16-bit single-chip mcu
Table of Contents

Advertisement

R8C/18 Group, R8C/19 Group
17.4.5

Full Status Check

When an error occurs, bits FMR06 to FMR07 in the FMR0 register are set to 1, indicating the
occurrence of an error. Therefore, checking these status bits (full status check) can be used to
determine the execution result.
Table 17.6 lists the Errors and FMR0 Register Status. Figure 17.15 shows the Full Status Check and
Handling Procedure for Individual Errors.
Table 17.6
Errors and FMR0 Register Status
FRM00 Register (Status
Register) Status
FMR07(SR5) FMR06(SR4)
1
1
1
0
0
1
NOTE:
1. The MCU enters read array mode when FFh is written in the second bus cycle of these commands.
At the same time, the command code written in the first bus cycle is disabled.
Rev.1.30
Apr 14, 2006
REJ09B0222-0130
Error
Command
sequence error
Erase error
Program error
Page 193 of 233
Error Occurrence Condition
• When a command is not written correctly.
• When invalid data other than that which can be written
in the second bus cycle of the block erase command is
written (i.e., other than D0h or FFh)
• When the program command or block erase command
is executed while rewriting is disabled using the FMR02
bit in the FMR0 register, or the FMR15 or FMR16 bit in
the FMR1 register.
• When an address not allocated in flash memory is input
during erase command input.
• When attempting to erase the block for which rewriting
is disabled during erase command input.
• When an address not allocated in flash memory is input
during write command input.
• When attempting to write the block for which rewriting
is disabled during write command input.
• When the block erase command is executed but
auto-erasure does not complete correctly.
• When the program command is executed but
auto-programming does not complete correctly.
17. Flash Memory Version
(1)

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/1 seriesR8c seriesR8c/19 series

Table of Contents