You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error Location
Chapter 6 - "Programming ADCs"; Section - "Conversion Formulas". The formula in question is equation 6.2.
Describe the error
The formula to calculate the output of an adc devides the input voltage V_in by the delta between the max and min reference Voltage, to then multiply it by 2^n. This only works out for the case where the min reference voltage is 0. For all other cases, we would need to first subtract the min reference voltage from the input voltage before dividing it by the delta. Also, the largest number that can be represented with n bits is 2^n -1, so we should probably be multiplying by 2^n -1 instead of by 2^n.
Concrete example:
We have:
V_ref_+ = 100
V_ref_- = 50
V_in = 50
Since V_in is the minimal voltage we can work with, the result should be smallest number the adc can output. However, with the given formula, we would get the highest number. Subtracting V_ref_- from the input before dividing by the delta would fix that.
The text was updated successfully, but these errors were encountered:
Error Location
Chapter 6 - "Programming ADCs"; Section - "Conversion Formulas". The formula in question is equation 6.2.
Describe the error
The formula to calculate the output of an adc devides the input voltage
V_in
by the delta between the max and min reference Voltage, to then multiply it by2^n
. This only works out for the case where the min reference voltage is 0. For all other cases, we would need to first subtract the min reference voltage from the input voltage before dividing it by the delta. Also, the largest number that can be represented with n bits is2^n -1
, so we should probably be multiplying by2^n -1
instead of by2^n
.Concrete example:
We have:
V_ref_+
= 100V_ref_-
= 50V_in
= 50Since
V_in
is the minimal voltage we can work with, the result should be smallest number the adc can output. However, with the given formula, we would get the highest number. SubtractingV_ref_-
from the input before dividing by the delta would fix that.The text was updated successfully, but these errors were encountered: