Andre Abelian wrote: > Hi to all, > > I need to convert ADC 0-2,5v result to 0-1023 output to uart. > I am kind of lost how to do this should I add result x 2? > any help will appreciate. > > thanks > > Andre > You need to get 2.5V on the Vref+ pin, and use that for the 10bit conversion. The challenge is then to get a 2.5V reference.... ;-) On PIC18 devices see the ADCON1 register bits VCFG0 and VCFG1 on PIC16's see the ADCON1 register's PCFG bits. Rolf -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist