h.rick

SPI speed calculation ?

Discussion created by h.rick on Mar 20, 2017
Latest reply on Mar 21, 2017 by Clive One

Hello everyone,

 

I have a calculation for SPI :

Please correct  me :

hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_8; //72/8 = 9MHz/ 9 Mbits/S

 

Is that right ?

From my STM32CubeMX configuration, PCLK1 = 36 MHz and PCLK1 = 72MHz,

 

Thanks

Outcomes