Tom Sefranek: >>Your looking for a 12 bit (11bits actually) A-D. Andre Abelian: > Previews guy did it by using pic internal ADC. If you need 11 bits using PIC's ADC, maybe you can do that by oversampling. This document explains how for an AVR with 10bit ADC: www.atmel.com/dyn/resources/prod_documents/doc8003.pdf Mohit Mahajan. ---- Original Message ----- From: "Andre Abelian" To: "Microcontroller discussion list - Public." Sent: Monday, January 08, 2007 4:23 AM Subject: Re: [pic]: how to convert 0-2,5v to 0-1023 > Tom, > > Previews guy did it by using pic internal ADC. Another problem is > that the design is already done and I can't change it. > Can you explain more detail ? > > thanks > > Andre > > > Tom Sefranek wrote: > >>Your looking for a 12 bit (11bits actually) A-D. >>Then some bit manipulation. (Math). >> >>Andre Abelian wrote: >> >> >> >>>Rolf, >>> >>>thanks for your replay. Using Vref is very good idea but in my case >>>the >>>situation is lot more >>>complicated. This is how it should be: >>> >>>0-2,4v output 0-1023 with 2's complement format and enable a bit >>>2.6-5.0v output 0-1023 disable the bit. While it is in between >>>2,5v >>>should output 0 >>> >>>any idea? >>> >>>thanks for your help >>> >>>Andre >>> >>> >>> >>> >>> >>>>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 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist