On 13 Oct 1993 02:20:28 GMT Nathan Stratton (nstn@quercus.gsfc.nasa.gov) wrote:
| Yes, I am using a complete 386 40 Mhz motherboard. I am running f83 and would
| like to use interups to recive the ping. How fast is the counter in a 386
| can it coung below 1 ms?? Can someone give me some rought code to do this.
| To send a ping load 768 with a 1, when the ping is recived it will set bit
| 1 of 772. I would like to thank all the people helping me on this I am 17
| and working on a robotics project. A lot of people dont want to bother to take
| the time to help.
I do not know a lot of the internals of f83, so I may not be of much
help. But I'll still ask a few questions.
Does it have multitasking? If not - you are all set. You don't need to
do interrupts, since you cannot do any work while waiting for the ping
anyway. Then you just disable the interrupts, start the timer, loop
for the ping to come, read the timer and enable the interrupts.
For the notes bellow I'll assume, that f83 has a mechanism for
multitasking. Then you can use interrupts to free the processor for
other work while waiting. For this you will need to read the
documentation on the PIC (Programable Interrupt Controller) on the
motherboard and the docs about the timer on the motherboard. I've
never worked with the timer, but I'll try dig out some sample code for
the PIC and the interrupt handling.
Meanwhiles, ansewr whether multitasking is available for f83 and
whether you found the docs abouth these chips.
If you want, you may want to send me mail, but using this forum may
have its good sides, since other people may have to say something.
--
Penio Penev x7423 (212)327-7423 (w) Internet: penev@venezia.rockefeller.edu
Disclaimer: All oppinions are mine.
|