Skip to main content
Associate II
June 25, 2024
Solved

ADC DMA/programmed start/stop by timer compare?

  • June 25, 2024
  • 2 replies
  • 1038 views

Hallo Gurus:

Newbie level question..'health issues' making me less efficient, and some pointers to get me started would help a lot.

I want to do a software start of ADC conversions with DMA into a circular buffer...when an external trigger (GPIO?) occurs, start a timer, and have timer compare stop the conversion...like an oscilloscope triggered capture with pre- and post-trigger capture?

Just pointers into the "RTFM", or app note/tutorial, if possible, not wanting to dump a design exercise on anyone! 

 

This topic has been closed for replies.
Best answer by KnarfB

This could be a starting point: STM32 CubeMX “Timer + ADC + DMA” – Bart Slinger

The timer could be started by a EXTI interrupt from the EXtI IRQ handler (software) or even by using ETR (external trigger) in the timer

hth

KnarfB

  

 

2 replies

KnarfB
KnarfBBest answer
Super User
June 25, 2024

This could be a starting point: STM32 CubeMX “Timer + ADC + DMA” – Bart Slinger

The timer could be started by a EXTI interrupt from the EXtI IRQ handler (software) or even by using ETR (external trigger) in the timer

hth

KnarfB

  

 

LohiAuthor
Associate II
June 25, 2024

Hello der Knarf! Danke, merçi, obrigado, thanks, shukran...(Trying to be "inclusive":smiling_face_with_halo:)

I'll have a look at this tomorrow (CEST here...) and will mark as solution, if my tired old brain can get around it 🥵

Just the kind of thing I'm looking for!