AD1934 interface with Microcontroller - Not able to hear anything on DAC output

Hi,

I'm interfacing the AD1934 DAC to an MCU's SPI interface. I have connected a 12.288MHz external clock signal to the MCLKI pin and left MCLKO pin as open.

Following are the AD1934's register configuration.

DAC Control 1 --> 0x60

DAC Control 2 --> 0x18

PLL and Clock Control 0 --> 0x98

DAC individual channel mutes --> 0x00

I have read back the registers what i have written and its the same what i have transferred.

I have also probed the LR Clock, Data and Bit clock lines and everything seems to be fine. But I cannot hear anything on the DAC output.

The audio data is a 16-bit signed LE with 48kHz sample rate. I have extracted the samples from .wav file and stored it in a C array format using a python script and used it in my code.

In some other post I've read that the data size is always 32-bit for AD1934. I have configured my master accordingly but no audio is coming out.

My MCU master uses the bit clock from AD1934 and generates the LR clock and data to be input to the AD1934.

Am i missing anything?

BR,

Tri

Parents
  • Hi Dave,

    Thanks for your suggestion.

    Actually my configuration for AD1934 was correct. The issue was with my audio samples itself and wrong DMA configuration in my MCU.

    I re-sampled a 44.1kHz audio file into a 48kHz audio file using some software and somehow it broke the audio. I used an original 48kHz audio file and fixed my MCU's DMA settings and I could hear the audio without any issues.

    BR,

    Tri

Reply
  • Hi Dave,

    Thanks for your suggestion.

    Actually my configuration for AD1934 was correct. The issue was with my audio samples itself and wrong DMA configuration in my MCU.

    I re-sampled a 44.1kHz audio file into a 48kHz audio file using some software and somehow it broke the audio. I used an original 48kHz audio file and fixed my MCU's DMA settings and I could hear the audio without any issues.

    BR,

    Tri

Children