Subject:
|
Re: Running stepper loop at specified (varying) frequency?
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Fri, 29 Oct 1999 16:46:15 GMT
|
Original-From:
|
Gary Livick <glivick@^StopSpam^pacbell.net>
|
Viewed:
|
1085 times
|
| |
| |
Greg:
You can run assembly from within Interactive C, so if IC isn't fast enough for
you, you can build in something that is. However, IC will execute pretty quickly
in terms of how fast steppers run, so it could be that IC will work for you
as-is?
If it won't, and you don't need to change any faster than 1000 times per second,
you can inbed your assembly routine in the system interrupt which runs at 1000
Hz. This is very easy to do, and there are examples of how to do it in the IC
manual in the Handy Board Technical Reference under the "Docs" button on the
Handy Board site.
I'm sure people would like to know what you are doing, so please report back on
how it goes.
Good luck,
Gary Livick
Greg Starr wrote:
> I am hoping to control some stepper motors with the Handy Board; I will be
> wanting to control position vs time. Therefore I will be wanting to send
> out the step control waveforms at varying times (to modulate velocity).
> Can this be done from Interactive C? I am quite familiar with assembler
> language on the 6811, and the various timers on board.
>
> This seems similar to software-generated PWM, for which we use Output Compare.
>
> Anyway, any suggestions? Thanks.
>
> --greg
>
> *****************************************************************
> * Greg Starr, Professor *
> * Department of Mechanical Engineering ph (505) 277-6298 *
> * University of New Mexico, Albuquerque NM 87131 FAX 277-1571 *
> * email- starr@unm.edu WWW- http://www.me.unm.edu/~starr/ *
> *****************************************************************
|
|
Message is in Reply To:
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|