Datasheet
Section 20 Flash Memory (0.18-μm F-ZTAT Version)
Rev.6.00 Mar. 18, 2009 Page 748 of 980
REJ09B0050-0600
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: user programming mode, user boot mode, and
boot mode.
For details of the pin setting for entering each mode, see table 20.5. User programming mode can
be used by setting the control bit (FLSHE) by software. For details of the state transition of each
mode for flash memory, see figure 20.2.
Table 20.5 Setting On-Board Programming Mode
Mode Setting MD2 MD1 MD0
Boot mode Advanced mode 0 1 1
User boot mode Advanced mode 1 0 1
20.4.1 Boot Mode
Boot mode executes programming/erasing user MAT and user boot MAT by means of the control
command and program data transmitted from the host using the on-chip SCI. The tool for
transmitting the control command and program data must be prepared in the host. The SCI
communication mode is set to asynchronous mode. When 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.
The system configuration diagram in boot mode is shown in figure 20.6. For details on the pin
setting in boot mode, see table 20.5. The NMI and other interrupts are ignored in boot mode.
However, the NMI and other interrupts should be disabled in the user system.