High-resolution timer (HRTIM) RM0440
888/2126 RM0440 Rev 4
If a reset event is followed by a set event within the same prescaler clock cycle, the latest
event is considered.
27.3.8 External events global conditioning
The HRTIM timer can handle events not generated within the timer, referred to as “external
event”. These external events come from multiple sources, either on-chip or off-chip:
• built-in comparators,
• digital input pins (typically connected to off-chip comparators and zero-crossing
detectors),
• on-chip events for other peripheral (ADC’s analog watchdogs and general purpose
timer trigger outputs).
The external events conditioning circuitry allows to select the signal source for a given
channel (with a 4:1 multiplexer) and to convert it into an information that can be processed
by the crossbar unit (for instance, to have an output reset triggered by a falling edge
detection on an external event channel).
Up to 10 external event channels can be conditioned and are available simultaneously for
any of the 5 timers. This conditioning is common to all timers, since this is usually dictated
by external components (such as a zero-crossing detector) and environmental conditions
(typically the filter set-up is related to the applications noise level and signature). Figure 216
presents an overview of the conditioning logic for a single channel.