CN100417043C - Automatic gain controller and its control method - Google Patents
Automatic gain controller and its control method Download PDFInfo
- Publication number
- CN100417043C CN100417043C CNB031523005A CN03152300A CN100417043C CN 100417043 C CN100417043 C CN 100417043C CN B031523005 A CNB031523005 A CN B031523005A CN 03152300 A CN03152300 A CN 03152300A CN 100417043 C CN100417043 C CN 100417043C
- Authority
- CN
- China
- Prior art keywords
- gain
- multiplexer
- signal
- output
- time constant
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 13
- 238000010586 diagram Methods 0.000 description 14
- 230000005540 biological transmission Effects 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 7
- 230000001629 suppression Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Images
Landscapes
- Control Of Amplification And Gain Control (AREA)
Abstract
本发明有关一种自动增益控制器及其控制方法,该自动增益控制器包含一第一多路转换器,用以接收一输入信号与一增益并产生一第一输出;一第二多路转换器,用以接收一信号时间常数与一增益时间常数并产生一第二输出;一滤波器,电连接于该第一多路转换器与该第二多路转换器,用以响应该第一输出及该第二输出而产生一信号能量或一实际增益;以及一信号能量处理装置,电连接于该滤波器与该第一多路转换器及该第二多路转换器,用以响应该信号能量而产生该增益及该增益时间常数。
The present invention relates to an automatic gain controller and a control method thereof. The automatic gain controller comprises a first multiplexer for receiving an input signal and a gain and generating a first output; a second multiplexer for receiving a signal time constant and a gain time constant and generating a second output; a filter electrically connected to the first multiplexer and the second multiplexer for generating a signal energy or an actual gain in response to the first output and the second output; and a signal energy processing device electrically connected to the filter and the first multiplexer and the second multiplexer for generating the gain and the gain time constant in response to the signal energy.
Description
(1)技术领域 (1) Technical field
本发明有关一种自动增益控制器及其控制方法,尤指一种具有杂讯抑制功能的自动增益控制器及其控制方法。The invention relates to an automatic gain controller and its control method, in particular to an automatic gain controller with noise suppression function and its control method.
(2)背景技术 (2) Background technology
在一般的语音传送设备,例如数字加强式无线通讯系统(Digital EnhancedCordless Telecommunications,DECT)中,为了消除回音(echo),常会内建回音消除器(echo canceller)。同时在免手持式(hand free)手机中,因为说话者的位置跟手机之间的距离可能会有变化,导致声音忽大忽小,为了将音量控制在预设的范围内,一般的语音传送设备皆会使用一自动增益控制器来进行音量的控制。In general voice transmission equipment, such as Digital Enhanced Cordless Telecommunications (DECT), in order to eliminate echo, an echo canceller (echo canceller) is often built in. At the same time, in the hands-free (hand free) mobile phone, because the distance between the speaker's position and the mobile phone may change, resulting in the sound fluctuating, in order to control the volume within the preset range, the general voice transmission The devices all use an automatic gain controller for volume control.
请参阅图1,其是一般语音传送设备的内部电路方块图,其包含一模拟数字转换器(Anolog-to-Digital Converter,ADC)11、一数字模拟转换器(Digital-to-Anolog Converter,DAC)18、一有限脉冲反应滤波器(Finite ImpulseResponse Filter)15、以及一自动增益控制器(Automatic GainController,ADC)13。模拟信号输入经由该模拟数字转换器11转换成一数字信号后,再将该数字信号乘上一第一增益12并减去该有限脉冲反应滤波器15所计算出的回音数值,即可得致一信号能量,该信号能量需经由该自动增益控制器13处理后才能传送至扬声器14,这样方能避免受话方所听到的声音产生忽大忽小的现象。而进行发话时,则是将麦克风16所接收的信号乘上一第二增益17后,经由该数字模拟转换器18转换成一模拟信号输出。Please refer to Fig. 1, it is the internal circuit block diagram of general speech transmission equipment, and it comprises an analog-to-digital converter (Anolog-to-Digital Converter, ADC) 11, a digital-to-analog converter (Digital-to-Anolog Converter, DAC ) 18, a finite impulse response filter (Finite ImpulseResponse Filter) 15, and an automatic gain controller (Automatic GainController, ADC) 13. After the analog signal input is converted into a digital signal by the analog-to-digital converter 11, the digital signal is multiplied by a
请参阅图2(a)及图2(b),其是一般语音传送设备所使用的自动增益控制器处理音量前的信号波形图及处理音量后的信号波形图。图2(a)所示的波形即为图1上A点的测量波形,而图2(b)所示的波形即为图1上B点的测量波形。由图2(a)及图2(b)可知,该自动增益控制器会设定两个层级(Level)-基准层(AssignedLevel)及噪音层(Noise Level)。基准层表示最大预设音量,当音量大于基准层时,该自动增益控制器会将音量缩小。而当音量不大于基准层时,该自动增益控制器则会将音量放大,但不会将音量放大至超过基准层。至于该噪音层是为考虑到音量很小时,可能只是杂讯,故不将其放大。Please refer to FIG. 2(a) and FIG. 2(b), which are the signal waveform diagrams before and after the volume is processed by the automatic gain controller used in the general voice transmission equipment. The waveform shown in Figure 2(a) is the measured waveform at point A in Figure 1, and the waveform shown in Figure 2(b) is the measured waveform at point B in Figure 1. It can be seen from Fig. 2(a) and Fig. 2(b) that the automatic gain controller will set two levels (Level) - the reference level (Assigned Level) and the noise level (Noise Level). The base level indicates the maximum preset volume, when the volume is higher than the base level, the automatic gain controller will reduce the volume. And when the volume is not greater than the reference layer, the automatic gain controller will amplify the volume, but will not amplify the volume to exceed the reference layer. As for the noise floor, it may be just noise when the volume is low, so it is not amplified.
然而,在实际应用中,使用定点(fixed point)运算来运算该第一增益12及该第二增益17时,可能产生杂讯;另外,该有限脉冲反应滤波器也可能无法将回音清除,而剩下能量较小的杂讯。这些杂讯定点运算中,若位元数不够,可能会产生令人不悦的杂音,因此需要更进一步的将此杂讯压低。However, in practical applications, when the
(3)发明内容 (3) Contents of the invention
本发明的主要目的是提供一种自动增益控制器,于自动增益控制器的增益判断流程中,加入对噪音层的判断,于信号能量不大于噪音层时,提供一个小于1的增益,使其达到抑制杂讯。The main purpose of the present invention is to provide an automatic gain controller, in the gain judgment process of the automatic gain controller, add the judgment to the noise floor, when the signal energy is not greater than the noise floor, provide a gain less than 1, make it To suppress noise.
根据本发明一方面提供一种一种自动增益控制器,其包含:一第一多路转换器,其具有一信号始能端,且其被设定为一高电平状态,用以接收一输入信号并产生一第一输出;一第二多路转换器,其具有一信号始能端,且其被设定为一高电平状态,用以接收一信号时间常数并产生一第二输出;一无限脉冲响应滤波器,电连接于该第一多路转换器与该第二多路转换器,用以响应该第一输出及该第二输出而产生一信号能量;以及一信号能量处理装置,电连接于该无限脉冲响应滤波器与该第一多路转换器及该第二多路转换器,用以响应该信号能量,而于该信号能量大于一预设的噪音层时,产生一第一增益及一第一增益时间常数,并将该第一增益回传至该第一多路转换器,第一增益时间常数回传至该第二多路转换器,然后将该第一及该第二多路转换器的该信号始能端设定为一低电平状态,以输出该第一增益及该第一增益时间常数至该无线脉冲反应滤波器,进而通过该无线脉冲反应滤波器以得到一实际增益,及当该信号能量不大于该噪音层时,产生一第二增益及一第二增益时间常数,并将该第二增益回传至该第一多路转换器及该第二增益时间常数回传至该第二多路转换器,然后将该第一及该第二多路转换器的该信号始能端设定为一低电平状态,以输出该第二增益及该第二增益时间常数至该无限脉冲响应滤波器,进而通过该无限脉冲响应滤波器以得到一实际增益。According to one aspect of the present invention, there is provided an automatic gain controller, which includes: a first multiplexer, which has a signal enable terminal, and is set to a high level state for receiving a input signal and generate a first output; a second multiplexer, which has a signal enabling terminal, and which is set to a high level state, for receiving a signal time constant and generating a second output ; an infinite impulse response filter electrically connected to the first multiplexer and the second multiplexer for generating a signal energy in response to the first output and the second output; and a signal energy processing means, electrically connected to the infinite impulse response filter and the first multiplexer and the second multiplexer, for responding to the signal energy, and when the signal energy is greater than a predetermined noise floor, generate A first gain and a first gain time constant, and the first gain is fed back to the first multiplexer, the first gain time constant is fed back to the second multiplexer, and the first And the signal enable end of the second multiplexer is set to a low level state to output the first gain and the first gain time constant to the wireless impulse response filter, and then pass the wireless impulse response filter to obtain an actual gain, and when the signal energy is not greater than the noise floor, generate a second gain and a second gain time constant, and pass the second gain back to the first multiplexer and The second gain time constant is passed back to the second multiplexer, and then the signal enable terminals of the first and the second multiplexer are set to a low state to output the second The gain and the second gain time constant are sent to the infinite impulse response filter, and then passed through the infinite impulse response filter to obtain an actual gain.
根据上述构想,其中该输入信号是为一音量输入信号。According to the above idea, the input signal is a volume input signal.
根据上述构想,其中该滤波器是使用两个移位暂存器。According to the above idea, the filter uses two shift registers.
根据上述构想,当该第一输出为该输入信号,该第二输出为该信号时间常数时,该滤波器输出该信号能量。According to the above idea, when the first output is the input signal and the second output is the time constant of the signal, the filter outputs the signal energy.
根据上述构想,当该第一输出为该增益,该第二输出为该增益时间常数时,该滤波器输出该实际增益。According to the above idea, when the first output is the gain and the second output is the gain time constant, the filter outputs the actual gain.
根据上述构想,其中该信号能量处理装置是包含一比较器与一除法器。According to the above idea, the signal energy processing device includes a comparator and a divider.
根据上述构想,其中该信号能量处理装置是将该信号能量与一预设的噪音层比较,若该信号能量大于该噪音层,则该信号能量处理装置输出一第一增益及一第一增益时间常数;若该信号能量不大于该噪音层,则该信号能量处理装置输出一第二增益及一第二增益时间常数。According to the above idea, wherein the signal energy processing device compares the signal energy with a preset noise floor, if the signal energy is greater than the noise floor, the signal energy processing device outputs a first gain and a first gain time constant; if the signal energy is not greater than the noise floor, the signal energy processing device outputs a second gain and a second gain time constant.
根据上述构想,其中该自动增益控制器还包含一乘法器,电连接于该滤波器,用以将该实际增益与该输入信号相乘,以得致一输出信号。According to the above idea, the automatic gain controller further includes a multiplier electrically connected to the filter for multiplying the actual gain by the input signal to obtain an output signal.
根据上述构想,其中该自动增益控制器还包含一触发器,电连接于该乘法器,根据其输出始能端来决定何时输出该输出信号。According to the above idea, the automatic gain controller further includes a flip-flop electrically connected to the multiplier, and determines when to output the output signal according to its output enabling end.
根据上述构想,其中该触发器是为一D型触发器。According to the above idea, the flip-flop is a D-type flip-flop.
根据本发明另一方面提供一种控制增益的方法,其是通过一自动增益控制器内部的一信号能量处理装置来处理一信号能量,而该自动增益控制器具有一第一及一第二多路转换器、一无限脉冲响应滤波器、一乘法器与一D型触发器,并响应该信号能量而产生一实际增益,其步骤包含:将该第一及该第二多路转换器的一信号始能端设定为一高电平状态;以该无限脉冲响应滤波器接收该第一多路转换器所输出的一输入信号,及接收该第二多路转换器所输出的一信号时间常数,并运算以产生该信号能量;将该信号能量与一预设的噪音层比较;若该信号能量大于该噪音层,则该信号能量处理装置产生一第一增益及一第一增益时间常数;回传该第一增益至该第一多路转换器,及回传该第一增益时间常数至该第二多路转换器;将该信号始能端设定为一低电平状态;以该第一多路转换器输出该第一增益,及以该第二多路转换器输出该第一增益时间常数,并传送至该无限脉冲响应滤波器;通过该无限脉冲响应滤波器处理该第一增益,进而得到该实际增益;若该信号能量不大于该噪音层,则该信号能量处理装置输出一第二增益及一第二增益时间常数;回传该第二增益至该第一多路转换器,及回传该第二增益时间常数至该第二多路转换器;将该信号始能端设定为一低电平状态;以该第一多路转换器输出该第二增益,及以该第二多路转换器输出该第二增益时间常数,并传送至该无限脉冲响应滤波器;通过该无限脉冲响应滤波器处理该第二增益,进而得到该实际增益;以该乘法器将该实际增益与该第一输出相乘,以得到一输出信号;将该D型触发器的一输出始能端设定为一高电平状态;以及通过该D型触发器接收该输出信号,以送出该输出信号。According to another aspect of the present invention, a method for controlling gain is provided, which is to process a signal energy through a signal energy processing device inside an automatic gain controller, and the automatic gain controller has a first and a second multi-channel converter, an infinite impulse response filter, a multiplier, and a D-type flip-flop, and generating an actual gain in response to the signal energy, the steps of which include: combining a signal from the first and the second multiplexers The enable terminal is set to a high level state; the infinite impulse response filter receives an input signal output by the first multiplexer, and receives a signal time constant output by the second multiplexer , and operate to generate the signal energy; compare the signal energy with a preset noise floor; if the signal energy is greater than the noise floor, the signal energy processing device generates a first gain and a first gain time constant; return the first gain to the first multiplexer, and return the first gain time constant to the second multiplexer; set the signal enable end to a low state; use the The first multiplexer outputs the first gain, and the second multiplexer outputs the first gain time constant, and transmits to the infinite impulse response filter; the first gain is processed by the infinite impulse response filter gain, and then obtain the actual gain; if the signal energy is not greater than the noise floor, the signal energy processing device outputs a second gain and a second gain time constant; returns the second gain to the first multiplexer device, and return the second gain time constant to the second multiplexer; set the signal enabling end to a low state; output the second gain with the first multiplexer, and Outputting the second gain time constant with the second multiplexer and sending it to the infinite impulse response filter; processing the second gain through the infinite impulse response filter to obtain the actual gain; using the multiplier to The actual gain is multiplied by the first output to obtain an output signal; an output enable end of the D-type flip-flop is set to a high level state; and the output signal is received by the D-type flip-flop, to send out the output signal.
根据上述构想,其中该信号能量处理装置是包含一比较器与一除法器。According to the above idea, the signal energy processing device includes a comparator and a divider.
根据上述构想,其中该第一增益是为一预设的基准层除以该信号能量所得的值。According to the above idea, the first gain is a value obtained by dividing a preset reference layer by the signal energy.
根据上述构想,其中该滤波器是为一低通滤波器。According to the above idea, the filter is a low-pass filter.
根据上述构想,其中该滤波器是使用两个移位暂存器。According to the above idea, the filter uses two shift registers.
根据上述构想,其中该第二增益是为一不大于1的预设值。According to the above idea, the second gain is a preset value not greater than 1.
(4)附图说明 (4) Description of drawings
图1是一般语音传送设备的内部电路方块图。FIG. 1 is a block diagram of an internal circuit of a general voice transmission device.
图2(a)是一般语音传送设备所使用的自动增益控制器处理音量前的信号波形图。FIG. 2( a ) is a signal waveform diagram before the volume is processed by an automatic gain controller used in a general voice transmission device.
图2(b)是一般语音传送设备所使用的自动增益控制器处理音量后的信号波形图。FIG. 2( b ) is a signal waveform diagram after volume is processed by an automatic gain controller used in a general voice transmission device.
图3(a)是以本发明的自动增益控制器处理音量前的信号波形图。Fig. 3(a) is a signal waveform diagram before the volume is processed by the automatic gain controller of the present invention.
图3(b)是以本发明的自动增益控制器处理音量后的信号波形图。Fig. 3(b) is a signal waveform diagram after the volume is processed by the automatic gain controller of the present invention.
图4是本发明一较佳实施例的判断流程图。Fig. 4 is a judgment flow chart of a preferred embodiment of the present invention.
图5是本发明一较佳实施例的电路方块图。FIG. 5 is a circuit block diagram of a preferred embodiment of the present invention.
图6是图5所使用的无限脉冲响应滤波器的架构图。FIG. 6 is a structural diagram of the infinite impulse response filter used in FIG. 5 .
(5)具体实施方式 (5) specific implementation
请参阅图3(a)及图3(b),其是以本发明的自动增益控制器处理音量前的信号波形图及处理音量后的信号波形图。由图3(a)及图3(b)可知,该自动增益控制器可设定两个层级(Level)-基准层(Assigned Level)及噪音层(NoiseLevel)。基准层表示最大预设音量,当音量大于基准层时,该自动增益控制器会将音量缩小。而当音量不大于基准层时,该自动增益控制器则会将音量放大,但不会将音量放大至超过基准层。至于当音量不大于该噪音层时,音量将被压低,进而达到抑制杂讯的目的,这也是本发明与习知技术不同之处。Please refer to FIG. 3( a ) and FIG. 3( b ), which are signal waveform diagrams before volume processing and signal waveform diagrams after volume processing by the automatic gain controller of the present invention. As can be seen from Figure 3(a) and Figure 3(b), the automatic gain controller can set two levels (Level) - the reference level (Assigned Level) and the noise level (NoiseLevel). The base level indicates the maximum preset volume, when the volume is higher than the base level, the automatic gain controller will reduce the volume. And when the volume is not greater than the reference layer, the automatic gain controller will amplify the volume, but will not amplify the volume to exceed the reference layer. As for when the volume is not greater than the noise floor, the volume will be lowered to achieve the purpose of suppressing noise, which is also the difference between the present invention and the prior art.
请参阅图4,其是本发明一较佳实施例的判断流程图。为了达到抑制杂讯的目的,本发明将一由音量转换而来的信号能量(signal_energy)与该噪音层进行比较(步骤41),若该信号能量大于该噪音层,则产生一第一增益及一第一时间常数(步骤42),再将该第一增益及该第一时间常数通过一低通滤波器(LowPass Filter)处理以得致一实际增益(步骤43);反之,若该信号能量不大于该噪音层,则产生一第二增益及一第二时间常数(步骤44),再将该第二增益及该第二时间常数通过该低通滤波器处理以得致一实际增益(步骤45)。其中该低通滤波器是为调节增益之用,让增益不要变化得太快。Please refer to FIG. 4 , which is a judgment flow chart of a preferred embodiment of the present invention. In order to achieve the purpose of suppressing noise, the present invention compares a signal energy (signal_energy) converted from volume with the noise floor (step 41), if the signal energy is greater than the noise floor, a first gain and A first time constant (step 42), then the first gain and the first time constant are processed by a low-pass filter (LowPass Filter) to obtain an actual gain (step 43); otherwise, if the signal energy is not greater than the noise floor, then produce a second gain and a second time constant (step 44), then process the second gain and the second time constant through the low-pass filter to obtain an actual gain (step 44) 45). Among them, the low-pass filter is used to adjust the gain, so that the gain does not change too fast.
上述的该第一增益是为该基准层除以该信号能量所得的值,该第二增益是为一不大于1的预设值,而相关的运算式如下所示(式(1)为信号能量、式(2)为当信号能量大于噪音层时所求得的实际增益、式(3)为当信号能量不大于噪音层时所求得的实际增益):The above-mentioned first gain is the value obtained by dividing the reference layer by the signal energy, the second gain is a preset value not greater than 1, and the related calculation formula is as follows (the formula (1) is the signal energy, formula (2) is the actual gain obtained when the signal energy is greater than the noise floor, and formula (3) is the actual gain obtained when the signal energy is not greater than the noise floor):
signal_energy[n]=signal_energy[n-1]+|signal|*2_signal_time_const(1)signal_energy[n]=signal_energy[n-1]+|signal|*2 _signal_time_const (1)
-signal_energy[n-1]*2-signal_time_const -signal_energy[n-1]*2 -signal_time_const
actual_gain[n]=actual_gain[n-1]+|Gain|*2_AGC_time_const1(2)actual_gain[n]=actual_gain[n-1]+|Gain|*2 _AGC_time_const1 (2)
-actual_gain[n-1]*2-AGC_time_const1 -actual_gain[n-1]*2 -AGC_time_const1
actual_gain[n]=actual_gain[n-1]+|Gain|*2_AGC_time_const2(3)actual_gain[n]=actual_gain[n-1]+|Gain|*2 _AGC_time_const2 (3)
-actual_gain[n-1]*2-AGC_time_const2 -actual_gain[n-1]*2 -AGC_time_const2
式(2)及式(3)中选用不同的时间常数(AGC_time_const1及AGC_time_const2)主要是让使用者可以根据系统需求而自行设定,以达到不同的增益收敛速度。The purpose of choosing different time constants (AGC_time_const1 and AGC_time_const2) in formula (2) and formula (3) is mainly to allow users to set themselves according to system requirements to achieve different gain convergence speeds.
请参阅图5,其是本发明一较佳实施例的电路方块图,该电路方块图的架构是根据图4的判断流程而设计,其包含一第一多路转换器51、一第二多路转换器52、一无限脉冲响应滤波器(Infinite Impulse Response Filter)53、一信号能量处理装置54、一乘法器55、以及一D型触发器56。Please refer to Fig. 5, which is a circuit block diagram of a preferred embodiment of the present invention, the structure of this circuit block diagram is designed according to the judgment flow of Fig. 4, and it comprises a first multiplexer 51, a second multiplexer Road converter 52, an infinite impulse response filter (Infinite Impulse Response Filter) 53, a signal energy processing device 54, a multiplier 55, and a D-type flip-flop 56.
一开始时将一连接于该第一多路转换器51及该第二多路转换器52的信号致能设定为高电平状态(″1″),此时该第一多路转换器51输出一输入信号(第一输出)而该第二多路转换器52输出一信号时间常数(第二输出),该输入信号及该信号时间常数传送至该无限脉冲响应滤波器53进行运算后产生一信号能量,再将该信号能量传送至该信号能量处理装置54进行处理,其中该信号能量处理装置包含一比较器及一除法器)。系统会预设一噪音层,若此时该信号能量大于该噪音层,则该信号能量处理装置54输出该第一增益及该第一增益时间常数,并将该第一增益及该第一增益时间常数回传至该第一多路转换器51及该第二多路转换器52以进行后续的实际增益运算;而若该信号能量不大于该噪音层,则该信号能量处理装置54输出该第二增益及该第二增益时间常数,并将该第二增益及该第二增益时间常数回传至该第一多路转换器51及该第二多路转换器52以进行后续的实际增益运算。At the beginning, a signal connected to the first multiplexer 51 and the second multiplexer 52 is enabled to be set to a high level state ("1"). At this time, the first multiplexer 51 outputs an input signal (the first output) and the second multiplexer 52 outputs a signal time constant (the second output), and the input signal and the signal time constant are sent to the infinite impulse response filter 53 for calculation Generate a signal energy, and then send the signal energy to the signal energy processing device 54 for processing, wherein the signal energy processing device includes a comparator and a divider). The system will preset a noise floor, and if the signal energy is greater than the noise floor at this time, the signal energy processing device 54 outputs the first gain and the first gain time constant, and the first gain and the first gain The time constant is passed back to the first multiplexer 51 and the second multiplexer 52 for subsequent actual gain calculation; and if the signal energy is not greater than the noise floor, the signal energy processing device 54 outputs the second gain and the second gain time constant, and return the second gain and the second gain time constant to the first multiplexer 51 and the second multiplexer 52 for subsequent actual gain operation.
然后,将该信号致能设定为低电平状态(″0″),此时该第一多路转换器51输出一增益(第一增益或第二增益)而该第二多路转换器52输出一增益信号时间常数(第一增益时间常数或第二增益时间常数),该增益及该增益信号时间常数传送至该无限脉冲响应滤波器53进行运算后产生一实际增益,再通过该乘法器55将该实际增益与该输入信号进行相乘,以得到一输出信号。最后将该D型触发器56的输出致能设定为高电平状态(″1″),以送出该输出信号。Then, the signal enable is set to a low level state ("0"), at this time the first multiplexer 51 outputs a gain (first gain or second gain) and the second multiplexer 51 outputs 52 outputs a gain signal time constant (the first gain time constant or the second gain time constant), the gain and the gain signal time constant are sent to the infinite impulse response filter 53 for calculation to generate an actual gain, and then through the multiplication The converter 55 multiplies the actual gain with the input signal to obtain an output signal. Finally, the output enable of the D-type flip-flop 56 is set to a high level state (“1”) to send out the output signal.
图5中所使用的无限脉冲响应滤波器53是为运算式(1)、(2)、及(3)之用,因为式(1)、(2)、及(3)均为2的次方运算,故可用移位暂存器来执行,该无限脉冲响应滤波器的架构图如图6所示,其包含一第一位移暂存器62、一第二位移暂存器63、一取绝对值运算61、及一加减法运算64。今以式(1)为例,再配合参阅图5,假设该第一输出为该输入信号(signal),该第二输出为该信号时间常数(signal_time_const),则A、B、C分别求得如下:The infinite impulse response filter 53 used in Fig. 5 is the usefulness of calculation formula (1), (2) and (3), because formula (1), (2) and (3) are all 2 order square operation, so it can be implemented by a shift register. The structure diagram of the infinite impulse response filter is shown in Figure 6, which includes a
A=|signal|*2-signal_time_const A=|signal|*2 -signal_time_const
B=signal_energy[n-1]*2-signal_time_const B=signal_energy[n-1]*2 -signal_time_const
C=signal_energy[n-1]C = signal_energy[n-1]
求出A、B、C之后再进行该加减法运算,即可得致该信号能量(signal_energy),其结果如下:After calculating A, B, and C, perform the addition and subtraction operations to obtain the signal energy (signal_energy), and the results are as follows:
signal_energy[n]=A-B+C=signal_energy[n-1]+|signal|*2_signal_time_comst signal_energy[n]=A-B+C=signal_energy[n-1]+|signal|* 2_signal_time_comst
-signal_energy[n-1]*2-signal_time_const -signal_energy[n-1]*2 -signal_time_const
根据上述原理,当该第一输出为该增益,而该第二输出为该增益时间常数时,同样可通过该无限脉冲响应滤波器53求得该实际增益。According to the above principle, when the first output is the gain and the second output is the gain time constant, the actual gain can also be obtained through the infinite impulse response filter 53 .
综上所述,本发明相较于习知技术显有如下优点:In summary, the present invention has the following advantages compared to the prior art:
1.本发明在自动增益控制器的增益判断流程中,加入对噪音层的判断,于信号能量不大于噪音层时,提供一个小于1的增益,使其达到抑制杂讯的目的。1. In the gain judgment process of the automatic gain controller, the present invention adds the judgment of the noise floor, and provides a gain less than 1 when the signal energy is not greater than the noise floor, so as to achieve the purpose of suppressing noise.
2.本发明针对第一增益及第二增益给予不同的增益时间常数,让系统在运作时,能根据需求而有不同的增益收敛速度。2. The present invention provides different gain time constants for the first gain and the second gain, so that the system can have different gain convergence speeds according to requirements during operation.
3.在硬件结构上,本发明仅使用了几个简单的电路元件,即可完成自动增益控制器及抑制杂讯的功能,且本发明所使用的无限脉冲响应滤波器中并无乘法器,而是用移位暂存器来取代,大大地简化了硬件的设计及降低制造成本。3. On hardware structure, the present invention has only used several simple circuit components, can finish the function of automatic gain controller and suppression noise, and there is no multiplier in the infinite impulse response filter that the present invention uses, Instead, it is replaced by a shift register, which greatly simplifies the hardware design and reduces the manufacturing cost.
经由本发明独特架构而产生的功效,足以有效改善习知技术的缺失,是故具有产业价值,进而达到发展本发明的目的。The effects produced by the unique framework of the present invention are sufficient to effectively improve the deficiencies of the prior art, and thus have industrial value, thereby achieving the purpose of developing the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031523005A CN100417043C (en) | 2003-08-05 | 2003-08-05 | Automatic gain controller and its control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031523005A CN100417043C (en) | 2003-08-05 | 2003-08-05 | Automatic gain controller and its control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1581724A CN1581724A (en) | 2005-02-16 |
CN100417043C true CN100417043C (en) | 2008-09-03 |
Family
ID=34579818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031523005A Expired - Fee Related CN100417043C (en) | 2003-08-05 | 2003-08-05 | Automatic gain controller and its control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100417043C (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136633B (en) * | 2006-08-28 | 2010-12-08 | 瑞昱半导体股份有限公司 | Correcting device for time-interleaved analog-digital converter |
WO2009011826A2 (en) * | 2007-07-13 | 2009-01-22 | Dolby Laboratories Licensing Corporation | Time-varying audio-signal level using a time-varying estimated probability density of the level |
CN103199881B (en) * | 2013-04-11 | 2015-07-29 | 海能达通信股份有限公司 | Auto gain control method, system and receiver |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1140869A (en) * | 1995-02-17 | 1997-01-22 | 索尼公司 | Method for noise reduction |
EP1241782A2 (en) * | 2001-03-14 | 2002-09-18 | Texas Instruments Incorporated | System and method of dual mode automatic gain control for a digital radio receiver |
CN1430778A (en) * | 2001-03-28 | 2003-07-16 | 三菱电机株式会社 | Noise suppressor |
-
2003
- 2003-08-05 CN CNB031523005A patent/CN100417043C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1140869A (en) * | 1995-02-17 | 1997-01-22 | 索尼公司 | Method for noise reduction |
EP1241782A2 (en) * | 2001-03-14 | 2002-09-18 | Texas Instruments Incorporated | System and method of dual mode automatic gain control for a digital radio receiver |
CN1430778A (en) * | 2001-03-28 | 2003-07-16 | 三菱电机株式会社 | Noise suppressor |
Also Published As
Publication number | Publication date |
---|---|
CN1581724A (en) | 2005-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9398374B2 (en) | Systems and methods for nonlinear echo cancellation | |
US8687796B2 (en) | Method and electronic device for improving communication quality based on ambient noise sensing | |
JPS63314943A (en) | Volume range control circuit | |
JPH02123859A (en) | Speaker phone and operating method thereof | |
CN1176034A (en) | Apparatus and method for canceling acoustic echoes including non-linear distortions in loudspeaker telephones | |
CN104468930A (en) | Method and device for adjusting playback volume | |
CN111356058B (en) | An echo cancellation method, device and smart speaker | |
KR101253708B1 (en) | Hearing aid for screening envirronmental noise and method for screening envirronmental noise of hearing aid | |
KR102374789B1 (en) | Control of the noise transfer function in the signal path to reduce charge pump noise | |
JP2002135173A (en) | Telephone and hands-free calls for cordless terminals with echo compensation | |
CN108632708B (en) | Loudspeaker output control method and system | |
WO2013121749A1 (en) | Echo canceling apparatus, echo canceling method, and telephone communication apparatus | |
US20180269842A1 (en) | Volume-dependent automatic gain control | |
US9628910B2 (en) | Method and apparatus for reducing acoustic feedback from a speaker to a microphone in a communication device | |
US10796710B2 (en) | Noise elimination device, noise elimination method, and noise elimination program | |
CN100417043C (en) | Automatic gain controller and its control method | |
WO2007027386A2 (en) | Clipping detector for echo cancellation | |
CN101072016B (en) | Gain automatic control device, method and audio processing device and earphone thereof | |
CN114205714B (en) | Noise shaping type volume adjustment system and method | |
CN101483445B (en) | Method and electronic device for suppressing noise | |
US7426250B2 (en) | Automatic gain controller and controlling method thereof | |
CN109565630A (en) | Microphone and method for handling audio signal | |
JP3028866B2 (en) | Handset side tone control circuit | |
CN113299310B (en) | Sound signal processing method and device, electronic equipment and readable storage medium | |
CN114724576B (en) | A method, device and system for real-time updating of threshold in howling detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080903 |