Skip to main content
Graduate
May 3, 2026 5:27 PM UTC
Question

STM32G474 Timer X register update behaviour when CONT=0 with RETRIG=1

ivanmak_0-1777828615792.png

When TxRSTU and RETRIG are enabled with CONT disabled, will the timer still trigger a register update when it's counter reaches it's PER value? Since it says in the image below that the PER event is generated but says it re-starts from 0 when it's reset but doesn't mention roll-over, and the image above says it'll update registers on timer reset and rollover. Essentially what I'm asking is does it count as a roll-over when the timer reaches its period value when CONT=0? Since I need to know if it'll update it's registers at the end of it's period or no.

ivanmak_2-1777829127820.png

Any help is much appreciated :)

 

1 reply

ST_Sophia
ST Employee
Oct 21, 2026 9:39 AM UTC

Hello,

In single-shot retriggerable mode (CONT=0, RETRIG=1) on the STM32G4 HRTIM, when the counter reaches the PER value, it freezes at exactly that PER value and generates a PER event, then waits for a reset event to occur; only when the reset event is triggered, the counter restarts counting from 0x0000, meaning the counter holds at the PER value until explicitly reset rather than automatically rolling over or restarting.

Best regards.