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.

Questions of AIC23

I am using DS6416 and CCS V4.

 DSK6416_AIC23_setFreq () is used to modify the frequency of sampling rate. However, when I used the following code, I didn't hear any change of the output audio.

I want to know whether the code is right? If it is right, which address corresponds to the frequency value? I want to see the change of values in the corresponding memory.

 

DSK6416_AIC23_Config config = {
    0x0017, // 0 DSK6416_AIC23_LEFTINVOL  Left line input channel volume
    0x0017, // 1 DSK6416_AIC23_RIGHTINVOL Right line input channel volume
    0x00d8, // 2 DSK6416_AIC23_LEFTHPVOL  Left channel headphone volume
    0x00d8, // 3 DSK6416_AIC23_RIGHTHPVOL Right channel headphone volume
    0x0011, // 4 DSK6416_AIC23_ANAPATH    Analog audio path control
    0x0000, // 5 DSK6416_AIC23_DIGPATH    Digital audio path control
    0x0000, // 6 DSK6416_AIC23_POWERDOWN  Power down control
    0x0043, // 7 DSK6416_AIC23_DIGIF      Digital audio interface format
    0x0019, // 8 DSK6416_AIC23_SAMPLERATE Sample rate control
    0x0001  // 9 DSK6416_AIC23_DIGACT     Digital interface activation
};

........

void main()
{
    DSK6416_AIC23_CodecHandle hCodec;
    Int16 msec, sample;
   
    /* Initialize the board support library, must be called first */
    DSK6416_init();
    
    /* Start the codec */
    hCodec = DSK6416_AIC23_openCodec(0, &config);

 DSK6416_AIC23_setFreq (hCodec, 48000);

.........

}