Jinx, I convinced them to use 511 instead of 1023 because of we never going to get 1023 quality anyway unless hardware is going to be changed. Hardware info: PIC16F876A output to UART 19200 10 byte long. Analog pins are connected to transducer that produces 0-5 output x and y and 3 buttons are connected to other pic pins. thanks Andre -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu]On Behalf Of Jinx Sent: Sunday, January 07, 2007 5:56 PM To: Microcontroller discussion list - Public. Subject: Re: [pic]: how to convert 0-2,5v to 0-1023 > definitely 512 res is enough but at this moment the hardware is > already made and Vref is not used so what ever solution we can > do without Vref is acceptable. Without knowing what the hardware consists of (can you help ?) it's hard to say. What PIC is being used ? What interconnections are there ? Any external switches like FETs or resistive dividers ? and so on ..... -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist