Full Status Check - Renesas R8C Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for R8C Series:
Table of Contents

Advertisement

R8C/1A Group, R8C/1B Group
18.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 18.6 lists the Errors and FMR0 Register Status. Figure 18.16 shows the Full Status Check and Handling
Procedure for Individual Errors.
Table 18.6
Errors and FMR0 Register Status
FRM0 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
Dec 08, 2006
REJ09B0252-0130
Error
Command
sequence
error
Erase error
Program error
Page 267 of 315
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 by 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 not
auto-programming does not complete correctly.
18. Flash Memory
(1)

Advertisement

Table of Contents
loading

Table of Contents