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.

Need FW routine for constant carrier transmit at specified frequency for the CC2520

Other Parts Discussed in Thread: CC2520, CC2420, CC2430

Hi all,

I'm a US AFA working with a customer in LA. My customer needs a CC2520 firmware routine that will allow him to put the CC2520 into a constant carrier transmit mode at a specified channel or frequency for testing and tuning purposes.  Does anyone have a convinient routine they can share for this device?  Many thanks!

 

Steve Tomassetti

TI AFAE,  Los Angeles

  • Hi Steve.

    Setting the unmodulated carrier:

    CC2520_REGWR8(CC2520_TXPOWER,0x32);
    CC2520_REGWR8(CC2520_MDMTEST0,0x65);    // Unmodulated carrier; 0 Hz
    CC2520_REGWR8(CC2520_FRMCTRL0,0x03);
    CC2520_REGWR8(CC2520_FRMCTRL1,0);       // Forces IDLE after TX
    CC2520_INS_STROBE(CC2520_INS_STXON);

    Selecting an RF-channel:

    // IEEE 802.15.4 defined constants (2.4 GHz logical channels)
    #define MIN_CHANNEL             11    // 2405 MHz
    #define MAX_CHANNEL                         26    // 2480 MHz
    #define CHANNEL_SPACING                     5     // MHz

    /***********************************************************************************
    * @fn      halRfSetChannel
    *
    * @brief   Set RF channel in the 2.4GHz band. The channel must be in the range 11-26,
    *          11= 2005 MHz, channel spacing 5 MHz.
    *
    * @param   channel - logical channel number
    *
    * @return  none
    */
    void halRfSetChannel(uint8 channel)
    {
        CC2520_REGWR8(CC2520_FREQCTRL, MIN_CHANNEL + ((channel - MIN_CHANNEL) * CHANNEL_SPACING));
    }

    NB! The macros used are defined in the CC2520 SW examples. http://focus.ti.com/docs/prod/folders/print/cc2520.html#toolssoftware swrc090.zip

    I hope this gets your customer going.

    Jomar

  • Hi Jomar,

     

    thank you so much for this help.  This should handle my current customer issue.  Can this snippet of code be applied to the other related devices such as the CC2420, and CC2430? I also have customers using these older devices.  Thanks for any help and additional info.

     

    Best regards,

     

    Steve

  • Hi Jomar,

    I'm a software engineer and  want to put the CC2520 into a constant modulated transmit mode.

    Can you give me MDMTEST0 register map definition or a firmware routine.

     

    Best regards,

    Daniel Choi

  • Hi Daniel,

    Please try these settings:

    MDMTEST0: 0x05

    FRMCTRL0: 0x43

    FRMCTRL1: 0x00

    I Hope this helps.

  • We are also working with this chipset and are preparing for characterization tests and could really use a more detailed explanation of the test registers.

    I'm curious as to why the register definitions are not published. Can someone at TI send more details and not just tiny snippets for specific cases?

    Thanks.