This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

uart baudrate nrf52

I'm working with uart on the nrf52832 and I'm facing an issue related to the baudrate.

In this post a formula for calculating the baudrate given the register value is given. By applying that formula to the UART_BAUDRATE_BAUDRATE_Baud921600 I obtain 921585bps but the nrf52_bitfield.h file state that the actual rate with that register value is 941176.

Could someone clarify why the given formula and the documentation don't match?

  • Hi,

    At the top of the post you linked to, it's mentioned that

    "this formula is simplified and may differ from the actual baudrate measurement".

    How the actual rate comes out is more complex. The UART(E) baud rate generator is too complex to be described with a simple formula. The formula in the post you linked to is intended to give a value that is a good starting point for tuning. The values listed in the product specification as actual values, are measured values with the given register setting.

Related