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.

How to use simple BLE peripheral serial interface code given in TI wiki?

Other Parts Discussed in Thread: CC2541

Hi,

I am trying to use UART of cc 2541.I want to send temperature values sensed by sensor tag CC 2541 over UART.I got sample code "simple BLE peripheral serial interface" .(I got it from the link http://processors.wiki.ti.com/index.php/SimpleBLEPeripheral_SerialInterface).But I do not understand how it works.As far as I know it is taking data from UART and again sending over UART.Am I right in this regard?If it is the case then how should I give input to CC 2541 and from which pins I will get output data?

It would be helpful if you provide schematics on how the connections to be made.

Thanks in advance.

  • http://www.ti.com/lit/ug/swru191f/swru191f.pdf

    You need to look at the User Manual Guide on the TI CC2541 Page. The link is above. Page 81 gives you the UART Pin Config Options. Read the section on USART and it will explain what you are seeing.

    Also, keep in mind that to send data across USART, you must have dummy bytes sent to you in order to trigger the clock, so that what is in your TXBuffer will be sent out across MISO line.

    Look at SPI example here by downloading Peripherals Software Example:

    http://www.ti.com/product/CC2541/toolssoftware