Цитата(razrab83 @ Sep 4 2018, 11:34)

Процессор STM32L100RBT6TR. Ткните носом в даташит/RM - где сказано о Vref? Как выбирается источник Vref?
Куча примеров в инете.... разжёвано, как заюзать АЦП... но все примеры заканчиваются считыванием кода АЦП.... результат преобразования равен 0x0123. И что? Сколько вольт на ноге?
Опытным путём на живой плате выяснил, что Vref = 3,3. Ткните носом в документацию, где это сказано?
Написано в Reference manual RM0041 (не в Data Sheet).
Цитата
4.1.1 Independent A/D and D/A converter supply and reference voltage
To improve conversion accuracy, the ADC and the DAC have an independent power supply
which can be separately filtered and shielded from noise on the PCB.
● The ADC and DAC voltage supply input is available on a separate VDDA pin.
● An isolated supply ground connection is provided on pin VSSA.
When available (according to package), VREF- must be tied to VSSA.
On 100-pin packages
To ensure a better accuracy on low-voltage inputs and outputs, the user can connect a
separate external reference voltage on VREF+. VREF+ is the highest voltage, represented by
the full scale value, for an analog input (ADC) or output (DAC) signal. The voltage on VREF+
can range from 2.4 V to VDDA.
On 64-pin packages and packages with less pins
The VREF+ and VREF- pins are not available, they are internally connected to the ADC
voltage supply (VDDA) and ground (VSSA).