Exception Handling Operation - Hitachi H8/3008 Hardware Manual

16-bit microcomputer
Table of Contents

Advertisement

Bus-released state
End of
exception
handling
Exception-handling state
RES = "High"
Reset state
Notes: 1.
From any state except hardware standby mode, a transition to the reset state occurs
whenever
2.
From any state, a transition to hardware standby mode occurs when
2.8.4

Exception Handling Operation

Reset Exception Handling: Reset exception handling has the highest priority. The reset state is
entered when the RES signal goes low. Reset exception handling starts after that, when RES
changes from low to high. When reset exception handling starts the CPU fetches a start address
from the exception vector table and starts program execution from that address. All interrupts,
including NMI, are disabled during the reset exception-handling sequence and immediately after it
ends.
Interrupt Exception Handling and Trap Instruction Exception Handling: When these
exception-handling sequences begin, the CPU references the stack pointer (ER7) and pushes the
program counter and condition code register on the stack. Next, if the UE bit in the system control
register (SYSCR) is set to 1, the CPU sets the I bit in the condition code register to 1. If the UE bit
is cleared to 0, the CPU sets both the I bit and the UI bit in the condition code register to 1. Then
the CPU fetches a start address from the exception vector table and execution branches to that
address.
Bus request
End of bus release
Program execution state
End of bus
release
Bus
request
Exception
handling source
Interrupt source
NMI, IRQ , IRQ ,
or IRQ interrupt
STBY="High", RES ="Low"
* 1
RES
goes low.
Figure 2.13 State Transitions
SLEEP
instruction
with SSBY = 0
SLEEP instruction
with SSBY = 1
0
1
2
Sleep mode
Software standby mode
Hardware standby mode
Power-down state
STBY
goes low.
* 2
49

Advertisement

Table of Contents
loading

Table of Contents