20 I
2
C
S1C17704 TECHNICAL MANUAL
EPSON
20-11
20.6 I
2
C Interrupt
The I
2
C module can generate the following two types of interrupts:
• Transmit buffer empty interrupt
• Receive buffer full interrupt
The I
2
C module has one interrupt signal to be output to the interrupt controller (ITC) and it is shared with the two
causes of interrupt.
Transmit buffer empty interrupt
Set the TINTE bit (D0/I2C_ICTL register) to 1 when using this interrupt. If TINTE is set to 0 (default), an
interrupt request by this cause will not be sent to the ITC.
∗
TINTE
: Transmit Interrupt Enable Bit in the I
2
C Interrupt Control (I2C_ICTL) Register (D0/0x4346)
When the transmit data set in RTDT[7:0] (D[7:0]/I2C_DAT register) is transferred to the shift register, the I
2
C
module outputs an interrupt request pulse to the ITC if the transmit buffer empty interrupt has been enabled
(TINTE = 1).
∗
RTDT[7:0]
: Receive/Transmit Data Bits in the I
2
C Data (I2C_DAT) Register (D[7:0]/0x4344)
If other interrupt conditions are satisfied, an interrupt is generated.
Receive buffer full interrupt
Set the RINTE bit (D1/I2C_ICTL register) to 1 when using this interrupt. If RINTE is set to 0 (default), an
interrupt request by this cause will not be sent to the ITC.
∗
RINTE
: Receive Interrupt Enable Bit in the I
2
C Interrupt Control (I2C_ICTL) Register (D1/0x4346)
When data received in the shift register is loaded to RTDT[7:0], the I
2
C module outputs an interrupt request
pulse to the ITC if the receive buffer full interrupt has been enabled (RINTE = 1).
If other interrupt conditions are satisfied, an interrupt is generated.
ITC registers for I
2
C interrupts
The following shows the control bits of the ITC provided for the I
2
C module:
Interrupt flag
∗
IIFT7
: I
2
C Interrupt Flag in the Interrupt Flag (ITC_IFLG) Register (D15/0x4300)
Interrupt enable bit
∗
IIEN7
: I
2
C Interrupt Enable Bit in the Interrupt Enable (ITC_EN) Register (D15/0x4302)
Interrupt level setup bits
∗
IILV7[2:0]
: I
2
C Interrupt Level Bits in the Internal Interrupt Level Setup (ITC_ILV3) Register 3 (D[10:8]/0x4314)
When the I
2
C outputs an interrupt request pulse, the interrupt flag IIFT7 is set to 1.
If the interrupt enable bit IIEN7 has been set to 1, the ITC sends an interrupt request to the S1C17 Core. To
disable the I
2
C interrupt, set the IIEN7 bit to 0.
The IIFT7 flag is always set to 1 by the I
2
C interrupt request pulse, regardless of how the IIEN7 bit is set (even
when set to 0).
The interrupt level setup bits IILV7[2:0] set the interrupt level (0 to 7) of the I
2
C interrupt.
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 ...