|
-
Aug 3rd, 2006, 12:01 PM
#4
Re: how to reduce timer interval to 1 micro second
Martin, that's accurate to about 1ms - about 1,000 times what cheongcy needs.
cheongcy, driving a fast stepper in software, even in assembly, is a bit iffy, and the printer port, unless you're driving a stepper driver with it, isn't the hardware you want connected to a stepper motor (not enough current source, too susceptible to being blown by switching transients).
A hardware oscillator driving a stepper driver is more accurate, even if you use a 4 MHz oscillator (a cheap resonator) and /4 as the fast frequency, and pretty simple to implement. Just switch to a couple of cascaded /1,000 stages (or whatever you need) for the slow stepping. Your software is then as simple as turning one bit on or off.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|