RM0440
Windowing mode
In event windowing mode, the event is taken into account only if it occurs within a given time
window, otherwise it is ignored. This mode is active for EExFLTR[3:0] ranging from 1101 to
1111.
Ext./int. event
Windowing
EExLTCH bit in EEFxR1 and EEFxR2 registers allows to latch the signal, if set to 1: in this
case, an event is accepted if it occurs during the window but is delayed at the end of it.
•
If EExLTCH bit is reset and the signal occurs during the window, it is passed through
directly.
•
If EExLTCH bit is reset and no signal occurs, a timeout event is generated at the end of
the window.
A use case of the windowing mode is to filter synchronization signals. The timeout
generation allows to force a default synchronization event, when the expected
synchronization event is lacking (for instance during a converter start-up).
There are 3 sources for each external event windowing, coded as follows:
•
1101 and 1110: the windowing lasts from the counter reset to the compare match
(respectively compare 2 and compare 3). In up/down mode (UDM bit set to 1), the
counter reset event is defined as per the ROM[1:0] bit setting.
•
1111: the windowing is related to another timing unit and lasts from its counter reset to
its compare 2 match. The source is described as TIMWIN in the bit description and is
given in
window starting from timer A counter reset to timer A compare 2.
Table 218. Windowing signals mapping per timer (EEFLTR[3:0] = 1111)
Destination
TIMWIN (source)
Note:
The timeout event generation is not supported if the external event is programmed in fast
mode.
Figure 221
level sensitivities, as well as depending on EExLTCH bit setting. Timeout events are
specifically mentioned for clarity reasons.
Figure 220. Event windowing mode
Output
Table
218. As an example, the external events in timer B can be filtered by a
Timer A
Timer B
CMP2
and
Figure 222
present how the events are generated for the various edge and
RM0440 Rev 1
External event
Blanking source
Resulting event
Timer B
Timer C
Timer A
Timer D
CMP2
CMP2
High-resolution timer (HRTIM)
Timer D
Timer E
Timer C
Timer F
CMP2
CMP2
MS32298V1
Timer F
Timer E
CMP2
853/2083
1040
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?
Questions and answers