Dec 072017
C source code for a program that reads and writes the PC parallel port. Can easily be integrated to other programs. Use parallel port to switch an external TTL circuit, control lights, security system, etc. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
BITS.H | 203 | 110 | deflated |
PRINTER.C | 4224 | 1175 | deflated |
PRINTER.H | 890 | 398 | deflated |
READ.ME | 817 | 440 | deflated |
Download File INPRTC.ZIP Here
Contents of the READ.ME file
This is the source code for a program which read from OR
writes to the parallel port. The header file PRINTER.H
contains the base address for the parallel port and may
need to be changed depending on your system. Also, note
that this code will assemble as either the "read to"
program or the "write from" program depending on
which is "defined" in the code.
This code was taken from an old magazine a few years ago,
and unfortunetly I don't remember the author, so my
apologies to him/her.
Instructions: The "read from" program scans the parallel
port and updates the screen constantly. To quit the program,
simply hit any key.
The "write to" program initially puts all pins high that can be
put high. Hit the spacebar, and all pins that can be put low will
be put low. Hit enter to exit.
writes to the parallel port. The header file PRINTER.H
contains the base address for the parallel port and may
need to be changed depending on your system. Also, note
that this code will assemble as either the "read to"
program or the "write from" program depending on
which is "defined" in the code.
This code was taken from an old magazine a few years ago,
and unfortunetly I don't remember the author, so my
apologies to him/her.
Instructions: The "read from" program scans the parallel
port and updates the screen constantly. To quit the program,
simply hit any key.
The "write to" program initially puts all pins high that can be
put high. Hit the spacebar, and all pins that can be put low will
be put low. Hit enter to exit.
December 7, 2017
Add comments