cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 Vrefint / Temp sensor

john23
Associate II
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
2 REPLIES 2
jpeacock2399
Associate II
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 II