
10 Input/Output Port (P)
S1C17003 TECHNICAL MANUAL
EPSON
10-25
IOPort
0x52a4: P2 Port Function Select Register (P2_PMUX)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
P2 Port
Function Select
Register
(P2_PMUX)
0x52a4
(8 bits)
D7
–
reserved
–
0 when being read.
D6
P23MUX
P23 port function select
1 SENB0
0 P23
0
R/W
D5
–
reserved
–
0 when being read.
D4
P22MUX
P22 port function select
1 AIN0
0 P22
0
R/W
D3
–
reserved
–
0 when being read.
D2
P21MUX
P21 port function select
1 AIN1
0 P21
0
R/W
D1
–
reserved
–
0 when being read.
D0
P20MUX
P20 port function select
1 AIN2
0 P20
0
R/W
The P20 to P23 input/output port pins are shared with the peripheral module pins. This register is used to select
how the pins are used.
D7
Reserved
D6
P23MUX: P23 Port Function Select Bit
1 (R/W): Reserved
0 (R/W): P23 port (default)
D5
Reserved
D4
P22MUX: P22 Port Function Select Bit
1 (R/W): AIN0 (ADC Ch.0)
0 (R/W): P22 port (default)
D3
Reserved
D2
P21MUX: P21 Port Function Select Bit
1 (R/W): AIN1 (ADC Ch.1)
0 (R/W): P21 port (default)
D1
Reserved
D0
P20MUX: P20 Port Function Select Bit
1 (R/W): AIN2 (ADC Ch.2)
0 (R/W): P20 port (default)