Jeff4
08-09-2010, 02:41 PM
Hello, we are using the ZICM2410P0 with firmware 2.4.9 and we are trying to use ADC channel 0 to take a voltage reading. The voltage on the pin has been measured as 1.09V. Doing a readADC(0) returns an 8 bit value of 190 which would correspond to a voltage reading of 1.11V using a 1.5V reference.
Now we wanted to try for better resolution using a 16 bit value with readADC(10). However, once we correct the returned value to be unsigned, we end up with a value that is off quite a bit from the 8 bit returned value, and corresponds to a voltage reading of about 0.9V. How is it that the 16 bit reading is much farther off from the measured value than the 8 bit reading? Shouldn't the upper 8 bits of the 16 bit value be the same as the returned 8 bit value? Thanks.
Now we wanted to try for better resolution using a 16 bit value with readADC(10). However, once we correct the returned value to be unsigned, we end up with a value that is off quite a bit from the 8 bit returned value, and corresponds to a voltage reading of about 0.9V. How is it that the 16 bit reading is much farther off from the measured value than the 8 bit reading? Shouldn't the upper 8 bits of the 16 bit value be the same as the returned 8 bit value? Thanks.