Skip to main content
s61331
Associate II
January 5, 2017
Question

PWM Timer after Motor Stop

  • January 5, 2017
  • 1 reply
  • 580 views
Posted on January 05, 2017 at 13:09

Hello,

have a little Problem with the Timer (TIM1) on my IHM001

I want to brake the motor down to zero and then i want to align the motor to different positions like a stepper motor.

The Braking down to zero works, the Motor is stopped and the Timer Outputs are all low.

How can i get the Timer working to genereate a PWM on the motorphases without Spinning?

This topic has been closed for replies.

1 reply

s61331
s61331Author
Associate II
January 10, 2017
Posted on January 10, 2017 at 14:40

I'll need to enable the MOE bit to enable PWM outputs.

TIM_CtrlPWMOutputs(TIM1, ENABLE);