Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?

[Ideas For Design]

Add A Dual-Port COM Switch To Your PC



Contributing Author  |   ED Online ID #6227  |   March 22, 1999

Article Rating: Not Rated

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).




Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


  • Network-On-Chip Tools Arrive for The Masses
  • Tackling System Design Challenges Through Early Verification
  • ESL Tools Take Center Stage As Designers Move Up
  • Parasitic Extraction Tool Targets Next-Generation Custom ICs
  • Synopsys Jumps Into ESL-Synthesis Pool
  • Verify Control Systems Before Committing To Hardware
  • You're Using How Many FPGAs?
  • Tool Up For The FPGA Blitz
    1) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (177 views today)
    2) Hot Hands For Some Cool Rock: Motion Sensing Meets Audio Engineering
    (167 views today)
    3) What's All This Transimpedance Amplifier Stuff, Anyhow? (Part 1)
    (82 views today)
    4) GPS-Derived Grandmaster Clock Delivers Ultra-Precise Time And Frequency Sync
    (71 views today)
    5) Bidirectional H-Bridge DC-Motor Motion Controller
    (58 views today)
    ALL TOP 20







    POST YOUR COMMENTS HERE

    Name:

    Email:
    Rate this article:

     less useful more useful 
    1
    2
    3
    4
    5
    Your Comments:

    Enter the text from the image below




    Please refresh the page if you have trouble reading this text.
    (Acceptable Use Policy)
     
     

    PartFinder

    Find real-time pricing, stock status, same-day/next-day shipping options and more. Brought to you by Digi-Key. Go to PartFinder.    
    GlobalSpec

    PART SEARCH :
    Powered by: GlobalSpec - The Engineering Search Engine
    Sponsored Links

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
    Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources