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?
Hi,
Could you provide mode details about FTM configuration, how do you use it in your application?
Best regards,
Razvan
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 .
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
Hi,
Thank you for your answer,i find something wrong with my code,and modify it.Now it can work .
Best regards,
Kai