This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C2000 launchpad PWM pulse count

Hello...

I'm trying to drive stepper motor with C2000 Launchpad, and I'm using PWM1 A,B and PWM2 A,B to generate sequnence and controll current using PWM chopping...

That all works fine, and my stepper have smooth rotation, but now i need to count steps of my stepper...

What is the easiest way to count steps in open loop control???

Can I count PWM on PWM1A and set some counter and then trigger interrupt and turn off PWM???

Do you have some examples that will help me with that???

Thanks...