measure PWM frequency

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

measure PWM frequency

268 次查看
Othmane1
Contributor II

Hello i am using s32k142, and i am generating pwm using ftm timer.
Is there a possibility to calculate the number of rising edges that we output from the pin, can this be done in some way, because i will keep increase the pwm frequency so i can’t do it using a timer, that’s why i would prefer if we can calculate the number of pin’s own pulses that are generated

0 项奖励
回复
1 回复

248 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Othmane1

You may need to connect the output PIN to some input pins of the MCU through external lines.
1. Implement it through the GPIO port input interrupt and a timer
2. Implement it through the FTM input capture module

0 项奖励
回复