Newsgroups: comp.robotics
Path: brunix!cat.cis.Brown.EDU!agate!howland.reston.ans.net!vixen.cso.uiuc.edu!newsfeed.ksu.ksu.edu!moe.ksu.ksu.edu!osuunx.ucc.okstate.edu!olesun!gcouger
From: gcouger@olesun.okstate.edu (Gordon Couger)
Subject: Re: C and the printer port?
Message-ID: <CtCJG7.7MG@osuunx.ucc.okstate.edu>
Sender: news@osuunx.ucc.okstate.edu (USENET News System)
Nntp-Posting-Host: olesun.agen.okstate.edu
Organization: Biosystems and Agricultural Engineering at Oklahoma State Univ.
References: <1994Jul17.153810.18312@news.vanderbilt.edu> <30gok2$h5m@search01.news.aol.com> <CtCAGC.Cx2@armory.com>
Date: Fri, 22 Jul 1994 14:40:54 GMT
Lines: 23

In article <CtCAGC.Cx2@armory.com>,
Richard Steven Walz <rstevew@armory.com> wrote:
>In article <30gok2$h5m@search01.news.aol.com>, Hgxing <hgxing@aol.com> wrote:
>>In article <1994Jul17.153810.18312@news.vanderbilt.edu>,
>>HEAGYWS@ctrvax.Vanderbilt.Edu () writes:
>>
>>From C, you use the "outport(xxx, xx)" command.  Get an IBM PC interface
>>book for exact addresses and bit assignments.  You actually have on the
>>order of 16 output bits available (and maybe 7 input bits).
With most printer ports you can use the data pins as inputs by writting
1's to them bringing them high and pulling them low with logic. I have
done this with a lot of different cards and it has always worked and
has never hurt a card. "Your milage may vary".

Gordon


                             Gordon Couger                            
                             Biosystems & Agricultural Engineering              
                             Oklahoma State University                         
                             114 Ag Hall, Stillwater, OK  74074                 
 gcouger@olesun.agen.okstate.edu 405-744-9763 day 624-2855 evenings 
    I do not speak for my employer
