How to correctly convert an ADC digital value into Volt? By divison the with (2^n) or with (2^n -1)?
STM32L152 has 12-bit ADC. How to convert the ADC's digital value into Volt, if there is a 'Vref' reference voltage, and Vref- is grounded? I met two common solution for such ADC conversion:(1) V = CODE / 2^n * Vref(2) V = CODE / (2^n -1) * Vref(CODE ...