cancel
Showing results for 
Search instead for 
Did you mean: 

STM32W108 temperature sensor problem

przemek
Associate II
Posted on December 19, 2012 at 05:31

Hi guys, 

I've got a problem when trying to read the temperature from STLM20 on-board sensor. I'm using the STLM20_ReadTemp() function and when it reaches the line 

while (!( ADC->ISR & ADC_IT_DMABF)); 

it never goes out of that loop. In call the STLM20_Init(() function in the beginning, I think that ADC->ISR doesn't change it's value when it should (should there be an interrupt?)

I'm using MB950 board with STM32W108CB

Thanks for your help.

#stm32w108 #stm32w-rfckit #stlm
1 REPLY 1
aimen
Associate
Posted on January 03, 2013 at 16:34

Hi przemek,

Could you please follow the temperature sensor example in ''STM32W108 standard library firmware'' V1.0.1''. You will find that STLM20_ReadTemp() is used after some configurations in main.c

Let me know if you need more details.

With regards,

matarus