This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TLV320AIC3204: How to configure CODEC for single supply on LDO IN

Part Number: TLV320AIC3204

Hello,

I guess I'm missing something in the documentation. I want to turn-on MIC BIAS and have let's say something greater or equal to 1.25V at MICBIAS output.

On my circuit, I am using a single supply of 3.5V tied to LDO IN pin 26 and IOVDD pin 6.

I also have AVDD pin 24 and DVDD pin 29 coupled to GND through a capacitor. Does the capacitor value here make any difference?

I tied LDO SELECT pin 30 to 3.5V but when I set P1_R51 to the following:

A) 0x58: I get around 0.35V on MIC BIAS;

B) 0x48: I get around 0.32V on MIC BIAS;

C) 0x68: I get around 0.33V on MIC BIAS;

D) 0x78: then I get 3.5V on MIC BIAS;

With the above configuration, the CODEC seems to initialize because I can read and write to registers.

Then I connected LDO SELECT to GND and now, none of the registers can be programmed.

In the documentation page 5 under pin 29, it refers to "D-LDO" being disabled if LDO_SELECT is tied to GND etc. I don't see "D-LDO" anywhere else in the docs.

Other than P1_R51 to configure MIC BIAS, given the power pins described above, are there any other registers I need to set in order to make the CODEC use a single 3.5V supply as described above?

Or perhaps can someone tell me exactly *what pins* need to be set to *what level* and *which registers* need to be configured (how?) in order for me to use a single 3.5V supply AND use MIC BIAS out.

Thanks for any help, sorry for the confusion!

Benoit

  • PLEASE IGNORE MY ORIGINAL MESSAGE for the section pertaining to MICBIAS.

    I just realized that I don't need MICBIAS anymore. However, I still need help on the single-supply part.

    In my original schematics, I had the following connections:
    - LDO_SELECT low;
    - AVdd and DVdd tied to 1.8V;
    - IOVdd and LDO_IN tied to 3.5V;
    - MCU sends 3.072MHz PWM to MCLK and 128kHz PWM to BCLK;
    - Microphone connected to IN1L (pin 13) through a cap;

    RESULT: The CODEC outputs an 8kHz on WCLK and audio from the microphone is heard on DOUT. This is all fine and works as expected.

    In my *new* schematics where I am using a single supply, I have the following connections:
    - LDO_SELECT high;
    - AVdd and DVdd both tied to GND through a 10uF CAP;
    - IOVdd and LDO_IN tied to 3.5V;
    - MCU sends 3.072MHz PWM to MCLK and 128kHz PWM to BCLK;
    - Microphone connected to IN1L (pin 13) through a cap;
    - In order for the internal LDO to be used, I configure P1_R10_D=00000001 and P1_R2_D=11110001;

    RESULT: The CODEC outputs an 8kHz on WCLK but the of data on DOUT is not the audio from my microphone but rather some garbage noise. I tried two microphones with the same result. I know it has to do with the register configuration, it's almost certain.

    What I missing? What other registers do I need to configure in order for the audio to be routed properly?

    Thanks for any help!

    Benoit
  • Hi, Benoit,

    From the information provided, I suspect the problem is related to the Analog LDO not being powered; The cap in AVDD and DVDD should not impact the behavior of MICBIAS. Analog LDO (ALDO) should be powered via register setting once the device is out from Reset state. The LDO_SEL pin enables the digital LDO (DLDO or D-LDO) to power up the digital blocks of the device, enabling the register control. From your latest post I see that in P1_R2 register, ALDO is powered ON but seems like you are writing an incorrect value to bits 7 to 4, which configures the ALDO and DLDO. Please write a 0x01 to this register and see if you are able to look a good voltage in DVDD and AVDD pins. Also, whenever you start normal operation with this device, you need to disable the weak connection between DVDD and AVDD, which is accomplished  by writing a 0x80 to P1_R1. 

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego,

    Thanks for your help. You are correct, as soon as I changed P1_R2 to 0x01 (rather than 0x00 as I had initially), that fixed part of the problem. It was the only register I had to change. The other problem I had is I soldered one of the mic pins to the wrong trace accidentally.

    Thanks for your help!

    Benoit