STM32F3 Temperature Sensor without ADC Dual Mode

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

STM32F3 Temperature Sensor without ADC Dual Mode

Post by neums »

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
User avatar
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

Post by Giovanni »

There are a new functions for that:

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
Post Reply