S3F84B8_UM_REV 1.00
4 CONTROL REGISTERS
4-28
4.1.28 P2CONL — PORT 2 CONTROL REGISTER (LOW BYTE): E9H, BANK0
Bit Identifier
.7
.6
.5
.4
.3
.2
.1
.0
RESET Value
0 0 0 0 0 0 0 0
Read/Write
R/W R/W R/W R/W R/W R/W R/W R/W
Part 2, P2.3/ADC3/(OA_O) Configuration Bits
0
0
Schmitt trigger input
0
1
Schmitt trigger input; enables pull-up.
1 0 Push-pull
output
.7–.6
1 1 Alternative function: ADC3 input
Port 2, P2.2/ADC2/OA_N Configuration Bits
0
0
Schmitt trigger input
0
1
Alternative function: OPAMP negative input
1 0 Push-pull
output
.5–.4
1
1
Alternative function: ADC2 input
Port 2, P2.1/ADC1/OP_P Configuration Bits
0
0
Schmitt trigger input
0
1
Alternative function: OPAMP positive input
1 0 Push-pull
output
.3–.2
1
1
Alternative function: ADC1 input
Port 2, P2.0/ADC0/TDOUT Configuration Bits
0
0
Schmitt trigger input
0
1
Alternative function: TDOUT
1 0 Push-pull
output
.1–.0
1
1
Alternative function: ADC0 input
NOTE:
When OP AMP is enabled, P2CON.3 must be configured as ADC input, regardless of whether you want to use
internal ADC module.