Tutorial 5
Tutorial 5
EEE/ECE/INSTR F241
Tutorial 5
Design an 8086-based I/O interface to control a stepper motor, where the step angle is
determined by a potentiometer. You can set the potentiometer to rotate up to 5 revolutions using
this method. The motor should be rotating are rate of 10rmp and has a step angle of
2degrees/step.
Given Specifications:
1. The stepper motor operates in full-step mode, requiring four control signals to energize its
windings. It is mapped to IO address 200.
Step Coil A Coil B Coil C Coil D
1 1 0 1 0
2 0 1 1 0
3 0 1 0 1
4 1 0 0 1
2. The potentiometer is interfaced using an ADC (Analog to Digital Converter) at port number 300.
The ADC outputs a digital value (16-bit) corresponding to the potentiometer’s position. ADC
reference voltage is 5V.
3. The motor should move clockwise or counterclockwise based on user input through a slide
switch mapped to port address 80.
4. Motor starts one the user presses a push button interfaced to port address 90
Sequence of Operations:
User sets the potentiometer position
Sets the slide switch for setting direction
Presses the push button
8086 reads data from the ADC and direction
Rotates the motor