PWM interrupt in imxrt1062
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am able to generate pwm pulses with what ever parameters required for any modules. I am using this for giving pulses to a stepper motor driver where I need to count the number of pwm pulses given so that I can track the angle the motor rotated.
The method I thought was to count the number of pwm pulses generated. Is there a way to get interrupt triggered for every pwm pulses made by a pwm module. This ISR i need to use for other functionality also apart from counting pulses.
Thanks
Ananth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you so much for your interest in our products and for using our community.
With the eFlexPWM is possible to generate interrupts with the generation of PWM signals when VAL2 and VAL3 compare values are meet in channel A, such values indicates the turn-on edge and the turn-off edge if the signal. The same applies for VAL4 and VAL5 in channel B.
Hope it helps you.
Have a nice day!
