cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 TIM12 TRGO DAC DMA syncronization

Ersin Kuscu
Associate II

Hello,

I am trying to generate a pulse-triggered waveform continuously by using DAC and DMA in STM32H735RGV6. To do this, I have opened DAC OUT1 with the following configuration.

ErsinKuscu_0-1707732708749.png

After that, I set up the TIM12 with the following configuration and expected that the DAC output would be synchronous with the timer but I got nothing out of the DAC.

I am not sure about that I have done all the necessary things. I need help from the one who did the same thing or has the information on DAC synchronization with a timer pulse.

Could you help me on this?

Thanks

10 REPLIES 10

Enable the timer in CubeMX, enable the internal clock for it, set the appropriate frequency, and set the TRGO parameters. These will work.

TDK_0-1707778485587.png

In your code, start the timer using HAL_TIM_Base_Start prior to your DAC initialization.

 

If you feel a post has answered your question, please click "Accept as Solution".