🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #60236

Re: programowe sterowanie LPT

#60236
From: Jacek Czerwinski
Date: Thu, 27 Oct 2005 06:47
16 lines
1512 bytes
Thu, 27 Oct 2005 05:30:58 +0000 (UTC), na pl.comp.os.linux.programowanie,
Adam Wysocki napisał(a):

> Spinacz biurowy, xhk <nara@spam.pl>!
> 
>> - potrzebuje programu do sterowania LPT,
>> - czy jest mozliwe wysterowanie np. nozki 3 nóżki danych na logiczna
>> jedynke/zero i utrzymywanie tego stanu ?
> 
> maska = 1 << numerbitu; (0=pin2, 1=pin3 itd. do 7=pin9)
> outb (inb(port) | maska, port);    /* jedynka */
> outb (inb(port) & ~maska, port);   /* zero */
> 

Maska na portach może ale nie musi chodzić, 'inb' może dawać efekt uboczny
na konkretnym chipie IO i referencji C nic do tego.
Technical Details
Message-ID: <mq0uj7b2ooh.52zfjyz5d4ek.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <cnkbjmles3o7.a3yah69uenrt$.dlg@40tude.net> <gophi.pcolp.1130391058@news.chmurka.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Jacek Czerwinski <x@y.z.pl>
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: programowe sterowanie LPT
Date: Thu, 27 Oct 2005 08:47:09 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 16
Message-ID: <mq0uj7b2ooh.52zfjyz5d4ek.dlg@40tude.net>
References: <cnkbjmles3o7.a3yah69uenrt$.dlg@40tude.net> <gophi.pcolp.1130391058@news.chmurka.net>
NNTP-Posting-Host: bwe199.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1130395613 15535 83.29.228.199 (27 Oct 2005 06:46:53 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 27 Oct 2005 06:46:53 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.1pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit