6 I/O PORTS (PPORT)
6-16
Seiko Epson Corporation
S1C17M12/M13 TECHNICAL MANUAL
(Rev. 1.2)
6.7.5 P5 Port Group
The P5 port group consists of five ports P50–P54 and they support the GPIO and interrupt functions.
Table 6.7.5.1 Control Registers for P5 Port Group
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
P5DAT
(P5 Port Data
Register)
15–13 –
0x0
–
R
–
12–8 P5OUT[4:0]
0x00
H0
R/W
7–5 –
0x0
–
R
4–0 P5IN[4:0]
0x00
H0
R
P5IOEN
(P5 Port Enable
Register)
15–13 –
0x0
–
R
–
12–8 P5IEN[4:0]
0x00
H0
R/W
7–5 –
0x0
–
R
4–0 P5OEN[4:0]
0x00
H0
R/W
P5RCTL
(P5 Port Pull-up/down
Control Register)
15–13 –
0x0
–
R
–
12–8 P5PDPU[4:0]
0x00
H0
R/W
7–5 –
0x0
–
R
4–0 P5REN[4:0]
0x00
H0
R/W
P5INTF
(P5 Port Interrupt
Flag Register)
15–8 –
0x00
–
R
–
7–5 –
0x0
–
R
4–0 P5IF[4:0]
0x00
H0
R/W Cleared by writing 1.
P5INTCTL
(P5 Port Interrupt
Control Register)
15–13 –
0x0
–
R
–
12–8 P5EDGE[4:0]
0x00
H0
R/W
7–5 –
0x0
–
R
4–0 P5IE[4:0]
0x00
H0
R/W
P5CHATEN
(P5 Port Chattering
Filter Enable Register)
15–8 –
0x00
–
R
–
7–5 –
0x0
–
R
4–0 P5CHATEN[4:0]
0x00
H0
R/W
P5MODSEL
(P5 Port Mode Select
Register)
15–8 –
0x00
–
R
–
7–5 –
0x0
–
R
4–0 P5SEL[4:0]
0x00
H0
R/W
P5FNCSEL
(P5 Port Function
Select Register)
15–10 –
0x00
–
R
–
9–8 P54MUX[1:0]
0x0
H0
R/W
7–6 P53MUX[1:0]
0x0
H0
R/W
5–4 P52MUX[1:0]
0x0
H0
R/W
3–2 P51MUX[1:0]
0x0
H0
R/W
1–0 P50MUX[1:0]
0x0
H0
R/W
Table 6.7.5.2 P5 Port Group Function Assignment
Port
name
P5SELy = 0
P5SELy = 1
GPIO
P5yMUX = 0x0
(Function 0)
P5yMUX = 0x1
(Function 1)
P5yMUX = 0x2
(Function 2)
P5yMUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
P50
P50
REMC2
REMO
LEDC
COM0
–
–
–
–
P51
P51
REMC2
CLPLS
LEDC
COM1
–
–
–
–
P52
P52
–
–
LEDC
COM2
–
–
–
–
P53
P53
–
–
LEDC
COM3
–
–
–
–
P54
P54
–
–
LEDC
COM4
–
–
–
–