FTM input capture BUG

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

FTM input capture BUG

850件の閲覧回数
assangeye
Contributor I

Hi,

Recently,I work on S32K144,and i use P&E to generate code.I find that when I use FTM0,FTM1 to input capture,i just open channel 1 in FTM0 and i can accurate calculate the duty cycle.However ,if i open more channel,the input capture fuction looks like having some problem,it can't calculate rasing time.

So in my opinion,it can only use one channel to capture input signal at same time .Does it right? Or there are some  special setting i need to be careful?

0 件の賞賛
4 返答(返信)

681件の閲覧回数
razva_tilimpea
NXP Employee
NXP Employee

Hi,

Could you provide mode details about FTM configuration, how do you use it in your application?

Best regards,

Razvan

0 件の賞賛

681件の閲覧回数
assangeye
Contributor I

pastedImage_2.png

pastedImage_3.png

pastedImage_4.png

Hi,

I am sorry ,my computer was be encrypt. Some code was generated by P&E,if it is convenient for you ,please help me .

0 件の賞賛

681件の閲覧回数
razva_tilimpea
NXP Employee
NXP Employee

Hi,

Your code just store the timestamp of 2 consecutive edges, no mather if it's rising or falling edge.

What is the expected behavior and what goes wrong?

Best regards,

Razvan

0 件の賞賛

681件の閲覧回数
assangeye
Contributor I

Hi,

Thank you for your answer,i find something wrong with my code,and modify it.Now it can work .

Best regards,

Kai

0 件の賞賛