Skip to main content
ibrahim
Associate III
September 15, 2016
Question

USART STM32F429i-Discovery

  • September 15, 2016
  • 2 replies
  • 754 views
Posted on September 15, 2016 at 17:36

Hello

everyone

, I hope

you are well

:)

I would like to

know how I can

write the value

9600 baud or 2400 baud directly

in the registry

I found

USART1-

>

BRR

but when I put the frequency / 9600, it does not work :

/, my frequencey it's 180Mhz. Thanks you :)0690X00000605bpQAA.png

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    September 15, 2016
    Posted on September 15, 2016 at 18:32

    You'd have to divide into the APB clock for the USART, in this case APB2 at 90 MHz, and the value would need to fit in 16-bit

    For the 16x over-sampling case

    9600 BRR =9375

    2400 BRR=37500

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    ibrahim
    ibrahimAuthor
    Associate III
    September 19, 2016
    Posted on September 19, 2016 at 10:27

    Thank you for your reply clive1