FTM input capture BUG

cancel
Showing results for 
Search instead for 
Did you mean: 

FTM input capture BUG

262 Views
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 Kudos
4 Replies

93 Views
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 Kudos

93 Views
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 Kudos

93 Views
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 Kudos

93 Views
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 Kudos