Shop OBEX P1 Docs P2 Docs Learn Events
Serial Splitter — Parallax Forums

Serial Splitter

FinleyFinley Posts: 3
edited 2011-03-22 09:27 in BASIC Stamp
Hi
working with BS2
I want to make a powered serial splitter. Basically I want 1 serial input to be feed to ~3 outputs. I have tried the simple way:

SI PIN 0
SO PIN 1
Baud CON 16572 ' 4800

Result VAR Byte


Main:

DO

SERIN SI, Baud, [ Result ]
SEROUT SO, Baud, [ Result ]

LOOP

END

but the code cannot keep up with the input.

Any suggestions?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-03-22 08:08
    You can't do this with a Stamp because the Stamps only do one thing at a time. When they're sending output, they're not listening for input, etc.

    If you really just want a serial splitter, you can actually connect several serial inputs to one serial output directly. A serial output can easily drive two or three serial inputs which are high impedance and draw very little current. If you want to do some processing of the serial signal, you'll need to use something like the Propeller which can receive and transmit simultaneously. To get proper RS232 signal voltages, you'll need something like a MAX232 or MAX3232 which is designed to take a logic signal and produce an RS232 signal.

    You can also use a MAX232 or MAX3232 as an RS232 signal splitter. These have two receivers and two transmitters and you can tie the logic output of one receiver to the logic input of both transmitters (and leave the other receiver unconnected) to get a two way output splitter. You could use a 2nd device to get a 4-way splitter.
  • FinleyFinley Posts: 3
    edited 2011-03-22 09:27
    Thanks Mike
Sign In or Register to comment.