Hi all
I have the following problem
I read an ADC 10bit but would like to add an offset and keep the 10bit resolution
When the ADC value is smaller than the offset value I got a wrong indication on the LCD
substraction is going negative
any idea how i can solve this ?
eaxample:
offset: 200
if ADC = 512 - offset = 312 => no problem
if ADC = 180 - offset = -20 => wrong value
So i would like to keep the 10bit resolution but just shift it with the offset value ?
Thanks
Bookmarks