So I'm trying to get an ADC SAR that is embedded in the PSoC 5lp to work, but I'm not getting the results I expect, so in an effort to narrow it down to my code or my assumptions about the ADC, I would like the following questions answered.
Resolution is 8bit
Input range is 0 to 5 volts
Reference voltage is 2.5
The data sheets states...
The output is the input minus the reference, and is in 2s compliment.
So, can I assume any voltage input from 0 to 2.5 will will output a value from 0 to -127?
Any input voltage from 2.5 to 5 will output a positive value from 0 to 127?
And if I want a positive value output from 0 to 255 I need to make the reference voltage "0"?
Are these assumptions correct, if not please explain.
Resolution is 8bit
Input range is 0 to 5 volts
Reference voltage is 2.5
The data sheets states...
The output is the input minus the reference, and is in 2s compliment.
So, can I assume any voltage input from 0 to 2.5 will will output a value from 0 to -127?
Any input voltage from 2.5 to 5 will output a positive value from 0 to 127?
And if I want a positive value output from 0 to 255 I need to make the reference voltage "0"?
Are these assumptions correct, if not please explain.