Go Down

Topic: setting Due spi clock at 8mhz (Read 83 times) previous topic - next topic



How do I set the Due SPI clock on 8 mhz.I know this function SPI.setClockDivider(slaveSelectPin, divider) .
Right now I am using SPI.setClockDivider(10,21) which sets it to 4mhz.I want to set it at 8mhz. Is there a forumula that goes along with this function to know what value betwen 1 and 255 corresponds to what SPI clock setting?


Jun 16, 2015, 07:34 pm Last Edit: Jun 16, 2015, 07:46 pm by SurferTim
The divider should be 10 or 11. 4MHz is 21.

10 = 8.4MHz
11 = 7.6MHz

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131