6 I/O PORTS (PPORT)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
6-13
(Rev. 1.0)
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
P2RCTL
(P2 Port Pull-up/down
Control Register)
15–8 P2PDPU[7:0]
0x00
H0
R/W –
7–0 P2REN[7:0]
0x00
H0
R/W
P2INTF
P2INTCTL
P2CHATEN
15–0 –
0x0000
–
R
–
P2MODSEL
(P2 Port Mode Select
Register)
15–8 –
0x00
–
R
–
7–0 P2SEL[7:0]
0x00
H0
R/W
P2FNCSEL
(P2 Port Function
Select Register)
15–14 P27MUX[1:0]
0x0
H0
R
Valid settings: 0x0
13–12 P26MUX[1:0]
0x0
H0
R
11–10 P25MUX[1:0]
0x0
H0
R
9–8 P24MUX[1:0]
0x0
H0
R
7–6 P23MUX[1:0]
0x0
H0
R
Valid settings: 0x0, 0x1
5–4 P22MUX[1:0]
0x0
H0
R
3–2 P21MUX[1:0]
0x0
H0
R/W
1–0 P20MUX[1:0]
0x0
H0
R/W
7.3.2 P2 Port Group Function Assignment
Table 6.
Port name
P2SEL
y
= 0
P2SEL
y
= 1
GPIO
P2
y
MUX = 0x0
(Function 0)
P2
y
MUX = 0x1
(Function 1)
P2
y
MUX = 0x2
(Function 2)
P2
y
MUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
P20
P20
SPI Ch.1
SDO1
PIO
PIOD4
–
–
–
–
P21
P21
SPI Ch.1
SDI1
PIO
PIOD5
–
–
–
–
P22
P22
SPI Ch.1
SPICLK1
PIO
PIOD6
–
–
–
–
P23
P23
SPI Ch.1
#SPISS1
PIO
PIOD7
–
–
–
–
P24
P24
SPI Ch.2
#SPISS2
–
–
–
–
–
–
P25
P25
SPI Ch.2
SPICLK2
–
–
–
–
–
–
P26
P26
SPI Ch.2
SDI2
–
–
–
–
–
–
P27
P27
SPI Ch.2
SDO2
–
–
–
–
–
–
P3 Port Group
6.7.4
The P3 port group supports the GPIO function.
7.4.1 Control Registers for P3 Port Group
Table 6.
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
P3DAT
(P3 Port Data
Register)
15–8 P3OUT[7:0]
0x00
H0
R/W –
7–0 P3IN[7:0]
x
H0
R
P3IOEN
(P3 Port Enable
Register)
15–8 P3IEN[7:0]
0x00
H0
R/W –
7–0 P3OEN[7:0]
0x00
H0
R/W
P3RCTL
(P3 Port Pull-up/down
Control Register)
15–8 P3PDPU[7:0]
0x00
H0
R/W –
7–0 P3REN[7:0]
0x00
H0
R/W
P3INTF
P3INTCTL
P3CHATEN
15–0 –
0x0000
–
R
–
P3MODSEL
(P3 Port Mode Select
Register)
15–8 –
0x00
–
R
–
7–0 P3SEL[7:0]
0x00
H0
R/W