Datasheet

Section 21 Flash Memory
Rev. 2.00 Sep. 28, 2009 Page 673 of 870
REJ09B0429-0200
Bit Bit Name
Initial
Value
R/W Description
3 EB R/W Erase Block Select Error Detect
Returns the check result whether the specified erase-
block number is in the block range of the user MAT.
0: Setting of erase-block number is normal
1: Setting of erase-block number is abnormal
2, 1 Unused
Return 0.
0 SF R/W Success/Fail
Indicates whether the erasing processing is ended
normally or not.
0: Erasure is ended normally (no error)
1: Erasure is ended abnormally (error occurs)
21.4 On-Board Programming Mode
When the pin is set in on-board programming mode and the reset start is executed, the on-board
programming state that can program/erase the on-chip flash memory is entered. On-board
programming mode has three operating modes: boot mode, user program mode, and user boot
mode.
For details of the pin setting for entering each mode, see table 21.5. For details of the state
transition of each mode for flash memory, see figure 21.2.
Table 21.5 Setting On-Board Programming Mode
Mode Setting FWE MD2 MD1 MD0 NMI
Boot mode 1 0 0 0 1
User program mode 1* 1 1 0 0/1
User boot mode 1 0 0 0 0
Note: * Before downloading the programming/erasing programs, the FLSHE bit must be set to
1 to transition to user program mode.