I have been trying to change the codec (aic3204) sample rate to 96 ksps. I started with the AIC3204 loopback test program and changed:
- In the PLL configuration, J.D to 7.6800
- In the ADC configuration, the MADC to 3, the NADC to 5 and the AOSR to 64 and the ADC processing block to PRB_R7
- In the DAC configuration, the MDAC to 5, the NDAC to 3 and the DOSR to 64 and the DAC processing block to PRB_P7
When I run the test the output sounds right (i.e. a 1 kHz input produces a 1 kHz output). However when I halt the debugger and look at the samples they correspond to a 2 kHz tone at 96 kbps. It also takes 1 s for the DSP to collect 48000 samples. i.e. the DSP is not seeing a 96 kbps sample rate, but a 48 kbps sample rate.
I have added code to check the registers and they are all set to the values I intended to program.
I'd be very grateful for any help.
Peter