🎓 BookMCQ
← Back to 15. Applications of Microprocessor

📝 8085 Microprocessor Based Stepper Motor Control (16 MCQs)

Digital Pulse Sequences for Stepper Motor Positioning

An 8085-based stepper motor controller produces a sequence of digital output patterns that energize the motor windings in a defined order. Each valid pattern advances the rotor by a fixed mechanical step. By controlling the sequence, number of steps and rate of output changes, the processor can determine motor direction, angular movement and rotational speed.

Winding Excitation and the Role of a Motor Driver

The 8255 can provide the logic signals required to select winding phases, but its output pins cannot directly supply the current needed by motor coils. A suitable driver, such as a transistor array or ULN2003 for compatible unipolar loads, switches the winding current. The motor supply and logic supply must be arranged appropriately.

Changing Rotor Position Through Ordered Phase Activation

The controller sends successive phase patterns at regular intervals. Reversing their order reverses the direction of rotation. Increasing the delay between patterns reduces speed, while decreasing it increases speed within the motor's operating limits. The rotor advances only when the winding sequence and electrical drive provide the required magnetic-field movement.

Example of a Four-Phase Wave-Drive Sequence

For a compatible four-phase unipolar motor, a single-phase-on sequence may be 0001, 0010, 0100 and 1000. Repeating the sequence advances the motor in one direction, while reversing it produces opposite rotation. The exact bit-to-winding assignment depends on the motor wiring and driver connections.

Position, Speed and Torque Control Through Software

The processor controls the number of output steps to determine the commanded angular movement. Step frequency determines rotational speed, while the selected excitation pattern affects available torque and current consumption. Limit switches or position sensors can provide feedback for homing and end-position detection when open-loop step counting alone is insufficient.

Distinguishing Step Sequence from Motor Power Control

'The 8255 supplies motor-coil current directly' is incorrect because an external driver is required. 'Reversing the sequence changes only speed' is incorrect because it reverses rotation direction. 'Every motor uses the same phase pattern' is incorrect because winding arrangement and motor type determine the valid excitation sequence.

Phase Patterns and Step Calculations in Examination Questions

Identify the winding sequence and trace the resulting direction of rotation. Calculate the number of steps from the commanded movement and the motor step angle. Distinguish one-phase-on from two-phase-on drive, and explain how step frequency, output drivers and winding current affect speed and torque.

Stepper Motor and Phase-Control Terms

  • Stepper Motor - Moves through discrete angular steps.
  • Phase - Independently energized motor winding.
  • Step Angle - Angular movement per step.
  • Wave Drive - Energizes one phase at a time.
  • ULN2003 - Darlington-array motor driver.
  • Step Frequency - Number of steps per second.
3
Easy
10
Medium
3
Hard

📝 All 8085 Microprocessor Based Stepper Motor Control MCQs

Q1. A microprocessor 8085 controls a 4‑phase stepper motor through port 01H. To rotate clockwise one step every 200 ms, which binary pattern should be output first?

A.1 ✅
B.10
C.100
D.1000
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The correct first pattern is \1000\ because a typical full‑step sequence for a 4‑phase motor is 1000 → 0100 → 0010 → 0001, producing clockwise motion when the sequence is applied in that order. Option A, B, and C represent later steps in the same sequence, so using them first would start the motor at a different position or cause reverse rotation. Timing each pattern for 200 ms yields the required speed.

Q2. When designing a real‑time clock on an 8085 kit, why is it essential to initialize registers A and B to either 00 H or 01 H before calling the display routine?

A.To set the display brightness
B.To select address or data field for display ✅
C.To enable interrupts
D.To reset the program counter
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Register A and B act as control flags for the monitor routine: 00 H tells it to display the address field, while 01 H selects the data field. This choice determines which memory locations (hours/minutes vs. seconds) appear on the seven‑segment displays. Options A, C, and D describe unrelated functions; they do not affect the monitor program’s display mode.

Q3. Which of the following best explains why a stepper motor driver circuit often includes a debounce circuit for the input push‑buttons?

A.Debounce removes noise from the motor windings
B.Debounce ensures each button press generates only one step command ✅
C.Debounce speeds up the motor response
D.Debounce reduces power consumption
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Debounce circuits filter out rapid, unintended transitions caused by mechanical bounce, guaranteeing that a single physical press produces exactly one logical step command. This prevents missed steps or double‑stepping. Options A and C misinterpret debounce’s purpose, and D is unrelated; power consumption is managed elsewhere.

Q4. What is the hexadecimal address of the memory location that stores the seconds value in the described real‑time clock design?

A.2050 H
B.2055 H
C.2052 H ✅
D.2053 H
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The seconds are displayed using the two data‑field seven‑segment displays, which correspond to memory locations 2052 H and 2053 H. Therefore the correct address for the lower‑order seconds digit is 2052 H. Options A and B refer to the hour/minute fields, while D points to the higher‑order seconds digit, not the one asked.

Q5. A student wants to program the 8085 to generate a half‑step sequence for a bipolar stepper motor. Which sequence of bits on port 01H correctly represents the first four half‑steps?

A.1010, 0110, 0101, 1001
B.1000, 0100, 0010, 0001 ✅
C.1100, 0110, 0011, 1001
D.1111, 0000, 1111, 0000
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Half‑step operation alternates between energizing one coil and both coils. The pattern 1010 (both coils on) → 0110 (second coil) → 0101 (both) → 1001 (first coil) follows the standard half‑step order, producing smoother motion. Option B shows a full‑step sequence, C mixes invalid intermediate states, and D toggles all‑on/off, which would cause torque loss and jitter.

Q6. If the real‑time clock updates every second, how many timer overflows must the 8085’s 555‑timer generate to achieve a 1 Hz interrupt, given a crystal frequency of 3.579 MHz and a prescaler of 12?

A.3,579,000/12=298,2503,579,000 / 12 = 298,250 overflows ✅
B.3,579,000/(12×256)=1,1653,579,000 / (12 \times 256) = 1,165 overflows
C.3,579,000/(12×1024)=2913,579,000 / (12 \times 1024) = 291 overflows
D.3,579,000/(12×65536)=4.53,579,000 / (12 \times 65536) = 4.5 overflows
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The 8085 uses the 555 in mode where each overflow counts 256 clock cycles. Dividing the crystal frequency (3.579 MHz) by the prescaler (12) gives 298,250 Hz. Further dividing by 256 yields approximately 1,165 overflows to reach one second. Option A omits the 256 factor, C uses 1024, and D uses 65,536, leading to far slower rates.

Q7. During stepper motor control, a programmer notices that the motor stalls when the step frequency exceeds 500 steps/s. Which hardware modification is most likely to resolve the issue?

A.Increase the supply voltage to the motor driver
B.Add a larger capacitor to the power supply ✅
C.Replace the 8085 with a faster microcontroller
D.Reduce the step pulse width
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Increasing the driver voltage raises the available torque, allowing the motor to keep up with higher step rates. Adding capacitance (B) smooths supply but does not increase torque; swapping the CPU (C) does not change motor characteristics; reducing pulse width (D) actually makes the motor work harder, worsening stalls.

Q8. Why does the monitor program at location 05D0 H display memory contents from 2050 H to 2055 H on the address and data fields?

A.Because those locations store the clock’s time digits ✅
B.Because they hold the stepper motor control registers
C.Because they contain the program’s entry point
D.Because they are reserved for interrupt vectors
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The real‑time clock uses six memory bytes: four for hours/minutes (address field) and two for seconds (data field). The monitor routine reads exactly these addresses to show the current time on the seven‑segment displays. Options B and D refer to unrelated system areas, while C misidentifies the purpose of those locations.

Q9. A design requires the stepper motor to reverse direction after 30 seconds of continuous clockwise rotation. Which algorithmic approach correctly implements this behavior?

A.Count seconds, then toggle a direction flag after 30 seconds
B.Use a hardware flip‑flop that changes state every 30 seconds ✅
C.Interrupt the motor driver every 30 seconds without checking time
D.Hard‑wire the motor to run in both directions simultaneously
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Counting elapsed seconds in software and flipping a direction flag after reaching 30 seconds provides precise control and allows the same routine to handle both directions. A hardware flip‑flop (B) could work but lacks the flexibility to adjust the interval. Options C and D either ignore the timing condition or produce undefined motion.

Q10. If the 8085 program writes the value 0x3C to port 00H, what is the binary pattern sent to the stepper motor driver, and how many coils will be energized?

A.00111100, four coils
B.00111100, two coils ✅
C.00111100, three coils
D.00111100, one coil
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: 0x3C equals binary 00111100. In a 4‑phase driver, each bit controls one coil; bits 2, 3, 4, and 5 are high, energizing two opposite coils (bits 2 & 4 or 3 & 5 depending on wiring). Thus two coils are active, providing torque while the other two remain off. Options A and C miscount the active bits, and D suggests only one coil is energized.

Q11. A student observes that after power‑up, the seven‑segment display shows “00:00:00” but the motor does not move. Which step is most likely missing from the initialization sequence?

A.Loading the step sequence into RAM ✅
B.Enabling the port output latch
C.Setting the direction flag to clockwise
D.Starting the timer interrupt
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The motor’s motion direction is determined by a flag that the control routine checks before issuing step pulses. If the flag remains undefined, the routine may skip stepping, leaving the motor idle. Loading the sequence (A) or enabling the latch (B) are necessary but would still produce motion once the flag is set. Starting the timer (D) is essential for timing but does not define direction.

Q12. Which of the following statements best describes why a microprocessor‑based stepper motor controller often uses a lookup table for step patterns?

A.It reduces the number of required I/O pins ✅
B.It allows easy change of stepping mode without altering code
C.It speeds up execution by avoiding arithmetic calculations
D.It eliminates the need for external memory
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A lookup table stores predefined bit patterns for full‑step, half‑step, or microstepping modes, enabling the programmer to switch modes by selecting a different table entry. This flexibility is achieved without rewriting the stepping algorithm. Option A is unrelated to pattern storage, C misstates the purpose (tables replace calculation, not speed), and D is inaccurate because the table itself resides in internal memory.

Q13. During testing, the motor skips steps when the clock frequency is set to 2 MHz. Which software change will most effectively prevent missed steps?

A.Decrease the delay between step pulses ✅
B.Increase the number of NOP instructions after each pulse
C.Raise the priority of the step‑generation interrupt
D.Lower the stack pointer value
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Raising the interrupt priority ensures the step‑generation routine pre‑empts other tasks, guaranteeing timely pulse output even at higher clock speeds. Simply decreasing delays (A) may lead to faster stepping than the motor can handle, and adding NOPs (B) further slows the routine. Changing the stack pointer (D) does not affect timing.

Q14. If a stepper motor requires a minimum pulse width of 5 µs for reliable operation, which instruction sequence on the 8085 (clocked at 3 MHz) satisfies this requirement?

A.MVI A,00 H; NOP; NOP; NOP; NOP; NOP
B.MVI A,00 H; NOP; NOP
C.MVI A,00 H; NOP; NOP; NOP ✅
D.MVI A,00 H; NOP
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: At 3 MHz, each machine cycle is 1/3 MHz=0.333 µs1/3\,\text{MHz}=0.333 µs. Five NOPs consume 5×0.333 µs≈1.67 µs5 \times 0.333 µs ≈ 1.67 µs, insufficient. Six NOPs give 2 µs2 µs. To reach 5 µs, we need at least 15 NOPs, but option C with three NOPs is the closest that meets the minimum after accounting for the MVI instruction (which takes 4 cycles). Thus option C provides the necessary pulse width. Options A and B are either too long or too short, and D is far below the requirement.

Q15. A design calls for the motor to run at 120 rpm. Given a 200‑step motor, what is the required step frequency in steps per second?

A.120×200/60=400120 \times 200 / 60 = 400 steps/s ✅
B.120/200=0.6120 / 200 = 0.6 steps/s
C.200/120=1.67200 / 120 = 1.67 steps/s
D.120×60/200=36120 \times 60 / 200 = 36 steps/s
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: To convert rpm to steps per second, multiply revolutions per minute by steps per revolution, then divide by 60 seconds per minute: 120 rpm×200 steps/rev/60=400 steps/s120 \text{rpm} \times 200 \text{steps/rev} / 60 = 400 \text{steps/s}. The other options incorrectly apply division or omit the conversion factor, leading to unrealistic speeds.

Q16. Why is it important to clear the display using the monitor program at location 0347 H before updating the time on the seven‑segment displays?

A.To prevent residual segments from showing previous digits ✅
B.To reset the microprocessor’s program counter
C.To initialize the timer interrupt vector
D.To calibrate the stepper motor driver
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The clear routine turns off all segments, ensuring that when new digits are written, no leftover segments from the previous value remain lit. This avoids visual artifacts such as partially displayed numbers. Options B and C describe unrelated initialization steps, while D is unrelated to display handling.

🔗 Related Topics (MCQs)