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.

СС1310 & i2s

Hello, is there any example code for I2S bus?

  • The examples we have are distributed with TI-RTOS and the latest version doesn't have any examples covering I2S.
  • Hello, I try to run i2s, but does not work.

    // Step 1
    IOCPortConfigureSet(Board_I2S_DATA, IOC_PORT_MCU_I2S_AD0, IOC_STD_INPUT);
    IOCPortConfigureSet(Board_I2S_WCLK, IOC_PORT_MCU_I2S_WCLK, IOC_STD_OUTPUT);
    IOCPortConfigureSet(Board_I2S_BCLK, IOC_PORT_MCU_I2S_BCLK, IOC_STD_OUTPUT);

    // Step 2
    PRCMAudioClockConfigSet(PRCM_I2SCLKCTL_EN, I2S_SAMPLE_RATE_24K);
    PRCMLoadSet();

    // Step 3
    g_pControlTable = &g_controlTable; // Assign pointer (inside a function)
    I2SClockConfigure(I2S0_BASE, I2S_INT_WCLK|I2S_NORMAL_WCLK);
    I2SChannelConfigure(I2S0_BASE, I2S_AIFDIRCFG_AD0_IN, I2S_AIFDIRCFG_AD1_DIS, I2S_AIFDIRCFG_AD2_DIS);
    I2SAudioFormatConfigure(I2S0_BASE, I2S_MEM_LENGTH_24, 0x02);

    // Step 4
    PRCMAudioClockEnable();
    PRCMLoadSet();

    // Step 5
    HWREG(I2S0_BASE + I2S_O_STMPWPER) = 0x01;
    HWREG(I2S0_BASE + I2S_O_STMPINTRIG) = 0x010;
    HWREG(I2S0_BASE + I2S_O_STMPOUTTRIG) = 0x010;

    // Step 6
    I2SSampleStampEnable(I2S0_BASE); // Enable the samplestamp generator

    // Step 7
    I2SEnable(I2S0_BASE);

    // Step 8
    //I2SSampleStampConfigure(I2S0_BASE, false, true);

    Can I do something wrong?
    The new version TI-RTOS examples i2s planned?

  • Hi

    I do not have the timeline as to when there will be an I2S driver available but we have a PDM driver using the I2S module. Maybe this can be of help?

    C:\ti\tirtos_cc13xx_cc26xx_2_16_00_08\products\tidrivers_cc13xx_cc26xx_2_16_00_08\docs\doxygen\html\index.html

    BR

    Siri