spi clock configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-18 7:53 AM
Hello,
I am using nucleo stm32f429zi. I want to add MCP3304 SPI with my controller. It works properly, but my spi clock is 1.325MHz, which means my channel sample rate will be 1.325MHz/21=63095Hz (sample rate for 4 differential channels). so each channel only has 15773Hz sample rate. is it possible to refine my spi clock frequency close to 2Mhz?
Thank you for all helps.
Solved! Go to Solution.
- Labels:
-
SPI
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-18 3:35 PM
I think on F429 SPI clock source is only SYSCLK with power of 2 prescaler.
If you want 2MHz, adjust SYSCLK and SPI prescaler to a better configuration, if available.
On STM32L4, most peripherals can select various clock sources which enables them to be decorellated to the core's clock frequency, which then can be "dynamically changed in frequency.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-18 3:35 PM
I think on F429 SPI clock source is only SYSCLK with power of 2 prescaler.
If you want 2MHz, adjust SYSCLK and SPI prescaler to a better configuration, if available.
On STM32L4, most peripherals can select various clock sources which enables them to be decorellated to the core's clock frequency, which then can be "dynamically changed in frequency.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-18 9:12 PM
It looks as you wrote. A little bit disappointed.
