Hitachi H8/3062 Hardware Manual page 608

Single-chip microcomputer
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

Notes on Use of Boot Mode:
1. When the H8/3062F-ZTAT A-mask version chip comes out of reset in boot mode, it measures
the low period of the input at the SCI's RxD
the reset ends, it takes about 100 states for the chip to get ready to measure the low period of
the RxD
input.
1
2. 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.
3. Interrupts cannot be used while the flash memory is being programmed or erased.
4. The RxD
and TxD
1
5. Before branching to the user program the H8/3062F-ZTAT A-mask version terminates
transmit and receive operations by the on-chip SCI (channel 1) (by clearing the RE and TE bits
to 0 in the serial control register (SCR)), but the adjusted bit rate value remains set in the bit
rate register (BRR). The transmit data output pin, TxD
(P9
DDR = 1 in P9DDR, P9
1
The contents of the CPU's internal general registers are undefined at this time, so these
registers must be initialized immediately after branching to the user program. In particular,
since the stack pointer (SP) is used implicitly in subroutine calls, etc., a stack area must be
specified for use by the user program.
The initial values of other on-chip registers are not changed.
6. Boot mode can be entered by setting pins MD
setting conditions shown in table 19.6, and then executing a reset-start.
a. When switching from boot mode to normal mode, the boot mode state within the chip must
first be cleared by reset input via the RES pin*
20 system clock cycles.*
b. Do not change the input levels of the mode pins (MD
mode. To change the mode, the RES pin must first be driven low to set the reset state.
Also, if a watchdog timer reset occurs in the boot mode state, the MCU's internal state will
not be cleared, and the on-chip boot program will be restarted regardless of the mode pin
states.
c. The FWE pin must not be driven low while the boot program is running or flash memory is
being programmed or erased.*
7. If the mode pin input levels are changed (for example, from low to high) during a reset, the
state of ports with multiplexed address functions and bus control output signals (CSn, AS, RD,
LWR, HWR) may also change according to the change in the MCU's operating mode.
Therefore, care must be taken to make pin settings to prevent these pins from being used
directly as output signal pins during a reset, or to prevent collision with signals outside the
MCU.
592
lines should be pulled up on the board.
1
DR = 1 in P9DR).
1
2
3
pin. The reset should end with RxD
1
, goes to the high-level output state
1
to MD
and FWE in accordance with the mode
0
2
. The RES pin must be held low for at least
1
to MD
2
high. After
1
) or the FWE pin in boot
0

Advertisement

Table of Contents
loading

Table of Contents