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: Can I use CC1100 exampe code on CC2540?

Part Number: CC2540
Other Parts Discussed in Thread: CC1100, CC2541

Is there any reason I can not use a CC1100 "radio" program to create a simple buffer transmit program on the CC2540?

Both are based on the 8051 as I understand it...

Using SmartRF Studio as the register definition?

All the examples for RF for the CC2540 are far too complex for the simple task I am working on, I don't need full Bluetooth...

LDT

  • CC1100 is sub GHz solution and CC2540 is for 2.4 G application so I don't think you can use the same code base. If you need simple RF example, I suggest you can start form CC254x PER test example which can be downloaded from www.ti.com/.../getliterature.tsp
  • Note that the CC2540 supports BLE operation only. If you want to do proprietary operation you need to use the CC2541 instead.

    Cheers,
    Fredrik
  • Problem is, I have hardware in-hand that is designed for the CC2540 using SPI, (to a MSP430) apparently CC2541 does not have SPI (or USB).

    I do understand they are pin compatible. I'm looking to see if the I2C would work in the interconnect I have.

    I've tried to understand the Bluetooth examples to modify for my on buffer send/receive but with no luck, just too complicated. (For me anyway.)

    The CC2540 works fine with Packet Sniffer and SmartRF Studio.

    Still having some problems with PER Test...Is that the CC2540 to CC2541 difference?

    LDT

  • The CC2541 uses different pins for I2C than the CC2540. I'd have to make board modification to accomidate that difference.

    LDT
  • Hi LDT,

    The PER test, or any other proprietary SW, will not run on the 40, only the 41. The 41 does have SPI on the same pins as the 40.

    Apart from the RF the only other difference is that the 40 has USB on pins 2 and 3 whereas the 41 has I2C on the same pins. There is no I2C HW peripheral in the 40.

    Regards,

    Fredrik

  • Wow! Thanks, I overlooked that.
    The data sheet pin-list and block diagram do not show the SPI on the CC2541. After your comment, I searched and found SPI with UART comments but never found the pin definition for SPI on the CC2541. Good to hear it is the same as the CC2540.

    I'll have to order the EM now.

    LDT
  • While I wait for the CC2541EM, is there any insight in making the Bluetooth function work for my buffer transfer application?

    Like, where to look in "broadcast" for where the actual buffer send could be inserted.

    LDT