This application note will describe how to drive a bipolar stepping motor with the PIC16F684. The PIC16F684 has an ideal set of peripherals for driving a stepper motor. These peripherals include two on-chip comparators and an Enhanced Capture Compare PWM (ECCP) module. The ECCP module is used to microstep the motor while the on-chip comparators limit the current in the windings of the motor.
Note: Please refer to AN907: Stepping Motor Fundamentals for information on the types of stepper motors, microstepping and current limiting techniques.