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 change the frequency in the TI-RTOS examples Tx/Rx from 868Mhz to others and also how to change the symbolrate in the CODE

Hello,

I am using the sample examples of TI-RTOS on smart RF boards.

I have successfully seen the working of Tx/Rx example given.

Its written that the code is foe 868Mhz and we can change the frequency by going to the file smartrf_setting.c

I have gone through the file but am not able to identify at wht place i should change the frequency.

i have tried to change the frequency in the smartrf_setting.c  of tx and rx program.

is it correct or do i have to made any additional changes.

i am copying the code below ..please see and let me know .the below code is from smartrf_setting.c file of tx.rx of ti-rtos for cc13xx series.

// CMD_PROP_RADIO_DIV_SETUP

rfc_CMD_PROP_RADIO_DIV_SETUP_t RF_cmdPropRadioDivSetup =

{

   .commandNo = 0x3807,

   .status = 0x0000,

   .pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx

   .startTime = 0x00000000,

   .startTrigger.triggerType = 0x0,

   .startTrigger.bEnaCmd = 0x0,

   .startTrigger.triggerNo = 0x0,

   .startTrigger.pastTrig = 0x0,

   .condition.rule = 0x1,

   .condition.nSkip = 0x0,

   .modulation.modType = 0x1,

   .modulation.deviation = 0x64,

   .symbolRate.preScale = 0xf,

   .symbolRate.rateWord = 0x8000,

   .rxBw = 0x24,

   .preamConf.nPreamBytes = 0x4,

   .preamConf.preamMode = 0x0,

   .formatConf.nSwBits = 0x20,

   .formatConf.bBitReversal = 0x0,

   .formatConf.bMsbFirst = 0x1,

   .formatConf.fecMode = 0x0,

   .formatConf.whitenMode = 0x0,

   .config.frontEndMode = 0x0,

   .config.biasMode = 0x1,

   .config.bNoFsPowerUp = 0x0,

   .txPower = 0xa73f,

   .pRegOverride = pOverrides,

   .centerFreq = 0x0398, //change frequency here---364 393 398

   .intFreq = 0x8000,

   .loDivider = 0x05,

};

// CMD_FS

rfc_CMD_FS_t RF_cmdFs =

{

   .commandNo = 0x0803,

   .status = 0x0000,

   .pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx

   .startTime = 0x00000000,

   .startTrigger.triggerType = 0x0,

   .startTrigger.bEnaCmd = 0x0,

   .startTrigger.triggerNo = 0x0,

   .startTrigger.pastTrig = 0x0,

   .condition.rule = 0x1,

   .condition.nSkip = 0x0,

   .frequency = 0x0398, //change frequency here---364 393 398

   .fractFreq = 0x0000,

   .synthConf.bTxMode = 0x0,

   .synthConf.refFreq = 0x0,

   .__dummy0 = 0x00,

   .midPrecal = 0x00,

   .ktPrecal = 0x00,

   .tdcPrecal = 0x0000,

};

thanks

  • I would recommend using SmartRF Studio, with this you can easily export the commands with the correct settings.

    Typically you need to chage

    rfc_CMD_FS_t RF_cmdFs =
    {
    ...
    .frequency = 0x0364,
    .fractFreq = 0x4ccc,
    ...
    };

    and

    rfc_CMD_PROP_RADIO_DIV_SETUP_t RF_cmdPropRadioDivSetup =
    {
    ...
    .centerFreq = 0x0364,

    ...
    };
  • I have changed

    .frequency = 0x0398, and

    .centerFreq = 0x0398, for 920MHZ

    but have not changed any thing for the below value

    .fractFreq = 0x0000,



    you have mentioned

    .fractFreq = 0x4ccc,

    do i have to change it also,the default value is
    .fractFreq = 0x0000,



    what is the meaning of this


    i have changed the values using smartrf studio but i want to change in the code also.



    thanks
  • As you see if you play with different frequencies in SmartRF Studio, the .fracrFreq is the decimal part of the frequency. Eq for 915.0 MHz the fraqFreq is 0, for 915.3 MHz it is different than 0 since a decimal is required. As previously stated, after setting the parameters in Smart RF Studio, select "code export" and copy paste or save the files into your code.
  • thank you i got the answer