Hi
I want to use a custom UART with nrf51822 which is "5787".
Can you tell me value for it?
Hi
I want to use a custom UART with nrf51822 which is "5787".
Can you tell me value for it?
Hi
This post explains how to calculate the baud rate value for a desired baud rate. So, to get the value for a baud rate of 5787 (I assume this is in decimal), this would be the calculation:
Baud Rate: 5787 * 2^32 / 16000000 = 1 553 436. Or in hex: 0x17B41C.
Feel free to double-check my calculations.
Best regards,
Simon
How to add it?
I wrote the above value in (0x0017B41CUL) in "app_uart_comm_params_t" in ble_app_uart example of SDK 12.3. But still showing garbage values.
Hi
Try writing the decimal value 1553436 to the NRFX_UART_DEFAULT_CONFIG_BAUDRATE define (NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE if you're using UARTE) in the sdk_config.h file of your project.
Best regards,
Simon
I got this.... .actually problem was with simulation software(Docklight). I cross-checked with Arduino.
Can you suggest another?