FTM Capture failure

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

FTM Capture failure

757 Views
wutengyouxi555
Contributor II

i porting my corrert software to anothoer hardware .

the capture moudle was worked on the original hardware,but it used FTM3_Ch4.

i change the channl to FTM3_Ch7 on the new hardware , and it just cannot work cause the callback function has failed. Program will not pause even i play a breakpoint in the callback function.

the configuration arr as  follows(i have implement the callback function):

wutengyouxi555_0-1686292469796.png

is there something that i have forgot to changed?

 

 

0 Kudos
Reply
4 Replies

739 Views
Senlent
NXP TechSupport
NXP TechSupport

please check:

1. Whether the interrupt is enabled and whether the interrupt number is correct
2. Whether the configuration of the PIN foot has been modified

0 Kudos
Reply

677 Views
wutengyouxi555
Contributor II

sorry I was on a business trip last week

The pins are already configured correctly

There is no problem with interruptions eitherk

i check the program again , the problem maybe:

i configure FTM3-6 as PWM output , and configure FTM3_7 as input capture. The configuration that follows covers the configuration that comes before.

Could one FTM be configured in two modes? And how to do.

0 Kudos
Reply

673 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@wutengyouxi555

Sorry, it does not support the same FTM instance to be configured as PWM or ICU at the same time.

0 Kudos
Reply

666 Views
wutengyouxi555
Contributor II

thank for your help ...

0 Kudos
Reply