Hello, I'm using nrf52805.
It is confirmed that P0.04 is AIN2 and P0.05 is AIN3.
Can I use this pin as UART TX,RX?
What should I do to use it?
Thank you.
Hello, I'm using nrf52805.
It is confirmed that P0.04 is AIN2 and P0.05 is AIN3.
Can I use this pin as UART TX,RX?
What should I do to use it?
Thank you.
Hello mjr,
Yes, you can use the pins as UART by just configuring GPIO.
You just need to put these GPIO numbers in the UART configuration.
Thank you Eugene YU,
uart_init()
{ \
.RX_pin_no = 5, \
.TX_pin_no = 4, \
.RTS_pin_no = 255, \
.CTS_pin_no = 255, \
.BaudRate = NRF_UART_BAUDRATE_115200, \
.FlowCtrl = NRF_UART_HWFC_DISABLED, \
.ParityBit = NRF_UART_PARITY_EXCLUDED, \
}
I set it up.
Is this all I have to do?
I don't do the action.
Yep. this is enough configuration if other drivers are not using the GPIOs.
Yep. this is enough configuration if other drivers are not using the GPIOs.