2025-02-26 7:43 AM
Hello everyone,
I have PWM signals configured in HRTIM, which can phase shift with HRTIM master compares. The problem I am encountering is that, even having preload activated, phase shift can load at diferents periods of the master. The problem probably is what appers in 27.3.23 of the reference manual.
"On the contrary, if the update event happens while the DMA transfer is on-going, only part of
the registers is loaded and the complete register update requires 2 consecutive update
events."
The solution I think is to activate the DMA Burst controller. "The update is done when the DMA burst transfer is completed". So i select the master compares registers to update all at once with the burst DMA controller. The problem is that phase shifts still happen in diferents moments. I don't know if i need to activate HRTIM master DMA channel. Now the DMA channel where i load the phase shift comapres is triggered with the ADC1 that is triggered with the ADC trigger 1 of HRTIM.
Is it possible to use burst mode to load compares of HRTIM master timers without directly enableing a DMA Channel with HRTIM master timer? And if so, how?
Kind regards,
Pau Moreno