6 I/O PORTS (PPORT)
S1C17M12/M13 TECHNICAL MANUAL
Seiko Epson Corporation
6-15
(Rev. 1.2)
6.7.4 P4 Port Group
The P4 port group supports the GPIO and interrupt functions.
Table 6.7.4.1 Control Registers for P4 Port Group
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
P4DAT
(P4 Port Data
Register)
15–8 P4OUT[7:0]
0x00
H0
R/W –
7–0 P4IN[7:0]
0x00
H0
R
P4IOEN
(P4 Port Enable
Register)
15–8 P4IEN[7:0]
0x00
H0
R/W –
7–0 P4OEN[7:0]
0x00
H0
R/W
P4RCTL
(P4 Port Pull-up/down
Control Register)
15–8 P4PDPU[7:0]
0x00
H0
R/W –
7–0 P4REN[7:0]
0x00
H0
R/W
P4INTF
(P4 Port Interrupt
Flag Register)
15–8 –
0x00
–
R
–
7–0 P4IF[7:0]
0x00
H0
R/W Cleared by writing 1.
P4INTCTL
(P4 Port Interrupt
Control Register)
15–8 P4EDGE[7:0]
0x00
H0
R/W –
7–0 P4IE[7:0]
0x00
H0
R/W
P4CHATEN
(P4 Port Chattering
Filter Enable
Register)
15–8 –
0x00
–
R
–
7–0 P4CHATEN[7:0]
0x00
H0
R/W
P4MODSEL
(P4 Port Mode Select
Register)
15–8 –
0x00
–
R
–
7–0 P4SEL[7:0]
0x00
H0
R/W
P4FNCSEL
(P4 Port Function
Select Register)
15–14 P47MUX[1:0]
0x0
H0
R/W –
13–12 P46MUX[1:0]
0x0
H0
R/W
11–10 P45MUX[1:0]
0x0
H0
R/W
9–8 P44MUX[1:0]
0x0
H0
R/W
7–6 P43MUX[1:0]
0x0
H0
R/W
5–4 P42MUX[1:0]
0x0
H0
R/W
3–2 P41MUX[1:0]
0x0
H0
R/W
1–0 P40MUX[1:0]
0x0
H0
R/W
Table 6.7.4.2 P4 Port Group Function Assignment
Port
name
P4SELy = 0
P4SELy = 1
GPIO
P4yMUX = 0x0
(Function 0)
P4yMUX = 0x1
(Function 1)
P4yMUX = 0x2
(Function 2)
P4yMUX = 0x3
(Function 3)
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
Peripheral
Pin
P40
P40
–
–
LEDC
SEG0
–
–
–
–
P41
P41
–
–
LEDC
SEG1
–
–
–
–
P42
P42
–
–
LEDC
SEG2
–
–
–
–
P43
P43
–
–
LEDC
SEG3
–
–
–
–
P44
P44
–
–
LEDC
SEG4
–
–
–
–
P45
P45
–
–
LEDC
SEG5
–
–
–
–
P46
P46
–
–
LEDC
SEG6
–
–
–
–
P47
P47
–
–
LEDC
SEG7
–
–
–
–