TLV320AIC3204:  TLV320AIC3204:TLV320AIC3204 How to transfer data to audio processing chip?

Part Number: TLV320AIC3204

Tool/software:

Hi Team,
I want to achieve the following effect, but I do not know whether it can be achieved, please help me answer, thank you!
1. Use the I2C and I2S of the audio processing chip to control the 3204, so that the 3204 can get the stereo effect.
2. Transfer the stereo effects of the 3204 to the left and right channel headphones on the side of the audio processing chip.
How to configure the 3204 if it can be implemented?

  • Hi Luo,

    1. This is possible but a slight correction. Only I2C is used to control the device settings. I2S is used to transfer audio data.

    2. Yes this is possible. This is done by setting the DAC input to be the left/right digital data, routing the DAC output to the headphones, and powering up the headphone drivers. See the script below as a reference.

    ###############################################
    # High Performance Stereo Playback
    # ---------------------------------------------
    # PowerTune mode PTM_P3 is used for high
    # performance 16-bit audio. For PTM_P4,
    # an external audio interface that provides
    # 20-bit audio is required.
    #
    # For normal USB Audio, no hardware change
    # is required.
    #
    # If using an external interface, SW2.4 and
    # SW2.5 of the USB-ModEVM must be set to
    # HI and clocks can be connected to J14 of
    # the USB-ModEVM.
    #
    # Audio is routed to both headphone and
    # line outputs.
    ###############################################
    
    
    
    ###############################################
    # Software Reset
    ###############################################
    #
    # Select Page 0
    w 30 00 00
    #
    # Initialize the device through software reset
    w 30 01 01
    #
    ###############################################
    
    
    
    ###############################################
    # Clock Settings
    # ---------------------------------------------
    # The codec receives: MCLK = 11.2896 MHz,
    # BLCK = 2.8224 MHz, WCLK = 44.1 kHz
    ###############################################
    #
    # Select Page 0
    w 30 00 00
    #
    # NDAC = 1, MDAC = 2
    w 30 0b 81 82
    #
    ###############################################
    
    
    
    ###############################################
    # Signal Processing Settings
    ###############################################
    #
    # Select Page 0
    w 30 00 00
    #
    # Set the DAC Mode to PRB_P8
    w 30 3c 08
    #
    ###############################################
    
    
    
    ###############################################
    # Initialize Codec
    ###############################################
    #
    # Select Page 1
    w 30 00 01
    #
    # Disable weak AVDD in presence of external
    # AVDD supply
    w 30 01 08
    #
    # Enable Master Analog Power Control
    w 30 02 00
    #
    # Set the input powerup time to 3.1ms (for ADC)
    # w 30 47 32
    #
    # Set the REF charging time to 40ms
    w 30 7b 01
    #
    ###############################################
    
    
    
    ###############################################
    # Playback Setup
    ###############################################
    #
    # Select Page 1
    w 30 00 01
    #
    # De-pop
    w 30 14 25
    #
    # Route LDAC/RDAC to HPL/HPR
    w 30 0c 08 08
    #
    # Route LDAC/RDAC to LOL/LOR
    w 30 0e 08 08
    #
    # Power up HPL/HPR and LOL/LOR drivers
    w 30 09 3C
    #
    # Unmute HPL/HPR driver, 0dB Gain
    w 30 10 00 00
    #
    # Unmute LOL/LOR driver, 0dB Gain
    w 30 12 00 00
    #
    # Select Page 0
    w 30 00 00
    #
    # DAC => 0dB
    w 30 41 00 00
    #
    # Power up LDAC/RDAC
    w 30 3f d6
    #
    # Unmute LDAC/RDAC
    w 30 40 00
    #
    ###############################################

    Best regards,
    Jeff McPherson

  • Hi Jeff,

    Thank you for your answer, but what I mean is that instead of using the headphone driver of 3204, I will transfer the audio data of 3204 to the audio MCU and use the headphone driver of the audio MCU. How to realize this?

    regards.

  • Hi Luo,

    So you require stereo output from AIC3204? Yes, you can configure the HPR/HPL output drivers to be fully differential and send that signal to MCU