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.

[参考译文] TLV320AIC3101:无法为 TLV320AIC3101正确配置寄存器

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

https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1136853/tlv320aic3101-unable-to-configure-registers-correctly-for-tlv320aic3101

器件型号:TLV320AIC3101

我正在尝试使用  以下配置操作 TLV320AIC3101、并且很难确认我的寄存器是否设置正确。 是否有人可以查看我的设置并告诉我什么是错误的?

  • 48kHz 采样率
  • 无 PLL
  • 来自 BCLK 的 CLKDIV_IN 源
  • DAC FS/1
  • MIC1RP/MIC1RM 至 DOUT 的麦克风输入
  • 到 HPLOUT 和 HPROUT 的 DIN 输入

原理图如下:

我已进行硬件设置、在这里我将向 MIC1RP 和 MIC1RM 输入播放~400Hz 0.5Vpp 正弦波。 编解码器在正弦波上执行 AtoD、并通过 I2S 将其发送到主机 MCU。 MCU 回波 I2S 数据和编解码器并播放输出。 我可以听到耳机上的输出、但非常安静。 我尝试过几种不同的增益设置、但我不确定首先应该查看哪个增益设置。

以下是我的寄存器设置:

static const codecValues defaultRegisterMap[] = {
	0x02,	0x00,
	0x04,	0x04,
	0x05,	0x00,
	0x06,	0x00,
	0x07,	0x0A, // 48 kHz fs, Left-DAC plays left channel input data, right-DAC plays right channel input data
	0x08,	0x00,
	0x09,	0x00,
	0x0A,	0x00,
	0x0B,	0x01,
	0x0C,	0xF0, // Enable high pass filter for Left ADC and Right ADC
	0x0D,	0x00,
	0x0E,	0x80, // AC coupled high power output, psueo differential output
	0x0F,	0x00, // Left ADC PGA gain of 0 dB
	0x10,	0x3F, // Right ADC PGA gain of ~30 dB
	0x11,	0xFF, // Disconnect MIC2L/R from left ADC
	0x12,	0xFF, // Disconnect MIC2L/R from right ADC
	0x13,	0x78, // Left ADC powered down. LINE1L not connected to left-ADC PGA. We only have input on the right ADC
	0x14,   0x78, // Left Channel Analog Inputs to CM connection
	0x15,	0xF8, // MIC1RP to Left-ADC Control Register. MIC1RP differential mode. LINE1R is not connected to left ADC.
	0x16,	0x84, // MIC1RP to Right-ADC Control Register. Right ADC powered up, differential microphone mode, -0 DB volume
	0x17,   0x78, // Right Channel Analog Inputs to CM Connection
	0x18,	0xF8, // LINE1L not connected to right ADC
	0x19,	0x80, // MIC bias selection. Disable bias = 0x00, AVDD is 0xC0, 0x40 is 2.0V, 0x80 is 2.5V
	0x1A,	0x00, // Left-AGC control register
	0x1B,	0x7F,
	0x1C,	0x00,
	0x1D,	0x00,
	0x1E,	0x7F, 
	0x1F,	0x00,
	0x20,	0x00,
	0x21,	0x00,  
	0x22,	0x00,
	0x23,	0x00,
	0x24,	0x00,
	0x25,	0xE0, // Left DAC powered up, Right DAC powered up, HPLCOM is independent single-ended output
	0x26,	0x14, // HPRCOM is independent single-ended output, Short-Circuit Protection is enabled
	0x28,	0x00,
	0x29,	0xA0, // Left and right DAC output path selects path 2 
	0x2A,	0x38, // Output driver pop reduction
	0x2B,	0x10, // Left-DAC digital volume control register
	0x2C,	0x10, // Right-DAC Digital Volume Control Register
	0x2E,	0x00, // PGA_R is NOT routed to HPLCOM
	0x2F,	0x00, // DAC_L1 is NOT routed to HPROUT 
	0x31,	0x00,
	0x32,	0x00,
	0x33,	0x0D, // HPLOUT output level control to 0 dB.
	0x35,	0x00,
	0x36,	0x00,
	0x38,	0x00,
	0x39,	0x00,
	0x3A,	0x0C, // HPLCOM Output level control register
	0x3C,	0x00,
	0x3D,	0x00,
	0x3F,	0x00,
	0x40,	0x00,
	0x41,	0x0D, // HPROUT output level control to 0 dB.
	0x43,	0x00, // PGA_L is NOT routed to HPROUT 
	0x44,	0x00,
	0x46,	0x00,
	0x47,	0x00,
	0x48,	0x0C, // HPRCOM Output level control register
	0x51,	0x00,
	0x52,	0x00,
	0x54,	0x00,
	0x55,	0x00,
	0x56,	0x00,
	0x58,	0x00,
	0x59,	0x00,
	0x5B,	0x00,
	0x5C,	0x00,
	0x5D,	0x02,
	0x5E,	0x00,
	0x5F,	0x00,
	0x65,	0x01,
	0x66,	0xA2, 
	0x67,	0x00,
	0x68,	0x00,
	0x69,	0x00,
	0x6A,	0x00,
	0x6B,	0x00,
	0x6C,	0x00,
	0x6D,	0x00,
};

这是我尝试实现的音频路径:

如果我的设置有误、有人能告诉我吗?

谢谢。

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

    您好!

    您的 BCLK 频率是多少? 根据设置、BCLK 需要为12.288MHz、以获得48KHz 采样。

    您是否通过记录音频来检查 ADC 路径、以确保其正确、然后检查 DAC/HP 路径?

    其他寄存器看起来正常。

    此致。

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

    您好!

    BCLK 为12.288MHz。 我可以在麦克风输入中播放正弦波、听到它回放、但非常安静。 您能否根据寄存器设置确认 ADC 和 DAC 路径是否正确? 为了增加 ADC 输入上的增益、我应该从哪个寄存器开始?

    谢谢!

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

    我看到您将 ADC HPF 设置为0.025xF、从而在1.2KHz 时提供3dB、您提供的输入为400Hz。

    更改输入或 ADC HPF。