Add A Dual-Port COM Switch To Your PC

March 22, 1999
Did you ever wish you had another COM port on your PC without needing an additional COM card? This article describes a simple RS-232 electronic switch that splits one COM port into two. By...

Did you ever wish you had another COM port on your PC without needing an additional COM card? This article describes a simple RS-232 electronic switch that splits one COM port into two. By toggling the RTS hardware line, the Dual Port COM Switch circuit will electronically switch between two devices connected to a single COM port.

RS-232 transmit, receive, and RTS from the PC connect to the Dual Port COM Switch circuit via connection to IC-1 (see the figure). IC-1 is a MAX232A RS-232-to-TTL converter chip with an onboard ±10-V charge-pump power supply. The transmit line and RTS line from the PC are converted to TTL logic levels via IC-1. If the RTS line is set to logic HIGH, it will pass the converted TTL transmit signal to IC-2 via the NAND gate IC-4. IC-2, another MAX232A chip, then conditions the TTL transmit signal back to the appropriate RS-232 driver voltages for the device connected to Port B. The receive signals from Port B, in turn, also are NAND-gated, via IC-4, back to IC-1 and the PC.

A logic level LOW on the RTS line routes the transmit and receive signals in a similar fashion to and from the PC and Port A. Indicator lights LED1 and LED2 provide a simple visual indication of which port is active.

Switching between Port A and Port B, using Microsoft Visual Basic, is a simple matter of setting the COM control’s RTS property to True or False:

COM.RTS = True ;connect PC to Port B
COM.RTS = False ;connect PC to Port A

The switch is activated using Microsoft QuickBasic (see the listing).

Sponsored Recommendations

TTI Transportation Resource Center

April 8, 2024
From sensors to vehicle electrification, from design to production, on-board and off-board a TTI Transportation Specialist will help you keep moving into the future. TTI has been...

Cornell Dubilier: Push EV Charging to Higher Productivity and Lower Recharge Times

April 8, 2024
Optimized for high efficiency power inverter/converter level 3 EV charging systems, CDE capacitors offer high capacitance values, low inductance (< 5 nH), high ripple current ...

TTI Hybrid & Electric Vehicles Line Card

April 8, 2024
Components for Infrastructure, Connectivity and On-board Systems TTI stocks the premier electrical components that hybrid and electric vehicle manufacturers and suppliers need...

Bourns: Automotive-Grade Components for the Rough Road Ahead

April 8, 2024
The electronics needed for transportation today is getting increasingly more demanding and sophisticated, requiring not only high quality components but those that interface well...

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!