6 I/O PORTS (PPORT)
6-12
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
P1 Port Group
6.7.2
The P1 port group supports the GPIO, interrupt, and chattering filter functions.
7.2.1 Control Registers for P1 Port Group
Table 6.
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
P1DAT
(P1 Port Data
Register)
15–8 P1OUT[7:0]
0x00
H0
R/W –
7–0 P1IN[7:0]
x
H0
R
P1IOEN
(P1 Port Enable
Register)
15–8 P1IEN[7:0]
0x00
H0
R/W –
7–0 P1OEN[7:0]
0x00
H0
R/W
P1RCTL
(P1 Port Pull-up/down
Control Register)
15–8 P1PDPU[7:0]
0x00
H0
R/W –
7–0 P1REN[7:0]
0x00
H0
R/W
P1INTF
(P1 Port Interrupt
Flag Register)
15–8 –
0x00
–
R
–
7–0 P1IF[7:0]
0x00
H0
R/W Cleared by writing 1.
P1INTCTL
(P1 Port Interrupt
Control Register)
15–8 P1EDGE[7:0]
0x00
H0
R/W –
7–0 P1IE[7:0]
0x00
H0
R/W
P1CHATEN
(P1 Port Chattering
Filter Enable
Register)
15–8 –
0x00
–
R
–
7–0 P1CHATEN[7:0]
0x00
H0
R/W
P1MODSEL
(P1 Port Mode Select
Register)
15–8 –
0x00
–
R
–
7–0 P1SEL[7:0]
0x00
H0
R/W
P1FNCSEL
(P1 Port Function
Select Register)
15–14 P17MUX[1:0]
0x0
H0
R/W Valid settings: 0x0, 0x1
13–12 P16MUX[1:0]
0x0
H0
R/W
11–10 P15MUX[1:0]
0x0
H0
R/W
9–8 P14MUX[1:0]
0x0
H0
R/W
7–6 P13MUX[1:0]
0x0
H0
R/W
5–4 P12MUX[1:0]
0x0
H0
R/W
3–2 P11MUX[1:0]
0x0
H0
R/W
1–0 P10MUX[1:0]
0x0
H0
R/W
7.2.2 P1 Port Group Function Assignment
Table 6.
Port name
P1SEL
y
= 0
P1SEL
y
= 1
GPIO
P1
y
MUX = 0x0
(Function 0)
P1
y
MUX = 0x1
(Function 1)
P1
y
MUX = 0x2
(Function 2)
P1
y
MUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
P10
P10
RFC Ch.0
SENB0
PIO
PIOA4
–
–
–
–
P11
P11
RFC Ch.0
SENA0
PIO
PIOA5
–
–
–
–
P12
P12
RFC Ch.0
REF0
PIO
PIOA6
–
–
–
–
P13
P13
RFC Ch.0
RFIN0
PIO
PIOA7
–
–
–
–
P14
P14
RFC Ch.1
SENB1
PIO
PIOD0
–
–
–
–
P15
P15
RFC Ch.1
SENA1
PIO
PIOD1
–
–
–
–
P16
P16
RFC Ch.1
REF1
PIO
PIOD2
–
–
–
–
P17
P17
RFC Ch.1
RFIN1
PIO
PIOD3
–
–
–
–
P2 Port Group
6.7.3
The P2 port group supports the GPIO function.
7.3.1 Control Registers for P2 Port Group
Table 6.
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
P2DAT
(P2 Port Data
Register)
15–8 P2OUT[7:0]
0x00
H0
R/W –
7–0 P2IN[7:0]
x
H0
R
P2IOEN
(P2 Port Enable
Register)
15–8 P2IEN[7:0]
0x00
H0
R/W –
7–0 P2OEN[7:0]
0x00
H0
R/W