Serial Port Complete - Latest Microcontroller projects

(lily) #1

Chapter 5


A typical microcontroller has a serial output labeled TX and a serial input
labeled RX. The RS-232 port on development boards is typically configured as
a DCE, where TX is an input and RX is an output. The microcontroller’s TX
output thus controls the RS-232 RX output, and the RS-232 TX output con-
trols the microcontroller’s RX input.
Using flow-control signals on a development board sometimes requires cutting
hard-wired connections and adding wires to connect flow-control signals to the
RS-232 connector.
An example of a development board is Microchip’s PICDEM™ 2 Plus. The
board has a MAX232 converter with a driver/receiver pair that interfaces the

PIN

PIN

PIN

PIN

PIN

PIN

PIN

PIN

PIN

PIN

PIN

PIN

Figure 5-5: Two ports configured as DTEs can connect to each other using any of
these null-modem adapters. On the left are 9-pin connections; on the right are 25-pin
connections.
Free download pdf