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.

[参考译文] TLV320AIC3262:通过耳机内置麦克风进行音频录制(TLV320AIC3262)

Guru**** 2380860 points
Other Parts Discussed in Thread: TLV320AIC3262
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1213002/tlv320aic3262-audio-recording-through-headphone-internal-microphone-tlv320aic3262

器件型号:TLV320AIC3262

你(们)好。

我们正在我们的平台中使用 TLV320AIC3262编解码器。

我们想要通过耳机麦克风录制直播音频、请告诉我们需要为此配置哪个寄存器。

我使用 shell 脚本配置了下面的寄存器

#########################################################################################
# 4.6.3  Cellular Headset - Stereo Headphone with Mono External Microphone, 8kHz
#########################################################################################
# Software Reset
#########################################################################################
i2cset -f -y 2 0x18 0x00 0x00	# Initialize to Page 0
i2cset -f -y 2 0x18 0x7f 0x00	# Initialize to Book 0
i2cset -f -y 2 0x18 0x01 0x01	# Initialize the device through software reset
#########################################################################################
# Power and Analog Configuration
#########################################################################################
i2cset -f -y 2 0x18 0x00 0x01	# Select Page 1
i2cset -f -y 2 0x18 0x01 0x00	# Disable weak AVDD to DVDD connection, make analog supplies available
i2cset -f -y 2 0x18 0x7a 0x01	# REF charging time = 40ms
i2cset -f -y 2 0x18 0x79 0x33	# Set the quick charge of input coupling cap for analog input
#########################################################################################
# Clock configuration
# MCLK = 4.096 MHz, BCLK = 512 kHz, WCLK = 8 kHz (slave)
#########################################################################################
i2cset -f -y 2 0x18 0x00 0x00	# Select Page 0
i2cset -f -y 2 0x18 0x04 0x33	# Set ADC_CLKIN = PLL_CLK and DAC_CLKIN = PLL_CLK
i2cset -f -y 2 0x18 0x05 0x00	# Set PLL_CLKIN = MCLK1
i2cset -f -y 2 0x18 0x06 0x91	# PLL settings: P=1, R=1
i2cset -f -y 2 0x18 0x07 0x18	# PLL settings: P=1, R=1, J=24
i2cset -f -y 2 0x18 0x08 0x00	# D=0000 (MSB)
i2cset -f -y 2 0x18 0x09 0x00	# D=0000 (LSB)
#############################################################
i2cset -f -y 2 0x18 0x25 0xba	# Headphone with microphone #
#############################################################
i2cset -f -y 2 0x18 0x0b 0x82	# NDAC = 2, divider powered off
i2cset -f -y 2 0x18 0x0c 0x88	# DAC Power MDAC = 8
i2cset -f -y 2 0x18 0x0d 0x03	# DOSR = 768 (MSB)
i2cset -f -y 2 0x18 0x0e 0x00	# DOSR = 768 (LSB)

i2cset -f -y 2 0x18 0x12 0x02	# NADC Powerdown NADC=2
i2cset -f -y 2 0x18 0x13 0xb0	# NADC Powerup, MADC=48
i2cset -f -y 2 0x18 0x14 0x80	# AOSR = 128

#########################################################################################
# Audio Serial Interface Routing Configuration - Audio Serial Interface #1
# ASI #1 recording
#########################################################################################
i2cset -f -y 2 0x18 0x00 0x04	# Select Page 4
i2cset -f -y 2 0x18 0x01 0x00	# Audio Serial Interface #1 is set to I2S mode, 16-bit
i2cset -f -y 2 0x18 0x0a 0x00	# Route ASI#1 WCLK and BCLK to WCLK1 pin and BCLK1 pin

#########################################################################################
# Signal Processing Settings
#########################################################################################
i2cset -f -y 2 0x18 0x00 0x00	# Select Page 0
i2cset -f -y 2 0x18 0x3c 0x01	# Set the DAC PRB Mode to PRB_P1
i2cset -f -y 2 0x18 0x3d 0x01	# Set the ADC PRB Mode to PRB_R1
#########################################################################################
# ADC Input Channel Configuration --- IN1L
#########################################################################################
i2cset -f -y 2 0x18 0x00 0x01	# Select Page 1
i2cset -f -y 2 0x18 0x08 0x00	# Set the input common mode to 0.9V
i2cset -f -y 2 0x18 0x33 0x40	# Mic Bias enabled, Source = Avdd, 1.62V
i2cset -f -y 2 0x18 0x34 0x80	# Route IN1L and CM1 to LEFT ADCPGA with 20K input impedance
i2cset -f -y 2 0x18 0x36 0x80
i2cset -f -y 2 0x18 0x3B 0x3C	# Left Channel Analog ADC PGA = 30 dB
i2cset -f -y 2 0x18 0x3D 0x00	# ADC Analog programmed for PTM_R4
i2cset -f -y 2 0x18 0x00 0x00	# Select Page 0
i2cset -f -y 2 0x18 0x51 0xC0	# Power-up ADC Channel
i2cset -f -y 2 0x18 0x52 0x00	# Unmute ADC channel and Fine Gain = 0dB
#########################################################################################
# Output Channel Configuration
#########################################################################################
i2cset -f -y 2 0x18 0x00 0x00	# Select Page 0
i2cset -f -y 2 0x18 0x3F 0xC0	# Power-up the Left & Right DAC Channels
i2cset -f -y 2 0x18 0x40 0x00	# Unmute the DAC digital volume control
i2cset -f -y 2 0x18 0x00 0x01	# Select Page 1
i2cset -f -y 2 0x18 0x03 0x00	# Set PTM mode for Left DAC to PTM_P3 (default, writing here optional)
i2cset -f -y 2 0x18 0x04 0x00 	# Set PTM mode for Right DAC to PTM_P3 (default, writing here optional)
i2cset -f -y 2 0x18 0x1F 0x80 	# Headphone in Ground-centered Mode, HPL Gain=0dB
i2cset -f -y 2 0x18 0x20 0x80	# HPR To have same gain as HPL, set to 0dB
i2cset -f -y 2 0x18 0x09 0x00	# HP Sizing = 100% (Setup A)
i2cset -f -y 2 0x18 0x1B 0x33	# Enable DAC to HPL/R and power-up HPL/R

我已附上麦克风原理图  

注意:其可与外部麦克风配合使用、如下图所示

如果我们遗漏了什么,请告诉我们吗?

非常感谢

Rizwan Chikodi.

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好,Rizwan:

    感谢您与我们联系。 从原理图中看、TRRS 连接器仅 用作麦克风插孔(J2的引脚4)、L 和 R 通道去耦接地。

    只要两个麦克风的 TRRS 连接相同(麦克风为引脚4或插孔的第二个"振铃")、就不需要更改脚本。

    此致!
    Andrew

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Andrew Jackiw  

    感谢您的答复。

    现在、我们可以使用耳机通过 J3端口进行录制和播放。

    非常感谢

    Rizwan Chikodi.