On Tue, 1 Oct 2002 21:23:14 +0530, wrote: >I am using MCP3204 in one the projects. It is a 12bit, 4 channel serial >interface ADC from Microchip. >According to datasheet, the maximum count (0x0FFF or 4096) is received when >input voltage is equal to Vref. Now my problem is that I get max count at >half Vref. I have applied 4.000 volt as Vref. I get max count at 2.0 volt. >But that is not all. The ADC again counts from 0000 to 4096 for 2.00 to 4.00 >volts. I checked my circuit. I even applied simple DC voltage through 10K >pot. But the result is same. > >I have also replaced the IC couple of times. > If you re-check your code, you'll probably find that it's giving an extra clock beyond what you expect. The symptoms of having 1 additional clock will match what you're seeing. And no, please don't ask me how I know this. :=) Regards, Bob -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.