9 i/O PORTS (P)
9-2
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
• The I/O ports shown below allow software to select the input interface level from two types:
CMOS Schmitt level and CMOS level.
S1C17624/622: P0[7:0], P1[5:0], P4[7:4], P5[2:0]
S1C17604/602/621: P0[7:0], P1[5:0]
The I/O ports shown below support only CMOS Schmitt level. (
*
P43 is an output-only port.)
S1C17624/622: P1[7:6], P2[7:0], P3[7:0], P40, DSIO/P41, DST2/P42, DCLK/P43
*
, P5[6:3]
S1C17604/602/621: P1[7:6], P2[7:0], P3[7:0], P40, DSIO/P41, DST2/P42, DCLK/P43
*
input/Output Pin Function Selection (Port MuX)
9.2
The I/O port pins share peripheral module input/output pins. Each pin can be configured for use as an I/O port or
for a peripheral module function via the corresponding port function-select bits. Pins not used for peripheral mod-
ules can be used as general-purpose I/O ports.
2.1 Input/Output Pin Function Selection
Table 9.
Pin function 1
P
xy
MuX[1:0] = 0x0
Pin function 2
P
xy
MuX[1:0] = 0x1
Pin function 3
P
xy
MuX[1:0] = 0x2
Pin function 4
P
xy
MuX[1:0] = 0x3
Port function select bits
(bit/register)
P00
REMO (REMC)
–
–
P00MUX[1:0]/P00_03PMUX
P01
REMI (REMC)
–
–
P01MUX[1:0]/P00_03PMUX
P02/eXCl0 (T16)
*
1
–
–
–
P02MUX[1:0]/P00_03PMUX
P03
#ADTRG (ADC10)
–
–
P03MUX[1:0]/P00_03PMUX
P04
SPICLK0 (SPI)
–
–
P04MUX[1:0]/P04_07PMUX
P05
SDO0 (SPI)
–
–
P05MUX[1:0]/P04_07PMUX
P06
SDI0 (SPI)
–
–
P06MUX[1:0]/P04_07PMUX
P07
#SPISS0 (SPI)
–
–
P07MUX[1:0]/P04_07PMUX
P10
SCLK0 (UART)
–
–
P10MUX[1:0]/P10_13PMUX
P11
SOUT0 (UART)
–
–
P11MUX[1:0]/P10_13PMUX
P12
SIN0 (UART)
–
–
P12MUX[1:0]/P10_13PMUX
P13/eXCl1 (T16)
*
1
–
AIN7 (ADC10)
–
P13MUX[1:0]/P10_13PMUX
P14/eXCl2 (T16)
*
1
–
AIN6 (ADC10)
–
P14MUX[1:0]/P14_17PMUX
P15/eXCl3 (T16E)
*
1
–
AIN5 (ADC10)
–
P15MUX[1:0]/P14_17PMUX
P16
SCLK1 (UART)
AIN4 (ADC10)
–
P16MUX[1:0]/P14_17PMUX
P17
AIN3 (ADC10)
–
–
P17MUX[1:0]/P14_17PMUX
P20
AIN2 (ADC10)
–
–
P20MUX[1:0]/P20_23PMUX
P21
AIN1 (ADC10)
–
–
P21MUX[1:0]/P20_23PMUX
P22
AIN0 (ADC10)
–
–
P22MUX[1:0]/P20_23PMUX
P23
SENB0 (RFC)
–
–
P23MUX[1:0]/P20_23PMUX
P24
SENA0 (RFC)
–
–
P24MUX[1:0]/P24_27PMUX
P25
REF0 (RFC)
–
–
P25MUX[1:0]/P24_27PMUX
P26
RFIN0 (RFC)
–
–
P26MUX[1:0]/P24_27PMUX
P27
SOUT1 (UART)
RFIN1 (RFC)
–
P27MUX[1:0]/P24_27PMUX
P30
SIN1 (UART)
REF1 (RFC)
P30MUX[1:0]/P30_33PMUX
P31
SCL0 (I2CM)
SENA1 (RFC)
TOUTA5/CAPA5 (T16A2)
*
3
P31MUX[1:0]/P30_33PMUX
P32
SDA0 (I2CM)
SENB1 (RFC)
TOUTB5/CAPB5 (T16A2)
*
3
P32MUX[1:0]/P30_33PMUX
P33
SCL1 (I2CS)
SCL0 (I2CM)
TOUTA6/CAPA6 (T16A2)
*
3
P33MUX[1:0]/P30_33PMUX
P34
SDA1 (I2CS)
SDA0 (I2CM)
TOUTB6/CAPB6 (T16A2)
*
3
P34MUX[1:0]/P34_37PMUX
P35
FOUT1 (CLG)
#BFR (I2CS)
–
P35MUX[1:0]/P34_37PMUX
P36/eXCl5 (T16A2)
*
1
TOUT3 (T16E)
RFCLKO (RFC)
–
P36MUX[1:0]/P34_37PMUX
P37/eXCl6 (T16A2)
*
1
TOUTN3 (T16E)
LFRO (LCD)
TOUT4 (T8OSC1)
P37MUX[1:0]/P34_37PMUX
P40
FOUTH (CLG)
–
–
P40MUX[1:0]/P40_43PMUX
DSiO (DBG)
P41
–
–
P41MUX[1:0]/P40_43PMUX
DST2 (DBG)
P42
–
–
P42MUX[1:0]/P40_43PMUX
DClK (DBG)
P43
*
5
–
–
P43MUX[1:0]/P40_43PMUX
P44
SCL1 (I2CS)
–
–
P44MUX[1:0]/P44_47PMUX
*
4
P45
SDA1 (I2CS)
–
–
P45MUX[1:0]/P44_47PMUX
*
4
P46
RFCLKO (RFC)
–
–
P46MUX[1:0]/P44_47PMUX
*
4
P47/eXCl5 (T16A2)
*
2
TOUT4 (T8OSC1)
–
–
P47MUX[1:0]/P44_47PMUX
*
4
P50/eXCl6 (T16A2)
*
2
SCLK1 (UART)
–
–
P50MUX[1:0]/P50_53PMUX
*
4
P51
SOUT1 (UART)
TOUTA5/CAPA5 (T16A2)
*
2
–
P51MUX[1:0]/P50_53PMUX
*
4
P52
SIN1 (UART)
TOUTB5/CAPB5 (T16A2)
*
2
–
P52MUX[1:0]/P50_53PMUX
*
4
P53
#BFR (I2CS)
–
–
P53MUX[1:0]/P50_53PMUX
*
4
P54
LFRO (LCD)
–
–
P54MUX[1:0]/P54_56PMUX
*
4
P55
–
TOUTA6/CAPA6 (T16A2)
*
2
–
P55MUX[1:0]/P54_56PMUX
*
4
P56
–
TOUTB6/CAPB6 (T16A2)
*
2
–
P56MUX[1:0]/P54_56PMUX
*
4
*
1: The P02, P13–P15, P36, P37, P47, and P50 pins can also be used as an external clock input pin for the timer module by setting
them to input mode. However, general-purpose input port function is also effective in this case. In the S1C17624, either P36 or
P47 can be selected as the EXCL5 input port and either P37 or P50 can be selected as the EXCL6 input port using EXCL5S/
P54_56PMUX register and EXCL6S/P54_56PMUX register. P36 and P37 are only available in the S1C17604.