Hello everyone,
I m trying to run the example project 'Audio_Talkthrough_TDM', in Analog Devices\EV-SC59x_EZ-KIT-Rel3.2.0\EV-SC59x_EZ-KIT\Examples\drivers\adc\Audio_Talkthrough_TDM
I am connecting EV-SOMCRR-BROUT between SC21594 and SOMCCR-EZKIT
My question is:
I would like to give DAC (ADAU1962) my own Bit clock, frame sync and data via pins on EV-SOMCRR-BROUT,
with SRU and DAC config setting as below :
struct Config_Table Config_array_DAC[28] = {
{ ADAU1962_PDN_CTRL_1, 0x00},
{ ADAU1962_PDN_CTRL_2, 0xff},
{ ADAU1962_PDN_CTRL_3, 0x0f},
{ ADAU1962_DAC_CTRL0, 0x01},
{ ADAU1962_DAC_CTRL1, 0x44},
{ ADAU1962_DAC_CTRL2, 0x04},
{ ADAU1962_DAC_MUTE1, 0x0},
{ ADAU1962_DAC_MUTE2, 0x00},
{ ADAU1962_MSTR_VOL, 0x00},
{ ADAU1962_DAC1_VOL, 0x00},
{ ADAU1962_DAC2_VOL, 0x00},
{ ADAU1962_DAC3_VOL, 0x00},
{ ADAU1962_DAC4_VOL, 0x00},
{ ADAU1962_DAC5_VOL, 0x00},
{ ADAU1962_DAC6_VOL, 0x00},
{ ADAU1962_DAC7_VOL, 0x00},
{ ADAU1962_DAC8_VOL, 0x00},
{ ADAU1962_DAC9_VOL, 0x00},
{ ADAU1962_DAC10_VOL, 0x00},
{ ADAU1962_DAC11_VOL, 0x00},
{ ADAU1962_DAC12_VOL, 0x00},
{ ADAU1962_PAD_STRGTH, 0x00},
{ ADAU1962_DAC_PWR1, 0xaa},
{ ADAU1962_DAC_PWR2, 0xaa},
{ ADAU1962_DAC_PWR3, 0xaa},
{ ADAU1962_PDN_CTRL_2, 0x00},
{ ADAU1962_PDN_CTRL_3, 0x00},
{ ADAU1962_DAC_CTRL0, 0x18}
void SRU_Init()
{
*pREG_PADS0_DAI0_IE=0xfffff;
*pREG_PADS0_DAI1_IE=0xfffff;
//--------------------------------try------------------------------------------
// external BCLK on pin 16
// external FS on pin 17
// data on pin 18
SRU2(HIGH, DAI1_PBEN05_I);
SRU2(HIGH, DAI1_PBEN04_I);
SRU2(HIGH, DAI1_PBEN01_I);
SRU2(DAI1_PB16_O, DAI1_PB05_I); /*send clock to DAC */
SRU2(LOW, DAI1_PBEN16_I);
SRU2(DAI1_PB17_O, DAI1_PB04_I); /*send FS to DAC */
SRU2(LOW, DAI1_PBEN17_I);
SRU2(DAI1_PB18_O, DAI1_PB01_I); /*send data to DAC without SPORTA*/
SRU2(LOW, DAI1_PBEN18_I);
}
I got audio output on J17 but with periodic pop noise.
Is there anything wrong in my SRU route or ADAU1962 config ?
Thank you very much.