Please review program
MacGeek117
Posts: 747
This is one of my first assembly programs, and I need someone to review it to see if it would work.(I don't have the motor or components to make the driver circuit.)
RoboGeek
P.S. The driver circuit is based on the L297.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"
Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
RoboGeek
P.S. The driver circuit is based on the L297.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"
Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
Comments
Graham
I think the L297 has two inputs per motor and needs a 2bit pattern?
01
11
10
00 and start again,
or something like that. I did not recognize this in your code, but perhaps it's my fault.
I remember, that I have seen a stepper driver program somewhere here in the forum.
Christof
Why did you use assembly instead of spin ?
In most cases spin is able to controll the L297 fine, except if you've sttings of a very high steps per revolution, and need a very high speed in the axis.
Sorry Christof.
Also the L297, only needs a single clock pulse to get the motor rotate, a fixed logic "one" in the "CW/CCW" pin to get it reverse, enable controll, and a fixed logic state to the "HALF/FULL" pin, if you want to change to micro step...Why do you talk about two bits pattern ?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"
Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
·
I had the L298 in mind. Is a L297 needed in addition?
Christof
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"
Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
·