Reset State; Exception-Handling State - Renesas H8S Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

Bus-released state

Exception-handling state

RES = high
Notes: 1.
2.
2.8.2

Reset State

When the RES input goes low all current processing stops and the CPU enters the reset state. The CPU enters the power-
on reset state when the NMI pin is high, or the manual reset* state when the NMI pin is low. All interrupts are masked in
the reset state. Reset exception handling starts when the RES signal changes from low to high.
The reset state can also be entered by a watchdog timer overflow. For details, refer to section 13, Watchdog Timer.
Note: * Manual reset is only supported in the H8S/2357 ZTAT.
2.8.3
Exception-Handling State
The exception-handling state is a transient state that occurs when the CPU alters the normal processing flow due to a reset,
interrupt, or trap instruction. The CPU fetches a start address (vector) from the exception vector table and branches to that
address.
(1) Types of Exception Handling and Their Priority
Exception handling is performed for traces, resets, interrupts, and trap instructions. Table 2-7 indicates the types of
exception handling and their priority. Trap instruction exception handling is always accepted, in the program execution
state.
Exception handling and the stack structure depend on the interrupt control mode set in SYSCR.
Rev.6.00 Oct.28.2004 page 48 of 1016
REJ09B0138-0600H
End of bus
request
Bus
request
End of
exception
handling
STBY = high, RES = low
*1
Reset state
From any state except hardware standby mode, a transition to the reset state occurs whenever RES
goes low. A transition can also be made to the reset state when the watchdog timer overflows.
From any state, a transition to hardware standby mode occurs when STBY goes low.
Figure 2-12 State Transitions
End of bus request
Bus request
Program execution
state
SLEEP
instruction
with
SSBY = 1
Request for
exception
handling
Interrupt
request
External interrupt
SLEEP
instruction
with
SSBY = 0
Sleep mode
Software standby mode
*2
Hardware standby mode
Power-down state

Advertisement

Table of Contents
loading

Table of Contents