Datasheet
Section 22 Flash Memory
Rev. 3.00 Sep. 28, 2009 Page 701 of 910
REJ09B0350-0300
(6) Flash Erase Block Select Parameter (FEBS: General Register ER0 of CPU)
FEBS specifies the erase block number. Settable values range from 0 to 10 (H'00000000 to
H'0000000A). A value of 0 corresponds to block EB0 and a value of 10 corresponds to block
EB10. Do not set a value outside the range from 0 to 10.
Bit Bit Name
Initial
Value
R/W Description
31 to 8 ⎯ Undefined R/W Unused
These bits should be set to 0.
7 to 0 EBS7 to
EBS0
Undefined R/W These bits specify the erase block number from 0 to 10.
A value of 0 corresponds to block EB0 and 10
corresponds to block EB10. Do not set a value outside
the range from 0 to 10 (from H'00 to H'0A).
22.8 On-Board Programming Mode
When the mode pins (MD1 and MD2) are set to on-board programming mode and the reset start is
executed, a transition is made to on-board programming mode in which the on-chip flash memory
can be programmed/erased. On-board programming mode has three operating modes: boot mode,
user boot mode, and user program mode.
Table 22.7 shows the pin setting for each operating mode. For details on the state transition of
each operating mode for flash memory, see figure 22.2.
Table 22.7 On-Board Programming Mode Setting
Mode Setting MD2 MD1 NMI
Boot mode 1 0 1
User program mode 0 1 0/1
User boot mode 1 0 0