Rev.6.00 Oct.28.2004 page 588
of 1016
REJ09B0138-0600H
19.8
On-Board Programming Modes
When pins are set to on-board programming mode, program/erase/verify operations can be performed on the on-chip flash
memory. There are two on-board programming modes: boot mode and user program mode. The pin settings for transition
to each of these modes are shown in table 19-14. For a diagram of the transitions to the various flash memory modes, see
figure 19-8.
Table 19-14 Setting On-Board Programming Modes
Mode
Mode Name
CPU Operating Mode
FWE
MD
2
MD
1
MD
0
Boot mode
Advanced expanded mode with
on-chip ROM enabled
1
0
1
0
Advanced single-chip mode
1
User program mode
*
Advanced expanded mode with
on-chip ROM enabled
1
1
1
0
Advanced single-chip mode
1
Note:
*
Normally, user mode should be used. Set FWE to 1 to make a transition to user program mode before performing a
program/erase/verify operation.
19.8.1
Boot Mode
When boot mode is used, the flash memory programming control program must be prepared in the host beforehand. The
channel 1 SCI to be used is set to asynchronous mode.
When a reset-start is executed after the H8S/2357 MCU’s pins have been set to boot mode, the boot program built into the
MCU is started and the programming control program prepared in the host is serially transmitted to the MCU via the SCI.
In the MCU, the programming control program received via the SCI is written into the programming control program area
in on-chip RAM. After the transfer is completed, control branches to the start address of the programming control program
area and the programming control program execution state is entered (flash memory programming is performed).
The transferred programming control program must therefore include coding that follows the programming algorithm
given later.
The system configuration in boot mode is shown in figure 19-14, and the boot program mode execution procedure in
figure 19-15.
RxD1
TxD1
SCI1
H8S/2357 chip
Flash memory
Write data reception
Verify data transmission
Host
On-chip RAM
Figure 19-14 System Configuration in Boot Mode
Summary of Contents for ZTAT H8S/2357F
Page 4: ......
Page 28: ...Rev 6 00 Oct 28 2004 page xxiv of xxiv REJ09B0138 0600H...
Page 82: ...Rev 6 00 Oct 28 2004 page 54 of 1016 REJ09B0138 0600H...
Page 108: ...Rev 6 00 Oct 28 2004 page 80 of 1016 REJ09B0138 0600H...
Page 364: ...Rev 6 00 Oct 28 2004 page 336 of 1016 REJ09B0138 0600H...
Page 438: ...Rev 6 00 Oct 28 2004 page 410 of 1016 REJ09B0138 0600H...
Page 566: ...Rev 6 00 Oct 28 2004 page 538 of 1016 REJ09B0138 0600H...
Page 588: ...Rev 6 00 Oct 28 2004 page 560 of 1016 REJ09B0138 0600H...
Page 688: ...Rev 6 00 Oct 28 2004 page 660 of 1016 REJ09B0138 0600H...
Page 694: ...Rev 6 00 Oct 28 2004 page 666 of 1016 REJ09B0138 0600H...
Page 708: ...Rev 6 00 Oct 28 2004 page 680 of 1016 REJ09B0138 0600H...
Page 1044: ...Rev 6 00 Oct 28 2004 page 1016 of 1016 REJ09B0138 0600H...