Shop OBEX P1 Docs P2 Docs Learn Events
SPI baudrate — Parallax Forums

SPI baudrate

Ken267Ken267 Posts: 4
edited 2007-10-28 01:21 in Propeller 1
I just started with SPI and im confused as to how fast SPI can transfer data. If the propeller chip is running at 80MHz, will the baud rate be 80Mbps? In the SPI engine it said at 80 MHz the baud rate is 2.5M. What is the max SPI transfer speed?

Comments

  • hippyhippy Posts: 1,981
    edited 2007-10-28 01:20
    Using the video hardware, waitvid, you can probably output SPI using two bits per bit to send ( set data, then transition the clock ), so that's half of whatever the maximum video clock rate is - 160MHz ? - 80Mbps.
  • Mike GreenMike Green Posts: 23,101
    edited 2007-10-28 01:21
    With careful assembly coding, you can use a cog counter to produce the clock pulses needed and you might be able to process one bit in about 4 instruction times. That's 200ns or about 5Mbps for short bursts. The decision making between bytes can slow things down. I think 2.5M is about right for an overall throughput considering all sorts of other overhead.

    Hippy,
    That's a great idea for blind SPI transmission. Receiving is tougher (and slower), particularly if your device has some address / status / command bits thrown in or you have to do the simultaneous transmit/receive thing that many devices support.

    Post Edited (Mike Green) : 10/28/2007 1:27:22 AM GMT
Sign In or Register to comment.