I want to drive a bipolar stepper motor through an L298N, with the logic coming directly from a PIC. My prototype works fine, however, I need to use 6 ports for the motor (2 for ENA/ENB, and 4 for IN1/IN2/IN3/IN4).
I want to elimate the need to dirve the enable pins, therefore requiring only 4 ports to drive the motor. I have come up with a couple of ideas, and would like other peoples opinions as well.
1) Tie the ENA/ENB directly to Vss via a 10K resistor
2) Tie the ENA/ENB to IN1/IN2 and IN3/IN4 (respectively) through diodes
3) Use TTL OR gates, with inputs from IN1/IN2 and IN3/IN4 and outputs to ENA/ENB(repectively).
I suspect the best alternative to be #3, but...
Thanks - Marty