Skip to main content
Associate II
July 13, 2026
Question

Linking an advanced/basic timer with HRTIM in STM32G4 series

  • July 13, 2026
  • 2 replies
  • 57 views

I am using 4 HRTIM PWM outputs(CHA1/A2 and CHB1/B2) on the STM32G474 MCU to control a full-bridge converter. I want a delayed version of the PWM on CH1A using another advanced/basic timer. Can the HRTIM generate a software interrupt which can be used by another advanced/basic timer for a delayed/phase shifted PWM output? I do NOT want to use another timer from the HRTIM module as they are reserved for other purposes.
 

 

2 replies

Sud_09Author
Associate II
July 13, 2026

I am seeing sections named ‘Roll-over Event’ and ‘Repetition Counter’ in the HRTIM section inside the reference manual. Are these the ones to be used to generate PWM with another timer?

 

MM..1
Super User
July 13, 2026

Primary questinn is how you require precise delay values.?

Secondary in real dont exist internal trigger out from HRTIM to TIM, but exist DMA request , that can be used to load new CCR in basic TIM. But here you lost HR from pulse start and width.

Same situation exist if you use ETR pin and conect externaly CHA1, resolution on basic timer is used for edge detect etc.

More info in RM or HRTIM cookbook - Application note