Hi guys,
I have recently implemented the AIC3204 example code using DSP/BIOS by using hardware interrupts in place of the polling used by the example code. It all works, but I am not getting the sample rate I expect and experience aliasing. Because I am running at (or trying to run at) 48kHz sample rate I am assuming that the aliasing I hear must be due to missed samples, or perhaps the clock speed is not what I am expecting such that it gets divided down to the wrong frequency for the codec.
This creates two questions:
- How could I be missing samples (if that is, indeed the problem) if the hardware interrupts work at all? Note that I have three other tasks running, but I have commented out all of the code and these should be preempted by the interrupts anyway.
or
- How can I verify that I am getting the clock speed I need without the use of a scope on the pins? It's not clear to me how DSP/BIOS sets the clock frequency, if indeed it does; If I use any code I have used before to set up the PLL (which works when not using DSP/BIOS), which should set the clock frequency to 100MHz, then the problem gets even worse.
Any ideas?