At 07:02 PM 11/26/2004, Geert De Pecker wrote: >Dave, > >Am I correct in understanding that your dec-to-zero timers then >would trigger a pulse, and depending on the acc/decel you set the >timers to a greater/smaller count to influence the time between >the interrupt and thus the step pulse? Those are different, I use them for system events in the 2-200mS range. When I've done steppers, I do them with timer 1, and reload the time on each step according to my accel table. So to accelerate, index Z to point to the table, get the index, increment, store it back. Now mult the inc'd index by 2, and add to Z. Pull two bytes from where Z is pointing, and use that to reload T1.
Message
Re: [AVR-Chat] Stepper motor control
2004-11-26 by Dave VanHorn
Attachments
- No local attachments were found for this message.