S32K146 FTM Signal measurement

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

S32K146 FTM Signal measurement

Jump to solution
908 Views
ShaoTianzhi
Contributor II

Hello: 

I have some doubts about the ftm_signal_measurement_s32k146 project in the S32K146 Example Project. What is the meaning of the return value of the FTM_DRV_GetInputCaptureMeasurement function called in main.c of this project? Is it the number of rising edges of the input terminal during the period from the start of monitoring to the call of the function?

0 Kudos
Reply
1 Solution
847 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@ShaoTianzhi

please refer to this post.

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

The ICU module can be used to capture each rising or falling edge of the input waveform and record the timestamp of the trigger edge, which can be used to calculate the period and frequency of the waveform, etc.

View solution in original post

0 Kudos
Reply
3 Replies
887 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@ShaoTianzhi

sorry for the later reply,

no, return the time stamps when the rising edge event was captured.

Senlent_0-1699604764153.png

 

0 Kudos
Reply
878 Views
ShaoTianzhi
Contributor II

Thank you for your answer ,I've got it.

Is this the return value in Detect edge signal mode? What is the difference between Measure input signal mode and Detect edge signal mode?

ShaoTianzhi_0-1699607134197.png

If I want to obtain the pulse frequency in real time according to the monitoring method shown in the figure, and count each pulse, can it be achieved using IC capture?

ShaoTianzhi_1-1699607797319.png

 

0 Kudos
Reply
848 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@ShaoTianzhi

please refer to this post.

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

The ICU module can be used to capture each rising or falling edge of the input waveform and record the timestamp of the trigger edge, which can be used to calculate the period and frequency of the waveform, etc.

0 Kudos
Reply