Page 1 of 1

[NUCLEO-H743ZI] change SPI3 baud rate

Posted: Sat Aug 08, 2020 3:45 am
by Sunghwan_Chung
Initial value of SPI3 baud-rate is 100MHz.
As I know, SPI baud-rate is changed when baud-rate value set when SPI initialization.
But, Baud-rate is never changed and fixed with 100MHz.
What am I missing?

>>> import pyb
>>> spi = pyb.SPI(3, pyb.SPI.MASTER, baudrate=2000000, polarity=1, phase=0)
>>> spi
SPI(3, SPI.MASTER, baudrate=100000000, prescaler=2, polarity=1, phase=0, bits=8)
>>> spi = pyb.SPI(3, pyb.SPI.MASTER, baudrate=40000000, polarity=1, phase=0)
>>> spi
SPI(3, SPI.MASTER, baudrate=100000000, prescaler=2, polarity=1, phase=0, bits=8)