🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.tech.pc
Article #69038

Re: Addressing individual serial port pins - possible?

#69038
From: John Beardmore
Date: Fri, 19 Apr 1996 00:00
34 lines
1564 bytes
In article <83h1fBA1z5cxEwpu@pzoptic.demon.co.uk>, Tim Carter
<tim@pzoptic.demon.co.uk> writes

>Friends
>what I would like to do is address individual serial port pins to run an
>external device from a c or pascal program.
>eg on program command "X" pin 1 will go high (?+5V) and on command "Y"
>pin 1 will go to ground.

It would give a positive or negative voltage rather than 0 and 5.

If you want 0 and 5 you could use the parallel port.


>Is this possible and if so how? If not serial port pins then any other
>port?

It could be as simple as using open() to get at LPT1 as a file then
doing writes to the file. Reading from the parallel port is a tad more
tricky. You may have to latch the data as it comes out of the port.

What exactly are you trying to do ?  What are you aiming to control ?


>If this is the wrong news group I sincerely apologise - please tell me
>where to go (nicely!).

Sci.electronics is really the place I guess but by all means discuss it
here.


J/.
-- 
John Beardmore
Technical Details
Message-ID: <bKHYZvA3fudxEwXn@wookie.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <83h1fBA1z5cxEwpu@pzoptic.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1036bc,6e54c45d9fbd1089
X-Google-Attributes: gid1036bc,public
From: John Beardmore <wookie@wookie.demon.co.uk>
Subject: Re: Addressing individual serial port pins - possible?
Date: 1996/04/19
Message-ID: <bKHYZvA3fudxEwXn@wookie.demon.co.uk>
X-Deja-AN: 148303315
distribution: world
x-nntp-posting-host: wookie.demon.co.uk
references: <83h1fBA1z5cxEwpu@pzoptic.demon.co.uk>
organization: the Saab graveyard !
mime-version: 1.0
newsgroups: demon.tech.pc