
VI PERIPHERAL MODULES 4 (PORTS): GENERAL-PURPOSE I/O PORTS (GPIO)
VI-1-14
EPSON
S1C33E07 TECHNICAL MANUAL
0x3003A0–0x3003B3: Pxx Port Function Select Registers (pPx_xx_CFP)
Name
Address
Register name
Bit
Function
Setting
Init. R/W
Remarks
CFPx31
CFPx30
or
CFPx71
CFPx70
CFPx21
CFPx20
or
CFPx61
CFPx60
CFPx11
CFPx10
or
CFPx51
CFPx50
CFPx01
CFPx00
or
CFPx41
CFPx40
D7
D6
D5
D4
D3
D2
D1
D0
Px3/Px7 port extended function
Px2/Px6 port extended function
Px1/Px5 port extended function
Px0/Px4 port extended function
0
R/W
003003A0
|
003003B3
(B)
Px0–Px3
port function
select register
(pPx_03_CFP)
or
Px4–Px7
port function
select register
(pPx_47_CFP)
CFPx3/7[1:0]
Function
Pin function 3
Pin function 2
Pin function 1
Pin function 0
CFPx2/6[1:0]
Function
Pin function 3
Pin function 2
Pin function 1
Pin function 0
CFPx1/5[1:0]
Function
Pin function 3
Pin function 2
Pin function 1
Pin function 0
11
10
01
00
11
10
01
00
11
10
01
00
11
10
01
00
CFPx0/4[1:0]
Function
Pin function 3
Pin function 2
Pin function 1
Pin function 0
Note: The letter ‘x’ in bit names, etc., denotes a port number from 0 to 9.
0x3003A0 P00–P03 Port Function Select Register (pP0_03_CFP)
0x3003A1 P04–P07 Port Function Select Register (pP0_47_CFP)
0x3003A2 P10–P13 Port Function Select Register (pP1_03_CFP)
0x3003A3 P14–P17 Port Function Select Register (pP1_47_CFP)
0x3003A4 P20–P23 Port Function Select Register (pP2_03_CFP)
0x3003A5 P24–P27 Port Function Select Register (pP2_47_CFP)
0x3003A6 P30–P33 Port Function Select Register (pP3_03_CFP)
0x3003A7 P34–P36 Port Function Select Register (pP3_46_CFP)
0x3003A8 P40–P43 Port Function Select Register (pP4_03_CFP)
0x3003A9 P44–P47 Port Function Select Register (pP4_47_CFP)
0x3003AA P50–P53 Port Function Select Register (pP5_03_CFP)
0x3003AB P54–P57 Port Function Select Register (pP5_47_CFP)
0x3003AC P60–P63 Port Function Select Register (pP6_03_CFP)
0x3003AD P64–P67 Port Function Select Register (pP6_47_CFP)
0x3003AE P70–P73 Port Function Select Register (pP7_03_CFP)
0x3003AF P74 Port Function Select Register (pP7_4_CFP)
0x3003B0 P80–P83 Port Function Select Register (pP8_03_CFP)
0x3003B1 P84–P85 Port Function Select Register (pP8_45_CFP)
0x3003B2 P90–P93 Port Function Select Register (pP9_03_CFP)
0x3003B3 P94–P97 Port Function Select Register (pP9_47_CFP)
These bits select the function of each I/O port pin. (Default: 0b00 = Pin function 0)
The I/O ports concurrently serve as the input/output pins for peripheral circuits or bus signals. Whether they are
used as I/O ports or for peripheral circuits/bus signals can be selected bit-for-bit using these registers. All pins not
used for peripheral circuits/bus signals can be used as general-purpose I/O ports.
For details of pin functions, see Section I.3.3, “Switching Over the Multiplexed Pin Functions.”