6 I/O PORTS (PPORT)
6-14
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
P3FNCSEL
(P3 Port Function
Select Register)
15–14 P37MUX[1:0]
0x0
H0
R
Valid settings: 0x0, 0x1
13–12 P36MUX[1:0]
0x0
H0
R/W
11–10 P35MUX[1:0]
0x0
H0
R/W
9–8 P34MUX[1:0]
0x0
H0
R/W
7–6 P33MUX[1:0]
0x0
H0
R/W
5–4 P32MUX[1:0]
0x0
H0
R/W
3–2 P31MUX[1:0]
0x0
H0
R/W Valid settings: 0x0, 0x1, 0x2
1–0 P30MUX[1:0]
0x0
H0
R/W Valid settings: 0x0, 0x1
7.4.2 P3 Port Group Function Assignment
Table 6.
Port name
P3SEL
y
= 0
P3SEL
y
= 1
GPIO
P3
y
MUX = 0x0
(Function 0)
P3
y
MUX = 0x1
(Function 1)
P3
y
MUX = 0x2
(Function 2)
P3
y
MUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
P30
P30
T16A3 Ch.1
EXCL1
RFC Ch.0 RFCLKO0
–
–
–
–
P31
P31
TR
REGMON
RFC Ch.1 RFCLKO1
SVD
EXSVD
–
–
P32
P32
T16A3 Ch.1 TOUTB1/CAPB1
PIO
PIOA0
–
–
–
–
P33
P33
T16A3 Ch.1 TOUTA1/CAPA1
PIO
PIOA1
–
–
–
–
P34
P34
UART
USIN0
PIO
PIOA2
–
–
–
–
P35
P35
UART
USOUT0
PIO
PIOA3
–
–
–
–
P36
P36
I2C
SCL0
PIO
PIOD0
–
–
–
–
P37
P37
I2C
SDA0
PIO
PIOD1
–
–
–
–
P4 Port Group
6.7.5
The P4 port group supports the GPIO function.
7.5.1 Control Registers for P4 Port Group
Table 6.
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
P4DAT
(P4 Port Data
Register)
15–10 –
0x00
–
R
–
9–8 P4OUT[1:0]
0x0
H0
R/W
7–2 –
0x00
–
R
1–0 P4IN[1:0]
x
H0
R
P4IOEN
(P4 Port Enable
Register)
15–10 –
0x00
–
R
–
9–8 P4IEN[1:0]
0x0
H0
R/W
7–2 –
0x00
–
R
1–0 P4OEN[1:0]
0x0
H0
R/W
P4RCTL
(P4 Port Pull-up/down
Control Register)
15–10 –
0x00
–
R
–
9–8 P4PDPU[1:0]
0x0
H0
R/W
7–2 –
0x00
–
R
1–0 P4REN[1:0]
0x0
H0
R/W
P4INTF
P4INTCTL
P4CHATEN
15–0 –
0x0000
–
R
–
P4MODSEL
(P4 Port Mode Select
Register)
15–8 –
0x00
–
R
–
7–2 –
0x00
–
R
1–0 P4SEL[1:0]
0x0
H0
R/W
P4FNCSEL
(P4 Port Function
Select Register)
15–8 –
0x00
–
R
–
7–4 –
0x0
–
R
3–2 P41MUX[1:0]
0x0
H0
R/W Valid settings: 0x0, 0x1
1–0 P40MUX[1:0]
0x0
H0
R/W
7.5.2 P4 Port Group Function Assignment
Table 6.
Port name
P4SEL
y
= 0
P4SEL
y
= 1
GPIO
P4
y
MUX = 0x0
(Function 0)
P4
y
MUX = 0x1
(Function 1)
P4
y
MUX = 0x2
(Function 2)
P4
y
MUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
P40
P40
UART
USIN0
PIO
PIOD2
–
–
–
–
P41
P41
UART
USOUT0
PIO
PIOD3
–
–
–
–