XBee on built in BS2 serial port
sonny
Posts: 10
Hi,
Sorry if this was answered in another post. I searched but could not find anyting...
I want to use an xbee to communicate with a BS2 via the built in serial (pin 1 and 2). My app works fine if I use pins 14 and 15, but the data is garbeled if I try using the built in port. I am running at 9600 baud. I have tried 84 and 16468 for the baud mode with no success. I do have a pullup resistor on both Tx/Rx, which worked fine when using pins 14 and 15.
Any ideas?
Thanks
Sorry if this was answered in another post. I searched but could not find anyting...
I want to use an xbee to communicate with a BS2 via the built in serial (pin 1 and 2). My app works fine if I use pins 14 and 15, but the data is garbeled if I try using the built in port. I am running at 9600 baud. I have tried 84 and 16468 for the baud mode with no success. I do have a pullup resistor on both Tx/Rx, which worked fine when using pins 14 and 15.
Any ideas?
Thanks
Comments
Do not continue to use the xBee directly with the Stamp without some kind of adapter or you will damage the xBee. The xBee is a 3.3V device while the Stamps are 5V devices and are not directly compatible. Parallax makes an adapter board for the xBee for use with the Stamps and other 5V logic devices.
I am using the adapter board. Parallax P/N 32401.
That being said, would it be possible to use the built in SIN/SOUT? I am trying to keep all 16 IO pins available for data, even if that means using a MAX232 converter. It would be nice if it could be done without it though...
Sonny
For this XBee application a simple transistor (common emitter) circuit or CMOS inverter will do.
P.S. Oh, i see #32401 is a kit only in that you attach the headers. The 74LVC244 is an SMT part that comes from Parallax already soldered onto the board. My suggestion above would work only if you are comfortable with swapping SMT chips.