How to detect two overlapping PWM signals (1Hz + 100Hz) on a single pin (S32K144)?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to detect two overlapping PWM signals (1Hz + 100Hz) on a single pin (S32K144)?

737 次查看
Vaibhav_Gilbile
Contributor I

Hello,

I’m working with the S32K144 and trying to detect two overlapping PWM signals on a single digital input pin:

  • One signal is at 1 Hz

  • The other is at 100 Hz

The two PWM signals are electrically mixed on the same pin (i.e., both are driving the same wire at the same time).

Attached pictures of frequency detection with 1hz(image1) and 100hz(image2).

 

We are considering interrupt based digital pin to capture Period(High Time + Low time) and frequency is calculated by 1/period.

Is there any recommended approach using NXP’s peripherals (FTM, LPIT, etc.) or external filtering for this scenario without modifying the hardware.

Any help, suggestions, or hardware guidance would be appreciated!

Thanks in advance.

0 项奖励
回复
1 回复

702 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

For input capture with FTM there are the following features (47.2.1 Features section of reference manual):

_Leo__0-1745260342837.png

You should develop a custom algorithm based in these features to address input PWM overlapped measurement.

We do not have other particular feature for input PWM overlapped. Sorry for the inconvenient.

Hope it helps you.

Have a nice day!

0 项奖励
回复