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? Geert Dave VanHorn wrote: > > > > >Would this be the way to go or are there other possibilities? > > It works nicely. Remember to ramp down as well, you can't stop a motor > instantly unless it's running very slowly. > > You may find that you need more timers, but you can share timers to a > degree. > I use T0 (because it's relatively dumb) for my 1mS opsys tick, that runs a > bunch of Dec-to-zero timers for different tasks. You might be able to do a > similar thing, depending on your other needs.
Message
Re: [AVR-Chat] Stepper motor control
2004-11-27 by Geert De Pecker
Attachments
- No local attachments were found for this message.