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