Specifications

C8051F330/1
Rev. 1.1 125
Figure 14.15. P2: Port2 Register
Bits7-1: Unused. Read = 0000000b. Write = don’t care.
Bit0: P2.0
Write - Output appears on I/O pins per Crossbar Registers.
0: Logic Low Output.
1: Logic High Output (high impedance if corresponding P2MDOUT.n bit = 0).
Read - Directly reads Port pin.
0: P2.n pin is logic low.
1: P2.n pin is logic high.
RRRRRRRR/WReset Value
- - - - - - - P2.0 00000001
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SFR Address:
(bit addressable)
0xA0
Figure 14.16. P2MDOUT: Port2 Output Mode Register
Bits7-1: Unused. Read = 0000000b. Write = don’t care.
Bit0: Output Configuration Bit for P2.0.
0: P2.0 Output is open-drain.
1: P2.0 Output is push-pull.
RRRRRRRR/WReset Value
- - - - - - - 00000000
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SFR Address:
0xA6