Other Parts Discussed in Thread: OMAPL138
Tool/software: TI-RTOS
I am using the latest version of CCS and SDK and all other packages.
I have configured the onboard codec AIC3106 in master mode and configured its sampling rate to be 48kHz when I record the data and plot it in Matlab, the sampling rate happens to 62640Hz. After searching the forum, I came through this post and did the changes but still the sampling rate is 47990Hz instead of 48kHz. (I got this result by taking FFT of 1-second samples )
What is the problem here? How do I get 48kHz and also is it possible to have a 96kHz sampling rate while using both the channels, How? can you provide code for that?
MY CODE:
unsigned char temp;
unsigned char fsDivVal;
unsigned char nVal;
unsigned char mVal = 8;
unsigned short osrVal = 128;
unsigned char ref = 0x0A;
// unsigned char pllPval = 1;
unsigned char pllPval = 2;
unsigned char pllRval = 1;
pllJval = 8u;
pllDval = 0u;
fsDivVal = 1;