i am going to use uart in nrf51822.
but i don't know which pin is uart pins.
hope someone will help me.
i am going to use uart in nrf51822.
but i don't know which pin is uart pins.
hope someone will help me.
Hi,
All nRF5 devices have a pin crossbar that allow any digital I/O pin to be connected to any digital peripheral. You can refer to the Pin assignments and functions chapter in the product specification to see a list of all the GPIO pins. Then you configure the UART peripheral to use those pins (in software).
thank you ,i checked datasheets. i can see following
The GPIOs used for each UART interface line can be chosen from any GPIO on the device and are
independently configurable. This enables great flexibility in device pinout and efficient use of board space
and signal routing.
then can i use all pins for uart?
sorry , i don't know how to choose GPIO for uart.
then can i use P0.09 (TX) and P0.10 (RX) for uart?
i really don't know how to confirm these.
Yes
how about enable pin for uart?
You do that in software, by configuring the UART peripheral accordingly (setting the PSELRTS, PSELTXD, PSELCTS and PSELRXD registers). In practice you will most likely not do this directly, but rather via the UART driver.
thank you very much for your help
thank you very much for your help