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.

CC2540 UART

Hi,

has anyone a sample how to use/activate the Hardware UART? In details the UART0 for second Alternative.

Something like a little "hello world" program would be helpful.

Thank you in advance.

Regards,

SeldomLight

 

 

 

  • The HostTestRelease project with "CC2540EM Slave" or "CC2540EM Master" uses the hardware UART for the HCI interface. You can look at the source code there to see an example of the UART working.

  • I have a hello world ap for the UART.  It can output constants through any of the ports (currently I am using the debug port for communication.) Here is what I need help with:  I need to change the constants to variables that I can write to through the Charecteristic Value write over bluetooth.  I don't really understand C++ yet, so I am sure its simple, but I don't yet know how to do that.  Have you been able to do anything like that?  I need to send | 0xFF | 0xFF | Variable_0 - Variable_3 | 0x01 | Variable_4-Variable_5.  I can send you my source for initializing the UART, notes on how to customize which port, and description for how to use and write to the port,  but I need to figure out the rest in the next 5 days.  Code swap?

  • It seems it is a DMA example, isn't it?

    Is there a simple example using interruption?