John, What exactly is configured "0010"? Can you be a bit more explicit =20 about what base that number is in, and where (which register) you've =20 set it? What exactly are you setting ADCON1 and ADCON0 to? And what =20 are the ADRESH and ADRESL results? Cheers, -Neil. Quoting John Coppens : > ... > For some strange reason I get wrong readings from the A/D though: > > The A/D is configured as 0010, so Vref+ and Vref- are connected to VCC > and GND. I measure 2.92 volts at the A/D input pin, and the reading is > 0x3b00 (varying slightly in the last bits). > > 0x3b00 is only about 0.23 of full reading, or 4.92 (VCC) * 0.23 =3D 1.13V= .. > (instead of the 2.92 measured with a meter). > > ... --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .