How to control stepper motor speed in emu8086?

Click For Summary

Discussion Overview

The discussion revolves around controlling a stepper motor using emu8086, focusing on runtime input for speed control and the necessary hardware interfacing. It includes aspects of programming, interfacing with I/O ports, and the application in a treadmill development context.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant inquires about controlling a stepper motor in emu8086, specifying runtime inputs for different speeds and a stop command.
  • Another participant discusses the I/O ports and pin usage for driving the stepper motor, recalling experiences with timing and frequency control on older hardware.
  • A participant mentions that the question is related to treadmill development, expressing difficulty in understanding coding and asking about I/O port assignments.
  • There is a clarification that while I/O port meanings can be assigned, emu8086 is an emulator requiring a hardware controller for actual motor control, with additional components needed for proper functioning.
  • One participant reveals that they do not need to control a real motor but rather write code to simulate voltage output at the port, asking about connecting LEDs and input acceptance in their interfacing circuit.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the hardware requirements and coding aspects, with no clear consensus on the best approach to control the stepper motor or the specifics of interfacing.

Contextual Notes

There are limitations regarding the assumptions about hardware requirements, the specifics of I/O port assignments, and the nature of the interfacing circuit, which remain unresolved.

Who May Find This Useful

This discussion may be useful for individuals interested in programming for hardware control, specifically in the context of emulators, stepper motors, and interfacing circuits.

yukari1310
Messages
16
Reaction score
0
how can we control stepper motor in emu8086?
we have to take input AT RUNTIME that if we enter 0 it will stop the stepper motor, 1 for slow speed, 2 for medium and 3 for fast speed.
 
Physics news on Phys.org
What I/O port and how many pins are being used to drive the stepper motor? I recall doing this on an old PC in MSDOS, where it wasn't an issue to hook into the ticker interrupt and read the ticker count which ran at 1.19318 mhz (838 nano seconds per count) to get a very precise delay routine. 4 of the printer port pins were cycled through 4 phases to advance the stepper motor at various frequencies.
 
This question is actually intended for a treadmill development which include programming (speed change and incline functions) and memory interface. I have hard time understanding a coding let alone writing one. Do we assign the meaning of I/O port ourselves?
 
yukari1310 said:
Do we assign the meaning of I/O port ourselves?
Yes, but emu8086 is an emulator, not a piece of hardware. Some type of hardware controller is needed, and the I/O ports will need to be specified. The I/O port pinouts will have to go to yet another controller that converts the pinout signals into the voltage and current required to drive the treadmill motors and also the displays. Other stuff like a power supply and sensors (to prevent excessive movment of the incline) would also be needed.
 
I found out that I do not need to control a real motor but write a coding that will give voltage at the output port instead. I am to build an interfacing circuit. How do I connect LEDs (output port) to it? And where/how should I accept the input?
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
6K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
12
Views
3K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
8K