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

UART between nRF51422 and other MCU

I am using a nRF51422 (SDK 6.1.0 with S310) and i have a question about th UART.

I can send and receive data from/to an other MCU but i have to set different parameters to configure UART on 2 MCUs.

  • nRF51 UART configuration:

    params.baud_rate = UART_BAUDRATE_BAUDRATE_Baud38400;

    params.tx_pin_no = TX_PIN_NUMBER;

    params.rx_pin_no = RX_PIN_NUMBER;

    params.rts_pin_no = RTS_PIN_NUMBER;

    params.cts_pin_no = CTS_PIN_NUMBER;

    params.use_parity = true;

    params.flow_control = APP_UART_FLOW_CONTROL_ENABLED;

  • other MCU UART configuration:

BaudRate = 38400;

WordLength = UART_WORDLENGTH_9B; 9 bits????!!!

StopBits = UART_STOPBITS_1;

huart2.Init.Parity = UART_PARITY_EVEN;

huart2.Init.HwFlowCtl = UART_HWCONTROL_RTS_CTS;

If i set 8 bits, i can't exchange data. For information, i am using app_uart_fifo.c

Thanks.

Parents Reply Children
No Data
Related