English
Language : 

PIC18F2331 Datasheet, PDF (247/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
REGISTER 20-2: ADCON1: A/D CONTROL REGISTER 1
R/W-0
VCFG1
R/W-0
VCFG0
U-0
R/W-0
R-0
—
FIFOEN BFEMT
bit 7
R-0
R-0
BFOVFL ADPNT1
R-0
ADPNT0
bit 0
bit 7-6 VCFG<1:0>: A/D VREF+ and A/D VREF- Source Selection bits
00 =VREF+ = AVDD, VREF- = AVSS, (AN2 and AN3 are Analog inputs or Digital I/O)
01 =VREF+ = External VREF+, VREF- = AVSS, (AN2 is an Analog input or Digital I/O)
10 =VREF+ = AVDD, VREF- = External VREF-, (AN3 is an Analog input or Digital I/O)
11 =VREF+ = External VREF-, VREF- = External VREF-
bit 5 Unimplemented: Read as ‘0’
bit 4 FIFOEN: FIFO Buffer Enable bit
1 = FIFO is enabled
0 = FIFO is disabled
bit 3 BFEMT: Buffer Empty bit
1 = FIFO is empty
0 = FIFO is not empty (at least one of four locations has unread A/D result data)
bit 2 BFOVFL: Buffer Overflow bit
1 = A/D result has overwritten a buffer location that has unread data
0 = A/D result has not overflowed
bit 1-0 ADPNT<1:0>: Buffer Read Pointer Locations bits
Designates the location to be read next.
00 = Buffer address 0
01 = Buffer address 1
10 = Buffer address 2
11 = Buffer address 3
Legend:
R = Readable bit
-n = Value at Reset
W = Writable bit
‘1’ = bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = bit is cleared x = bit is unknown
 2003 Microchip Technology Inc.
Preliminary
DS39616B-page 245