S1C31D50/D51 TECHNICAL MANUAL
Seiko Epson Corporation
5-1
(Rev. 2.00)
5 Interrupt
5.1 Overview
This IC includes a nested vectored interrupt controller (NVIC). For detailed information on the NVIC, refer to the
“Cortex
®
-M0+ Technical Reference Manual.”
Figure 5.1.1 shows the configuration of the interrupt system.
CPU core
Clock
generator
Watchdog timer
HALT/SLEEP
cancelation signal
Interrupt request
NMI
IRQn
IRQ0
NVIC
Interrupt request
• •
•
Peripheral circuit
Peripheral circuit
Figure 5.1.1 Configuration of Interrupt System
5.2 Vector Table
The vector table contains the vectors to the interrupt handler routines (handler routine start address) that will be
read by the CPU to execute the handler when an interrupt occurs.
Table 5.2.1 shows the vector table.
Table 5.2.1 Vector Table
VTOR initial value = 0x0
Interrupt
number
IRQ
number
Vector
address
Hardware interrupt name
Cause of hardware interrupt
Priority
–
–
VTOR + 0x00 (Stack pointer initial value)
–
–
1
–
VTOR + 0x04 Reset
• Low input to the #RESET pin
• Power-on reset
• Key reset
• Watchdog timer overflow
*
1
• Supply voltage detector reset
-3
2
-14
VTOR + 0x08 NMI
Watchdog timer overflow
*
1
-2
3
-13
VTOR + 0x0c HardFault
• Bus error
• Undefined instruction
• Unaligned address etc.
-1
4–10
–
–
Reserved
–
–
11
-5
VTOR + 0x2c SVCall
SVC instruction
Configurable
12–13
–
-
Reserved
–
–
14
-2
VTOR + 0x38 PendSV
–
Configurable
15
-1
VTOR + 0x3c SysTick
SysTick timer underflow
16
0
VTOR + 0x40 DMA controller interrupt
• DMA transfer completion
• DMA transfer error
17
1
VTOR + 0x44 Supply voltage detector inter-
rupt
Power supply voltage drop detection
18
2
VTOR + 0x48 Port interrupt (P0/P1)
P0–P1 port input
19
3
VTOR + 0x4c Port interrupt (P2/P3)
P2–P3 port input
20
4
VTOR + 0x50 Port interrupt (Others)
P4–Pa port input
21
5
VTOR + 0x54 Clock generator interrupt
• IOSC oscillation stabilization waiting completion
• OSC1 oscillation stabilization waiting completion
• OSC3 oscillation stabilization waiting completion
• OSC1 oscillation stop
• OSC3 oscillation auto-trimming completion
• OSC3 oscillation auto-trimming error