RM0440
Figure 229. Resynchronized timer update (TAU=1 in HRTIM_TIMBCR)
TIMA Counter
HRTIM_CHx1
TIMA update
RSYNCU=0
TIMB
update
RSYNCU=1
TIMB Counter
HRTIM_CHy1
MUDIS and TxUDIS bits in the HRTIM_CR1 register allow to temporarily disable the transfer
from preload to active registers, whatever the selected update event. This allows to modify
several registers in multiple timers. The regular update event takes place once these bits
are reset.
MUDIS and TxUDIS bits are all grouped in the same register. This allows the update of
multiple timers (not necessarily synchronized) to be disabled and resumed simultaneously.
The following example is a practical use case. A first power converter is controlled with the
master, TIMB and TIMC. TIMB and TIMC must be updated simultaneously with the master
timer repetition event. A second converter works in parallel with TIMA, TIMD and TIME, and
TIMD, TIME must be updated with TIMA repetition event.
First converter
In HRTIM_MCR, MREPU bit is set: the update occurs at the end of the master timer counter
repetition period. In HRTIM_TIMBCR and HRTIM_TIMCCR, MSTU bits are set to have
TIMB and TIMC timers updated simultaneously with the master timer.
When the power converter set-point has to be adjusted by software, MUDIS, TBUDIS and
TCUDIS bits of the HRTIM_CR register must be set prior to write accessing registers to
update the values (for instance the compare values). From this time on, any hardware
update request is ignored and the preload registers can be accessed without any risk to
have them transferred into the active registers. Once the software processing is over,
MUDIS, TBUDIS and TCUDIS bits must be reset. The transfer from preload to active
registers is done as soon as the master repetition event occurs.
Second converter
In HRTIM_TIMACR, TAREPU bit is set: the update occurs at the end of the timer A counter
repetition period. In HRTIM_TIMDCR and HRTIM_TIMECR, TAU bits are set to have TIMD
and TIME timers updated simultaneously with timer A.
RM0440 Rev 1
High-resolution timer (HRTIM)
MSv47432V2
865/2083
1040
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?
Questions and answers