How to control SPI clock..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-03-23 7:46 AM
How to control SPI clock..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:29 AM
Change the prescaler, change the APB clock, or become a ''slave'', and pull the clock from a timer or USART baud clock.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5: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.Up vote any posts that you find helpful, it shows what's working..
