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

Need to be clear urgency NRF52832 baud rate

Hi,

We are using nRF52832,want to configure non standard baud rate 5787 as per our client request,

Is there formula to calculate the error and reg values please advice.

Thanks,

Venkatesan

Parents
  • Hi,

    You can find a simplified formula in this thread (link). Note that you need to account for clock source accuracy (HFINT vs HFXO) in addition to any division error on the baudrate generator. I'd suggest that you use a logic analyzer or oscilloscope to measure the actual baudrate.  

  • As per the provided thread

    The formula is: Baudrate = desired baudrate * 2^32 / 16000000

                                                   =5787*4294967296/16000000

                                                   =5787*268.435456

                                                  = 1553435.983872

     Baudrate of 5787 should then be 15534356 decimal =0x ED0914

    then how to roundoff the value??for proceed further??Please help

Reply
  • As per the provided thread

    The formula is: Baudrate = desired baudrate * 2^32 / 16000000

                                                   =5787*4294967296/16000000

                                                   =5787*268.435456

                                                  = 1553435.983872

     Baudrate of 5787 should then be 15534356 decimal =0x ED0914

    then how to roundoff the value??for proceed further??Please help

Children
Related