Electronic Design

  
Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


[Ideas For Design]
Programmable speed control targets stepper motors using 8254

Contributing Author  |   ED Online ID #6306  |   April 20, 1998


This design idea describes a basic speed controller for stepper motors implemented by programming a common 8254 programmable counter timer IC. The speed control of the stepper motor is achieved by varying the OFF time in its clock’s duty cycle. All three counters available in 8254 are used for this purpose.

Counter 0 is programmed in mode 2, which divides the system clock (supplied by a PC, microcontroller, or microprocessor system) connected to its clock input CLK1. The division factor can be calculated from the ON time requirement for the duty cycle of the selected stepper motor and then loaded into the counter register.

The time period TON of the OUT0 pulse only sets the ON time of the final output (see the figure). Counter 1 is programmed in mode 1 to function as a one-shot whose time period TOFF is set by loading the appropriate word pattern to the counter register. Counter 2 is programmed in mode 2 to generate the final clock output for the stepper motor by receiving the clock with a fixed period TON and triggering by the one-shot pulse with time period TOFF. The digital word written to Counter 0 will set the ON time, and the word written to Counter 1 will set the OFF time of the stepper clock.

This design provides a motor control output signal with user-programmable OFF times and ON times through simple programming of the 8254 IC. The duty cycle ON time TON is fixed for the stepper motor but will vary from type to type. The varying OFF time TOFF provides the motor speed control. The “Start” pulse will enable the Counter 0 and Counter 1.


Reprints   Printer-Friendly  Email this Article  RSS    Font Size   What's This?



POST YOUR COMMENTS HERE
Name:

Email:
Your Comments:

Enter the text from the image below


Please refresh the page if you have trouble reading this text.

Search Electronic Design
     
  
 
Email Newsletter
Sponsored By:
Electronic Design UPDATE provides readers with late-breaking news, opinions from industry experts, and timely technology stories. It's a unique opportunity to get your product message in front of engineers, engineering managers, and corporate managers while they're reading about critical information online.

Enter Email to Subscribe
  

Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources