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 Bluetooth registers

Other Parts Discussed in Thread: CC2540

Hello Everyone,


I am working on a project involving BLE for video applications. I am using cc2540 mini kit. I have gone through cc2540 software developer's guide, cc2540 user guide and cc2540 datasheet but I was not able to find the registers which are responsible for Bluetooth communication. I need detail idea about the hardware registers which control bluetooth comm.

I found following registers in user guide.

RF Core Status,

RF Observation Mux Control 0,

RF Observation Mux Control 1,

RF Observation Mux Control 2

Analog Test Control .

I studied the keyfob demo code too. However I still have no idea about how the application interacts with the blutooth/radio block on the chip.

I want to know when a byte is sent over a channel, how the application initializes bluetooth communication? Which registers it uses?


Thank you.

Omkar

  • Hello Omkar,

    This is hidden away in the library compiled from our BLE stack source.Unfortunately we do not share this.

    Are you considering to stream video over BLE? There might be other alternatives you can consider if you need very high throughput.

  • Hi Eric,

    Thank you very much for reply. I don't need registers for this application. I need the value in those registers right at the time of BLE communication takes place. By collecting this data I will know the clock cycles required for BLE packet transfer, maximum size of BLE buffer. I want to evaluate whether cc2540 is capable of running jpg image compression code if not full fledged video streaming. 

    Can you give me some idea regarding this?

    Thanks again. 

  • Hello Omkar,

    I think it might be possible to enable the packet sniffer feature on the device. I have not done this my self so I am not 100% sure if it works.

    If you look in the user guide in chapter "25.11 Packet Sniffing" and try to enable according to the description. 

    MDMCTRL3 is in CC2540 as well, it is just not used for anything in the BLE setting:

    #define MDMCTRL3        XREG( 0x6193 )