Pulse Counter with S32K344

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Pulse Counter with S32K344

1,243 次查看
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.

标记 (2)
0 项奖励
回复
1 回复

1,222 次查看
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 项奖励
回复