Uart Pin - Epson S1C17001 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

18 UART

18.2 UART Pin

Table 18.2.1 lists the UART input/output pins.
Pin name
I/O
SIN (P23)
I
SOUT (P24)
O
SCLK (P25)
I
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)."
212
Table 18.2.1: UART pin list
Qty
1
UART data input pin
Inputs serial data sent from an external device.
1
UART data output pin
Outputs serial data sent to an external device.
1
UART clock input pin
Inputs the external clock when used for the transfer clock.
EPSON
Function
S1C17001 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents