219
User’s Manual U16580EE3V1UD00
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.
Table 7-1:
Interrupt/Exception Source List (1/5)
Type
Classification
Interrupt/Exception Source
Default
Priority
Exception
Code
Handler
Address
Restored
PC
Name
Control
Register
Generating Source
Gener.
Unit
Reset
Interrupt RESET
–
RESET input
Pin
–
0000H
00000000H undefined
Non-
maskable
Interrupt NMI
–
NMI input
Pin
–
0010H
00000010H nextPC
Software
exception
Exception TRAP0n
Note
–
TRAP instruction
–
–
004nH
Note
00000040H nextPC
Exception TRAP1n
Note
–
TRAP instruction
–
–
005nH
Note
00000050H nextPC
Exception
trap
Exception ILGOP/
DBTRAP
–
Illegal opcode/
DBTRAP instruction
–
–
0060H
00000060H nextPC
Maskable Interrupt INTP0
PIC0
INTP0 valid edge input
Pin
0
0080H
00000080H nextPC
Interrupt INTP1
PIC1
INTP1 valid edge input
Pin
1
0090H
00000090H nextPC
Interrupt INTP2
PIC2
INTP2 valid edge input
Pin
2
00A0H
000000A0H nextPC
Interrupt INTP3
PIC3
INTP3 valid edge input
Pin
3
00B0H
000000B0H nextPC
Interrupt INTP4
PIC4
INTP4 valid edge input
Pin
4
00C0H
000000C0H nextPC
Note:
n = 0 to FH
Summary of Contents for MuPD70F3187
Page 6: ...6 Preface User s Manual U16580EE3V1UD00 ...
Page 16: ...16 User s Manual U16580EE3V1UD00 ...
Page 28: ...28 User s Manual U16580EE3V1UD00 ...
Page 32: ...32 User s Manual U16580EE3V1UD00 ...
Page 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO ...
Page 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00 ...
Page 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 ...
Page 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO ...
Page 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO ...
Page 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO ...
Page 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO ...
Page 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO ...
Page 1052: ...1052 User s Manual U16580EE3V1UD00 ...
Page 1053: ......