A96G140/A96G148/A96A148 User’s manual
6. I/O ports
61
P4 (P4 Data Register): A0H
7
6
5
4
3
2
1
0
P47
P46
P45
P44
P43
P42
P41
P40
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P4[7:0]
I/O Data
P4IO (P4 Direction Register): C9H
7
6
5
4
3
2
1
0
P47IO
P46IO
P45IO
P44IO
P43IO
P42IO
P41IO
P40IO
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P4IO[7:0]
P4 Data I/O Direction
0
Input
1
Output
P4PU (P4 Pull-up Resistor Selection Register): A3H
7
6
5
4
3
2
1
0
P47PU
P46PU
P45PU
P44PU
P43PU
P42PU
P41PU
P40PU
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P4PU[3:0]
Configure Pull-up Resistor of P4 Port
0
Disable
1
Enable
P4OD (P4 Open-drain Selection Register): 94H
7
6
5
4
3
2
1
0
P47OD
P46OD
P45OD
P44OD
P43OD
P42OD
P41OD
P40OD
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P4OD[3:0]
Configure Open-drain of P4 Port
0
Push-pull output
1
Open-drain output