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.

TLV320DAC3100: Register settings for 4MHz MCLK

Part Number: TLV320DAC3100

HI,

I'm running an ESP32 with the TLV320 using i2s to play audio and can't seem to get a clean audio output (to say the least).  I suspect it is to do with the clocks.

I have a 4MHZ clock output from the ESP32, which I am feeding into the MCLCK of the TLV320, but I am finding it difficult to confirm the various clock settings to get a DAC_fs of 44.1kHz, whilst conforming to all the other restrictions.  The best I have are the following settings:

P=1, R=4, J=6, D=0, MDAC = 4, NDAC = 4, DOSR = 136

Which I calculate should give a close result of 44.118kHz.  Is this correct?

In terms of other registers, I have the PLL_CLKIN fed from the MCLK (i.e. 4MHz) and the CODEC_CLKIN fed from the PLL_CLK

I also have set the i2s mode, in slave mode, with 16bit word length.

Many thanks,