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.

PCM5252: writing registers sequence

Part Number: PCM5252
Other Parts Discussed in Thread: PCM5242, DAC11001A

Hi,

I use Spartan-6 as a master, so I am going to program DAC without using the PurePath Console (if that's possible). I am going to use PCM5252 to generate a sinusoidal 150 Hz (I am working with biosensors application, that's why 32-bit resolution is crucial for me to achieve minimum voltage resolution steps)

I would like to know in which order I should write the pages and registers (page 0: reg 1 - 125; page 1: reg 1 - 9; page 44: reg 1; page 263: reg 63-64)?  I didn't find the exact writing registers sequence instruction in the datasheet. 

Thank you in advance,

Roman.

  • Hi Roman,

    This depends on the exact configuration that you require.  If you are using 4-wire I2S audio format and a supported frequency ratio, you might not need any configuration.

    Thanks,

    Paul

  • Hi Paul,

    Thank you for a quick reply! Indeed, I am using 4-wire I2S audio format, but there are few setting I need to change:

    1) frequency. My sampling (RLCK) Fs = 96kHz, system clock Fsck = 128Fs = 12,288MHz, and Bck = 64fs. And if this configuration is accepted, then I would need to change the value of Fs speed mode (register 34) from default single speed (00) to double speed (01)

    2) Bit length. I need to utilize 32-bit conversion, thus I would need to change the value of the register 40, which is default 24 bits

    3) Muting one of the channels. Since I want to generate a 150Hz sinusoidal, I need only one channel. So I would like to mute the second one, the right channel for example. For that, I would need to change the default value of the registers 62 and  42 ( I hope I named them all)

    I hope I understood everything right. And if yes, then I would need to know the sequence of writing to these registers. 

    P.S. Can you please provide me as well with the information about DNL, INL, and the glitch energy, if it's available?

    Thanks,

    Roman.

     

  • Hi Paul,

    In addition to my previous comment, where I stated that there are 3 things I need to change (fs speed, bit length, muting of right channel), I forgot to mention that I might use LJ instead of I2S. So I guess it's 4 things then.

    Roman.

  • Hi Roman,

    By default, register 37 has the auto clock configuration feature enabled.

    As such, you do not need to change the sample rate:

    Really the only registers you need to write are the mute (data path) and format registers.

    By default, Page 0 is selected, so you really only need those two commands.

    Now, we do not specify linearity or glitch for the delta-sigma type audio DACs.  These are generally not considered precision DACs.  I think it is more important to consider the THD and SNR you require in your application, and verify if the PCM5242 can support it.  

    If you require a precision DAC, then you might consider one of our high-resolution devices, like the DAC11001A.

    Thanks,

    Paul

  • Hi Paul,

    Thank you very much for your reply and also for your recommendations!

    Best regards,

    Roman.