20 I
2
C
S1C17704 TECHNICAL MANUAL
EPSON
20-15
0x4342: I
2
C Control Register (I2C_CTL)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
I
2
C Control
Register
(I2C_CTL)
0x4342
(16 bits)
D15–10
–
reserved
–
–
–
0 when being read.
D9
RBUSY
Receive busy flag
1 Busy
0 Idle
0
R
D8
TBUSY
Transmit busy flag
1 Busy
0 Idle
0
R
D7–5
–
reserved
–
–
–
0 when being read.
D4
NSERM
Noise remove on/off
1 On
0 Off
0
R/W
D3–2
–
reserved
–
–
–
0 when being read.
D1
STP
Stop control
1 Stop
0 Ignored
0
R/W
D0
STRT
Start control
1 Start
0 Ignored
0
R/W
D[15:10] Reserved
D9
RBUSY: Receive Busy Flag
Indicates the I
2
C receive operation status.
1
(R):
Busy
0 (R):
Idle (default)
RBUSY is set to 1 when the I
2
C starts data reception and stays 1 while data reception is in progress.
RBUSY is reset to 0 upon completion of receive operation. Also RBUSY returns to 0 in wait state.
D8 TBUSY:
Transmit
Busy
Flag
Indicates the I
2
C transmit operation status.
1
(R):
Busy
0 (R):
Idle (default)
TBUSY is set to 1 when the I
2
C starts data transmission and stays 1 while data transmission is in
progress. TBUSY is reset to 0 upon completion of transmit operation. Also TBUSY returns to 0 in wait
state.
D[7:5] Reserved
D4
NSERM: Noise Remove On/Off Bit
Turns the noise remove function on and off.
1
(R/W):
On
0 (R/W): Off (default)
The
I
2
C module contains a function to remove noise from the SDA and SCL input signals. This function
is enabled by setting NSERM to 1.
Note, however, that the I
2
C clock (16-bit timer Ch.2 output clock) frequency must be 1/6 of PCLK or
lower to use the noise remove function.
D[3:2] Reserved
D1
STP: Stop Control Bit
Generates a STOP condition.
1 (R/W): Generate STOP condition
0 (R/W): Ignore (default)
When STP is set to 1, the I
2
C module pulls up the SDA line from low to high with the SCL line held at
high to generate a STOP condition on the I
2
C bus. This makes the I
2
C bus in free status.
Furthermore, the I
2
C module allows presetting for generating a STOP condition in advance. To do this,
set STP to 1 after checking if the I
2
C is operating (TBUSY = 1 or RBUSY = 1). A STOP condition will
be generated upon completion of data transmission/reception (including an ACK transfer).
STP is automatically reset to 0 after a STOP condition has been generated.
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 ...