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

[Ideas For Design]

BASIC STAMP 2 has optoisolated RS-232 interface



Contributing Author  |   ED Online ID #6347  |   December 1, 1997

Article Rating: Not Rated

An optoisolated, half-duplex RS-232 interface can be added to Parallax’s BASIC STAMP 2 with just a handful of low-cost components (see the figure). The circuit implements a switch to change from programming (non-isolated) to normal operation (optoisolated). The operation in optoisolated mode has the same performance as the normal BASIC STAMP non-optoisolated connection using pins 1 and 2 of the internal built-in serial port.

Diodes D1 and D2 feed positivelevel power to optoisolator ISO1, which drives positive the serial out line (Rx line as seen from the host computer DTE). The negative drive on the serial out line is accomplished passively by mirroring the negative rest level of serial in line (Tx line from the host DTE) through resistor R3. This means that a real DTE device (generating ±10-V RS-232 signals) has to be connected to the RS-232 connector shown on the schematic. During receive operation, the Tx line from the DTE device drives the ISO2 LED, which turns on the common-collector phototransistor.

A switch is needed to disconnect ground for the optoisolators during programming. The BASIC STAMP isn’t able to drive the serial line and the ISO1 LED at the same time. Otherwise, a “Hardware not found” message would immediately appear when attempting to download a program.

The program and RS-232 connectors should never be connected at the same time since, during programming, the phototransistor of ISO2 is subject to a high Vce voltage with no current-limiting. Driving the ISO2 LED would burn out this transistor.

The system has been successfully tested up to 9600-baud half-duplex operation. A final caveat: As in the original BASIC STAMP built-in RS-232 interface, an intrinsic mirroring is wired between the DTE-side Rx and Tx line; i.e., any data sent to the BASIC STAMP will be immediately echoed back to the DTE device. Appropriate software should be employed to circumvent this effect.




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
    (188 views today)
    2) Hot Hands For Some Cool Rock: Motion Sensing Meets Audio Engineering
    (173 views today)
    3) GPS-Derived Grandmaster Clock Delivers Ultra-Precise Time And Frequency Sync
    (91 views today)
    4) What's All This Transimpedance Amplifier Stuff, Anyhow? (Part 1)
    (82 views today)
    5) Science Fiction Meets Science Fact In Today's Robot Research
    (81 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