🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3394

driver timer resolution

#3394
From: Paul Elliott
Date: Fri, 08 Jan 1993 19:51
22 lines
1269 bytes
I am trying to write an OS/2 driver for the CALNET RANDOM NUMBER GENERATOR
RNG-810.

This is a realy simple device. Everytime you do a in byte on port 300
you get a random byte from the random number generator which the device
creates using Johnson noise. However, if you read the port faster than 25000
bytes per second or 40 usec between reads, the succesive bytes may not be
randomly independant.

Is there any way in OS/2 to wait such a small period of time in an IO 
driver without hogging the CPU?

I believe that you can define a timer interrupt handler, but
that interrupt occurs only 18.2 times per second. This would
slow down my driver too much. Is there any way to get increased
timer resolution?

By the way, does any one out there know what calnet's snail address is?
I wrote them reciently at their old address but my letter came back
to me.

Paul.Elliott@hrnowl.lonestar.org
Technical Details
Message-ID: <1993Jan08.195114.23866@hounix.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!jpunix!hounix!pelliott

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!jpunix!hounix!pelliott
From: pelliott@hounix.org (Paul Elliott)
Subject: driver timer resolution
Message-ID: <1993Jan08.195114.23866@hounix.org>
Organization: Houston UNIX Users Group (HOUNIX), Houston, TX
Date: Fri, 08 Jan 1993 19:51:14 GMT
Lines: 22