Interrupt-driven stepper motor module posted alongside my earlier (non-interrupt) effort:
http://www.sfcompiler.co.uk/wiki/pmwiki ... epperMotor
Seems to work fine for me but I'd be extremely grateful if one of the giant brains who frequent this forum could have a quick look and let me know if the context save in the interrupt is okay or if I need to do more. To my mind it should be okay (the interrupt only does some word additions, subtractions and comparisons and doesn't call any functions or subs) but my understanding of this stuff is less than complete.
Cheers,
Andy.
Interrupt Driven Stepper Module
Moderators: David Barker, Jerry Messina
Cheers Steve. It seemed a shame to waste all those lovely processor cycles just sitting in DelaymS loops...
I really like the modular approach of Swordfish and it's made even better by the fact that users can so easily contribute their own libraries and routines. The modules and code snippets posted by users such as yourself have not only taught me loads but I think they really add value to what is already a top-notch product.
Andy.
I really like the modular approach of Swordfish and it's made even better by the fact that users can so easily contribute their own libraries and routines. The modules and code snippets posted by users such as yourself have not only taught me loads but I think they really add value to what is already a top-notch product.
Andy.