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
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
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.
Thanks sir.
But just one doubt, Is the RX_PIN_NUMBER, TX_PIN_NUMBER and all are inbuilt or new variable.
Thanks sir.
But just one doubt, Is the RX_PIN_NUMBER, TX_PIN_NUMBER and all are inbuilt or new variable.