Shop OBEX P1 Docs P2 Docs Learn Events
Dual RS232 for Byte Changing — Parallax Forums

Dual RS232 for Byte Changing

mcmikemcmike Posts: 1
edited 2009-02-23 23:43 in BASIC Stamp
I need to have a Basic Stamp with 2 RS232 ports.· Generally speaking this device will be placed in series between a host (PC) and another device (DTE).· I want to capture a specific byte string (only about 6 bytes) and change it to something else.·

First question, I'm thinking I can do this with a Basic Stamp...do you agree?
Second, are there any samples of 2 port RS232 that you can point me to?
Third, any "gottcha" that I should be aware of?

Regards.
·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-02-23 23:43
    Any pair of I/O pins on a Stamp can function as an RS232 port with some kind of voltage translation that may be as simple as a resistor in series on the input side.· See the chapters in the Stamp Basic Manual on the SERIN and SEROUT statements.· The only "gotcha" is that Stamps (in general) can only do one thing at a time.· If a Stamp is receiving on one I/O pin or transmitting on one I/O pin, it's ignoring the other I/O pins.· If you must be able to receive on one serial port all the time (like when you're transmitting the modified data), you'll need something like a Propeller or SX
Sign In or Register to comment.