Quad Unipoler stepper driver, in progress.
davidsaunders
Posts: 1,559
About an hour ago I decided to redo my stepper driver, to use PASM and just worry about how to control one stepper, then implement simple Ping Pong Pang Pow multitasking to get it up to four.
This has not been tested yet, as I need to rewrite my simple command interpreter to put in values for use with the new layout, as was easiest from PASM.
For my use this will be tied to an RPi using a simple clocked bi-directional three wire serial implementation based on that used by the Game Boy. In my use there is a command interpreter to take commands from a program running on the RPi.
The unimplemented 5th task will end up updating the current position information in hub ram for access by spin, as well as sending back to whatever else may want to know about it.
Here is where it is, while untested, if you add code to put useful values into the variables used by the PASM driver it should work so long as I did not miss something obvious (this is a quickly thrown together this afternoon, as a better way).
It is in next post, this one turned out to be to long with the code
Also note that the comment at the beginning does mention the command language that I use for my command interpreter.
As long as I did not miss something obvious it should be useful. Do not have much time this afternoon.
This has not been tested yet, as I need to rewrite my simple command interpreter to put in values for use with the new layout, as was easiest from PASM.
For my use this will be tied to an RPi using a simple clocked bi-directional three wire serial implementation based on that used by the Game Boy. In my use there is a command interpreter to take commands from a program running on the RPi.
The unimplemented 5th task will end up updating the current position information in hub ram for access by spin, as well as sending back to whatever else may want to know about it.
Here is where it is, while untested, if you add code to put useful values into the variables used by the PASM driver it should work so long as I did not miss something obvious (this is a quickly thrown together this afternoon, as a better way).
It is in next post, this one turned out to be to long with the code
Also note that the comment at the beginning does mention the command language that I use for my command interpreter.
As long as I did not miss something obvious it should be useful. Do not have much time this afternoon.
Comments