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 configure TI C6670 AIF2 for LTE_5MHz in CPRI mode?

Hi,

I can able to capture and process RF data properly from TI6670 for LTE_20MHz in CPRI mode.

Query: What are changes required to configure the AIF2 module in TI C6670 for LTE 5MHz in CPRI mode?

I cut pasted the below code which works for LTE_20MHz in CPRI mode.

------start of cut paste------------------------------

volatile TestObj                     testObjTab[TEST_NUM] = {
    {//1st Test - CPRI 4x for LTE 20MHz
     // link0          link1          link2          link3          link4          link5
      {1,             0,             0,             1,             0,             0            },  // link enable
      {4,             4,             4,             4,             4,             4            },  // link rate
      {DATA_TYPE_DL,  DATA_TYPE_DL,  DATA_TYPE_DL,  DATA_TYPE_DL,  DATA_TYPE_DL,  DATA_TYPE_DL },  // outboundDataType
      {DATA_WIDTH_15, DATA_WIDTH_15, DATA_WIDTH_15, DATA_WIDTH_15, DATA_WIDTH_16, DATA_WIDTH_16},  // outboundDataWidth
      {DATA_TYPE_DL,  DATA_TYPE_DL,  DATA_TYPE_DL,  DATA_TYPE_DL,  DATA_TYPE_DL,  DATA_TYPE_DL },  // inboundDataType
      {DATA_WIDTH_15, DATA_WIDTH_15, DATA_WIDTH_15, DATA_WIDTH_15, DATA_WIDTH_16, DATA_WIDTH_16},  // inboundDataWidth
      {DIO_0,         DIO_0,         DIO_0,         DIO_0,         DIO_0,         DIO_0},          // not applicable for LTE test
    }
   };


    for (i=0;i<AIF_MAX_NUM_LINKS;i++)
    {
         aifObj.linkConfig[i].linkEnable         = testObjTab[0].linkEnable[i];
         aifObj.linkConfig[i].linkRate           = (CSL_Aif2LinkRate)testObjTab[0].linkRate[i];
         aifObj.linkConfig[i].sampleRate         = AIF_SRATE_30P72MHZ;
         aifObj.linkConfig[i].outboundDataType   = testObjTab[0].outboundDataType[i];
         aifObj.linkConfig[i].outboundDataWidth  = testObjTab[0].outboundDataWidth[i];
         aifObj.linkConfig[i].inboundDataType    = testObjTab[0].inboundDataType[i];
         aifObj.linkConfig[i].inboundDataWidth   = testObjTab[0].inboundDataWidth[i];
         aifObj.linkConfig[i].cpriPackMode       = AIF2_LTE_CPRI_8b8;//AIF2_LTE_CPRI_1b1;//
         aifObj.linkConfig[i].psMsgEnable        = CPRI_FAST_CM;
         aifObj.linkConfig[i].comType =            AIF2_2_AIF2;
         aifObj.linkConfig[i].dioEngine          = testObjTab[0].dioEngine[i]; //NA for pkDMA
    }

-----end of cut paste--------------------------------

I tried the following:

aifObj.linkConfig[i].sampleRate         = AIF_SRATE_7P68MHZ;

aifObj.linkConfig[i].linkRate= 2;  //as per AIF2 Programming user guide, Table-2

I haven't got the proper data. To me, not clear on what need to be set in "aifObj.linkConfig[i].cpriPackMode" for LTE_5MHz?  Please help me. Or provide one example source code which configures AIF2 in 5MHz mode in CPRI mode.

Thanks in advance,

Srinivas V