9 i/O PORTS (P)
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
9-17
P2[3:0] Port Function Select Register (P20_23PMuX)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
P2[3:0] Port
Function Select
Register
(P20_23PMuX)
0x52a4
(8 bits)
D7–6 P23MuX[1:0] P23 port function select
P23MUX[1:0]
Function
0x0 R/W
0x3
0x2
0x1
0x0
reserved
reserved
SENB0
P23
D5–4 P22MuX[1:0] P22 port function select
P22MUX[1:0]
Function
0x0 R/W
0x3
0x2
0x1
0x0
reserved
reserved
AIN0
P22
D3–2 P21MuX[1:0] P21 port function select
P21MUX[1:0]
Function
0x0 R/W
0x3
0x2
0x1
0x0
reserved
reserved
AIN1
P21
D1–0 P20MuX[1:0] P20 port function select
P20MUX[1:0]
Function
0x0 R/W
0x3
0x2
0x1
0x0
reserved
reserved
AIN2
P20
The P20 to P23 port pins are shared with the peripheral module pins. This register is used to select how the pins are
used.
D[7:6]
P23MuX[1:0]: P23 Port Function Select Bits
0x3 (R/W): Reserved
0x2 (R/W): Reserved
0x1 (R/W): SENB0 (RFC)
0x0 (R/W): P23 (default)
D[5:4]
P22MuX[1:0]: P22 Port Function Select Bits
0x3 (R/W): Reserved
0x2 (R/W): Reserved
0x1 (R/W): AIN0 (ADC10)
0x0 (R/W): P22 (default)
D[3:2]
P21MuX[1:0]: P21 Port Function Select Bits
0x3 (R/W): Reserved
0x2 (R/W): Reserved
0x1 (R/W): AIN1 (ADC10)
0x0 (R/W): P21 (default)
D[1:0]
P20MuX[1:0]: P20 Port Function Select Bits
0x3 (R/W): Reserved
0x2 (R/W): Reserved
0x1 (R/W): AIN2 (ADC10)
0x0 (R/W): P20 (default)