OpenBCM V1.13 (Linux)

Packet Radio Mailbox

DB0FHN

[JN59NK Nuernberg]

 Login: GUEST





  
PA2AGA > TCPDIG   05.09.96 05:46l 149 Lines 6117 Bytes #-10897 (0) @ EU
BID : TCP_96_181A
Read: DG7DAH GUEST
Subj: TCP-Group Digest 96/181A
Path: DB0AAB<DB0KCP<DB0ZKA<DB0LX<DB0RBS<DB0SEL<DB0ZDF<DB0AIS<DB0NDK<DB0ACH<
      DB0ACC<PI8DRS<PI8DAZ<PI8GCB<PI8MBQ<PI8VNW
Sent: 960905/0043Z @:PI8VNW.#ZH2.NLD.EU #:61758 [Hoek v Holland] FBB5.15c
From: PA2AGA@PI8VNW.#ZH2.NLD.EU
To  : TCPDIG@EU

Received: from pa2aga by pi1hvh with SMTP
	id AA17004 ; Thu, 05 Sep 96 00:23:07 UTC
Received: from pa2aga by pa2aga (NET/Mac 2.3.61/7.1) with SMTP
	id AA00004156 ; Wed, 04 Sep 96 19:14:07 MET
Received: from pa2aga-10 by pa2aga with SMTP
	id AA00004139 ; Wed, 04 Sep 96 19:07:45 MET
Received: from pa2aga-10 by pa2aga-10 (NET/Mac 2.3.61/7.1) with SMTP
	id AA00005429 ; Wed, 04 Sep 96 19:07:40 MET
Date: Wed, 04 Sep 96 18:11:11 MET
Message-Id: <tcp_96_181A>
From: pa2aga
To: tcp_broadcast@pa2aga-10
Subject: TCP-Group Digest 96/181A
X-BBS-Msg-Type: B

TCP-Group Digest            Wed,  4 Sep 96       Volume 96 : Issue  181

Today's Topics:
               bi-di parallel port programming (2 msgs)
                          Parallel Port IP?

Send Replies or notes for publication to: <TCP-Group@UCSD.Edu>.
Subscription requests to <TCP-Group-REQUEST@UCSD.Edu>.
Problems you can't solve otherwise to brian@ucsd.edu.

Archives of past issues of the TCP-Group Digest are available
(by FTP only) from ftp.UCSD.Edu in directory "mailarchives".

We trust that readers are intelligent enough to realize that all text
herein consists of personal comments and does not represent the official
policies or positions of any party.  Your mileage may vary.  So there.
----------------------------------------------------------------------

Date: Tue, 3 Sep 1996 10:11:57 -0800 (PDT)
From: Glenn Elmore <glenne@hpsadr2.sr.hp.com>
Subject: bi-di parallel port programming

  Can anyone here point me to some C source code for bi-directional
parallel port programming for the PC environment?  I'm trying to find
ways of doing something interactive and interesting from JNOS/HTTP like
steer the realtime camera.  I thought that using the parallel port would
be useful for this as well as other activities.

  I'm also interested in driving the SPI interface on a variety of
devices and thought/hoped that someone might have written some code
using the parallel port to do this.

  Any pointers gratefully received.


Glenn Elmore n6gn

amateur IP:     glenn@SantaRosa.ampr.org
Internet:       glenne@sr.hp.com 

|--------------- N6GN's Higher Speed Packet WWW Page -------------------|
|                                                                       |
|       http://www.tapr.org/~n6gn/index.html                            |
|                                                                       |
|---------------       N6GN's  Shack Camera          -------------------|
|                                                                       |
|       http://n6gn.ampr.org//index.htm                                 |
|                                                                       |
|-----------------------------------------------------------------------|

------------------------------

Date: Wed, 04 Sep 96 04:35:00 -0000
From: mikebw@bilow.bilow.uu.ids.net (Mike Bilow)
Subject: bi-di parallel port programming

Glenn Elmore wrote in a message to Mike Bilow:

 GE>   Can anyone here point me to some C source code for
 GE> bi-directional parallel port programming for the PC
 GE> environment?  I'm trying to find ways of doing something
 GE> interactive and interesting from JNOS/HTTP like steer the
 GE> realtime camera.  I thought that using the parallel port
 GE> would be useful for this as well as other activities.

 GE>   I'm also interested in driving the SPI interface on a
 GE> variety of devices and thought/hoped that someone might have
 GE> written some code using the parallel port to do this.

This file may help.  It is from the Fidonet public domain C Snippets archive,
maintained by Bob Stout.  I'll see if I have anything more complete around.

The source code for the Crynwr PLIP driver is available, but is ASM.  There is
PLIP support in Linux, but it relies on much of the rest of Linux for device
control.  I don't know of any standalone C implementation.
 
-- Mike

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

                   PC Parallel Port Mini-FAQ

By Kris Heidenstrom (kheidens@actrix.gen.nz), revision 3, 950331

1. INTRO

This is a four printed page mini-FAQ with the information essential
for programming the PC parallel port.  Many subjects are not covered
in detail.  View on an 80-column screen with 8-column tab stops.
Comments and suggestions to kheidenstrom@actrix.gen.nz.

A parallel port links software to the real world.  To software, the
parallel port is three 8-bit registers occupying three consecutive
addresses in the I/O space.  To hardware, the port is a female 25-pin
D-sub connector, carrying twelve latched outputs from the computer,
accepting five inputs into the computer, with eight ground lines.

The normal function of the port is to transfer data to a printer
through the eight data pins, using the remaining signals as flow
control and miscellaneous controls and indications.

The original port was implemented with TTL/LS logic.  Modern ports are
implemented in an ASIC or a combined serial/parallel port chip, but
are backward compatible.  Some modern ports are bidirectional.

2. BIOS LPT PORT TABLE

A parallel port is identified by its I/O base address, and also by its
LPT port number.  The BIOS power-on self-test checks specific I/O
addresses for the presence of a parallel port, and builds a table of
I/O addresses in the low memory BIOS data area, starting at address
0040:0008 (or 0000:0408).

This table contains up to three 16-bit words.  Each entry is the I/O
base address of a parallel port.  The first word is the I/O base
address of LPT1, the second is LPT2, etc.  If less than three ports
were found, the remaining entries in the table are zero.  DOS, and
the BIOS printer functions (accessed via int 17h), use this table to
translate an LPT port number to a physical port at a certain address.

The addresses are checked in a specific order, and addresses are put
into the table as they are found, so the table will never have gaps.
A particular I/O address does not necessarily always equate to the


To be continued in digest: tcp_96_181B





Read previous mail | Read next mail


 07.07.2026 06:32:47lGo back Go up