6 INTERRUPT CONTROLLER (ITC)
S1C17704 TECHNICAL MANUAL
EPSON
6-5
6.3.4 Processing when Multiple Interrupts Occur
The ITC provides the ITC_ELV
x
and ITC_ILV
x
registers (0x4306 to 0x4314) to set an interrupt level (zero to
seven) for each cause of interrupt.
Table 6.3.4.1 Interrupt Level Setup Bits
Vector No.
Hardware interrupt
Interrupt level setup bits
Register address
4
P0 port interrupt
EILV0[2:0] (D[2:0]/ITC_ELV0 register)
0x4306
5
P1 port interrupt
EILV1[2:0] (D[10:8]/ITC_ELV0 register)
0x4306
6
Stopwatch timer interrupt
EILV2[2:0] (D[2:0]/ITC_ELV1 register)
0x4308
7
Clock timer interrupt
EILV3[2:0] (D[10:8]/ITC_ELV1 register)
0x4308
8
8-bit OSC1 timer interrupt
EILV4[2:0] (D[2:0]/ITC_ELV2 register)
0x430a
9
SVD interrupt
EILV5[2:0] (D[10:8]/ITC_ELV2 register)
0x430a
10
LCD interrupt
EILV6[2:0] (D[2:0]/ITC_ELV3 register)
0x430c
11
PWM & capture timer interrupt
EILV7[2:0] (D[10:8]/ITC_ELV3 register)
0x430c
12
8-bit timer interrupt
IILV0[2:0] (D[2:0]/ITC_ILV0 register)
0x430e
13
16-bit timer Ch.0 interrupt
IILV1[2:0] (D[10:8]/ITC_ILV0 register)
0x430e
14
16-bit timer Ch.1 interrupt
IILV2[2:0] (D[2:0]/ITC_ILV1 register)
0x4310
15
16-bit timer Ch.2 interrupt
IILV3[2:0] (D[10:8]/ITC_ILV1 register)
0x4310
16
UART interrupt
IILV4[2:0] (D[2:0]/ITC_ILV2 register)
0x4312
17
Remote controller interrupt
IILV5[2:0] (D[10:8]/ITC_ILV2 register)
0x4312
18
SPI interrupt
IILV6[2:0] (D[2:0]/ITC_ILV3 register)
0x4314
19
I
2
C interrupt
IILV7[2:0] (D[10:8]/ITC_ILV3 register)
0x4314
The highest interrupt level is 7 and the lowest is 0.
The set interrupt level is sent to the S1C17 Core at the same time the ITC sends an interrupt request and is used by
the S1C17 Core to disable subsequent interrupts that have the same or a lower interrupt level. (See Section 6.3.6 for
more information.)
At initial reset, the interrupt levels are all set to 0. The S1C17 Core does not accept an interrupt request whose
interrupt level is set to 0.
In the ITC, the interrupt level is used when two or more causes of interrupt occur simultaneously.
If two or more causes of interrupt that have been enabled by the interrupt enable bits occur simultaneously, the
cause of interrupt whose ITC_ELV
x
or ITC_ILV
x
register contains the highest value is allowed by the ITC to send
an interrupt request to the S1C17 Core.
If two or more causes of interrupt that have the same interrupt level occur, the interrupt with the smallest vector
number is processed first.
Other causes of interrupt are kept pending until all interrupts of higher priority are accepted by the S1C17 Core.
If another cause of interrupt of higher priority occurs during outputting an interrupt request signal, the ITC changes
the vector number and interrupt level to that of the new cause of interrupt. The first interrupt request is left pending.
Summary of Contents for S1C17704
Page 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Page 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...