cancel
Showing results for 
Search instead for 
Did you mean: 

ADC DMA/programmed start/stop by timer compare?

Lohi
Associate III

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! 

 

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

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

  

 

View solution in original post

2 REPLIES 2
KnarfB
Principal III

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

  

 

Lohi
Associate III

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!