Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ Programming ➜ General ➜ little problem with SPI at > 1MHz

little problem with SPI at > 1MHz

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Erik Nyquist   (1 post)  Bio
Date Tue 18 Dec 2012 01:45 PM (UTC)
Message
Hello, I'm trying to get 2 arduinos to talk to each other over SPI. Now it works just fine, as long as SCK is at 1MHz or lower (DIV16, DIV32, DIV64 or DIV128).
My program is simple, the master sends a string of numbers (0-255) and the slave prints these numbers out in hex, checking them to ensure all bytes have been recieved. If there is a mismatch, it stops.

At 1MHz, it will happily run for hours without a mismatch, but anything higher causes a mismatch within less than a second.

Has anyone got any advice on properly terminating the SCK line? currently I just have jumper wires (very short, not more than 6cm) between the two arduinos.

Surely impedance matching isn't necessary for such short distance/low freq?
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 18 Dec 2012 09:55 PM (UTC)
Message
Template:Arduino Please post Arduino-related questions to the Arduino Forum or to StackExchange: Arduino. This saves splitting questions and answers between this forum and the Arduino ones.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Lakedoo23   (9 posts)  Bio
Date Reply #2 on Fri 18 Jan 2013 11:14 PM (UTC)
Message
Hopefully you found the answer, best results I got with SPI was using very thin solid wire and some resistors to reduce the noise on the spi lines. I was able to reach results up to about 43 MHz reliably this was for a SD-card spi interface though.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,341 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.