P4 Port Group - Epson S1C31W74 Technical Manual

Cmos 32-bit single chip microcontroller
Table of Contents

Advertisement

7.7.5 P4 Port Group

The P4 port group supports the GPIO and interrupt functions.
Register name
Bit
PPORTP4DAT
15–8 P4OUT[7:0]
(P4 Port Data
7–0 P4IN[7:0]
Register)
PPORTP4IOEN
15–8 P4IEN[7:0]
(P4 Port Enable
7–0 P4OEN[7:0]
Register)
PPORTP4RCTL
15–8 P4PDPU[7:0]
(P4 Port Pull-up/down
7–0 P4REN[7:0]
Control Register)
PPORTP4INTF
15–8 –
(P4 Port Interrupt
7–0 P4IF[7:0]
Flag Register)
PPORTP4INTCTL
15–8 P4EDGE[7:0]
(P4 Port Interrupt
7–0 P4IE[7:0]
Control Register)
PPORTP4CHATEN
15–8 –
(P4 Port Chattering
Filter Enable
7–0 P4CHATEN[7:0]
Register)
PPORTP4MODSEL
15–8 –
(P4 Port Mode Select
7–0 P4SEL[7:0]
Register)
PPORTP4FNCSEL
15–14 P47MUX[1:0]
(P4 Port Function
13–12 P46MUX[1:0]
Select Register)
11–10 P45MUX[1:0]
9–8 P44MUX[1:0]
7–6 P43MUX[1:0]
5–4 P42MUX[1:0]
3–2 P41MUX[1:0]
1–0 P40MUX[1:0]
P4SELy = 0
Port
name
GPIO
Peripheral
P40
P40
P41
P41
P42
P42
P43
P43
P44
P44
P45
P45
P46
P46
P47
P47
S1C31W74 TECHNICAL MANUAL
(Rev. 1.1)
Table 7.7.5.1 Control Registers for P4 Port Group
Bit name
Initial
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
Table 7.7.5.2 P4 Port Group Function Assignment
P4yMUX = 0x0
P4yMUX = 0x1
(Function 0)
(Function 1)
Pin
Peripheral
Seiko Epson Corporation
Reset
R/W
H0
R/W
H0
R
H0
R/W
H0
R/W
H0
R/W
H0
R/W
R
H0
R/W
Cleared by writing 1.
H0
R/W
H0
R/W
R
H0
R/W
R
H0
R/W
H0
R
H0
R
H0
R
H0
R
H0
R
H0
R
H0
R
H0
R
P4SELy = 1
P4yMUX = 0x2
(Function 2)
Pin
Peripheral
Pin
7 I/O PORTS (PPORT)
Remarks
P4yMUX = 0x3
(Function 3)
Peripheral
Pin
LCD32B
COM24/
SEG79
LCD32B
COM25/
SEG78
LCD32B
COM26/
SEG77
LCD32B
COM27/
SEG76
LCD32B
COM28/
SEG75
LCD32B
COM29/
SEG74
LCD32B
COM30/
SEG73
LCD32B
COM31/
SEG72
7-15

Advertisement

Table of Contents
loading

Table of Contents