Hitachi H8S/2646 Hardware Manual page 709

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

On-Chip RAM Area Divisions in Boot Mode: In boot mode, the RAM area is divided into an
area used by the boot program and an area to which the programming control program is
transferred via the SCI, as shown in figure 20-8. The boot program area cannot be used until the
execution state in boot mode switches to the programming control program transferred from the
host.
Note:
The boot program area cannot be used until a transition is made to the execution state for
the programming control program transferred to RAM. Note also that the boot program
remains in this area of the on-chip RAM even after control branches to the programming
control program.
Notes on Use of Boot Mode:
• When the chip comes out of reset in boot mode, it measures the low-level period of the input at
the SCI's RxD1 pin. The reset should end with RxD1 high. After the reset ends, it takes
approximately 100 states before the chip is ready to measure the low-level period of the RxD1
pin.
• In boot mode, if any data has been programmed into the flash memory (if all data is not 1), all
flash memory blocks are erased. Boot mode is for use when user program mode is unavailable,
such as the first time on-board programming is performed, or if the program activated in user
program mode is accidentally erased.
• Interrupts cannot be used while the flash memory is being programmed or erased.
• The RxD1 and TxD1 pins should be pulled up on the board.
• Before branching to the programming control program (RAM area H'FFE7FF), the chip
terminates transmit and receive operations by the on-chip SCI (channel 1) (by clearing the RE
and TE bits in SCR to 0), but the adjusted bit rate value remains set in BRR. The transmit data
output pin, TxD1, goes to the high-level output state (PA1DDR = 1, PA1DR = 1).
H'FFE000
Boot program area
H'FFE7FF
Programming
control program area
(1.9 kbytes)
H'FFEFBF
Figure 20-8 RAM Areas in Boot Mode
(2 kbytes)
677

Advertisement

Table of Contents
loading

Table of Contents