jblackann ,
thanks for the link.
But i'm getting a hard time understanding the logic.
AD_AN3_Volt = (AD_AN3_VALUE */ 500) >> 2
Using 10Bit resolution:
5V = 1023 so 2.5V = 511
( final reading on LCD should be 2.50V )
If i have 2.5V the AD_AN3_VALUE = 511
*/ -> get the middle 16bits from the 32 ( divided aftermath )
511 / 500 = 1,022
1,022 - the 16 middle bits ???
Then >>2 means shift 2 positions to the right ( binary ) ??
And final the DEC2 - this is not included in the PBP manual...
EDIT: But this last line i understand the logic.
.




Bookmarks