Don't thank me yet.
Cuz it looks like there's still some misunderstandings.
With the Analog to Digital converters, you have two choices (8-bit or 10-bit).
8-bit returns values from 0-255.
10-bit values are from 0-1023.
Those numbers come straight from the converter without any additional math needed.
Without seeing your code, I can only guess at what's happening.
My guess is that before sending to the PC, you are breaking the numbers down with the DIG operator.
DIG starts at 0, with 0 indicating the rightmost digit.
If ADval was holding the value 1023, (ADval DIG 0) would be 3.
If you're thinking the rightmost digit is 1, and you used DIG 1 thru 4, it would return 0102.Code:DIG 3210 1023
Multiplying *10 first would make DIG 1 thru 4 return 1023, although the actual value is 10230.
Are you using DIG?
<br>




Bookmarks