PWM interrupt in imxrt1062

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

PWM interrupt in imxrt1062

339 Views
Ananth96
Contributor I

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

0 Kudos
Reply
1 Reply

324 Views
_Leo_
NXP TechSupport
NXP TechSupport

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.

_Leo__0-1705525013674.png

Hope it helps you.

Have a nice day!

0 Kudos
Reply