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.

TLV320DAC3120: Biquad not working

Part Number: TLV320DAC3120

Hello,

I am trying to implement a biquad filter on the TLV320DAC3120. My initialization sequence is as follows:

  • hardware reset
  • wait 1ms
  • set P1R60 = 6 (DAC signal processing block PRB_P6)
  • set P8R1 = 4 (Adaptive filtering enabled in DAC miniDSP)
  • 10ms delay
  • do a block write of the 10 bytes of biquad A coefficients for buffer A (P8R2 and following)
  • do a block write of the 10 bytes of biquad A coefficients for buffer B (P12R2 and following). If I don't do this, P8R2 and following registers have their default value.

After the above I configure the other audio amplifier settings.

To verify that the biquad is working I initially set the cutoff frequency to 1.5 kHz and then play a 1kHz tone and check that it is audibly attenuated. I then repeat this experiment with the cutoff frequency set to 3 kHz.

When I program my microcontroller with a Debug build, the above tests work as expected. However if I program a release build, the tone sounds the same (no attenuation). In both cases when I read back the contents of the audio amplifier registers, they look correct.

Is there something else I could have missed?

Thanks in advance for some feedback,

Regards.

Alan