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

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

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

Jump to solution
1,453 Views
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 Kudos
Reply
1 Solution
1,440 Views
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

View solution in original post

2 Replies
1,441 Views
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,432 Views
Ashwini_vyankatesh
Contributor I

Thanks Daniel!

Its working now  

0 Kudos
Reply