Shop OBEX P1 Docs P2 Docs Learn Events
BS2 <-> SPI or UART Interface — Parallax Forums

BS2 <-> SPI or UART Interface

crgwbrcrgwbr Posts: 614
edited 2006-12-21 14:59 in General Discussion
I'm planning on using a device with an SPI and UART·interface.· The Shiftin and Shiftout commands should work with the SPI and the Serin and Serout will work with the UART, right?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life

Comments

  • Tom WalkerTom Walker Posts: 509
    edited 2006-12-20 13:59
    In general, those methods of interfacing with those type of devices are the correct choice. Without details, no one could tell you if it will work for your specific application.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Truly Understand the Fundamentals and the Path will be so much easier...
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-12-20 14:23
    Folks -

    There is one sort of notable exception. Maxim/Dallas makes the MAX-3100 which is a UART which is controlled by an SPI-like interface. The OUTPUT side of the MAX-3100 UART operates in an RS-232 like manner.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • crgwbrcrgwbr Posts: 614
    edited 2006-12-21 00:27
    Thanks, I'm trying to interface with the VDRIVE1 device. On it you can select UART or SPI. I'll probable go with the SPI, just for the sake of not having to deel with baud rates.

    Thanks,
    crgwbr

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    NerdMaster
    For
    Life
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-12-21 00:37
    Chris Savage has written some code to do a terminal interface with the VDIP using a Stamp. He used the UART mode but was unable to get the SPI interface working properly.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • crgwbrcrgwbr Posts: 614
    edited 2006-12-21 00:38
    Cool, where can I find this code?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    NerdMaster
    For
    Life
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-12-21 00:41
    It hasn't been released, he hasn't had the time to write a full implementation and get the code in a releasable form. Im just sharing his experience so you don't waste time going down the more difficult path.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • crgwbrcrgwbr Posts: 614
    edited 2006-12-21 00:42
    Ok, thanks for the info.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    NerdMaster
    For
    Life
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-12-21 00:56
    Here is Mike Green's Propeller object for interfacing with it via SPI, it would take some translation to get it into SX/B but it's a start: http://forums.parallax.com/showthread.php?p=620161

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-12-21 14:59
    Hello,
    ·
    ·· I will be on the forums through next week and I will be working on some of the code I meant to have posted.· I will post a Serial example and hopefully with Mike’s Propeller Code I can see what I did wrong in my first attempt at SPI and get an example of that.· For the BASIC Stamp I think that would be the better way to go, although I did not have any issues with the serial other than handshaking being required.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.