Interrupts After Reset; State Of On-Chip Supporting Modules After Reset Release - Renesas H8S/2319 series Hardware Manual

Renesas 16-bit single-chip microcomputer
Table of Contents

Advertisement

φ
RES
Address bus
RD
HWR, LWR
D
to D
15
0
(1), (3) Reset exception handling vector address ((1) = H'000000, (3) = H'000002)
(2), (4) Start address (contents of reset exception vector address)
(5)
Start address ((5) = (2), (4))
(6)
First program instruction
Note: * 3 program wait states are inserted.
4.2.3

Interrupts after Reset

If an interrupt is accepted after a reset but before the stack pointer (SP) is initialized, the PC and
CCR will not be saved correctly, leading to a program crash. To prevent this, all interrupt requests,
including NMI, are disabled immediately after a reset. Since the first instruction of a program is
always executed immediately after the reset state ends, make sure that this instruction initializes
the stack pointer (example: MOV.L #xx:32, SP).
4.2.4

State of On-Chip Supporting Modules after Reset Release

After reset release, MSTPCR is initialized to H'3FFF and all modules except the DTC enter
module stop mode. Consequently, on-chip supporting module registers cannot be read or written
to. Register reading and writing is enabled when module stop mode is exited.
Vector fetch
*
(1)
(2)
Figure 4-2 Reset Sequence (Mode 4)
Internal
Prefetch of first
processing
program instruction
*
(3)
High
(4)
Rev. 5.00, 12/03, page 103 of 1088
*
(5)
(6)

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2318 series

Table of Contents