2024-02-12 02:26 AM
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.
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
2024-02-12 02:55 PM
Enable the timer in CubeMX, enable the internal clock for it, set the appropriate frequency, and set the TRGO parameters. These will work.
In your code, start the timer using HAL_TIM_Base_Start prior to your DAC initialization.