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.

TLV320AIC3204EVM-K: TLV320AIC3204 output audio

Part Number: TLV320AIC3204EVM-K
Other Parts Discussed in Thread: TLV320AIC3204

Tool/software:

Hello,

I want to know whether the TLV320AIC3204 speaker can output the ambient stereo collected from the microphone and the sound transmitted from the I2S of the MCU at the same time.
Now I open D4 bit of P0_R29, the speaker can output ambient stereo, but there is no sound transmitted from MCU. Turn off D4 bit of P0_R29, there will be sound transmitted from MCU, but there is no ambient stereo.

  • Hi Luo,

    You are describing the correct operation of p0_R29. That is a loopback setting so it will override the output path.

    To mix multiple sources you must use the output routing registers P1_R12 through P1_R15. Connect both the DAC reconstruction filter output and the Mixer Amplifier output (MAL/MAR). Be sure to also power up the MAL/MAR with P1_R9.

    Best regards,
    Jeff McPherson

  • Hi Jeff,

    I configured the output routing channels MAL and MAR according to what you said, and used TLV320TI3204EVM-K to connect to the computer, but I could only hear the stereo environment sound of the microphone instead of the audio on the computer, and I could only hear the stereo environment sound when P0_R29 was on or off, could you help me analyze it, thank you!

    ADC-DAC loopback MAL.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    ###############################################
    # Software Reset
    ###############################################
    #
    # Select Page 0
    w 30 00 00
    #
    # Initialize the device through software reset
    w 30 01 01
    #
    ###############################################
    ###############################################
    # Clock Settings
    # ---------------------------------------------
    #The input clock signal : MCLK = 11.2896 MHz,BLCK = 1.4 MHz, WCLK = 44.1 kHz
    ###############################################
    #
    # Select Page 0
    w 30 00 00
    #
    # NADC = 1, MADC = 2
    w 30 12 81 82
    #
    ###############################################
    ###############################################
    #AGC
    ###############################################
    w 30 00 00
    w 30 57 7E
    w 30 56 F0
    w 30 58 3E
    w 30 59 08
    w 30 5A 32
    w 30 5B 18
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Luo,

    At line 189 and 192, you've connected the MAL and MAR to the HPL/R output but you have not connected the DAC output. This might be why you can only hear the microphone and not the computer audio. Try replacing the lines as follows:

    # Route LDAC and MAL to HPL/HPR
    w 30 0c 0a 01
    #
    # Route RDAC and MAR to LOL/LOR
    w 30 0e 01 0a

    Best regards,
    Jeff McPherson