Shop OBEX P1 Docs P2 Docs Learn Events
FM25V10 and SPI driver — Parallax Forums

FM25V10 and SPI driver

nicolad76nicolad76 Posts: 164
edited 2009-03-03 12:54 in Propeller 1
Hi, I have never used SPI components. Do you think that what is in OBEX would work with FM25V10????

Thanks!!!
Nicola

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-03-02 18:24
    Unfortunately, there is no standard SPI protocol. The name generally refers to a clocked data transfer where there's a chip enable line that starts each transaction and there's often simultaneous input and output of data. Beyond that, there can be all sorts of variations. Many devices only transmit or receive, but not both at the same time so you can share a single bidirectional line. The data that's transferred back and forth can vary widely.

    The result is that, what you'll find in the OBEX is either a driver for a specific device that is not likely to work for anything else or a low level driver that can transfer bytes at high speed in a clocked serial protocol, but has no higher level logic and has to have all that added for a specific device.

    SPI does have the advantage that the low level protocol is very simple and can be implemented in a few lines of Spin or assembly
  • nicolad76nicolad76 Posts: 164
    edited 2009-03-02 18:56
    Hi Mike,
    thanks....I have learnt something.... I was on the wrong assumption that SPI was a standard.
  • LeonLeon Posts: 7,620
    edited 2009-03-03 12:54
    As originally defined by Motorola it was standard, but everyone has developed their own variant, subsequently.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
Sign In or Register to comment.