Skip to main content
Explorer
May 5, 2025
Question

HRTIM controlling a PSFB

  • May 5, 2025
  • 1 reply
  • 376 views

Hi

 

I have a VERY large driver for a PSFB that unfortunately suffer from a flaw.

The idea is that the master timer is reporgrammed with period and CMP1 CMP2 and CMP3 and that the timerD and timerE uses these 4 points for the crossbar. Everything works correctly except for how the new values are taken into account.

The timers have preload enabled so, I expected that I could use LL_HRTIM_SuspendUpdate and   LL_HRTIM_ResumeUpdate after i have changed the prescaler, period  and Compare 1,2 and 3. But that does nothing. I need to actually use LL_HRTIM_ForceUpdate which obviously sometimes will then break my waveform as the transfer from the shaowregisters are not done during an rollover.

Does someone have a working example of LL_HRTIM_SuspendUpdate/LL_HRTIM_ResumeUpdate that they are willing to share or does someone know why this behaviour occur?

I am using stm32G474 and HAL/LL 1.6.1

Best regards

Martin

 

    This topic has been closed for replies.

    1 reply

    Explorer
    May 6, 2025

    For anyone who get the same symptoms:

    Setting LL_HRTIM_TIM_SetUpdateTrig to LL_HRTIM_UPDATETRIG_NONE will get you these symptoms, which is pretty obvious. Changeing it to LL_HRTIM_UPDATETRIG_REPETITION or LL_HRTIM_UPDATETRIG_RESET will get the desired behaviour

     

    // Martin