2021-06-13 11:10 PM
Hello ,
I am using NUCLEO-H7 board it operates on 400MHZ clock frequency the APB clock is 100MHZ.
But on which frequency spi operate on 400MHZ or 100mHz. In stmcubmx clock configuration
SPI 1,2,3 clock mux option selected is PER_CK 64 MHZ. And baudatare prescalar_32 .can you explain me on which frequency spi operate?
2021-06-14 07:38 AM
PER_CK is 64 MHz, and your prescaler is 32, so the SPI clock rate is 64 MHz/32 = 2 MHz.
It should also be listed explicitly within CubeMX.
2021-06-14 07:56 AM
Look at the Clock configuration tab.
SPI1,2,3 and SPI4,5 have different clock source mux.
For example you can select PLL1Q, and PLL1 output Q is 40 MHz, so that will be the source clock for SPIs 1,2,3.
Then each SPI has it's own prescaler.
PER_CK is output of yet another MUX :
2021-06-14 08:13 AM
According to the MANUAL, it depends on the SPI unit, but 200 MHz or 125 MHz are the MAXIMUM rates the units can be clocked at.
2021-06-14 10:46 PM
I don't understand the on which frequncy spi is operate.it opertaes on 64MHZ or 100MHZ.On which frequncy baudrate prescalar is divide.
if 100MHZ then 100mhz/32=3.125MHZ
or
64MHZ/32=2MHZ
because spi can opertae under the 5MhZ.
so can you help me?
2021-06-14 11:07 PM
What do you measure on SCK currently?
What frequency do you actually want to achieve?
Typically you'll get the peripheral's bus clock divided by the prescaler.
2021-06-14 11:41 PM
what is differnce between per_clk and PLL1q. I am confusing of spi clock i dont have much knowledge of spi clock.I just want that my spi interfacing work propely.
2021-06-15 12:04 AM
2021-06-15 12:07 AM
When I set the clk frequcny upto 400MHZ if i select the PLL1Q clk it throws error it shows 400MHZ.So i have to select the clk_per if i selct that in cubemx it not shows error.so I want know the option per_clk i select its right or wrong why i am unable to select the PLL1q.Please help i am very confused.