cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746 ADC1 and temperature sensor

Stathis Voukelatos
Associate II
Posted on December 01, 2015 at 01:07

Hi all,

I am writing an application using the stm32cubef7 where I need to sample the temperature sensor channel of ADC1.

According to the STM32F746 reference manual the temperature sensor is on channel 18 of ADC1, which is shared with VBAT.

However, in the stm32cubef7 ADC HAL driver it seems to use channel 16. That channel is not connected according to the manual. Is that a bug in the driver?

Cheers,

Stathis
2 REPLIES 2
Posted on December 01, 2015 at 01:18

Isn't it special cased deeper in the abstraction?

See: stm32f7xx_hal_adc_ex.c

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Stathis Voukelatos
Associate II
Posted on December 01, 2015 at 01:40

It is special cased in stm32f7xx_hal_adc.c in HAL_ADC_ConfigChannel(). There it does set the TSVREFE bit as it should, but it still seems to select channel 16 and not 18.