by W.A. Steer PhD
| Back to contents | About... |
This article explains the purpose of the various RS232 pins, and most importantly, how to get two devices communicating over the link.
Frequently these days it is necessary to connect two items of DTE, such as two desktop computers. While it should be as simple as crossing each input/output pair, so that Transmitted Data from one machine goes to Received Data of the other, and vice versa, etc., it's never that easy in practice! Problems usually arise because each piece of equipment uses the various handshaking signals in different ways. There can be a vast array of software settings too. With so many permutations, a systematic approach is essential.
Let's start by looking at the signals:
prot. GND 1 ------------- 1 GND prot. << NOT ALWAYS INTERNALLY CONNECTED! >>
TxD 2 -->--\ /--<-- 2 TxD cross
X these
RxD 3 --<--/ \-->-- 3 RxD two
RTS 4 -->--\ /--<-- 4 RTS cross
X these
CTS 5 --<--/ \-->-- 5 CTS two
DSR 6 -<- ->- 6 DSR link pins 6 and 8 locally
| |
sig. GND 7 ------------- 7 GND sig. (always connect the signal ground)
| |
DCD 8 -<-+-\ /-+->- 8 DCD cross
X these
DTR 20 -->--/ \--<-- 20 DTR two
Pin numbers:
25-pin D 1 2 3 4 5 6 7 8 20 22
GND TxD RxD RTS CTS DSR GND DCD DTR RI
9-pin D - 3 2 7 8 6 5 1 4 9
See Horowitz & Hill "The Art of Electronics" (2nd edition)
chapter 10.19, pg 725 for more comprehensive coverage.
Acorn 32-bit micros (Archimedes, Power PC...) use CTS as DSR and vice-versa. On a plug for an Acorn 32-bit micro therefore, read CTS in place of DSR and DSR for CTS.
---
RTS (o/p) == o o == data in BBC Computer, 5-pin DIN
/ \ RS423 connections.
notch ] o ===== GND (view of socket, or
\ / plugs' wiring-side)
CTS (i/p) == o o == data out
---
From the DOS prompt, you can set the above configuration using the following command:
The MS Windows Terminal program can be useful for setting up & experimentation.
"The Art of Electronics" (2nd edn.), P. Horowitz & W. Hill (Cambridge, 1989)
©2002 William Andrew Steer