
5. I/O ports
A96G166/A96A166/A96S166 User’s manual
40
5.1.7
Register Map
Table 7. Port Register Map
Name
Address
Direction
Default
Description
P0
80H
R/W
00H
P0 Data Register
P0IO
A1H
R/W
00H
P0 Direction Register
P0PU
ACH
R/W
00H
P0 Pull-up Resistor Selection Register
P0OD
91H
R/W
00H
P0 Open-drain Selection Register
P0DB
DEH
R/W
00H
P0 De-bounce Enable Register
P0FSRH
D3H
R/W
00H
P0 Function Selection High Register
P0FSRL
D2H
R/W
00H
P0 Function Selection Low Register
P1
88H
R/W
00H
P1 Data Register
P1IO
B1H
R/W
00H
P1 Direction Register
P1PU
ADH
R/W
00H
P1 Pull-up Resistor Selection Register
P1OD
92H
R/W
00H
P1 Open-drain Selection Register
P1DB
DFH
R/W
00H
P1 Debounce Enable Register
P1FSRH
D5H
R/W
00H
P1 Function Selection High Register
P1FSRL
D4H
R/W
00H
P1 Function Selection Low Register
P2
90H
R/W
00H
P2 Data Register
P2IO
B9H
R/W
00H
P2 Direction Register
P2PU
AEH
R/W
00H
P2 Pull-up Resistor Selection Register
P2OD
93H
R/W
00H
P2 Open-drain Selection Register
P2FSRH
D7H
R/W
00H
P2 Function Selection High Register
P2FSRL
D6H
R/W
00H
P2 Function Selection Low Register
P3
98H
R/W
00H
P3 Data Register
P3IO
99H
R/W
00H
P3 Direction Register
P3PU
AFH
R/W
00H
P3 Pull-up Resistor Selection Register
P3OD
94H
R/W
00H
P3 Open-drain Selection Register
P3FSRH
9BH
R/W
00H
P3 Function Selection High Register
P3FSRL
9AH
R/W
00H
P3 Function Selection Low Register