skip navigational linksPJRC
Shopping Cart Checkout Shipping Cost Download Website
Home Products Teensy Blog Forum
You are here: 8051 Tools Development Board Troubleshooting Loopback

PJRC Store
8051 Board, $79
LCD 128x64 Pixel, $29
LCD 16x2 Char, $14
Serial Cable, $5
9 Volt Power, $6
More Components...
8051 Tools
Main Page
Software
PAULMON Monitor
Development Board
Code Library
89C2051 Programmer
Other Resources

Loopback Test

You can easily test your PC serial port and cable with a simple loopback test. On a 9 pin connector, the PC transmits data on pin 3, and receives on pin 2. With the cable disconnected from the board, you can short pins 2 and 3 together, as shown in figure 8. Most small metal objects will work, such as a paper-clip, though the test will be much less frustrating with two people, one to hold the connection on pins 2 and 3 while the other uses the computer.

Shorting Pins 2 and 3
Figure 1: Serial Port Loopback Test, Short Pins 2 and 3

While pins 2 and 3 are shorted, you should type into the terminal emulation window. As you type, the characters should appear on the screen, because they are sent on pin 3 and immediately received on pin 2. When the short is removed, no characters should appear on the screen as you type.

If this test fails, usually as no characters appearing when the pins are shorted, then something is wrong with the PC serial port, or the cable. Often times the ports on the back of your PC are simply mis-labeled and the cable is connected to the wrong one. In some cases, a serial port may not work because some other program is attempting to use it. It is rare for the actual serial port hardware to have a problem, except in the case of older PC motherboards where the serial port is connected by a ribbon cable to the board. Sometimes the ribbon cable comes loose, or is plugged in backwards or is not seated properly.

If the loopback test does not show characters appearing in the terminal emulation window as you type, you must resolve this problem before attempting to use the 8051 development board.


8051 Development System Circuit Board, Paul Stoffregen
http://www.pjrc.com/tech/8051/board5/loopback.html
Last updated: February 25, 2005
Status: finished
Suggestions, comments, criticisms: <paul@pjrc.com>