First page Back Continue Last page Overview Graphics
Laboratory 5.4 : Stepper Motor
Add direction and speed controls to the stepper motor program you wrote in Lab 4.
The program should read the switches at PORTT ($ae) to determine the stepper motor control requested.
- If switches connected to bits 0 and 1 are high the motor should not turn.
- If SW0 is low the stepper motor shaft should be turned clockwise.
- If SW1 is low the stepper motor shaft should be turned counter-clockwise.