Hello Sir..
I am Using L297 and L298 Stepper Drive with Bi-polar Stepper Drive.
I just gave the 1 to the direction pin but the motor changes its direction unconditionally. Some time it goes clockwise direction and sometime it goes anticlockwise direction. I just feeling helpless nothing comes in my mind.
I check the circuit many times it seems all okay. even I changed the L297 IC But still Problem remain continue.
I Develop the code by changing the ramp speed in clock form low to high too and drive the motor without Load but still the problem remain continue.
Im using Bi-Polar Stepper Motor and running load is not so heavy. So run it safer and cooler Im running it below 1A.
The circuit parameters are
Vref pin no 15= 0.45 V
Current sensing resistance = 0.5 ohm ( 1 ohm 2 watt , 2 resistance )
Control Pin no 11= 1
Osc pin no 16= Coupled with 22k and 3.3 nF capacitor
Enable and Reset connected together to the output of 74HCT14N
Same way Direction and Clock pins are also connected with 74HCT14N. I also attached pull up resistance to the input side of 74hct which is connected to the output of the optocoupler el817 for the isolation to the microcontroller.
Im great thankfull to you