AnsweredAssumed Answered

STM32f303k8 Unable to coordinate multimode ADC and UART transmission

Question asked by Aurora on Nov 21, 2016
Latest reply on Nov 22, 2016 by Aurora
Hello!

I am currently trying to program on the stm32f303k8 to be able to read ADC values from 2 channels, average the values, and transmit the values through UART while also periodically rotating 3 pins for mux and 3 pins for LEDs. I've tried using either continuous mode or the TIM2 timing for the ADC conversion from the STM32mxcube software. What I believe is happening is that the ADC buffer is being overwritten before they can be placed into a transmit buffer. Is there any way I can temporarily pause the continuous ADC sampling to be able to save the values before another trigger occurs? I've tried dropping the TIM2 down to 100 Hz, but it still doesn't solve the problem.

Thank you for your help!
 

Outcomes