Nordic nrf52DK and UART

We are trying to interface Texas Instruments TMP144 using the UART in nrf52DK. We attach the sensor board to UART pins in nrf52DK put it seems that the transmitted data is just echoed in console. Do we have to configure the Interface MCU somehow, or should we look for software error in our UART code?

Parents Reply Children
  • Hi, before cutting the solder bridges, I dug a bit deeper with this issue.

    We are trying to interface TI's TMP144 sensor using the nrf52DK. We had some pin issues, but I assume that the commands are now going to TMP144. However, we are bit stuck with the protocol. Texas Instruments gives following protocol for TMP144:

      

    Essentially it is 8-bit data with start and stop bits. The stop bit is, I guess, handled automatically with Zephyr by setting the 

    UART_CFG_STOP_BITS_1. However getting the start bit, I assume we would need to use 9-bit communication but this seems unsupported with nrf52832. When I try to set  UART_CFG_DATA_BITS_9, we get -134 as error code when configuring the UART. 

    The question is, how we can send the 0x55 with the start and stop bit using Zephyr and nrf52832?
  • We do not support the start bit in the UART, It is only 8-bit communication with a stop bit. 

Related