Go Down

Topic: setting Due spi clock at 8mhz (Read 49 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