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
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