AD1938 Clock

hi

I am design broadcasting equipment and am using the ad1938 for the audio of the system

i have an external clock (12.288Mhz crystal) connected to the MCLKI  but i would like to just use that for the ADC  and use the BCLK from another device for the DAC .

i tried this is standalone mode and the ADC and DAC were not in sync, and now am using a microcontroller and i still can seem to the the system with with the different clocks

could you please advice me on if it can be done in standalone mode or how should i configur the registers ?

thanks

  • 0
    •  Analog Employees 
    on Aug 1, 2014 9:53 PM

    Hello Andrews,

    I need to know a bit more about the clocking.

    What are you using for MCLK?

    Are you sending MCLK to all the parts that require MCLK?

    Is this "other device" using this same MCLK?

    Thanks,

    Dave T

  • I'm using a 12.288Mhz crystal Oscillator

     

    The system is bi-directional ,I  am using the same product to send the audio

    So I am sending from the ADC of product1 to the DAC of product2

     

    I want too use the MCLK from the oscillator for just the ADC but then use the LRCLK for the DAC  so that the clock of the DAC in product 2 can be the same as the ADC of product 1

     

     

    I hope that's enough information for you to help me

     

    Thanks

    Andrews

  • Hi Dave ,

    i managed to get PLL input to lock in DLRCLK by setting  PLL and clock register 0 bit 5 to 1, therefor the DAC works as required .


    The problem i'm having now is PLL and clock register 1 , I cant seem to set bit 1 of that register to set to 1. In fact i cant seem to get that register to work at all,  its like that register is not responding to our code . i changed the oscillator to 24.576Mhz and still not working.

    please advice me if am missing anything

    Thanks

    Andrews

  • I'm using a 12.288Mhz crystal Oscillator

     

    The system is bi-directional ,I  am using the same product to send the audio

    So I am sending from the ADC of product1 to the DAC of product2

    I want too use the MCLK from the oscillator for just the ADC but then use the LRCLK for the DAC  so that the clock of the DAC in product 2 can be the same as the ADC of product 1

    I hope that's enough information for you to help me

    Thanks

    Andrews

  • 0
    •  Analog Employees 
    on Aug 4, 2014 11:36 PM

    Hello Andrews,

    In reading your description of the problem of the registers being unresponsive, I think you may be accidentally placing the part into Standalone mode. In standalone mode many of the registers are shadow registers and are bypassed so that is the behavior you will see. Have a look at Table 11 in the datasheet. If CIN, CCLK and CLATCH are all low for a period of time then the part will go into Standalone mode. With a 24.576 MHz clock on the MCLKI pin then the amount of time is 2.67 ms. Double that if it were a 12.288 MHz clock. This is easily avoided since SPI messages are far shorter in duration than 2.67ms. Where this has been a problem is when the system controller may have the SPI port on a lower priority, drops the CLATCH line low then gets interrupted before the start of the message for more than 2.67ms. Then the CCLK, CIN and CLATCH are all low for too long. Another possible source for this problem is at startup when in reset. This is best handled by placing a pull-up on the CLATCH line as recommended in the datasheet. Another strategy is to keep the CCLK line high at the end of the message and only drop it just before the start of the message.

    The only way to get it out of STANDALONE mode is to reset the part.

    I think otherwise, you are close to getting this working as you desire.

    Thanks,

    Dave T