Serial port resources
"how to program the RS232 port under MS-DOS"

This page has been written on 10th September 2000 by Daniele Forsi.
Last update on 26th December 2000.
Comments are welcome.

New on 2000/12/26Assembler routines
New on 2000/12/26Background explanation
New on 2000/12/26Links to connectors layout.

I wrote this page after searching C source code to use the serial port under MS-DOS.
Here it is what I found using
Google. I checked all the files which have a description, but most files are for old compilers, so using them might be difficult, to get help you can try to email me.

See at bottom for abbreviations.

Software links

Site name/page titlefilenamedescriptionrxtxmain
      
http://www.ece.uiuc.edu/ece291/class-resources/serial.html     
Look this first

New on 2000/12/26

(none)By Christian Blum. Date 22-Mar-95, version 18. Detailed background information on th serial port with assembler and C examples : "Regard this file as a manual for the serial port of your PC for both hardware and software."i,pi,pn
      
Interrupt-Driven Serial Port I/O Package     
New on 2000/12/26(none)By Randall Hyde. Date unknown.
Description of assembler routines for both polled and interrupt driven I/O.
xxn
      
Programming.Source.C     
 sercomm.arjI wasn't able to make it work.  y
 serterm.arjI wasn't able to make it work.  y
 temkerm.arjI wasn't able to make it work.  y
 zmodem_c.arj    
Bob Stout's SNIPPETS     
 MODEMIO.C
MODEMIO.H
By Curtis Paris 16-dec-92 and Bob Stout 12-mar-94.
Serial port setup. DTR.
i,pd,pn
 QUEUE.C
QUEUE.H
SERIAL.C
SERIAL.H
By Scott Andrews 29-aug-94
Serial port setup. DTR.
iin
Dateien in -ftp-pub-simtelnet-msdos-io_utils-     
 comm.c
comm.doc
by Bennett Todd
assembler and C for DeSmet C compiler
Small terminal program, no serial port setup, check if char present, old.
idy
Look this first (receive only)kbfake10.zip
KBFAKE.C
KBFAKE.EXE
C source and executable for a TSR implementing a "serial keyboard" (characters received from the selected serial port are inserted in the keyboard buffer as if they were typed locally).iny
 port11.zip
PORT.DOC
PORT.C
PORT.EXE
PORT.PRJ
PORT.DSK
INIT
By John De Armond 13-mar-91
C source for Borland C++ 2.0 but with no C++ constructs, doc, executable and support files for a program to work with any input or output port (not only the serial port).
ddy
C Programming     
 comm-tc2.zip
COMM_TC2.C
COMM_TC2.DOC
By Kevin R. Bulgrien feb-89
Turbo C source and doc for a small terminal program. Serial port setup.
b,ib,py
Sample C-C++ Source Code     
 readport.cRead from a generic I/O port using inp().dxy
 writport.cWrite to a generic I/O port using outp().xdy

Hardware links

Site name/page titlefilenamedescription
   
PC connectors - RS-232C  

Look this first

New on 2000/12/26

http://www.geocities.com/SiliconValley/9210/gkcon1.htmlAuthor: Giovambattista Pulcini
DB9 male and female; DB25 male and female; null modem cable; laplink cable.
Updated: unknown
   
COM (Serial) port  
New on 2000/12/26http://www.phm.lu/documentation/connectors/Serial.aspAuthor: Philippe MAJERUS
DB9 male; DB25 male; RJ-45; explanation of signals; IRQ table.
Updated
: unknown
   
ICONICS UK Ltd. - articles/KB/KB00030700  

New on 2000/12/26

http://www.iconics.demon.co.uk/support/articles/KB/KB00030700.htmAuthor: Iconics UK Ltd.
DB9; DB25.
Updated: 2000/03/07

Abbreviations

   
bblockingYour program can't continue before the operation is complete.
ddirectIt is an atomic operation (completed immediately).
iinterruptThe action is interrupt driven.
nnoThe feature is not present.
ppollingYou must check before starting or to see if it is completed.
xnot presentIt makes no sense or is not applicable.
yyesThe feature is present.
?unknownI just don't know.

Want to reach more search engines from a single page? See my search page at http://users.telemail.it/dforsi/ricerche

Author: Daniele Forsi, dforsi@montaperto.it; Date: 26 December 2000; Home: http://www.sysnet.it/~dforsi/