18 UART
212
EPSON
S1C17001 TECHNICAL MANUAL
18.2 UART Pin
Table 18.2.1 lists the UART input/output pins.
Table 18.2.1: UART pin list
Pin name
I/O
Qty
Function
SIN (P23)
I
1
UART data input pin
Inputs serial data sent from an external device.
SOUT (P24)
O
1
UART data output pin
Outputs serial data sent to an external device.
SCLK (P25)
I
1
UART clock input pin
Inputs the external clock when used for the transfer clock.
The UART input/output pins (SIN, SOUT, SCLK) are shared with general purpose input/output port pins (P23,
P24, P25) and are initially set as general purpose input/output port pins. The function must be switched using the
P2_PMUX register setting to use general purpose input/output port pins as UART input/output pins. Switch the
pins to serial interface mode by setting the following control bits to 1.
P23
→
SIN
∗
P23MUX
: P23 Port Function Select Bit in the P2 Port Function Select (P2_PMUX) Register (D3/0x52a2)
P24
→
SOUT
∗
P24MUX
: P24 Port Function Select Bit in the P2 Port Function Select (P2_PMUX) Register (D4/0x52a2)
P25
→
SCLK (only when using external clock)
∗
P25MUX
: P25 Port Function Select Bit in the P2 Port Function Select (P2_PMUX) Register (D5/0x52a2)
For detailed information on pin function switching, refer to “10.2 Input/output Pin Function Selection (Port
MUX).”
Summary of Contents for S1C17001
Page 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Page 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...