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.

Re-sampling AIC3262 Mini-DSP

Hi,

I would like to play 48kHz samples received on ASI1 and at the same time receive 8kHz samples on ASI2. The 8kHz samples should be re-sampled (interpolated) in the Mini-DSP to 48kHz and mixed with the 48kHz samples received on ASI1.

Is it possible?

If so, how should the interpolation of the samples received on ASI2 be done?

Best Regards

/Bjorn Qvarnstrom

  • Hi Bjorn,

    Two options:

    1. Have entire AIC3262 configured for 48ksps on all ASIs. Then recevied data from 8k source will have 6 duplicate samples. Filter at 3.8kHz using a couple of biquad filters to remove any images.

    2. Have ASI2 configured for 8k. Then recevied data from 8k source will have 6 duplicate samples. Filter at 3.8kHz using a couple of biquad filters to remove any images.

    Make DAC_FS and ADC_FS = 48kHz.

    Regards,

    J-

  • Thank you,

    This works fine for the receiving side. I hav e another question regarding sending. I am using the PurePath decimation blocks to re-sample from 48 to 8kHz.. According to the documentation the filter will remove images over 0.5Fs. 

    When I run DAC_FS = ADC_FS = 48kHZ will it cut at 24kHz? If so it will be a problem since I want the cut at 0.5 * 8 = 4kHz.

    Best Regards

    /Bjorn Qvarnstrom

      

  • Hi Bjorn,

    It depends on how the processor that receives the data handles an Fs faster than it was programmed for.

    If you pre-filter the transmit data in the miniDSP with a cut close to 4kHz and the processor on the receiving end ignores the extra sample, it should be ok.

    Another option is to set the external processor as I2S master. In this case AIC3262 will receive and send data at 8kHz through I2S, but internally, miniDSP will be sampling at 48k. In such case, you also need to post filter received data and pre-filter transmitted data.

    Regrds,

    J-

  • please share the code or any files for this codec