This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to implement soft uart in Pca10028?

Hello,

I am using pca10028 and sdk 12. I want to use 2 uart for my application but as per datasheet nrf51 has only one hardware uart. Can I implement soft uart on pca10028? I want to use both the uart at the same time so multiplexing will not help me.

Sdk_config.h New Text Document (3).txt

Main.c New Text Document (3).txt

Thanks, Shailav

Parents
  • Hi Shailav,

    I am afraid that we do not have any examples showing how create a software-based("bit-banged") UART for the nRF51 Series. Have you considered using the nRF52840 that has two UARTs?

    Best regards

    Bjørn

  • None of the above call NRF_LOG_INFO works in BLE_GAP_EVT_ADV_REPORT. I am using NRF_LOG_PROCESS() in the main . Though when I am printing // Start scanning for peripherals and initiate connection // with devices that advertise NUS UUID. NRF_LOG_INFO("Uart_c Scan started\r\n");

    scan_start(); 
    

    The above code works but when I am calling NRF_LOG_INFO in BLE_GAP_ADV_REPORT it doesn't works. Thanks

Reply
  • None of the above call NRF_LOG_INFO works in BLE_GAP_EVT_ADV_REPORT. I am using NRF_LOG_PROCESS() in the main . Though when I am printing // Start scanning for peripherals and initiate connection // with devices that advertise NUS UUID. NRF_LOG_INFO("Uart_c Scan started\r\n");

    scan_start(); 
    

    The above code works but when I am calling NRF_LOG_INFO in BLE_GAP_ADV_REPORT it doesn't works. Thanks

Children
No Data
Related