
10 Input/Output Port (P)
10-2
EPSON
S1C17003 TECHNICAL MANUAL
10.2 Input/Output Pin Function Selection (Port MUX)
The input/output port pins share peripheral module input/output pins (with certain exceptions). Each pin can be set
for use as an input/output port or for peripheral modules via the corresponding port function selection bits for each
port. Pins not used for peripheral modules can be used as general purpose input/output ports.
Table 10.2.1: Input/output pin function selection
Pin function 1
PxxMUX = 0
Pin function 2
PxxMUX = 01
Pin function 3
PxxMUX = 10
Pin function 4
PxxMUX = 11
Port function
selection bit
Control register
P00
REMO REMC
P00MUX D1-0
P0 Port Function Select
(P0_PMUX) Register (0x52a0)
P01
REMI REMC
P01MUX D3-2
P02/EXCL0 T16
P02MUX D5-4
P03
#ADTRG ADC10SA
P03MUX D7-6
P04
SPICLK SPI
P04MUX D1-0
P0 Port Function Select
(P0_PMUX) Register (0x52a1)
P05
SDO SPI
P05MUX D3-2
P06
SDI SPI
P06MUX D5-4
P07
#SPISS SPI
P07MUX D7-6
P10
SCLK0 UART
P10MUX D1-0
P1 Port Function Select
(P1_PMUX) Register (0x52a2)
P11
SOUT0 UART
P11MUX D3-2
P12
SIN0 UART
P12MUX D5-4
P13/EXCL1 T16
P13MUX D7-6
P14/EXCL2 T16
P14MUX D1-0
P1 Port Function Select
(P1_PMUX) Register (0x52a3)
P15/EXCL3 T16E
P15MUX D3-2
P16
SCLK1 UART
P16MUX D5-4
P17
AIN3 ADC10SA
P17MUX D7-6
P20
AIN2 ADC10SA
P20MUX D1-0
P2 Port Function Select
(P2_PMUX) Register (0x52a4)
P21
AIN1 ADC10SA
P21MUX D3-2
P22
AIN0 ADC10SA
P22MUX D5-4
P23
P23MUX D7-6
P24
P24MUX D1-0
P2 Port Function Select
(P2_PMUX) Register (0x52a5)
P27
SOUT1(UART)
P27MUX D7-6
P30
SIN1(UART)
P30MUX D1-0
P3 Port Function Select
(P3_PMUX) Register (0x52a6)
P31
SCL0 I2CM
P31MUX D3-2
P32
SDA0 I2CM
P32MUX D5-4
P33
SCL1 I2CS
SCL0 I2CM
P33MUX D7-6
P34
SDA1 I2CS
SDA0 I2CM
P34MUX D1-0
P3 Port Function Select
(P3_PMUX) Register (0x52a7)
P35
FOUT1 CLG
#BFR I2CS
P35MUX D3-2
P36
TOUT3 T16E
P36MUX D5-4
P37
TOUTN3 T16E
TOUT4(T8OSC1)
P37MUX D7-6
P40
FOUTH CLG
P40MUX D1-0
P4 Port Function Select
(P4_PMUX) Register (0x52a8)
DSIO DBG
P41
P41MUX D3-2
DST2 DBG
P42
P42MUX D5-4
DCLK DBG
P43
P43MUX D7-6
Resetting the input/output port pins (Pxx) resets them to their default functions (pin function 1 in Table 10.2.1).
P02, P13, P14, P15, P16 Pins can be used as external clock input pin of 16 bit timer by setting them to input mode.
P17, P20, P21, P22 Pins are input only.
For information on functions other than the input/output ports, refer to the discussion of the peripheral modules
indicated in parentheses. The sections below discuss port functions with the pins set as general purpose input/output
ports.