🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #146

Re: looking for information on programming parallel ports

#146
From: Snyder
Date: Sun, 12 Apr 1992 02:42
24 lines
1795 bytes
In article <1992Apr03.124319.652@vort.uucp> mike@vort.uucp (Mike Nemeth) writes:
>is it possible to program the parallel port(s) in such a way that an interrupt
>is generated when a character is output? can the parallel port also be used
>as an input device, and if so, is an interrupt generated when a character
>arrives?
>
>any book recommendations/reviews that deal extensively with serial/parallel
>i/o are welcome. thanx in advance...
>
>-- 
>The Barbi Twins (TM) are the GNU Emacs of women.
>
>Mike Nemeth           VORT Computing          mike@vort.cuc.ab.ca

The only way that a character is ouput to either serial or parallel port
is by a software interrupt routine.  When data arrives arrives at either
port, an irq is generated, forcing an int.  The irq depends on your system,
but the software routine is usually in one place.  I don't have the book 
in front of me, so I'll get back to you on the specifics.  In the worst case,
I am totally wrong, and you will have to poll the parallel port for input.

----------------------------------------------------------
This note prepared by Lowell "I'm never obnoxious" Snyder.
----------------------------------------------------------
Technical Details
Message-ID: <4131@ucsbcsl.ucsb.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!ucselx!network.ucsd.edu!ucsbcsl!olive!lsnyder
References: <1992Apr03.124319.652@vort.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!ucselx!network.ucsd.edu!ucsbcsl!olive!lsnyder
From: lsnyder@olive.ucsb.edu (Snyder)
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.msdos.programmer
Subject: Re: looking for information on programming parallel ports
Summary: We have the technology
Message-ID: <4131@ucsbcsl.ucsb.edu>
Date: 12 Apr 92 02:42:24 GMT
References: <1992Apr03.124319.652@vort.uucp>
Sender: root@ucsbcsl.ucsb.edu
Followup-To: alt.msdos.programmer
Distribution: na
Organization: University of California, Santa Barbara
Lines: 24