PWM interrupt in imxrt1062

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

PWM interrupt in imxrt1062

714件の閲覧回数
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 件の賞賛
返信
1 返信

699件の閲覧回数
_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 件の賞賛
返信