cancel
Showing results for 
Search instead for 
Did you mean: 

spi clock configuration

yang hong
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
S.Ma
Principal

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.

View solution in original post

2 REPLIES 2
S.Ma
Principal

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.

It looks as you wrote. A little bit disappointed.