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!
Servo/Stepper motor control module
Moderators: David Barker, Jerry Messina