6 INTERRUPT CONTROLLER (ITC)
S1C17704 TECHNICAL MANUAL
EPSON
6-13
0x4300: Interrupt Flag Register (ITC_IFLG)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
Interrupt Flag
Register
(ITC_IFLG)
0x4300
(16 bits)
D15
IIFT7
I
2
C interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
D14
IIFT6
SPI interrupt flag
0
R/W
D13
IIFT5
Remote controller interrupt flag
0
R/W
D12
IIFT4
UART interrupt flag
0
R/W
D11
IIFT3
16-bit timer Ch.2 interrupt flag
0
R/W
D10
IIFT2
16-bit timer Ch.1 interrupt flag
0
R/W
D9
IIFT1
16-bit timer Ch.0 interrupt flag
0
R/W
D8
IIFT0
8-bit timer interrupt flag
0
R/W
D7
EIFT7
PWM&capture timer interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1 in
pulse trigger mode.
Cannot be reset
by software in level
trigger mode.
D6
EIFT6
LCD interrupt flag
0
R/W
D5
EIFT5
SVD interrupt flag
0
R/W
D4
EIFT4
8-bit OSC1 timer interrupt flag
0
R/W
D3
EIFT3
Clock timer interrupt flag
0
R/W
D2
EIFT2
Stopwatch timer interrupt flag
0
R/W
D1
EIFT1
P1 port interrupt flag
0
R/W
D0
EIFT0
P0 port interrupt flag
0
R/W
D[15:8]
IIFT[7:0]: Interrupt Flags (for Pulse Trigger)
These bits are interrupt flags to indicate the interrupt cause occurrence status.
1 (R):
Cause of interrupt has occurred
0 (R):
No cause of interrupt has occurred (default)
1 (W):
Flag is reset
0 (W):
Has no effect
The interrupt flag is set to 1 when a cause of interrupt occurs in each peripheral circuit.
If the following conditions are met at this time, an interrupt is generated to the S1C17 Core:
1. The corresponding bit of the Interrupt Enable Register is set to 1.
2. No other interrupt request of higher priority has occurred.
3. The IE bit of the PSR is set to 1 (interrupt enabled).
4. The corresponding interrupt level setup bits are set to a level higher than the S1C17 Core's interrupt
level (IL).
The interrupt flag is always set to 1 when a cause of interrupt occurs regardless of how the interrupt
enable and interrupt level setup bits are set.
In order for the next interrupt to be accepted after interrupt generation, the interrupt flag must be reset
and the PSR must be set up again (by setting the IE bit to 1 or executing the
reti
instruction).
The flag that has been set to 1 can be reset by writing 1.
Table 6.7.2 Causes of Hardware Interrupt and Interrupt Flags
Interrupt flag
Cause of hardware interrupt
IIFT0 (D8)
8-bit timer interrupt: timer underflow
IIFT1 (D9)
16-bit timer Ch.0 interrupt: timer underflow
IIFT2 (D10)
16-bit timer Ch.1 interrupt: timer underflow
IIFT3 (D11)
16-bit timer Ch.2 interrupt: timer underflow
IIFT4 (D12)
UART interrupt: transmit buffer empty/receive buffer full/receive error
IIFT5 (D13)
Remote controller interrupt: data length counter underflow/input rising edge/
input falling edge
IIFT6 (D14)
SPI interrupt: transmit buffer empty/receive buffer full
IIFT7 (D15)
I
2
C interrupt: transmit buffer empty/receive buffer full
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 ...