English
Language : 

PIC18F2331_07 Datasheet, PDF (249/400 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
R/W-0
U-0
R/W-0
R-0
VCFG1
VCFG0
—
FIFOEN
BFEMT
bit 7
R-0
BFOVL
R-0
ADPNT1
R-0
ADPNT0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5
bit 4
bit 3
bit 2
bit 1-0
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-
Unimplemented: Read as ‘0’
FIFOEN: FIFO Buffer Enable bit
1 = FIFO is enabled
0 = FIFO is disabled
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)
BFOVFL: Buffer Overflow bit
1 = A/D result has overwritten a buffer location that has unread data
0 = A/D result has not overflowed
ADPNT<1:0>: Buffer Read Pointer Location bits
Designates the location to be read next.
00 = Buffer address 0
01 = Buffer address 1
10 = Buffer address 2
11 = Buffer address 3
© 2007 Microchip Technology Inc.
Preliminary
DS39616C-page 247