High-resolution timer (HRTIM)
Note:
In triggered half mode, the compare2 register is controlled by hardware and writing it has no
effect. However the written value is stored in the preload register and becomes active on the
update event following the exit of this mode.
Push-pull mode
This mode primarily aims at driving converters using push-pull topologies. It also needs to
be enabled when the delayed idle protection is required, typically for resonant converters
(refer to
The push-pull mode is enabled by setting PSHPLL bit in the HRTIM_TIMxCR register.
It applies the signals generated by the crossbar to output 1 and output 2 alternatively, on the
period basis, maintaining the other output to its inactive state. The redirection rate (push-pull
frequency) is defined by the timer's period event, as shown on
period is twice the timer counting period.
Out 1 (from crosssbar)
Roll-over
events
Out 2 (from crosssbar)
The push-pull mode is available when the timer operates in continuous mode and in single-
shot mode. It is necessary to disable the timer to stop a push-pull operation and to reset the
counter before re-enabling it.
To get a correct behavior, the event selected as source of the counter reset must be also
selected for setting (or resetting) the output. It must set the output if the output is set on
period, else it must reset it. If it is not done, the output switching from its inactive period to its
active period may be incorrect (may unexpectedly rise or may unexpectedly stay low).
The signal shape is defined using HRTIM_SETxyR and HRTIM_RSTxyR for both outputs. It
is necessary to have HRTIM_SETx1R = HRTIM_SETx2R and HRTIM_RSTx1R =
HRTIM_RSTx2R to have both outputs with identical waveforms and to achieve a balanced
operation. Still, it is possible to have different programming on both outputs for other uses.
The CPPSAT status bit in HRTIM_TIMxISR indicates on which output the signal is currently
active. CPPSTAT is reset when the push-pull mode is disabled.
In the example given on
•
Output set on period event
•
Output reset on compare 1 match event
828/2083
Section 26.3.10: Delayed
Figure 192. Push-pull mode block diagram
Push-Pull
logic
Figure
protection).
Inactive
0
1
0
Inactive
1
193, the timer internal waveform is defined as follows:
RM0440 Rev 1
Figure
192. The push-pull
0
Out 1
1
PSHPLL
1
Out 2
0
RM0440
To the
output
stage
MS32268V1
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?
Questions and answers