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.

CC2640R2F: How to change CC2640R2F I2S's BCLK speed rate

Part Number: CC2640R2F


Hello,

       We encounted an issue that our MIC supplier think the BCLK now we use is not very siuatable for the digital mic now we use.

       The BCLK now we use is 4.8M Hz as default. Could this rate be 3.072Mhz or 2.4Mhz?

       I check the code,and found the defination below,

       but I think only modify the marco below can't change the speed as the function is in the lib.

       Is there any way to change the I2S's BCLK?

  

BR

yaohongxuan

       

  • Hi yaohongxuan,

    The BCLK clock frequency is automatically set based on the sampling frequency, the padding and the data format selected when opening the driver.

    Please refer to the code snippet below to see the elements that impact the BCLK clock frequency. Please refer to the driver's documentation for additional details.

        I2S_Params i2sParams;
        I2S_Params_init(&i2sParams);
        
        i2sParams.samplingFrequency =  SAMPLE_RATE;
        i2sParams.beforeWordPadding = 0;
        i2sParams.bitsPerWord = 16;
        i2sParams.afterWordPadding = 0;
         
         //... 
         
         i2sHandle = I2S_open(Board_I2S0, &i2sParams);
    

    Best regards,