Interrupts After Reset; On-Chip Peripheral Functions After Reset Release; Figure 4.1 Reset Sequence (On-Chip Rom Enabled Advanced Mode) - Renesas H8SX/1520 Series Hardware Manual

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1520 Series:
Table of Contents

Advertisement

4.3.2

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.3.3

On-Chip Peripheral Functions after Reset Release

After the reset state is released, MSTPCRA, MSTPCRB, and MSTPCRC are initialized to
H'0FFF, H'FFFF, and H'FF00 respectively, and all modules except the DMAC enter module stop
mode.
Consequently, on-chip peripheral module registers cannot be read from or written to. Register
reading and writing is enabled when module stop mode is canceled.

Figure 4.1 Reset Sequence (On-Chip ROM Enabled Advanced Mode)

Downloaded from
Elcodis.com
electronic components distributor
RES
Internal
address bus
Internal read
signal
Internal write
signal
Internal data
bus
(1) Reset exception handling vector address (when reset, (1) = H'000000)
(2) Start address (contents of reset exception handling vector address)
(3) Start address ((3) = (2))
(4) First instruction in the exception handling routine
Section 4 Exception Handling
First
Vector
Internal
instruction
fetch
operation
prefetch
(1)
(3)
High
(2)
Rev. 3.00 Mar. 14, 2006 Page 77 of 804
(4)
REJ09B0104-0300

Advertisement

Table of Contents
loading

Table of Contents