🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #771

Polling joystick port, low-level parallel I/O

#771
From: Randy Spangler
Date: Sun, 17 Jun 1990 05:47
21 lines
1549 bytes
On the current thread about sampling and sample playback, how fast can you
reliably poll the joystick ports and parallel port?  The joystick ports 
would seem to be ideal for sampling, since the two 8-bit analog inputs
would either give 8-bit stereo or 16-bit mono if you could figure out how
to split a signal into an upper and lower magnitude.  8-bit mono at 16KHz
would be plenty good, though.  

I can handle wiring circuitry to clip input (so I don't burn out my game 
port) but I have no idea what the fastest way to poll the game port is.  
I'm sure it's machine dependent - I have a 16MHz 386 (for now :-).

Also, is there a fast way to output data to the parallel port, which won't
be caught by the MODE program (which redirects my printer output to COM1)?

Explanations, references, and/or source code would all be helpful.

-- 
 --------------------------------------------------------------------------
|    Randy Spangler                    |    The less things change, the    |
|    rspangle@jarthur.claremont.edu    |    more they remain the same      |
 --------------------------------------------------------------------------
Technical Details
Message-ID: <7500@jarthur.Claremont.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!samsung!usc!jarthur!rspangle

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!samsung!usc!jarthur!rspangle
From: rspangle@jarthur.Claremont.EDU (Randy Spangler)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Polling joystick port, low-level parallel I/O
Message-ID: <7500@jarthur.Claremont.EDU>
Date: 17 Jun 90 05:47:06 GMT
Organization: Harvey Mudd College, Claremont, CA 91711
Lines: 21