6 INTERRUPT CONTROLLER (ITC)
6-4
EPSON
S1C17704 TECHNICAL MANUAL
6.3.3 Enabling/Disabling Interrupts
To send an interrupt request to the S1C17 Core, the interrupt must be enabled one by one using the interrupt enable
bit in the ITC_EN register (0x4302) corresponding to the interrupt flag. To enable an interrupt, set the interrupt
enable bit to 1; to disable an interrupt, set the interrupt enable bit to 0 (default). The interrupt enable bit does not
affect the interrupt flag status, so the interrupt flag will be set when an interrupt request from the peripheral module
occurs regardless of how the interrupt enable bit is set.
Table 6.3.3.1 lists the correspondence between the interrupt enable bit and the interrupt flag.
Table 6.3.3.1 List of Interrupt Enable Bits
Vector No.
Hardware interrupt
Interrupt flag
Interrupt enable bit
4
P0 port interrupt
EIFT0 (D0/ITC_IFLG register)
EIEN0 (D0/ITC_EN register)
5
P1 port interrupt
EIFT1 (D1/ITC_IFLG register)
EIEN1 (D1/ITC_EN register)
6
Stopwatch timer interrupt
EIFT2 (D2/ITC_IFLG register)
EIEN2 (D2/ITC_EN register)
7
Clock timer interrupt
EIFT3 (D3/ITC_IFLG register)
EIEN3 (D3/ITC_EN register)
8
8-bit OSC1 timer interrupt
EIFT4 (D4/ITC_IFLG register)
EIEN4 (D4/ITC_EN register)
9
SVD interrupt
EIFT5 (D5/ITC_IFLG register)
EIEN5 (D5/ITC_EN register)
10
LCD interrupt
EIFT6 (D6/ITC_IFLG register)
EIEN6 (D6/ITC_EN register)
11
PWM & capture timer interrupt
EIFT7 (D7/ITC_IFLG register)
EIEN7 (D7/ITC_EN register)
12
8-bit timer interrupt
IIFT0 (D8/ITC_IFLG register)
IIEN0 (D8/ITC_EN register)
13
16-bit timer Ch.0 interrupt
IIFT1 (D9/ITC_IFLG register)
IIEN1 (D9/ITC_EN register)
14
16-bit timer Ch.1 interrupt
IIFT2 (D10/ITC_IFLG register)
IIEN2 (D10/ITC_EN register)
15
16-bit timer Ch.2 interrupt
IIFT3 (D11/ITC_IFLG register)
IIEN3 (D11/ITC_EN register)
16
UART interrupt
IIFT4 (D12/ITC_IFLG register)
IIEN4 (D12/ITC_EN register)
17
Remote controller interrupt
IIFT5 (D13/ITC_IFLG register)
IIEN5 (D13/ITC_EN register)
18
SPI interrupt
IIFT6 (D14/ITC_IFLG register)
IIEN6 (D14/ITC_EN register)
19
I
2
C interrupt
IIFT7 (D15/ITC_IFLG register)
IIEN7 (D15/ITC_EN register)
Notes
: • To avoid unexpected interrupts being generated, always be sure to reset the interrupt flag
before enabling the interrupt by writing 1 to the interrupt enable bit.
• In addition to the interrupt enable bit, the IE bit of the Processor Status Register (PSR) in the
S1C17 Core must be set to 1 to actually generate an interrupt. If the IE bit has been set to 0,
the S1C17 Core cannot accept a maskable interrupt request. In this case, the interrupt request
sent from the ITC is held and it will be accepted after the IE bit is set to 1.
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 ...