Setting SPI1 to the highest clock frequency
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-19 4:11 AM
Hello,
I just wanted to ask what's the best way to set the SPI and system clock in STM32L496 to have at least 40MHz frequency for the SPI1.
Thank you in advance
Labels:
- Labels:
-
SPI
-
STM32L4 Series
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-19 4:33 AM
If the respective APB clock is 80MHz, setting SPI1_CR1.BR to 0b000 sets its clock to fPCLK/2 i.e. 40MHz.
JW
