AnsweredAssumed Answered

SPDIF Loopback on ADSP21469

Question asked by Hfuhrhurr on Sep 12, 2012
Latest reply on Sep 14, 2012 by Harshit.Gaharwar

Hi all,

 

I want to implement a digital loopback or loopthrough with SPDIF signals.

That is, SPDIF goes into the SPDIF receiver of the ADSP21469 and directly back out via the SPDIF transmitter.

The DAI pins used are pin 19 and 20.

I did it like this

 

//Generating Code for connecting : DAI_PIN20 (SPDIF_IN) to DIR

    SRU (LOW, PBEN20_I);

    SRU (DAI_PB20_O, DIR_I);

 

    //Generating Code for connecting : DIR_DAT to DIT_DAT

    SRU (DIR_DAT_O, DIT_DAT_I);

 

    //Generating Code for connecting : DIR_CLK to DIT_CLK

    SRU (DIR_CLK_O, DIT_CLK_I);

 

    //Generating Code for connecting : DIR_FS to DIT_FS

    SRU (DIR_FS_O, DIT_FS_I);

 

    //Generating Code for connecting : DIR_TDMCLK to DIT_HFCLK

    SRU (DIR_TDMCLK_O, DIT_HFCLK_I);

 

    //Generating Code for connecting : DIT to DAI_PIN19

    SRU (HIGH, PBEN19_I);

    SRU (DIT_O, DAI_PB19_I);

  

 

 

void InitSPDIFRx(void)

{

    *pDIRCTL=0x0;

   

}

 

void InitSPDIFTx(void)

{

   *pDITCTL = (DIT_EN|DIT_IN_I2S|DIT_AUTO);

}

 

Are these the right connections and initializations? I'm not quite sure about the DIR_TDMCLK_O to DIT_HFCLK_I connection.

It is important that the output signal has the same clock as the input signal.

 

Thanks in advance.

 

Rainer

Outcomes