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.

ti DRC理解

Other Parts Discussed in Thread: TAS5711, TAS5717

请问DRC中,Energy Filter,Attack Filters ,Decay Filters怎样理解?设置不同的值起什么不同的作用?

  • 你好,

    对应到DRC的框图:

    1 Energy filter

    用于检测输入信号的Rms值,里面主要配置的参数为w和ae,他们决定了检测信号时间窗口的长短,对应关系为(fs=2pi w):

     

    2 Attack/Decay filter

    决定DRC跟踪和放手的时间,

    更多的说明,请阅读

     

  • 你好:

    Energy Filter,Attack Filters ,Decay Filters的设定分别对应DRC中的系数“ae”,“aa”,"ad"。这些系数有的是9.23格式,有的是3.23格式。分别有相应的寄存器设置这些系数。例如TAS5711中的register0x3A-0x46。这些系数最终影响的是Energy time,Attack time,Decay time。这些系数通过固定的公式可以计算得到相应的时间。无论是codec还是TAS57XX系列,TI的GUI中都有工具,用户只需要在GUI上设定时间,GUI会通过I2C修改filter的寄存器控制这三个时间。用户开发时,只需要通过GUI导出寄存器,用MCU控制即可。所以,对于用户来说,这些filter系数都是中间变量,用户需要关心的是时间如何设定,对于DRC的影响。

    对于这个时间,我暂且简单的解释一下:

    1.AAV estimator—This DRC element derives an estimate of the average absolute value (AAV) of the audio data stream into the DRC. A time constant, t_energy, is used to control the effective time window over which the AAV estimate is made. 

    2.Compression coefficient computation—This DRC element converts the output of the AAV estimator to a logarithmic number, determines the region where the input resides, and then computes and outputs the appropriate gain coefficient to the attack/decay element. Parameters K define the slopes of the gain curve for these three regions.  T specify the boundaries of the regions, in terms of input level.  O specify offsets of the gain curve relative to a 1:1 transfer function at the thresholds.

    3.Attack/decay control—This DRC element controls the transition time of changes in the coefficient computed in the compression/expansion coefficient computation element.  User-specified parameters t_a and t_d are used to set the attack and decay time constants used in the gain adjustment.   

    建议先读一下文字(一定要阅读一下再看图),再配以图形,更容易理解。

     

  • TI的大爷,你们好,我们公司用到TI的音频方案,TAS5717,,那,看下面:

    就是这个板子,我接上电,PVCC和 System Power我都用同一个电源5V,电流足够了(3A最大量程),然后设置

    J11跳冒为RCA模式,此时对应LED亮了,SP4,SP5均设置SPDIF(i2s输入),然后如下操作:

    1.用USB线把PCB与电脑连接。
    2.按照附件的方法把I2C地址改为0x54(与TAS5717相对应的I2C地址)。
    3.打开TAS57xx GUI控制软件,选择对应的Devices(tas5717)界面。
    4.点Connect与电脑连接起来(Target----connect),
    5.取消Shutdown与MUTE,把音量提高应该就有声音输出了。
    6.设置好EQ后,点Write i2c file生成所需的寄存器值(Target目录下)
    在LEFT,RIGHT接入2个喇叭,从RCA输入音乐,但是喇叭不唱歌,没有任何声音
    如下图:
    PC端设置没有问题,PWM_OUT设置为headphone,从HP_IN输入音乐,HP_OUT有声音输出,用耳机可以听到!
    在PC软件端操作Shutdown,可以控制headphone模式播放,静音,说明PC端操作正常,读写I2C正常,能看到数据
    但唯独,PWM_OUT的Speaker模式,没有用??什么原因???求TI员工帮忙排查!万分感激!!
     
    PC端软件能够识别USB,并对I2C读写,没有问题,connect能够连上

  • 你好:

    板子看起来没有问题,和GUI也能正常通信。可能是哪里没有配置好,或者是jumper没有接好。

    1.你先shutdown,对寄存器0x1B写00,然后接shutdown,解Mute试一下。

    2.如果SPK OUT还是没有声音,量一下其中一个通道的正负端输出波形,量电感前后。正常没有输出电感前的波形就是50%占空比的方波,电感后就是1/2PVCC的电压。你看看你的输出端是没有输出没有声音,还是有输出波形,但是正负两端波形一模一样导致differential的输出为零。

  • 非常感谢Flora Wang ,也祝福你新年工作顺顺利利,步步高升,我之前的问题解决了,想在问下!TAS5717,有个耳机输入(HP-IN),耳机输出(HP-OUT),我选择HP-IN输入音源,

    现在,我需要1.从Speak输出音乐     2.从HP-OUT输出音乐,这两者可以切换吗?在只有HP-IN当做音源输入的情况下,先不考虑I2S,只考虑模拟输入,我可以让音频从1.从Speak输出,或者从 2.从HP-OUT输出,这两者可以任意切换吗?目前我没有看到可以切换的方法,想知道,是否可以在这两者之间切换??非常感谢Flora Wang !

  • 你好:

    这个是可以的,参见datasheet page 56中关于“Case 2 – Headphone With I2S Input”一节的描述。

     

  • Flora Wang,非常感谢!我想用耳机当做音源输入,喇叭(speak)当输出,就是耳机输入,是通过喇叭输出,直接把耳机的模拟输入,通过扬声器播放!这个,我看了你说的page 56,貌似不可以实现,

    NOTE: The speaker and headphone cannot be used at the same time as they both share the same digital
    channel. DAP can be used for headphone volume
    这点,耳机和扬声器无法公用!!!!

    有点悲剧!!要是能够实现耳机音源输入,喇叭播放耳机输入的,就完美了!!!

  • 你好:

    是的,是这样的:

    1.I2S输入,可以接Speaker,也可以接HP。

    2.Line out只能接到HP。

    你这样的需求可以考虑别的device,在如下audio subsystem里看看有没有合适:

    http://www.ti.com/lsds/ti/audio-ic/audio-subsystem-product.page?paramCriteria=no

  • 非常感谢你的回答!!

  • 你好!请问TAS5717的I2C通信要如何启动?为什么我通过I2C写寄存器无应答?(可以肯定I2C时序没问题,已通过别的从机验证过)。设备地址为0x54,A_SEL为低。