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

About reading GPIO input port on dedicated UARTE RX pin

Hi Folks,

I would like to configure an UART RX pin as input GPIO as well as keeping it as dedicated to the UART peripheral.

I would also like to know if I can configure this  dedicated IO to trigger on GPIO input event (with GPIOTE)

Is it possible to perform such kind of operations on NRF52840 ?

Thank you for your answer.

The best

Parents
  • Hi,

    You cannot assign the same GPIO to two different peripherals at the same time. If you assign the pin to the GPIOTE peripheral after UART have been initialized, the pin will no longer work with the UART peripheral.

    A workaround could be to configure a separate pin as watcher, and physically connect the two GPIOs together on your board.

    Best regards,
    Jørgen

Reply
  • Hi,

    You cannot assign the same GPIO to two different peripherals at the same time. If you assign the pin to the GPIOTE peripheral after UART have been initialized, the pin will no longer work with the UART peripheral.

    A workaround could be to configure a separate pin as watcher, and physically connect the two GPIOs together on your board.

    Best regards,
    Jørgen

Children
No Data