I want to configure one of the general purpose timers to use an externally generated PWM as reference input. Timer shall keep incrementing on every PWM pulse and should reset with an interrupt to the SW on reaching a configurable threshold. This way I can count the PWM pulses indefinitely.
I could not find any timer which I can use for this purpose in the S32K344 reference manual. Any help is appreciated.
Hello @HarshBolia,
The Emios_Icu driver can be used in EDGE_COUNTER mode with an overflow notification.
Find all the available APIs of the driver in Emios_Icu_Ip.h
Regards,
Daniel