delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/31/08:04:39

Date: Mon, 31 Jan 2000 09:30:25 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: pwillard <pwillard AT mediaone DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: I need to advice on timing...
In-Reply-To: <3T6l4.3418$i43.21114@typhoon.southeast.rr.com>
Message-ID: <Pine.SUN.3.91.1000131093002.29014G@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 31 Jan 2000, pwillard wrote:

>     I need to touch external hardware through the parallel port and so far,
> doing that hasn't been a problem.  Now, I need  to control the timing of
> signals sent to the external hardware.  I can sucessfully create a 50
> millisecond pulse using the 8259 clock stuff, but I have no clue how to
> generate a shorter than 1 millisecond signal.  I now need a 10, and a 50
> MICROSECOND signal and I'm not sure if I can.... IS it possible?

You could read the timer counter (it runs at sub-1 microsecond
resolution).

If that isn't good enough, I think your best bet would be to find a
loop that takes 50 microseconds to execute, and use that loop when you
need to toggle that bit.

In general, timing devices on a PC are just not reliable enough for
such short periods of time.  So you will need to experiment to find
the way that works for your application.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019