Exception Handling Operation; Figure 2.13 State Transitions - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer h8/3062 series; h8/3062b series; h8/3062f-ztat series; h8/3064f-ztat series
Hide thumbs Also See for H8/3062:
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 RES goes low.
From any state, a transition to hardware standby mode occurs when STBY goes low.
*2
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
2
STBY="High", RES ="Low"
*1

Figure 2.13 State Transitions

SLEEP
instruction
with SSBY = 0
SLEEP instruction
with SSBY = 1
0
1
Software standby mode
Hardware standby mode
Sleep mode
*2
Power-down state
61

Advertisement

Table of Contents
loading

Table of Contents