fillon.nicolas

STM32F767 - Read VREFINT with ADC using LL drivers

Blog Post created by fillon.nicolas Moderator on Apr 13, 2017

Hi,

 

In our STM32 the VREFINT (Voltage reference) is connected internally to an ADC channel.

 

VREFINT

 

I wrote a code to be able to read VREFINT using ADC.

 

The code reads the data and then convert it in mV unit depending on VREF+.

 

I ran the code on a Nucleo F767.

 

I read the following values: 1206 mV which is within spec:

 

capture

 

I am attaching my code. It is using STM32Cube_FW_F7_V1.6.0.

 

To run the code copy and unzip it at:

 

STM32Cube_FW_F7_V1.6.0\Projects\STM32F767ZI-Nucleo\Examples_LL\ADC

 

I used Keil uVision 5 for IDE.

 

BR,

 

Nicolas.

Attachments

Outcomes