Shop OBEX P1 Docs P2 Docs Learn Events
problems with spi speed — Parallax Forums

problems with spi speed

DextrinDextrin Posts: 1
edited 2008-12-08 14:54 in Propeller 1
Hi,
i only reach a speed of ~44 khz. if i·just toogle 1 pin.·but i need at least 2 mhz, better 4!
i know spi can handle speeds up to 8 mhz.
maybe i understood the documentation wrong but i thought that·this became a problem

thanks
Dextrin

Comments

  • LeonLeon Posts: 7,620
    edited 2008-12-08 14:47
    Try assembler.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-08 14:54
    The Spin language is fairly fast, but is interpreted and much slower than the Propeller's native instructions (assembly language). A tight program in Spin can generate asynchronous serial data up to 19,200 Baud, but not much faster while an assembly routine can handle in excess of 2MBps. I suggest you look at the "SPI Engine" towards the middle of page 1 of this thread: http://forums.parallax.com/showthread.php?p=601870

    Post Edited (Mike Green) : 12/8/2008 3:12:02 PM GMT
Sign In or Register to comment.