I'm still not sure about info I read on the internet. It said that to get the analog value also known as output bits of ADC use this formula:
Analog Value=(Analog Input*Max Value of ADC bit)/Analog Reference
Do you think the analog reference is the same as the voltage reference?
My real question is, do you think "Max Value of ADC bits" is same as 2^b where b is the number of bits?
I'm sure its maximum value of ADC bit must be (2^b)-1
I read in this article:
I cropped that picture from here, that article assumes a 10-bit ADC so it uses a maximum value of 1024, while I think it must be 1023. I think what they mean with 1024 is the possibilites not maximum value of an n-bit ADC.