6 inTeRRuPT COnTROlleR (iTC)
6-2
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
S1C17 Core
interrupt controller
Watchdog timer
Interrupt
request
Interrupt
level
Vector
number
Debug signal
Reset signal
Interrupt
request
NMI
Interrupt level
Interrupt
control
Vector number
Interrupt level
Vector number
Interrupt
request
• • • •
•
• •
•
Peripheral module
Interrupt enable
Cause of interrupt 1
Interrupt enable
Cause of interrupt n
•
•
•
•
Interrupt flag
Interrupt flag
Peripheral module
Interrupt enable
Cause of interrupt 1
Interrupt enable
Cause of interrupt n
•
•
•
•
Interrupt flag
Interrupt flag
1.1 Interrupt System
Figure 6.
Vector Table
6.2
The vector table contains the vectors to the interrupt handler routines (handler routine start address) that will be
read by the S1C17 Core to execute the handler when an interrupt occurs.
Table 6.2.1 shows the vector table of the S1C17624/604/622/602/621.
2.1 Vector Table
Table 6.
Vector no.
Software interrupt no.
Vector address
hardware interrupt name
Cause of hardware interrupt
Priority
0 (0x00)
TTBR + 0x00
Reset
• Low input to the #RESET pin
• Watchdog timer overflow
*
2
1
1 (0x01)
TTBR + 0x04
Address misaligned interrupt
Memory access instruction
2
–
(0xfffc00)
Debugging interrupt
brk
instruction, etc.
3
2 (0x02)
TTBR + 0x08
NMI
Watchdog timer overflow
*
2
4
3 (0x03)
TTBR + 0x0c
Reserved for C compiler
–
–
4 (0x04)
TTBR + 0x10
P0 port interrupt
P00–P07 port inputs
High
*
1
5 (0x05)
TTBR + 0x14
P1 port interrupt
P10–P17 port inputs
↑
6 (0x06)
TTBR + 0x18
Stopwatch timer (SWT) interrupt
• 100 Hz timer signal
• 10 Hz timer signal
• 1 Hz timer signal
7 (0x07)
TTBR + 0x1c
Clock timer (CT) interrupt
• 32 Hz timer signal
• 8 Hz timer signal
• 2 Hz timer signal
• 1 Hz timer signal
Real-time clock (RTC) interrupt
(S1C17624/604)
1/64 second, 1 second, 1 minute, or 1 hour
count up
8 (0x08)
TTBR + 0x20
8-bit OSC1 timer (T8OSC1) interrupt Compare match
9 (0x09)
TTBR + 0x24
Supply voltage detector (SVD)
interrupt
Low supply voltage detected
10 (0x0a)
TTBR + 0x28
LCD driver (LCD) interrupt
Frame signal
16-bit PWM timer (T16A2) Ch.0
interrupt
(S1C17624/604)
• Compare A/B
• Capture A/B
• Capture A/B overwrite
11 (0x0b)
TTBR + 0x2c
16-bit PWM timer (T16E) Ch.0
interrupt
• Compare A
• Compare B
12 (0x0c)
TTBR + 0x30
8-bit timer (T8F) Ch.0 & Ch.1
interrupt
Timer underflow
13 (0x0d)
TTBR + 0x34
16-bit timer (T16) Ch. 0 interrupt
Timer underflow
14 (0x0e)
TTBR + 0x38
16-bit timer (T16) Ch. 1 interrupt
Timer underflow
15 (0x0f)
TTBR + 0x3c
16-bit timer (T16) Ch. 2 interrupt
Timer underflow