FTM Capture failure

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FTM Capture failure

758件の閲覧回数
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 返答(返信)

740件の閲覧回数
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 件の賞賛
返信

678件の閲覧回数
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 件の賞賛
返信

674件の閲覧回数
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 件の賞賛
返信

667件の閲覧回数
wutengyouxi555
Contributor II

thank for your help ...

0 件の賞賛
返信