Skip to main content
mehmetcanbalci
Associate III
December 25, 2018
Question

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

  • December 25, 2018
  • 1 reply
  • 755 views

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 ?

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 26, 2018

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

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