simple state machine that can drive a bipolar step motor implemented in verilog.
The module has two inputs:
When it is rising the motor steps forward or backwards based on input dir.
Direction of step motor Logic High for backward and Logic Low for forward.
output name | coil pin |
---|---|
motor[3] | A+ |
motor[2] | A- |
motor[1] | B+ |
motor[0] | B- |