CHAPTER 5 INTERRUPT/EXCEPTION PROCESSING FUNCTION
The V850/SA1 is provided with a dedicated interrupt controller (INTC) for interrupt processing and can process a
total of 32 interrupt requests.
An interrupt is an event that occurs independently of program execution, and an exception is an event that occurs
dependently on program execution. Generally, an exception takes precedence over an interrupt.
The V850/SA1 can process interrupt requests from the internal peripheral hardware and external sources.
Moreover, exception processing can be started by the TRAP instruction (software exception) or by generation of an
exception event (fetching of an illegal op code).
5.1 Features
•
Interrupt
•
Non-maskable interrupt: 2 sources
•
Maskable interrupt: 30 sources
•
8 levels programmable priorities
•
Mask specification for the interrupt request according to priority
•
Mask can be specified to each maskable interrupt request.
•
Noise elimination, edge detection, and valid edge of external interrupt request signal can be specified.
•
Exception
•
Software exception: 32 sources
•
Exception trap: 1 source (illegal op code exception)
Interrupt/exception sources are listed in Table 5-1.
101