Go Down

Topic: SPI library. increasing clock speed - help (Read 656 times) previous topic - next topic


May 24, 2013, 04:32 am Last Edit: May 24, 2013, 04:39 am by Naruto128 Reason: 1
hello I'm playing around with this library and chit to control on / off LED.

the problem that this library you can not put the clock at full speed, ie for a 16 MHz arduino,
this library only supports up to 8MHz    SPI.setClockDivider (SPI_CLOCK_DIV2) [/ b] 

how could I change this to 16 MHz or 15 MHz?


No, I don't answer questions sent in private messages (but I do accept thank-you notes...)


Yup, impossible. See table 19-5 in the '328 data sheet:
Table 19-5. Relationship Between SCK and the Oscillator Frequency
Fastest speed is F(osc)/2.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up