Pulse Counter with S32K344

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pulse Counter with S32K344

287 Views
HarshBolia
Contributor I

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.

0 Kudos
Reply
1 Reply

266 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @HarshBolia,

The Emios_Icu driver can be used in EDGE_COUNTER mode with an overflow notification.

danielmartynek_0-1721738917210.png

 

Find all the available APIs of the driver in Emios_Icu_Ip.h

 

Regards,

Daniel

0 Kudos
Reply