Shop OBEX P1 Docs P2 Docs Learn Events
homeowrk board can't do 232 with battery? — Parallax Forums

homeowrk board can't do 232 with battery?

cyplesmacyplesma Posts: 76
edited 2007-07-29 01:21 in BASIC Stamp
Can I not use the basic stamp on the homework board (rev b) to do RS232 com?

I saw somewhere in the a couple of docs that the battery can not be used when doing 232 com, so since the homework board only has a battery connection can I not do 232?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-07-29 00:08
    You can do "almost RS232". It's not strictly compatible with the RS232 standard, but it should work in most circumstances. The PBasic manual discusses the details in the sections on the SERIN / SEROUT statements. All you need is a couple of resistors. It doesn't matter whether you're using a battery or another power source. You'll need to be sure to connect the ground of the homework board to the RS232 ground.
  • cyplesmacyplesma Posts: 76
    edited 2007-07-29 01:01
    thanks for the quick reply, right now I'm just trying to receive a single character from a vb.net program.

    I was even trying to send a single character to hyperterminal multiple times (every sec) to try and test the comms

    hyperterminal is getting nothing and when I send data with basic stamp

    when I send with hyperterminal I get weird results, hopefully my comm setting are just off.

    if I read the help file correct I should be using 11505 as 300 baud 7 bit, no parity, one stop bit. Is this correct?

    should I be using the 16pin (this is the debug 232 port yes?) or can I use one of the other i/o's

    I was using a 22k ohm resistor in series with the port.

    maybe I need to try a different size?

    Post Edited (cyplesma) : 7/29/2007 1:06:07 AM GMT
  • Mike GreenMike Green Posts: 23,101
    edited 2007-07-29 01:14
    First of all, the Stamps can't do 7-bit / no parity. They can do 8-bit / no parity or 7-bit / even parity. I'd recommend the former and Hyperterminal needs to be configured the same. At 300 Baud, that would be 19697.

    It's often easier to use the debug port since you've already got a 9-pin connector and some RS232 to logic conversion circuitry. If you do use port 16, read the description on the bottom of page 416 and the middle of page 395 of the current Basic Stamp Manual (v2.2). You can also use DEBUGIN and DEBUG to do the same things.
  • cyplesmacyplesma Posts: 76
    edited 2007-07-29 01:21
    THANKS!!!!!

    missed the DEBUGIN/DEBUG option I may use those.



    I did use the debug / debugin works great, again thanks!!!!

    Post Edited (cyplesma) : 7/29/2007 2:03:31 AM GMT
Sign In or Register to comment.