Contents
What is VREF STM32?
The VREF buffer embedded into STM32H7 microcontrollers provides a stable voltage based on an internal bandgap reference for use by both the analog-to-digital and digital-to- analog converters. Its output voltage is programmable to 1.5V to 2.5 V. This output voltage can also support external loads up to 4 mA.
How fast is STM32 ADC?
STM32 ADC Resolution The STM32 ADC has a resolution of 12-Bit which results in a total conversion time of SamplingTime+12.5 clock cycles.
What is the reference voltage of the stm32f0 ADC module?
For low level, less number of pins series of STM32 such as STM32F051 in the STM32F0 Discovery Kit, the reference voltage (VREFINT) of ADC module is fixed to internal voltage reference provided by internal power block. This reference voltage is equal to supply voltage to Vdd pin, which is around 3V for this STM32F0 Discovery kit.
What is the internal voltage of an ADC peripheral?
But we experimented a bit with the internal voltage reference (V_REFINT) of the ADC peripheral. According to the STM32F100 datasheet (see section 5.3.4 embedded reference voltage) V_REFINT is in the range [1.16V-1.26V] with a typical value of 1.2V.
How to calculate reference voltage on ADC input?
By measuring a known, stable voltage on one of the ADC input, you can calculate the reference voltage on VDDA. You can then use this value to calculate the voltage on the other inputs. The internal on-chip Vref is 1.20V (+/- 0.04V, max 100ppm/C), you may measure it and then use the above calculation.
How to calculate the internal reference voltage in STM?
If you use the STM libraries then you should configure Channel 17 as a regular channel and then enable via ADC_TempSensorVrefintCmd (ENABLE);. Assuming the typical value of 1.2V, you then can calculate the measured voltage via as follows: x mV = sample_chx * 1200mV / sample_ch17.