Hello all,
I am working on nrf52832 Board and i want to use it as translator to send and receive the data , please tel which pins i need to select as UART(rx,tx) pins ? How to configure the same?
Hello all,
I am working on nrf52832 Board and i want to use it as translator to send and receive the data , please tel which pins i need to select as UART(rx,tx) pins ? How to configure the same?
I recommend you run the ble_app_uart project in the nRF5_SDK_13.0.0_0\examples\ble_peripheral, and the RX and TX are 8 and 6.
Yes, you can select other pins. This can be configured in the PCA10040.h file. Or you can change it directly in main in the app_uart_comm_params_t instance.
const app_uart_comm_params_t comm_params =
{
.rx_pin_no = RX_PIN_NUMBER,
.tx_pin_no = TX_PIN_NUMBER,
.rts_pin_no = RTS_PIN_NUMBER,
.cts_pin_no = CTS_PIN_NUMBER,
.flow_control = APP_UART_FLOW_CONTROL_DISABLED,
.use_parity = false,
.baud_rate = UART_BAUDRATE_BAUDRATE_Baud115200
};
Yes, you can select other pins. This can be configured in the PCA10040.h file. Or you can change it directly in main in the app_uart_comm_params_t instance.
const app_uart_comm_params_t comm_params =
{
.rx_pin_no = RX_PIN_NUMBER,
.tx_pin_no = TX_PIN_NUMBER,
.rts_pin_no = RTS_PIN_NUMBER,
.cts_pin_no = CTS_PIN_NUMBER,
.flow_control = APP_UART_FLOW_CONTROL_DISABLED,
.use_parity = false,
.baud_rate = UART_BAUDRATE_BAUDRATE_Baud115200
};