Professional Documents
Culture Documents
Activity No. 12
Testing the Parallel and the Serial Port
Purpose
The purpose of this activity is to test the parallel port and the serial port using a
wrap plug (or a loop back) connector and a diagnostic software (i.e. fx.exe). During the
activity, the students will be familiarized with the functions of the pins in a parallel or
serial port. They will also be able to write a code in Turbo C++ to send data to the
parallel port.
Materials
• 1 Windows 98 startup disk • 1 unit PC System
• Diagnostic software • 8 pcs. LED’s
(i.e. fx.exe) • 1 wraplug or loopback connector
• Turbo C++ Compiler • 8 pcs. connecting wires
Procedures:
A. Testing the Parallel Port
1. Using a Loopback Connector
a. Connect the Loopback connector at the system’s parallel port.
b. Turn on the system and boot from the Windows 98 startup disk.
c. At A prompt, type fx and press <Enter> to run the diagnostic
software.
d. Choose “Diagnostic” option on the main menu and press <Enter>.
On the “Diagnostic Menu”, select the “Parallel Wire Test” and then
press <Enter>.
Parallel Port
b. Type and compile the code, test.cpp, listed below on a Turbo C++
Compiler. The code sends data to the parallel port making all LED’s
turned on and off after a key is pressed.
Pins
9 8 7 6 5 4 3 2 HEX
Sequence
1 1 1 1 1 1 1 1 1
2 0 0 0 0 0 0 0 1
3 0 0 0 0 0 0 1 0
4 0 0 0 0 0 1 0 0
5 0 0 0 0 1 0 0 0
6 0 0 0 1 0 0 0 0
7 0 0 1 0 0 0 0 0
8 0 1 0 0 0 0 0 0
9 1 0 0 0 0 0 0 0
10 0 0 0 0 0 0 0 0
Source Code:
A. Testing the Serial port
1. Using a Loopback Connector
a. Connect the loopback connector at the system’s serial port (DB9-
male).
Loopback Connector
b. Insert the Windows 98 startup disk with fx.exe in the FDD and turn
on the computer.
c. At A prompt, type fx and press <Enter> to run the diagnostic
software.
d. Choose “Diagnostic” option on the main menu and press <Enter>.
On the “Diagnostic Menu”, select the “Serial Port Loop- Back Test”
and then press <Enter>.
2. What is the I/O Port Address? What addresses are used in the parallel port and
serial port?
4. What is the type of parallel port used in the system? Compare it with the other
standards.
Conclusion