Shop OBEX P1 Docs P2 Docs Learn Events
How do you use the serial port on the board of education? — Parallax Forums

How do you use the serial port on the board of education?

kenwtnkenwtn Posts: 250
edited 2008-06-13 18:39 in BASIC Stamp
Hi All,

··· How do you use the serial port on the board of education? Also, I am connecting a XBee to this port if anyone has some sample code would be helpful.

Thanks In Advance

[noparse][[/noparse]Topic Subject Added By Moderator]

Post Edited By Moderator (Chris Savage (Parallax)) : 6/13/2008 10:35:34 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-06-13 18:31
    The programming port on any Stamp or Stamp development board is accessed as I/O pin #16 (read the PBasic manual!).· On the development boards, there is a transistor-based RS232 interface.· The Stamp module itself uses TTL signal levels.· The programming interface echos any characters sent from the PC back to the PC.· Also, the Stamp will be reset when the DTR line toggles.· The DEBUG statements can also be used although their Baud is fixed depending on the Stamp model.· For most of them it's 9600 Baud.

    The xBee cannot be directly connected to the programming port on the BOE since that's RS232 and the xBee uses 3.3V logic.· You need to have some kind of level translation.· In addition, the echo will probably cause problems unless you pre-configure the xBee separately so it provides a simple wireless serial "pipe".· In that case, you'll still get the echo, but it won't bother the xBee.
  • kenwtnkenwtn Posts: 250
    edited 2008-06-13 18:39
    Thanks Mike,

    So I will need to build my own connection then. Can that be done and can the Board I have deliver the 3.3 volts I need?· This is a link to a interface board I got.

    http://microcontrollershop.com/product_info.php?cPath=297&products_id=2369

    Post Edited (kenwtn) : 6/13/2008 6:44:20 PM GMT
Sign In or Register to comment.