
Section 19 Flash Memory (0.18-
m F-ZTAT Version)
Rev. 1.00 Mar. 02, 2006 Page 614 of 798
REJ09B0255-0100
19.4
On-Board Programming
When the pins are set to on-board programming mode and the reset start is executed, a transition is
made to an on-board programming state in which the on-chip flash memory can be
programmed/erased. 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 19.5. For details of the state
transition of each mode for flash memory, see figure 19.2.
Table 19.5
On-Board Programming Mode Setting
Mode Setting
FWE
MD2
MD1
NMI
Boot mode
1
0
1
User program mode
1*
0
1
0/1
User boot mode
1
0
Note:
*
Before downloading a programming/erasing program, the FLSHE bit must be set to 1 to
make a transition to user program mode.
19.4.1
Boot Mode
Boot mode executes programming/erasing of the user MAT and user boot MAT by means of the
control commands and program data transmitted from the host via the on-chip SCI. The tool for
transmitting the control commands, 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
pins have been set to boot mode, the boot program built in the microcomputer beforehand is
initiated. After the SCI bit rate is automatically adjusted, communication with the host is executed
by means of control commands.
A system configuration diagram in boot mode is shown in figure 19.6. For details on the pin
settings in boot mode, see table 19.5. The NMI and other interrupts are ignored in boot mode.
However, the NMI and other interrupts should be disabled within the user system.