High-resolution timer (HRTIM)
26.3.9
External event filtering in timing units
Once conditioned, the 10 external events are available for all timing units.
They can be used directly and are active as soon as the timing unit counter is enabled
(TxCEN bit set).
They can also be filtered to have an action limited in time, usually related to the counting
period. Two operations can be performed:
•
blanking, to mask external events during a defined time period,
•
windowing, to enable external events only during a defined time period.
These modes are enabled using HRTIM_EExFLTR[3:0] bits in the HRTIM_EEFxR1 and
HRTIM_EEFxR2 registers. Each of the 5 timer A..F timing units has its own programmable
filter settings for the 10 external events.
Blanking mode
In event blanking mode (see
given blanking period. This is convenient, for instance, to avoid a current limit to trip on
switching noise at the beginning of a PWM period. This mode is active for EExFLTR[3:0]
bitfield values ranging from 0001 to 1100.
Ext./int. event
Blanking
In event postpone mode, the external event is not taken into account immediately but is
memorized (latched) and generated as soon as the blanking period is completed, as shown
on
Figure
HRTIM_EEFxR2 registers.
Ext./int. event
Blanking
850/2083
Figure
Figure 216. Event blanking mode
217. This mode is enabled by setting EExLTCH bit in HRTIM_EEFxR1 and
Figure 217. Event postpone mode
Latch
216), the external event is ignored if it happens during a
External event
Blanking source
Resulting event
External event
Blanking source
Resulting event
RM0440 Rev 1
RM0440
MS32294V1
MS32295V1
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?