Chapter 7 Interrupt/Exception Processing Function
The V850E/PH2 microcontroller is provided with a dedicated interrupt controller (INTC) for interrupt
servicing, which realizes a high-performance interrupt function that can service interrupt requests from
a total of up to 107 sources.
An interrupt is an event that occurs asynchronously (independently of program execution), and an
exception is an event that occurs synchronously (dependently on program execution). Generally, an
exception takes precedence over an interrupt.
The V850E/PH2 microcontroller can process interrupt requests from the internal peripheral hardware
and external sources. Moreover, exception processing can be started (exception trap) by the TRAP
instruction (software exception) or by generation of an exception event (fetching of an illegal op code).
7.1 Features
•
Interrupts
• Non-maskable interrupt: 1 source
• Maskable interrupt:
- 106 sources (μPD70F3187)
- 91 sources (μPD70F3447)
• 8 levels programmable priorities
• Mask specification for the interrupt request according to priority
• Mask can be specified to each maskable interrupt request.
• Valid edge for detection of external interrupt request signal can be specified.
•
Exceptions
• Software exceptions: 32 sources
• Exception trap: 1 source (illegal op code exception)
Interrupt/exception sources are listed in Table 7-1.
Type
Classification
Reset
Interrupt RESET
Non-
Interrupt NMI
maskable
Software
Exception TRAP0n
exception
Exception TRAP1n
Exception
Exception ILGOP/
trap
DBTRAP
Maskable Interrupt INTP0
Interrupt INTP1
Interrupt INTP2
Interrupt INTP3
Interrupt INTP4
Note: n = 0 to FH
Table 7-1: Interrupt/Exception Source List (1/5)
Interrupt/Exception Source
Name
Control
Generating Source
Register
–
RESET input
–
NMI input
Note
–
TRAP instruction
Note
–
TRAP instruction
–
Illegal opcode/
DBTRAP instruction
PIC0
INTP0 valid edge input Pin
PIC1
INTP1 valid edge input Pin
PIC2
INTP2 valid edge input Pin
PIC3
INTP3 valid edge input Pin
PIC4
INTP4 valid edge input Pin
User's Manual U16580EE3V1UD00
Default
Exception
Priority
Code
Gener.
Unit
Pin
–
0000H
Pin
–
0010H
–
–
Note
004nH
–
–
Note
005nH
–
–
0060H
0
0080H
1
0090H
2
00A0H
3
00B0H
4
00C0H
Handler
Restored
Address
PC
00000000H undefined
00000010H nextPC
00000040H nextPC
00000050H nextPC
00000060H nextPC
00000080H nextPC
00000090H nextPC
000000A0H nextPC
000000B0H nextPC
000000C0H nextPC
219