You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in /usart/mod.rs
Compare 46.6.1.1 which is the current behaviour to 46.6.1.3 which is the desired behaviour in SPI Mode.
The text was updated successfully, but these errors were encountered:
martinmortsell
changed the title
Wrong Clock Frequency for USART Perihperal Running in SPI Mode
Wrong Clock Frequency for USART Peripheral Running in SPI Mode
Oct 5, 2022
Having looked at the datasheet the baudrate calculation needs to be done separately for asynchronous modes and synchronous modes. (And for ISO7816, should that ever be implemented.)
Furthermore, Baudrate Configuration should be omitted completely for SPI Client as the clock speed is determined by an external chip in that case.
I'm using the Usart peripheral in SPI Mode and it seems like the SCK is running at exactly 8 times the frequency I set it to.
E.g.
yields a bitrate of 8MHz. I haven't explored this behaviour fully, but it seems to me that the cause is:
in /usart/mod.rs
Compare 46.6.1.1 which is the current behaviour to 46.6.1.3 which is the desired behaviour in SPI Mode.
The text was updated successfully, but these errors were encountered: