Skip to main content
yang hong
Associate III
April 18, 2019
Solved

spi clock configuration

  • April 18, 2019
  • 1 reply
  • 4433 views

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.

This topic has been closed for replies.
Best answer by S.Ma

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.

1 reply

S.Ma
S.MaBest answer
Principal
April 18, 2019

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.

yang hong
yang hongAuthor
Associate III
April 19, 2019

It looks as you wrote. A little bit disappointed.