Quote Originally Posted by mackrackit View Post
Should be 256 instead of 255. 0 to 255 = 256
I believe it to be correct as originally written - the largest output from the ADC is 255, which should match AVDD....

IF the input is the upper rail ...

255/255 * AVDD = AVDD
255/256 * AVDD <> AVDD

my 2 cents