S32K148 FTM Input Capture to Measure Period and the ON time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K148 FTM Input Capture to Measure Period and the ON time

331 Views
Pratap_Metharamitta
Contributor III

Hello,

We are using S32K148 in our project, in that we need Period Measurement between two consecutive edges and the time measurement taken for the pulse to remain ON state to calculate the Encoder position.

image.png

image.png

image.png

I am using FTM3_CH4, our input clock is 48MHz and FTM Clock is 3MH. 

Please share any example project or driver code to measure both Period and ON time for every rising edge.

Regards, Pratap

 
Pratap Metharamitta
0 Kudos
Reply
1 Reply

312 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Pratap_Metharamitta

Please take a look at this post which may help you.

https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1-Calculate-the-motor-speed-based-on-the-FTM/ta...

 

0 Kudos
Reply