Skip to main content
john23
Associate
August 14, 2013
Question

STM32F103 Vrefint / Temp sensor

  • August 14, 2013
  • 2 replies
  • 1418 views
Posted on August 14, 2013 at 18:35

Hello,

So I tried every setup I could come up with, and had no luck.

Does anyone have an example of using the Vrefint and Temp sensor ADC channels?

Thanks

#stm32 #internal-temperature-sensor #adc-vrefint #vrefint #f103
This topic has been closed for replies.

2 replies

jpeacock2399
Associate III
August 14, 2013
Posted on August 15, 2013 at 00:17

I use both channels, no problems.  Make sure you enable the channels first:

ADC_TempSensorVrefintCmd(

ENABLE

);

// enable temperature sensor and Vrefint (ADC1 only)

and that you set the sample conversion time according to the datasheet (typically 5-10 usec).  Otherwise they work the same as any other channel.  And remember you can only use ADC1 for these channels.

  Jack Peacock

stm32forum
Associate III
August 15, 2013