Electronic Design

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


[Ideas For Design]
Automatic Switch Handles RS-232 Or RS-485 Serial Data

Theodore Karatzas  |   ED Online ID #8729  |   September 20, 2004


The need arose for a programmable control system that handles 8-bit data to have both RS-232 and RS-485 modes. This requirement was satisfied with a serial communication controller-transceiver, an octal buffer, and a two-line port (Rx and Tx for receiving and transmitting data), either in RS-232 or RS-485 mode. The RS-232 mode will program several parameters of the control system via a dedicated program in a PC. The RS-485 mode is used for serial communications to other similar systems and to a remote central station.

Originally when the demand called for programming, P2 with lines Rx and Tx was connected to the PC's RS-232 serial port. In addition, the communication interface transceiver had to be configured for RS-232 mode. This was done by using four jumpers to manually connect the RS-232 transceiver points R1OUT, R1IN, T1OUT, and T1IN to the octal buffer, port P2, and the serial communication controller's output TXDA. After programming, the four jumpers had to be removed to configure the system to the RS-485 mode by connecting the RS-485 transceiver points RO, DO/RI, DO/RI, and DI once again to the octal buffer, port P2, and the serial communication controller's output TXDA.

To avoid that frustrating job of jumper move-remove, an automatic and reliable switch was used. As shown in the figure, the MAX4533CPP, an electronic analog quad SPDT switch, can be used to simultaneously switch the octal buffer, port P2, and the Z8530H serial communication controller to RS-232 or RS-485 mode at any time.

The device is triggered by +5 V via a simple debounce RS flip-flop using an SPDT switch. All digital inputs IN1-IN4 are parallel triggered, and therefore all "contacts" are set to the CLOSE or OPEN position. Thus, selecting RS-232 or RS-485 mode is easily accomplished. The switch operates from a single supply of +12 V dc, and digital-input thresholds ensure TTL-compatibility for the connected devices. ON resistance is 175 (omega) maximum. However, this doesn't harm the data signals, which stay at +2.4 V dc. The +12-V dc supply is available from the system's board, and +5 V is derived from the zener diode and R1. C1 and C2 are used to decouple the +12-V and +5-V supply lines.


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


  • In EDA, A Year Of Mergers, Failed And Otherwise
  • 2008 BEST Electronic Design Winners
  • Engineers Rely On Internet For Product Info
  • Rochester Electronics Establishes New Design and Technology Group
  • November 17, 2008
  • Custom Sources Light Way To 22-nm IC Lithography
  • Software Turns Scopes Into Vector RF Signal Analyzers
  • Couple’s $15 Million Gift Advances Rice Engineering Education
    1) Behind The Bright Lights, LED Drivers Evolve To Meet New Requirements
    (1174 views today)
    2) Ten Top Design Skills For Tough Times
    (294 views today)
    3) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (285 views today)
    4) Wi-Fi Chips Stand Out In A Sea Of Wireless Products
    (207 views today)
    5) Easily Convert Decimal Numbers To Their Binary And BCD Formats
    (200 views today)
    ALL TOP 20



    Reader Comments

    try to use the HXSP-2108C Industrial Level Optical Isolation RS-232 To RS-485/RS422 Converter produce by Hexin-tech.com.cn,with optical isolation,lightningproof and surge protection .The RS-422/485 side and the RS232 side is powered by an external power .

    Anonymous -February 22, 2008

    whats your name

    ubha -September 08, 2007

    hi . . is there any project of cell phone booster and the complete circuitary of it is present . pls if yes then help in that regards . thx

    Anonymous -April 08, 2007

    A simpler solution would be to use a device, such as the Sipex SP334 (switchable between RS232 and RS485). Also, you would need to control half-duplex operation of the RS485 transceiver by driving DE and RE. It can either drive or receive, but should not do both simultaneously.

    George Dixon -September 21, 2004

    POST YOUR COMMENTS HERE
    Name:

    Email:
    Your Comments:

    Enter the text from the image below


    Please refresh the page if you have trouble reading this text.

    Search Electronic Design
         
      
     
    Email Newsletter
    Sponsored By:
    Electronic Design UPDATE provides readers with late-breaking news, opinions from industry experts, and timely technology stories. It's a unique opportunity to get your product message in front of engineers, engineering managers, and corporate managers while they're reading about critical information online.

    Enter Email to Subscribe
      

    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