S3F84B8_UM_REV 1.00 9 I/O PORTS
9-11
Port 2 Control Register, Low Byte (P2CONL)
E8H, Set1, Bank0, R/W, Reset value:00H
LSBMSB.7.6.5 .4.3.2.1.0
.7 .6 bit/P2.3/ADC3(OA_O)
00
01
10
11
Input mode
Input mode with pull-up
Push-pull output
Alternative function: ADC3 input
.5 .4 bit/P2.2/ADC2/OA_N
00
01
10
11
.3 .2 bit/P2.1/ADC1/OA_P
00
01
10
11
.1 .0 bit/P2.0/ADC0/TDOUT
00
01
10
11
Input mode
Alternative function: OPAMP negative input
Push-pull output
Alternative function: ADC2 input
Input mode
Alternative function: OPAMP positive input
Push-pull output
Alternative function: ADC1 input
Input mode
Alternative function: TDOUT
Push-pull output
Alternative function: ADC0 input
P2.3
/ADC3(OA_O)
P2.2
/ADC2
/OA_N
P2.1
/ADC1
/OA_P
P2.0
/ADC0
/TDOUT
NOTE: when OP AMP is enabled, P2CON.3 must be configured as ADC input no matter
you want to use the internal ADC or not.
Figure 9-7 Port 2 Low-Byte Control Register (P2CONL)