Jinx wrote: >> ADC=1023 means 4.096V <= Vin > > AFAIUI, ADC = 1023 means 4.092 < Vin < 4.096 > > Which relates to my other question about not being able to > represent Vref, as 0x400 is 11 bits Depending on the ADC implementation, the last interval is usually something like "ADC=1023 means 4092 mV < Vin" -- which means that 1023 includes Vref. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist