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

Accurate or custom baudrate on nrf9160

Hi

On a nrf9160, I need to send data via UART(E) at 921600 baud. According to the UARTE BAUDRATE register documentation the register value 0xF000000 (Baud921600) leads to an actual rate of 941176 Hz. This is also what I measure on the oscilloscope. Setting the BAUDRATE register to an interpolated value 0xEBEDFA4 seems to result still in approx. 940000. What is the recommended way to achieve more accurate baudrate 921600?

Follow-up question: Is it possible to use custom baud rates, or are only the baudrates listed in the UARTE BAUDRATE register documentation supported?

Thanks,
Matthias

Parents
  • Custom baud rate can be used, provided both the devices has the same buad rate. Even small change in the clock will result in error.  So you shall us cristal clock to have effective communication

  • When I mean accurate baud rate, I mean close to the "Standard Baud Rates". E.g. when I set BAUDRATE register to Baud921600 (0x0F000000) the nrf91 uses actual rate 941176 (which it produces quite accurate as I use HFXO and GPIO High Drive

    I don't see from your answer how to use any other (custom) baud rate then those listed in the BAUDRATE table. I need to communicate with 921600 baud, because my counterpart MCU (maxim 32651) does not accept baudrate 941176 (and we cannot modify that counterpart system)

Reply
  • When I mean accurate baud rate, I mean close to the "Standard Baud Rates". E.g. when I set BAUDRATE register to Baud921600 (0x0F000000) the nrf91 uses actual rate 941176 (which it produces quite accurate as I use HFXO and GPIO High Drive

    I don't see from your answer how to use any other (custom) baud rate then those listed in the BAUDRATE table. I need to communicate with 921600 baud, because my counterpart MCU (maxim 32651) does not accept baudrate 941176 (and we cannot modify that counterpart system)

Children
No Data
Related