Initial
Bit
Bit Name
Value
2, 1
0
SF
20.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 on the pin setting for entering each mode, see table 20.5. For details on the state
transition of each mode for flash memory, see figure 20.2.
Table 20.5 Setting On-Board Programming Mode
Mode Setting
Boot mode
User program mode
User boot mode
Note:
* Before downloading the programming/erasing programs, the FLSHE bit must be set to
1 to make a transition to user program mode.
20.4.1
Boot Mode
Boot mode executes programming/erasing the user MAT and user boot MAT by the method for
transmitting control command and program data from the host using the on-chip SCI. The tool for
transmitting the control command and program data must be prepared in the host. SCI
communication mode is set to asynchronous mode. When a reset start is executed after this LSI's
pin is set in boot mode, the boot program in the microcomputer is initiated. After the SCI bit rate
is automatically adjusted, the communication with the host is executed by means of the control
command method.
R/W
Description
Unused
Return 0.
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)
FWE
MD2
1
0
1*
1
1
1
MD1
MD0
0
1
1
1
0
1
Rev. 1.00, 09/03, page 551 of 704