[NUCLEO-H743ZI] change SPI3 baud rate

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
Sunghwan_Chung
Posts: 5
Joined: Sat Feb 10, 2018 1:27 pm
Location: South Korea

[NUCLEO-H743ZI] change SPI3 baud rate

Post by Sunghwan_Chung » Sat Aug 08, 2020 3:45 am

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)

Post Reply