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.

Setting Up the sampling frequency

Hello All,

I am working with USBSTICK 5515, I want to set a sampling frequency for example 8Khz. When i tried to bypass the PLL and use the MCLK as CLK_IN for ADC i can able t get my exact sampling frequency and is ther any simpple way to decide the sampling frequency of my AIC3204 CODEC.

Thanks in advance....

Regards

Shan

 

  • hi,

     

    What do you mean on simple way to decide the sampling frequency? Do you want to know how to setup AIC3204 CODEC at 8KHz sampling?

    Regards,

    Hyun

  • Yes, Because i a cant able to set the exact sampling frequency for th eAIC3204 CODEC

  • I am also having some trouble with this. I am working with the VC5505 FFT Filter Demo code (available on the google code site at http://c5505-ezdsp.googlecode.com/files/VC5505_FFT_Filter_Demo_2010-05-11.zip) and I am having some trouble finding how to change the clock speed. Basically my problem is that the CCR registers do not seem to be writable. In the beginning of the program, there is a function call InitSystem(). Inside this function are these lines:

    #if (PLL_100M ==1)
        PLL_CNTL2 = 0x8000;
        PLL_CNTL4 = 0x0000;
        PLL_CNTL3 = 0x0806;
        PLL_CNTL1 = 0x82FA;
       
    #elif (PLL_12M ==1)
        PLL_CNTL2 = 0x8000;
        PLL_CNTL4 = 0x0200;
        PLL_CNTL3 = 0x0806;
        PLL_CNTL1 = 0x82ED;

    .....

    etc. Now it SEEMS that it was intended that these blocks control what speed the PLL is set at, and the different blocks will execute depending on how you set it in the preprocessor, but when I step through these instructions in the debugger, the register values do not seem to change. This behavior is supported as reality rather than a debugger flaw, because when I run the program and inspect the scratch buffer where the FFT appears, it does not change as it should if this setting modified the PLL speed at all.

  • Also, is there a way to get the value of, say, the PLL in the debugger without reading the registers and looking it up?