Freescale MC9S12DP256B - Closed-loop Stepper Motor Control System Using MC9S12DP256B

Discussion created by Guest on Oct 1, 2007
Latest reply on Dec 31, 2007 by Jim Donelson
Hello,

I'm a student doing my project where I'm going to use this microcontroller (MC9S12DP256B) to control a hybrid stepper motor in a closed-loop system. I'm still new in learning this microcontroller. Therefore, I have few questions stated below :

1. Can anyone provide me an example of C program to control a hybrid stepper motor in closed-loop
    system using PWM?
2. Incremental encoder will be used to feedback the position of the motor. As I know, decoder and
    counter will be needed to change the quadrature signal to digital position of the motor.
    Is MC9S12DP256B provides such capabilities? So that external decoder and counter can be
    eliminated.
3. To use it in motor control system, what else should I read from its datasheet?

I would be grateful for any reply. Thanks you.

best regards,
yj




Message Edited by yj on 2007-10-01 04:27 PM

Message Edited by yj on 2007-10-01 04:28 PM

Outcomes