measure PWM frequency

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

measure PWM frequency

290 Views
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 Kudos
Reply
1 Reply

270 Views
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 Kudos
Reply