Hi,
I am trying to run a MIDI slave chip with the nRF51822 which requires me to use the MIDI standard baud rate of 31250. Is it possible to use nrf_drv_uart with a custom baud rate such as this?
Thanks
Hi,
I am trying to run a MIDI slave chip with the nRF51822 which requires me to use the MIDI standard baud rate of 31250. Is it possible to use nrf_drv_uart with a custom baud rate such as this?
Thanks
Hi,
Yes, that is possible. It's already defined in nrf51_bitfields.h
#define UART_BAUDRATE_BAUDRATE_Baud31250 (0x00800000UL) /*!< 31250 baud. */
If you want to do other custom baudrates that is not defined in nrf5x_bitfields.h, take a look at this post for how to calculate the value of the baudrate register.
Works perfectly, thanks!
Works perfectly, thanks!