Hello,
i use the STM32F3xx. Since HAL 4.0 the temperature sensor is only available if ADC DUAL Mode is activated otherwise the CCR register is not implemented in the conversion group structure. Is it really not possible to activate the internal temperature sensor if you do not use ADC DUAL Mode? I think it is.
Thanks
STM32F3 Temperature Sensor without ADC Dual Mode
Moderator: RoccoMarco
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: STM32F3 Temperature Sensor without ADC Dual Mode
There are a new functions for that:
Giovanni
Code: Select all
void adcSTM32EnableVREF(ADCDriver *adcp);
void adcSTM32DisableVREF(ADCDriver *adcp);
void adcSTM32EnableTS(ADCDriver *adcp);
void adcSTM32DisableTS(ADCDriver *adcp);
void adcSTM32EnableVBAT(ADCDriver *adcp);
void adcSTM32DisableVBAT(ADCDriver *adcp);
Giovanni