FTM Capture failure

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

FTM Capture failure

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

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

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

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

1,494 次查看
wutengyouxi555
Contributor II

thank for your help ...

0 项奖励
回复