AnsweredAssumed Answered

Dual Interleaved ADC triggered by Timer with DMA

Question asked by smrtkai on Jan 26, 2016
Latest reply on Jan 27, 2016 by smrtkai

I am using an stm32f4-discovery board and would like to acquire an reflected ultrasound signal with 4 MSPS. To generate the ultrasound signal two shifted pulse signals at 1 MHz are needed. The sampling frequency has to be exactly four times the pulse frequency. Therefore the ADCs need to be triggered by the timer generating pulse signals. Additionally the data should be acquired blockwise using DMA.

In the following figure I have depicted my setup.

I tried to configure this with STM32CubeMX but unfortunately I do not know how to configure the trigger of the ADC.

TIM1 is configured to have an update frequency of 4MHz, the 1MHz signals are generated with two channels with "Output Compare", "Toogle on Match" and a "Counter Period" of 1. That's how the shifted pulse signals at 1 MHz are generated.

How do I have to configure the ADC's to get triggered by TIM1? I haven't found the right solution yet.

Thank you for your help in advance.