UART_FLAG_TXE is not set while a lots of ADC interrupt are issued.
Hi,
I am using 4 ADC channel to read MIC circuit with STM32G030C8T6
I am using ADC interrupt service to read ADCs
I set ADC as follow:
Clock Prescaler: Async clock mode divided by 32
Scan conversion Mode: enable
Continuous conversion mode: enable
ADC_regular conversion node: sampling time common1 : 160.5 cycle
....
In main while loop. I do the print the 4 ADC data thru UART1.
But, for a while print the ADC data, stuck into checking UART_FLAG_TXE function.
When I set clock prescaler to Async clock mode divided by 16 or 8, faster UART TX stuck than 32 mode.
When I reduce the sampling time to smaller than 160.5 cycle, TX stuck become faster
When I set slow ADC processing, only 1 minute is good and then stuck
If no use printf, No problem.
What is problem?
Thank you