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

UART pins in MDBT50Q.

I have found that there are 2 UART in MDBT50Q BLE. But I can't found any RX and TX pins in the schematic. Please help me to find out this

Parents
  • Hi

    In the nRF52840 any GPIO pin, except SWDIO, SWDCLK and USB, can be used as UART pins. I recommend only using those that the MDBT50Q data sheet states to be regular GPIO pins. 

    #define RX_PIN_NUMBER  NRF_GPIO_PIN_MAP(PORT, PIN)
    #define TX_PIN_NUMBER  NRF_GPIO_PIN_MAP(PORT, PIN)
    #define CTS_PIN_NUMBER NRF_GPIO_PIN_MAP(PORT, PIN)
    #define RTS_PIN_NUMBER NRF_GPIO_PIN_MAP(PORT, PIN)

    This is an example on how to define them. 

    Best of luck and kind regards,

    Simon

    EDIT: The NFC pins (P0.09 and P0.10) should not be used either. You can use them, but you will have to configure them to regular GPIO pins first.

Reply
  • Hi

    In the nRF52840 any GPIO pin, except SWDIO, SWDCLK and USB, can be used as UART pins. I recommend only using those that the MDBT50Q data sheet states to be regular GPIO pins. 

    #define RX_PIN_NUMBER  NRF_GPIO_PIN_MAP(PORT, PIN)
    #define TX_PIN_NUMBER  NRF_GPIO_PIN_MAP(PORT, PIN)
    #define CTS_PIN_NUMBER NRF_GPIO_PIN_MAP(PORT, PIN)
    #define RTS_PIN_NUMBER NRF_GPIO_PIN_MAP(PORT, PIN)

    This is an example on how to define them. 

    Best of luck and kind regards,

    Simon

    EDIT: The NFC pins (P0.09 and P0.10) should not be used either. You can use them, but you will have to configure them to regular GPIO pins first.

Children
Related