Associate
July 1, 2019
Question
STM32F030F4P6 ADC with DMA strange values after some time
- July 1, 2019
- 4 replies
- 1607 views
Hello,
I have problem using ADC with DMA (I obtained the same problem using Interrupts). I have stable VDDA=3.3 V from LF33. On ADC channel 9 (PB1) I have voltage from 0 to 3.3V from potentiometer. When I set for example 0.35 V(ADC value about 400) and I leave whole circuit after some time (few minutes) MCU reach statement that ADC value is lower than 250 (about 0,2V), but voltage is still 0,35V. Could you help me? Maybe my code is wrong, because I'm beginner with STM32.
In attachemnt is my code. (low_level=250, high_level=650).
Thanks in advance for your replies.
