S32K148 FTM Input Capture to Measure Period and the ON time

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

S32K148 FTM Input Capture to Measure Period and the ON time

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

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