Chapter 7
204
%QPXGTVKPIHTQO45
The RS-232 serial port was a feature on the very first PCs and persisted for
many years on PCs and peripherals. Just about any device that uses RS-232 can
use USB instead. There are several approaches to making the switch.
Some RS-232 devices fit into a defined USB class. The communications device
class includes modems. The HID class provides usages for pointing devices,
uninterruptible power supplies, and point-of-sale devices.
For many other devices, FTDI Chip’s FT232R USB UART introduced in
Chapter 6 provides a quick way to upgrade a design to USB. The chip can con-
vert an existing RS-232 device to USB with minimal design changes and in
most cases no changes to host software or device firmware.
Figure 7-6 shows an example. A typical device with an RS-232 interface con-
tains a UART that converts between the serial data used in RS-232 communi-
cations and the parallel data the CPU uses. The signals on the line side of the
UART connect to converters that translate between RS-232 voltages and the
5V logic used by the UART. The line side of the converter connects to a cable
to the remote computer with an RS-232 interface. To convert from RS-232 to
USB, you replace the RS-232 converter with an FT232R. On the host com-
puter, FTDI Chip’s Virtual COM port driver enables applications to access the
device using the same functions used for RS-232 communications.
Many RS-232/USB adapter modules contain little more than an FT232R or
similar chip, an RS-232 interface chip, and connectors for RS-232 and USB.
An RS-232 device with an external adapter gives users the choice of using USB
or RS-232.
When using a USB/RS-232 adapter, devices that use the status and control sig-
nals in unconventional ways and with critical timing requirements may require
modifications to device hardware or firmware or application software.
%QPXGTVKPIHTQOVJG2CTCNNGN2QTV
Another port that PCs had from the beginning was the parallel port, which
many devices besides printers used. For parallel-port printers, adapter modules
are available to enable connecting to a PC via USB.
Devices with other functions may require redesigning for USB. The device
might use the WinUSB driver or a generic or custom driver. The device will
need new application software to communicate with the driver. A periph-
eral-side parallel-port interface has 8 bidirectional data pins, 5 status outputs,