This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640: CC2650: UART baud rate change

Part Number: CC2640

Hello All,

I am working on simple_peripheral example and I want to change the uart baud rate. By default baud rate is 115200.

In this example usrt open "dispHandle = Display_open(Display_Type_UART, NULL);"  I didn't find baud rate option to change it.

Can any one help me how to change default uart baud rate.

Thanks,

  • Hi Mahesh123,

    A good place to start is using our UART driver APIs. You can find descriptions and examples of our UART driver in the link below.

    dev.ti.com/.../_u_a_r_t_8h.html

    Specifically regarding your question, in the usage section you can see a small code example where the UART is configured and being used. In that code example you'll find "uartParams.baudRate = 9600;". Use that to configure the baud rate.

    For future reference, anytime you are not sure how to use a peripheral, TI Resource Explorer is a great place to start:

    http://dev.ti.com/tirex

    Hope this helps!
    Jesus