Input capture on PTC14(FTM1_Ch2) and PTE4 (FTM2_CH2) not working for s32k144

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

Input capture on PTC14(FTM1_Ch2) and PTE4 (FTM2_CH2) not working for s32k144

跳至解决方案
1,443 次查看
Ashwini_vyankatesh
Contributor I

Hi,

I am using input capture on PTC14 (FTM1_CH2) using S32k144 EVB. But the output measured frequency its showing is 0Hz always. Same its happening for input capture on PTE4(FTM2_CH2). 

Interesting thing is it works (measure correct input frequency) for PTB3 (FTM1_CH0)and PTC5(FTM2_CH0).

I am attaching my code. Let me know if I am missing something.  

Thanks in advance.

Regards

-Ashwini

0 项奖励
回复
1 解答
1,430 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Ashwini,

It seems like the PTC14 and PTE4 pin are not routed to the FTM modules.

I added them like this:

danielmartynek_0-1625068296859.png

Please double-check the pin configuration and update the generated code.

 

Thanks,

Daniel

在原帖中查看解决方案

2 回复数
1,431 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Ashwini,

It seems like the PTC14 and PTE4 pin are not routed to the FTM modules.

I added them like this:

danielmartynek_0-1625068296859.png

Please double-check the pin configuration and update the generated code.

 

Thanks,

Daniel

1,422 次查看
Ashwini_vyankatesh
Contributor I

Thanks Daniel!

Its working now  

0 项奖励
回复