CSE 466 Lab2

Goals

  1. Learn about stepper motors
  2. Learn about the use of internal timers and the timer interrupt system

Instructions

  1. Our motor driver will need a power supply of 7 volts in addition to the normal 5 volts used to power the 89c55. Turn on the bench supply and turn the current dial up mid way. Then set the voltage to 7volts.
  2. Setup the circuit in figure 11 of the MC3479 data sheet.
    Don't worry about the diode between Vm and Vd; Use a wire instead. Don't hook up Phase A (pin 11). You want half step mode with OIC being tied to Gnd. Also, the bias/set pin should go through a resistor to Gnd. You will need to find the correct value of this resistor to limit the output current to 350mA. NOTE: Vm is 7 volts.
    All this should leave you with two pins to control from the 89c55, one controls the speed of the motor, the other controls the direction. We will be providing two 20 ohm resistors to hook in series with each motor coil.
  3. For this lab we'll need two switches hooked to the 89c55. These will be used to control the operation of the motor.
  4. The first goal is to get the motor to turn. To do this, write an assembly program that controls the clock line of the MC3479. We've provided a template for a 89c55 assembly program here. Each cycle, the motor should move one half step. To get a decent speed you need to pulse it between 10 and 300 times a second. In the last lab you used a delay loop to get the right timing. This time, your motor control program should be interrupt driven, using one of the internal timers of the 89C55. Stepper motors are interesting devices. Here is some info on stepper motors.
  5. After you get the first part working, you need to implement the switches as follows:

Turn-In (Neatness Counts)

Last update: 10/9/2001 3:15 PM