HD6413308 Hitachi Semiconductor, HD6413308 Datasheet - Page 74

no-image

HD6413308

Manufacturer Part Number
HD6413308
Description
Hitachi Single-Chip MicroComputer
Manufacturer
Hitachi Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HD6413308CP10
Manufacturer:
RENESAS
Quantity:
776
Part Number:
HD6413308CP10
Manufacturer:
HITACAI
Quantity:
20 000
Part Number:
HD6413308CP10V
Manufacturer:
RENESAS
Quantity:
776
Part Number:
HD6413308RCP10
Manufacturer:
HITACHI/日立
Quantity:
20 000
Part Number:
HD6413308RF8
Manufacturer:
NEC
Quantity:
2 468
Part Number:
HD6413308RF8
Manufacturer:
HITACHI/日立
Quantity:
20 000
As indicated in table 4-1, the H8/330 recognizes only two kinds of exceptions: interrupts (28
sources) and the reset. There are no error or trap exceptions.
When an exception occurs the CPU enters the exception-handling state and performs a hardware
exception-handling sequence. There are two exception-handling sequences: one for the reset and
one for interrupts. In both sequences the CPU:
• Sets the interrupt mask (I) bit in the CCR to “1,” and
• Loads the program counter (PC) from the vector table.
After the program counter is loaded, the CPU returns to the program execution state and program
execution starts from the new PC address.
The vector table occupies addresses H’0000 to H’003D in memory. It consists of word entries
giving the addresses of software interrupt-handling routines and the reset routine. The entries are
indexed by a vector number associated with the particular exception.
For an interrupt, before the PC and CCR are altered as described above, the old PC and CCR
contents are pushed on the stack, so that they can be restored when an RTE (Return from
Exception ) instruction is executed.
If a reset and interrupt occur simultaneously, the reset has priority. There is also a priority order
among different types of interrupts. Table 4-1 compares the reset and interrupt exceptions.
Table 4-1. Reset and Interrupt Exceptions
Item
Priority
Cause
When detected
When handled
Vector numbers
Vector table
Reset
Highest
Low RES input
Any clock period
Immediately
0
H’0000 – H’0001
Section 4. Exception Handling
Interrupt
Lower
Internal or external interrupt signal
At end of current instruction, unless current
instruction is ANDC, ORC, XORC, or LDC, or at
end of hardware interrupt-handling sequence.
At end of current instruction.
3 to 30
H’0006 – H’003D
59

Related parts for HD6413308