AnsweredAssumed Answered

STM32F0 reading internal temperature sensor and reference voltage at the same time.

Question asked by felisleo on Aug 2, 2016
Latest reply on Aug 22, 2016 by Clive One
Hi ,
I interested in measuring STM32F0 temperature and reference voltage using internal sensor of it's processor at the same time using UART. so I used channels like this;

ADC_ChannelConfig(ADC1, ADC_Channel_16 , ADC_SampleTime_55_5Cycles);
ADC_TempSensorCmd(ENABLE);
ADC_ChannelConfig(ADC1, ADC_Channel_Vrefint , ADC_SampleTime_55_5Cycles);
ADC_VrefintCmd(ENABLE);

Now I can measured only one values properly..If I applied to read two channel at the same time.I mixed volues eachother. I also looked for multichannel adc titles in the forum but it didn't work properly again. I think should use dma but I'm not good now.Thank you in advance for your help.

Regards.

Outcomes