cancel
Showing results for 
Search instead for 
Did you mean: 

ADC with DMA Half Conversion complete and Conversion complete callback not aligned.

mehmetcanbalci
Associate III

Hello,

i set stm32f103c8 adc1 at 12mhz . Main clock is 8Mhz * 9 = 72Mhz.

i use ADC_SAMPLETIME_7CYCLES_5 so 12.5 + 7.5 = 20cycle = 600ksps.

i set dma circular continuous mode with 1000 element buffer.

i can receive half and conversion complete interrupts , conversion complete interrupt frequency is very precisely 600hz ,however half conversion complete interrupt frequency is has such pattern ; 600hz ---> 598.6hz ---> 601.3hz ---> 600hz ---> 598.6hz .... so on.

what could be reason ?

1 REPLY 1

Hard to say without more detail and investigation. Rather an old part​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..