Rev. 1.2
157
C8051T620/1/6/7 & C8051T320/1/2/3
SFR Address = 0xF3
SFR Address = 0xA6
SFR Definition 22.17. P2MDIN: Port 2 Input Mode
Bit
7
6
5
4
3
2
1
0
Name
P2MDIN[7:0]
Type
R/W
Reset
1
1
1
1
1
1
1
1
Bit
Name
Function
7:0
P2MDIN[7:0]
Analog Configuration Bits for P2.7–P2.0 (respectively).
Port pins configured for analog mode have their weak pullup, digital driver, and
digital receiver disabled.
0: Corresponding P2.n pin is configured for analog mode.
1: Corresponding P2.n pin is not configured for analog mode.
SFR Definition 22.18. P2MDOUT: Port 2 Output Mode
Bit
7
6
5
4
3
2
1
0
Name
P2MDOUT[7:0]
Type
R/W
Reset
0
0
0
0
0
0
0
0
Bit
Name
Function
7:0
P2MDOUT[7:0]
Output Configuration Bits for P2.7–P2.0 (respectively).
These bits are ignored if the corresponding bit in register P2MDIN is logic 0.
0: Corresponding P2.n Output is open-drain.
1: Corresponding P2.n Output is push-pull.