measure PWM frequency

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

measure PWM frequency

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

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