Hai,
We are trying to configure mic(not using Lineout and Headphone) in SGTL5000 using the below configurations.
But we are not able to produce any data from I2S out.
The Power usuage is:
VDDA = VDDIO = 3.3V
VDDD = 1.8V
Can anyone suggest what all the configurations needed for the mic.
We are configuring only,
1) CHIP_DIG_POWER (0x0042)
2) CHIP_CLK_CTRL (0x0008)
3) CHIP_I2S_CTRL (0x0090)
4) CHIP_SSS_CTRL (0x0010)
5) CHIP_ANA_CTRL (0x0110)
6) CHIP_REF_CTRL (0x01FE)
7) CHIP_MIC_CTRL (0x0371)
8) CHIP_ANA_POWER (0x4062)
Please suggest if any other configurations are needed.
Regards,
Kiran
Kiran,
Take a look to this initialization, it might help:
This configuration enables:
- Microphone
- Headphone amplifier
- Line out
- 16Khz audio
SGTL5000_INIT_SIZE (18)
SGTL5000_CHIP_ANA_POWER,
SGTL5000_CHIP_LINREG_CTRL,
SGTL5000_CHIP_REF_CTRL,
SGTL5000_CHIP_LINE_OUT_CTRL,
SGTL5000_CHIP_SHORT_CTRL,
SGTL5000_CHIP_ANA_POWER ,
SGTL5000_CHIP_DIG_POWER,
SGTL5000_CHIP_MIC_CTRL,
SGTL5000_CHIP_LINE_OUT_VOL,
SGTL5000_CHIP_CLK_CTRL,
SGTL5000_CHIP_I2S_CTRL,
SGTL5000_CHIP_SSS_CTRL,
SGTL5000_CHIP_ANA_ADC_CTRL,
SGTL5000_CHIP_DAC_VOL,
SGTL5000_CHIP_LINE_OUT_VOL,
SGTL5000_CHIP_ANA_HP_CTRL,
SGTL5000_CHIP_ADCDAC_CTRL,
SGTL5000_CHIP_ANA_CTRL
0x7220, //SGTL5000_CHIP_ANA_POWER
0x0068, //SGTL5000_CHIP_LINREG_CTRL
0x01EE, //SGTL5000_CHIP_REF_CTRL
0x0F22, //SGTL5000_CHIP_LINE_OUT_CTRL
0x1106, //SGTL5000_CHIP_SHORT_CTRL
0x72BB, //SGTL5000_CHIP_ANA_POWER
0x0063, //SGTL5000_CHIP_DIG_POWER
0x0171, //SGTL5000_CHIP_MIC_CTRL
0x0F0F, //SGTL5000_CHIP_LINE_OUT_VOL
0x003C, //SGTL5000_CHIP_CLK_CTRL
0x0080|I2S_WORD_LENGTH, //CHIP_I2S_CTRL
0x0010, //SGTL5000_CHIP_SSS_CTRL
0x0000, //SGTL5000_CHIP_ANA_ADC_CTRL
0x3C3C, //SGTL5000_CHIP_DAC_VOL
0x0C0C, //SGTL5000_CHIP_LINE_OUT_VOL
0x1818, //SGTL5000_CHIP_ANA_HP_CTRL
0x0000, //SGTL5000_CHIP_ADCDAC_CTRL
0x0000 //SGTL5000_CHIP_ANA_CTRL
Hai Carlos,
Thanks for your reply.
I checked the configuration you send, but did not get any data on I2S OUT.
One more thing I need to share you is that I am providing, VDDD (1.8V) source externally.
VDDA = VDDIO = 3.3V.
Can you provide configuration details if the VDDD power supply is externally driven.
Whether the Line out and Headphone registers need to be provided if I need only the mic?
Is there any order for the registers to be given?
Please provide your valuable suggestion.
Regards,
Kiran