2011-03-23 07:46 AM
How to control SPI clock..
2011-05-17 05:29 AM
Change the prescaler, change the APB clock, or become a ''slave'', and pull the clock from a timer or USART baud clock.
2011-05-17 05:29 AM
Thanks for the reply.. I tried to change PreScaler to various values..but i did not notice any change in the clock.. I searched in ST documentation for PreScaler content, but i could not find it...
As of now, my SPI clock is running at 10MHZ which is very fast..Can any one throw some light on how to configure the clock to very small value like 100kHz?
Thanks,
Sai
2011-05-17 05:29 AM
You really need to review the reference manual, or look at the FW library, if you don't believe me.
You may divide the APB by 2,4,8,16,32,64,128 or 256. At 36 MHz the minimum would be 140.625 KHz, want it slower, drop the APB lower. You can use an external source if you are the ''slave''. You may also bit-bang the port at a rate of your choosing, given the odd behaviour I've experienced with the SPI port this might be a preferred solution.