English
Language : 

C8051F388 Datasheet, PDF (160/285 Pages) –
C8051F388/9/A/B
SFR Definition 20.12. P2: Port 2
Bit
7
6
5
4
3
2
1
0
Name
P2[7:0]
Type
R/W
Reset
1
1
1
1
1
1
1
1
SFR Address = 0xA0; SFR Page = All Pages; Bit Addressable
Bit Name
Description
Write
7:0 P2[7:0] Port 2 Data.
0: Set output latch to logic
Sets the Port latch logic
value or reads the Port pin
logic state in Port cells con-
LOW.
1: Set output latch to logic
HIGH.
figured for digital I/O.
Read
0: P2.n Port pin is logic
LOW.
1: P2.n Port pin is logic
HIGH.
SFR Definition 20.13. 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
SFR Address = 0xF3; SFR Page = All Pages
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.
160
Rev. 1.1