
Rev. 1.00
119 of ���
�an�a�� 1�� �01�
Standard 8051 8-Bit Flash MCU
HT85F2260/HT85F2270/HT85F2280
Input/Output Ports
Input/Output Ports
P2 Register
SFR Address: A0h
Bit
7
6
5
4
3
2
1
0
Name
P�.7
P�.6
P�.�
P�.4
P�.3
P�.�
P�.1
P�.0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
1
1
1
1
1
1
1
1
P3 Register
SFR Address: B0h
Bit
7
6
5
4
3
2
1
0
Name
P3.7
P3.6
P3.�
P3.4
P3.3
P3.�
P3.1
P3.0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
1
1
1
1
1
1
1
1
P4 Register
SFR Address: B1h
Bit
7
6
5
4
3
2
1
0
Name
P4.7
P4.6
P4.�
P4.4
P4.3
P4.�
P4.1
P4.0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
1
1
1
1
1
1
1
1
P5 Register
SFR Address: D9h
Bit
7
6
5
4
3
2
1
0
Name
P�.7
P�.6
P�.�
P�.4
P�.3
P�.�
P�.1
P�.0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
1
1
1
1
1
1
1
1
Bit 7~0
I/O Port bit 7~bit 0 Input/Output Data Control
During reading and writing of data to these registers, what actually happens is
dependent upon whether the corresponding pin is setup as an output or input.
Register Write Operations
A write operation is only effective when the corresponding pin is setup as an output. In
such cases a write operation will setup the logic level on the pin as follows:
0: Output low
1: Output high
Register Read Operations
A read operation will read the current logic level on the corresponding pin.
0: Read low level
1: Read high level