Serial Splitter
Finley
Posts: 3
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?
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
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.