How could I configure the SRU file for the SC584 EZLITE board to add ADAU1977 to ADC DAC playback example?

Hi ADI expert,

I am using the ADSP-SC584 EZLITE board to develop ANC solution.

I want to add the ADAU1977 to the ADC DAC playback project that basically uses the adau1979 and adau1962a.

I can't understand from the manual how to modify SRU file.

Could you share the solution about how to configure the SRU file for SC584 EZLITE board to use ADAU1977 + ADAU1962A?

Thanks~!

Kim

  • Hi,

    The DAC and ADC Bit clk, FS and data pins are connected DAI1 pins. Please refer "ADAU1962A & ADAU1979" from SC584Ezkit schematic.

    Please refer the code snippet used to configure SRU between codec and SPORT.

    Ex:
    #include "sruSC589.h"

    void DAI_init(void)
    {
      /*The codec is generating clock, SPORT will use the same clock generated by CODEC.*/
            
                SRU2(LOW,DAI1_PBEN02_I);           // make the DAI pin as input
                SRU2(DAI1_PB02_O,SPT4_ACLK_I); // Connect the bit CLOCK generated by ADAU1962A into SPORT4a and SPORT4b clk
                SRU2(DAI1_PB02_O,SPT4_BCLK_I);
                            
                SRU2(DAI1_PB04_O,SPT4_AFS_I);  // Connect the FS clock generated by ADAU1962A into SPORT4a and SPORT4b FS
                SRU2(DAI1_PB04_O,SPT4_BFS_I);
                SRU2(LOW,DAI1_PBEN04_I);          // make the DAI pin as input

                SRU2(SPT4_AD0_O,DAI1_PB01_I);  // connect SPORT4a Tx into ADAU1962A data pin
                SRU2(HIGH,DAI1_PBEN01_I);         // make the DAI pin as output

                SRU2(DAI1_PB02_O,DAI1_PB12_I); // route the bitclk to another DAI pin to probe
                SRU2(HIGH,DAI1_PBEN12_I);         // make the DAI pin as output

                SRU2(DAI1_PB04_O,DAI1_PB20_I); // route the FS to another DAI pin to probe
                SRU2(HIGH,DAI1_PBEN20_I);         // make the DAI pin as output

                SRU2(DAI1_PB06_O,SPT4_BD0_I);  // connect SPORT4b Rx into ADAU1979 data pin
                SRU2(LOW,DAI1_PBEN06_I);          // make the DAI pin as input
    }


    Regards,
    Anand Selvaraj.

  • Dear Anand Selvaraj ,

    Thanks for your reply.

    Regards,

    Kim