Shop OBEX P1 Docs P2 Docs Learn Events
USB via the Serin/Serout functions — Parallax Forums

USB via the Serin/Serout functions

BoomboxBoombox Posts: 24
edited 2007-07-31 21:02 in BASIC Stamp
Hello All,
············ I'm looking to communicate to the BS2 via USB· using the Serin/Serout functions. I been reading through alot of the post but I'm still a little unsure of how to accoplish this. I've used the Max232 chip to do it in the past and I think that the FT232BM is the right USB chip. Any help?

Thanks
Boombox

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-07-30 20:46
    The PC connected to the usb will see it as a com port (or other serial device if you are communicating to a usb master) The stamp just does serin/serout and the PC uses a terminal program listening to the port assigned to the usb.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • BoomboxBoombox Posts: 24
    edited 2007-07-31 03:42
    Right but the application for the ft232bm is connected to the Sin and Sout ports for programing and wouldn't it require a TTL converter to use the Serin/Serout on say Inputs P0 and P1?
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-07-31 14:28
    Wait a minute -- you said you wanted to use USB to talk to the BS2. That kind of implies you have a USB BOE board.

    Another approach would be to use a USB-Serial adapter, and add something like this: http://www.kronosrobotics.com/xcart/customer/product.php?productid=16167&cat=291&page=1

    to convert RS-232 voltage levels to BS2 TTL levels to use P0 and P1.

    Now, if you have a board that's using an FT232BM already, you may be able to bypass the FT232's RS-232 level shifter and go straight into P0 and P1.

    Note that the BS2 is a single-tasking processor, and so when it's listening to P0, it can't be listening to the '16' programming port at the same time.
  • BoomboxBoombox Posts: 24
    edited 2007-07-31 20:35
    Ok, lets re-spin this question.... I need to go from USB to the serin/serout functions via P0 thru P3. Any ideas?

    Thanks!!
    Boombox
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-07-31 21:02
    Yup, this stuff I said above will work for that:

    Another approach would be to use a USB-Serial adapter, and add something like this: http://www.kronosrobotics.com/xcart/customer/product.php?productid=16167&cat=291&page=1

    to convert RS-232 voltage levels to BS2 TTL levels to use P0 and P1.

    Now, if you have a board that's using an FT232BM already, you may be able to bypass the FT232's RS-232 level shifter and go straight into P0 and P1.

    Note that the BS2 is a single-tasking processor, and so when it's listening to P0, it can't be listening to the '16' programming port at the same time.
Sign In or Register to comment.