
R8C/3GM Group
31. Flash Memory
R01UH0284EJ0100 Rev.1.00
Aug 09, 2011
BSYAEI Bit (Flash Access Error Interrupt Request Flag)
The BYSAEI bit is set to 1 (flash access error interrupt request) when the BSYAEIE bit in the FMR0 register is
set to 1 (flash access error interrupt enabled) and the block during auto-programming/auto-erasure is accessed.
This bit is also set to 1 if an erase or program error occurs when the CMDERIE bit in the FMR0 register is set to
1 (erase/write error interrupt enabled).
During interrupt handling, set the BSYAEI bit to 0 (no flash access error interrupt request).
[Conditions for setting to 0]
(1) Set to 0 by an interrupt handling program.
(2) Execute the clear status register command.
[Conditions for setting to 1]
(1) Read or write the area that is being erased/written when the BSYAEIE bit in the FMR0 register is set to 1
and while the flash memory is busy.
Or, read the data flash area while erasing/writing to the program ROM area. (Note that the read value is
undefined in both cases. Writing has no effect.)
(2) If a command sequence error, erase error, blank check error, or program error occurs when the CMDERIE
bit in the FMR0 register is set to 1 (erase/write error interrupt enabled).
LBDATA Bit (LBDATA Monitor Flag)
This is a read-only bit indicating the lock bit status. To confirm the lock bit status, execute the read lock bit
status command and read the LBDATA bit after the FST7 bit is set to 1 (ready).
The condition for updating this bit is when the program, erase, read lock bit status commands are generated.
When the read lock bit status command is input, the FST7 bit is set to 0 (busy). At the time when the FST7 bit
is set to 1 (ready), the lock bit status is stored in the LBDATA bit. The data in the LBDATA bit is retained until
the next command is input.
FST4 Bit (Program Error Flag)
This is a read-only bit indicating the auto-programming status. The bit is set to 1 if a program error occurs;
FST5 Bit (Erase Error/Blank Check Error Flag)
This is a read-only bit indicating the status of auto-erasure or the block blank check command. The bit is set to
details.
FST6 Bit (Erase Suspend Status Flag)
This is a read-only bit indicating the suspend status. The bit is set to 1 when an erase-suspend request is
acknowledged and a suspend status is entered; otherwise, it is set to 0.
FST7 Bit (Ready/Busy Status Flag)
When the FST7 bit is set to 0 (busy), the flash memory is in one of the following states:
During programming
During erasure
During the lock bit program
During the read lock bit status
During the block blank check
During forced stop operation
The flash memory is being stopped
The flash memory is being activated
Otherwise, the FST7 bit is set to 1 (ready).