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

Receive external data through UART on Thingy:91

Hi,

For my project I need to receive 9 bytes of data from our main board. This data gets send using UART. 

By looking at the pin diagram I could not find specific pins on the Thingy:91 to use as UART RX and TX.

So my question, are there any GPIO pins capable of handling an UART connection?

And if yes, which are they and last but not least how the code would look like. Slight smile

Thanks,

Tim

  • Marc said:
    Thx for your answer. I did option 1 and it's working fine! :-) How the lines IF3-7 are used, i found in the nrf9160_pca20035_common.dts file. I just used an overlay file like this to my needed speed of uart1

     Glad to hear that you got things working!

     

    Marc said:
    Thx for the general note, that CTS and RTS are not used anyhow.

     My apologies here, while the flow control (ie: the UART register setting) is enabled by "UART_0_NRF_FLOW_CONTROL=y" (change 0 to 1 or 2, if using UART1 / UART2), it seems that the nRF9160 sets the GPIOs as the respective output / input, with the default level set. Not a huge problem, but it reconfigures the GPIO pins, which could be problematic for some designs.

    If you set the rts-pin = <0xFFFFFFFF>; and cts-pin = <0xFFFFFFFF>;, they should not be re-configured at all.

     

    I'll report this as a bug internally

     

    Kind regards,

    Håkon

Related