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/26 | Assembler routines |
New on 2000/12/26 | Background explanation |
New on 2000/12/26 | Links 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.
Site name/page title | filename | description | rx | tx | main |
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,p | i,p | n |
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. | x | x | n |
Programming.Source.C | |||||
sercomm.arj | I wasn't able to make it work. | y | |||
serterm.arj | I wasn't able to make it work. | y | |||
temkerm.arj | I 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,p | d,p | n | |
QUEUE.C QUEUE.H SERIAL.C SERIAL.H | By Scott Andrews 29-aug-94 Serial port setup. DTR. | i | i | n | |
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. | i | d | y | |
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). | i | n | y |
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). | d | d | y | |
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,i | b,p | y | |
Sample C-C++ Source Code | |||||
readport.c | Read from a generic I/O port using inp(). | d | x | y | |
writport.c | Write to a generic I/O port using outp(). | x | d | y |
Site name/page title | filename | description |
PC connectors - RS-232C | ||
Look this first New on 2000/12/26 | http://www.geocities.com/SiliconValley/9210/gkcon1.html | Author: Giovambattista Pulcini DB9 male and female; DB25 male and female; null modem cable; laplink cable. Updated: unknown |
COM (Serial) port | ||
New on 2000/12/26 | http://www.phm.lu/documentation/connectors/Serial.asp | Author: 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.htm | Author: Iconics UK Ltd. DB9; DB25. Updated: 2000/03/07 |
b | blocking | Your program can't continue before the operation is complete. |
d | direct | It is an atomic operation (completed immediately). |
i | interrupt | The action is interrupt driven. |
n | no | The feature is not present. |
p | polling | You must check before starting or to see if it is completed. |
x | not present | It makes no sense or is not applicable. |
y | yes | The feature is present. |
? | unknown | I 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/