6. I/O ports
A96G140/A96G148/A96A148 User’s manual
58
P2FSR (Port 2 Function Selection Register): D6H
7
6
5
4
3
2
1
0
-
-
-
P2FSR4
P2FSR3
P2FSR2
P2FSR1
P2FSR0
-
-
-
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P2FSR4
P22 Function Select
0
I/O Port
1
SS1 Function
P2FSR[3:2]
P21 Function Select
P2FSR3
P2FSR2
Description
0
0
I/O Port
0
1
reserved
1
0
AN15 Function
1
1
SCK1 Function
P2FSR[1:0]
P20 Function Select
P2FSR1
P2FSR0
Description
0
0
I/O Port
0
1
reserved
1
0
AN14 Function
1
1
TXD1/SDA1/MOSI1 Function
6.5
P3 port
6.5.1
P3 port description
P3 is an 8-bit I/O port. P3 control registers consist of P3 data register (P3), P3 direction register (P3IO)
and P3 pull-up resistor selection register (P3PU). Refer to the port function selection registers for the
P3 function selection.
6.5.2
Register description for P3
P3 (P3 Data Register): 98H
7
6
5
4
3
2
1
0
P37
P36
P35
P34
P33
P32
P31
P30
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P3[7:0]
I/O Data