
Getting Data from Serial Port using Comm Control
Hi,
You might want to use the parallel port, rather than the serial port for
this. The actual implementation is difficult to say without knowing more --
if you want to monitor two or three inputs, then you could use the serial
port (say, using MSCommx.RTSHolding to monitor RTS, and MSCommx.CDHolding to
monitor CD, etc.). You can monitor five bits on the parallel port, and
these could be multiplexed to actually obtain the status of hundreds of
inputs.
I suggest that you go to the books link on my homepage, and look at Jan
Axelson's book, Parallel Port Complete. It covers the implementation of
just such circuitry in detail (with programs).
--
Richard Grier
Hard & Software
12962 West Louisiana Avenue
Lakewood, CO 80228
303-986-2179 (voice)
303-986-3143 (fax)
Author of Visual Basic Programmer's Guide to Serial Communications, 2nd
Edition (355 pages).
For information look on my homepage at http://www.hardandsoftware.net.
Use the Books link to order. For faster service contact the publisher at
http://www.mabry.com.