Servo/Stepper motor control module

Coding and general discussion relating to user created compiler modules

Moderators: David Barker, Jerry Messina

Post Reply
skartalov
Posts: 37
Joined: Fri Apr 09, 2010 10:50 am
Location: BULGARIA

Servo/Stepper motor control module

Post by skartalov » Tue Apr 20, 2010 12:52 pm

Hi,

Can someone please help me by writing a module to control stepper/servo controller by STEP/DIR standart.

This will use 2 pins on any port as output for the step and dir signals.

The module must accept 3 varialbles, - first (longword) is the number of pulses that will go on the step pin, and the second variable is BIT (the direction of rotation), the third variable is the "Speed" (byte), i.e. the frequency of the step output.

The routine must use timer itrerrupts, so the MCU can do also other job at the time.

This should be easy for someone, but not me! :-)

Post Reply