Rev. 1.0, 09/01, page 778 of 904
20.6
On-Board Programming Modes
There are two modes for programming/erasing the flash memory: boot mode and programmer
mode. Boot mode is used to program/erase the flash memory on the board. Programmer mode is
used to program/erase the flash memory with the PROM programmer. There is also user program
mode which is used to program/erase the flash memory on the board. When a reset start is
performed from the reset state, this LSI enters each mode according to the MD pin settings shown
in table 20.4. The input level of each pin should be ensured by at least four states before the reset
is released. When this LSI enters boot mode, the embedded boot program is started. The boot
program transfers the programming control program from the externally connected host to the on-
chip RAM via the SCI_1. When the flash memory is all erased, the programming control program
is executed. If the initial programming is performed on the board or programming/erasing cannot
be performed in user mode, the boot program can be used for the forcible recovery. In user mode,
any block can be erased and programmed by branching to the programming/erasing program
which is prepared by the user.
Table 20.4
Setting On-Board Programming Modes
Mode Setting
MD2
MD1
MD0
Boot mode
Single-chip activation expanded
mode with on-chip ROM enabled
0
1
1
20.6.1
Boot Mode
Table 20.5 shows the boot mode operations between reset end and branching to the programming
control program.
1. When boot mode is used, the flash memory programming control program must be prepared in
the host beforehand. Prepare a programming control program in accordance with the
description in section 20.8, Flash Memory Programming/Erasing.
2. The SCI-1 should be set to asynchronous mode, and the transfer format as follows: 8-bit data,
1 stop bit, and no parity.
3. When the boot program is initiated, the chip measures the low-level period of asynchronous
SCI communication data (H’00) transmitted continuously from the host. The chip then
calculates the bit rate of transmission from the host, and adjusts the SCI_1 bit rate to match
that of the host. The reset should end with the RxD pin high. The RxD and TxD pins should
be pulled up on the board if necessary. After the reset ends, it takes approximately 100 states
before the chip is ready to measure the low-level period.
4. After matching the bit rates, the chip transmits one H’00 byte to the host to indicate the end of
bit rate adjustment. The host should confirm that this adjustment end indication (H’00) has
been received normally, and transmit one H’55 byte to the chip. If reception could not be
performed normally, initiate boot mode again by a reset. Depending on the host’s transfer bit
rate and system clock frequency of this LSI, there will be a discrepancy between the bit rates
Содержание H8S/2376 F-ZTAT
Страница 24: ...Rev 1 0 09 01 page xxiv of xliv ...
Страница 38: ...Rev 1 0 09 01 page xxxviii of xliv ...
Страница 44: ...Rev 1 0 09 01 page xliv of xliv ...
Страница 60: ...Rev 1 0 09 01 page 16 of 904 ...
Страница 96: ...Rev 1 0 09 01 page 52 of 904 ...
Страница 116: ...Rev 1 0 09 01 page 72 of 904 ...
Страница 148: ...Rev 1 0 09 01 page 104 of 904 ...
Страница 284: ...Rev 1 0 09 01 page 240 of 904 ...
Страница 422: ...Rev 1 0 09 01 page 378 of 904 ...
Страница 634: ...Rev 1 0 09 01 page 590 of 904 ...
Страница 656: ...Rev 1 0 09 01 page 612 of 904 ...
Страница 668: ...Rev 1 0 09 01 page 624 of 904 ...
Страница 780: ...Rev 1 0 09 01 page 736 of 904 ...
Страница 796: ...Rev 1 0 09 01 page 752 of 904 ...
Страница 806: ...Rev 1 0 09 01 page 762 of 903 ...
Страница 808: ...Rev 1 0 09 01 page 764 of 904 ...
Страница 921: ...Rev 1 0 09 01 page 877 of 904 ø tBRQOD tBRQOD Figure 24 24 External Bus Request Output Timing ...
Страница 938: ...Rev 1 0 09 01 page 894 of 904 ...