5. I/O ports A96G166/A96A166/A96S166 User’s manual
5.4 P2 port
5.4.1 P2 port description
P2 is an 8-bit I/O port. P2 control registers consist of P2 data register (P2), P2 direction register
(P2IO), P2 pull-up resistor selection register (P2PU) andP2 open-drain selection register
(P2OD).Refer to the port function selection registers for the P2 function selection.
5.4.2 Register description for P2
P2 (P2 Data Register): 90H
P2IO (P2 Direction Register): B9H
NOTE: EC0 (P26) function is available only when P31 is not EC0
function and EC0 is used in TIMER0.
P2PU (P2 Pull-up Resistor Selection Register): AEH
Configure Pull-up Resistor of P2 Port
P2OD (P2 Open-drain Selection Register): 93H
Configure Open-drain of P2 Port