CN102651636A - Peak counting method of automatic gain control loop - Google Patents
Peak counting method of automatic gain control loop Download PDFInfo
- Publication number
- CN102651636A CN102651636A CN2012101267947A CN201210126794A CN102651636A CN 102651636 A CN102651636 A CN 102651636A CN 2012101267947 A CN2012101267947 A CN 2012101267947A CN 201210126794 A CN201210126794 A CN 201210126794A CN 102651636 A CN102651636 A CN 102651636A
- Authority
- CN
- China
- Prior art keywords
- signal
- control loop
- gain control
- automatic gain
- voice signal
- 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.)
- Pending
Links
Images
Landscapes
- Control Of Amplification And Gain Control (AREA)
Abstract
The invention discloses a peak counting method of an automatic gain control loop. The method comprises the following steps: step 1, according to the probability density function of a sound sine signal, determining a probability formula of the sound sine signal positioned in a certain signal amplitude range; step 2, according to a best signal amplitude value range, determining the accurate probability value of the sound signal positioned in the amplitude range; step 3, according to the characteristics of the accurate probability value of the signal, determining signal points needing to be sampled in the effective judgment to a signal peak; and step 4, finally according to the digital counting characteristics of the minimum signal points, making a digital logic judgment and transmitting the result of the judgment to a variable gain amplifier in the automatic gain control loop. The method can be applied to the automatic gain control loop of a hearing aid with a digital-analog hybrid structure, a control logic algorithm is simplified, the hardware cost of digital modules is reduced, and gain of the automatic gain control loop can be accurately and effectively controlled.
Description
Technical field
The present invention relates to CMOS mixed-signal designs technical field, be specifically related to a kind of peak value statistical method of automatic gain control loop.
Background technology
Automatic gain control loop is the closed-loop system that is made up of variable gain amplifier and negative feedback control loop.Automatic gain control loop is widely used among hearing aids, disk drive circuit and the nearly all radio communication circuit.The core of automatic gain control loop is the digital control logic circuit of realizing with full custom design technology, and rational algorithm logic can effectively reduce the power consumption and the expense of digital circuit, is to determine an automatic gain control loop key of success.The peak value algorithm logic of extensive use at present is normally with the peak value of the single point signals distinguishing rule as the ride gain loop.Because sound is a multi-frequency, the aperiodicity signal that the amplitude rapid Continuous changes if sampling single point signals peak value is adjudicated, is prone to cause the misoperation of automatic gain control loop.Therefore have only voice signal is carried out mathematical statistics, extract the statistical characteristic of one section voice signal, could adjudicate, accomplish high-precision loop gain control according to it.
The present invention proposes a kind of peak value statistic logic algorithm of using based on the hearing aids automatic gain control loop, to satisfy the system requirements of high accuracy, configurable, low power consumption digital hearing aids.
Summary of the invention
The technical problem that (one) will solve
In view of this; The problem that the present invention will solve provides a kind of peak value statistical method of automatic gain control loop; When being applied to the hearing aids automatic gain control loop to solve traditional single-point differentiation peak value algorithm logic; The problem that control precision is not high reaches the purpose that High Precision Automatic gain control loop is controlled.
(2) technical scheme
For achieving the above object, the invention provides a kind of peak value statistical method of automatic gain control loop, comprising:
Step 2, according to optimum signal range value scope, confirm that voice signal is positioned at the accurate probable value of this amplitude range;
Step 3, according to voice signal characteristic and accurate probable value, confirm that the signal of signal peak effectively being adjudicated required sampling counts;
Step 4, the statistics property characteristic of finally counting according to minimum signal are made the Digital Logic judgement, feed back to the variable gain amplifier in the automatic gain control loop.
In the such scheme, said step 1 specifically comprises: step 11, to establish voice signal be sinusoidal signal: V=Asin ω t; According to the sinusoidal wave probability density function of random phase; Then its probability density that is positioned at a certain voltage Vx place is:
wherein V is sinusoidal signal; A is the amplitude of sinusoidal signal; ω is the angular frequency of sinusoidal signal; T is any some coordinates on the time shaft, and x is any some coordinates on the voltage axis.Step 12, according to formula (1), a voice signal drops on (V
a, V
b) between probability be:
Step 13, cosine function cos is got on formula (2) both sides, and according to
Obtain:
In the such scheme, said step 2 specifically comprises: step 21, the supply voltage of establishing this automatic gain control loop are VDD, and then the optimum range scope of voice signal does
Between; Step 22, according to step 21, will
In the formula of substitution step 13 (3), can obtain cos (π P (V
a, V
b)) ≈ 0.94188; Step 23, therefore according to the result of calculation of step 22, behind the negate cosine function, calculate signal and drop on
Between probability be P (V
a, V
b) ≈ 0.1091.
In the such scheme; Said step 3 specifically comprises: the sampled point in one period complete at least 600 cycle of voice signal needs; Therefore the probable value that draws according to step 23; Calculating needs 600 * 0.1091 ≈ 65.4 at least; Promptly the statistical property of 66 above sampled points could judge whether this voice signal drops between
.
In the such scheme; Said step 4 specifically comprises: according to the result of calculation of step 3; In 600 sampled points of each sampling; When being Digital Logic comparison upper limit threshold level with
, 600-66=534 Digital Logic " 0 " appears at least; And be Digital Logic relatively during the lower threshold level with
, occur 66 Digital Logic " 1 " at least and could adjudicate this signal and drop between
.
(3) beneficial effect
Compared with prior art, the beneficial effect of technical scheme generation of the present invention is following:
The present invention draws the accurate probability that signal is positioned at the optimum reception scope through adopting the algorithm of probability density; And according to the characteristics of voice signal, and then draw the minimum sampling number of automatic gain control loop accurately being controlled required signal, finally draw the statistical information of this part sampled point; Form judgement; Export correct digital control sign indicating number, algorithm is simple, when digital circuit realizes, has effectively reduced circuit overhead and power consumption; Be applicable to low-power consumption, in the High Precision Automatic gain control loop.
Description of drawings
Fig. 1 is the flow chart according to the peak value statistical method of the automatic gain control loop of the embodiment of the invention;
Fig. 2 is the signal graph according to the actual sound of the embodiment of the invention;
Fig. 3 is the sketch map that detects principle according to the peak value of the embodiment of the invention;
Fig. 4 is the circuit diagram according to the automatic gain control loop of the embodiment of the invention;
Fig. 5 is according to being applied in the automatic gain control loop of the embodiment of the invention, under the 10KHZ frequency, and the output waveform of input 5mV sinusoidal signal.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, below in conjunction with specific embodiment, and with reference to accompanying drawing, to further explain of the present invention.
As shown in Figure 1, Fig. 1 is that this method comprises according to the flow chart of the peak value statistical method of the automatic gain control loop of the embodiment of the invention:
Step 2, according to optimum signal range value scope, confirm that voice signal is positioned at the accurate probable value of this amplitude range;
Step 3, according to voice signal characteristic and accurate probable value, confirm that the signal of signal peak effectively being adjudicated required sampling counts;
Step 4, the statistics property characteristic of finally counting according to minimum signal are made the Digital Logic judgement, feed back to the variable gain amplifier in the automatic gain control loop.
Wherein, said step 1 specifically comprises:
Step 11, to establish voice signal be sinusoidal signal: V=Asin ω t; According to the sinusoidal wave probability density function of random phase, then it is positioned at a certain voltage V
xThe probability density at place is:
Wherein V is a sinusoidal signal, and A is the amplitude of sinusoidal signal, and ω is the angular frequency of sinusoidal signal, and t is any some coordinates on the time shaft, and x is any some coordinates on the voltage axis;
Step 12, according to formula (1), a voice signal drops on (V
a, V
b) between probability be:
Step 13, cosine function cos is got on formula (2) both sides, and according to
Obtain:
Wherein, said step 2 specifically comprises:
Step 21, the supply voltage of establishing this automatic gain control loop are VDD, and then the optimum range scope of voice signal is between
;
Step 22, according to step 21, will
In the formula of substitution step 13 (3), can obtain cos (π P (V
a, V
b)) ≈ 0.94188;
Step 23, therefore according to the result of calculation of step 22, behind the negate cosine function, calculate signal and drop on
Between probability be P (V
a, V
b) ≈ 0.1091.
In the such scheme; Said step 3 specifically comprises: the sampled point in one period complete at least 600 cycle of voice signal needs; Therefore the probable value that draws according to step 23; Calculating needs 600 * 0.1091 ≈ 65.4 at least; Promptly the statistical property of 66 above sampled points could judge whether this voice signal drops between
.
Wherein, Said step 4 specifically comprises: according to the result of calculation of step 3; In 600 sampled points of each sampling; When being Digital Logic comparison upper limit threshold level with
, 600-66=534 Digital Logic " 0 " appears at least; And be Digital Logic relatively during the lower threshold level with
, occur 66 Digital Logic " 1 " at least and could adjudicate this signal and drop between
.
Based on method flow diagram shown in Figure 1, Fig. 2 shows the signal graph according to the actual sound of the embodiment of the invention.Real sound is the sinusoidal wave combination of multi-frequency aperiodicity, and because volume is different, corresponding signal amplitude is also inequality.Therefore voice signal is carried out rational gain controlling, just need to extract the statistical characteristic of one section voice signal, could adjudicate, accomplish loop gain control according to it.
Referring to Fig. 3; Fig. 3 is the sketch map that detects principle according to the peak value of the embodiment of the invention, and basic principle of the present invention is: when the signal peak of signal in greater than compare threshold Vref1 the time, because the sampling clock frequency is much larger than the voice signal frequency; Even the peak value of signal is greater than compare threshold Vref1 at this moment; Still therefore the situation that has " 1 " and " 0 " coexistence in the digital code of sampling output has only the sequence as a result of continuous output is done mathematical statistics, just when the sampling number of output output " 1 " is counted greater than the minimum under the statistical probability; Just can think the in signal peak greater than Vref1, the statistical property logic is just exported " 1 "; With should output the sampling number of output " 1 " when counting less than the minimum under the statistical probability, can think during this period of time the in signal peak less than Vref1, statistical property logic output " 0 ".
According to above-mentioned steps 1, step 2, step 3 and step 4, can proper sampled point be 600 o'clock, then need the output digital code " 1 " more than 66 at least, ability decision signal peak value is greater than compare threshold Vref1.Fig. 4 is the automatic gain control loop circuit diagram that adopts peak value statistic logic algorithm to realize in the embodiment of the invention.Fig. 5 is in the automatic gain control loop, under the 10KHZ frequency, and the output waveform of input 5mV sinusoidal signal, technique effect is good.
In sum, the peak value statistical method of automatic gain control loop provided by the invention has following beneficial effect: (1) the present invention draws the accurate probability that voice signal is positioned at the optimum reception scope through adopting the algorithm of probability density; (2), and then draw the minimum sampling number of automatic gain control loop accurately being controlled required signal according to the characteristics of voice signal; (3) according to the statistical information of this part sampled point, form judgement, export correct digital control sign indicating number; (4) algorithm of the present invention is simple, when digital circuit realizes, has effectively reduced circuit overhead and power consumption, is applicable to low-power consumption, in the High Precision Automatic gain control loop.
Above-described specific embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely specific embodiment of the present invention; Be not limited to the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (5)
1. the peak value statistical method of an automatic gain control loop is characterized in that, comprising:
Step 1, according to the probability density function of sound sinusoidal signal, confirm that the sound sinusoidal signal is positioned at the new probability formula of certain signal amplitude scope;
Step 2, according to optimum signal range value scope, confirm that voice signal is positioned at the accurate probable value of this amplitude range;
Step 3, according to voice signal characteristic and accurate probable value, confirm that the signal of signal peak effectively being adjudicated required sampling counts;
Step 4, the statistics property characteristic of finally counting according to minimum signal are made the Digital Logic judgement, feed back to the variable gain amplifier in the automatic gain control loop.
2. the peak value statistical method of automatic gain control loop according to claim 1 is characterized in that, said step 1 specifically comprises:
Step 11, to establish voice signal be sinusoidal signal: V=Asin ω t; According to the sinusoidal wave probability density function of random phase, then it is positioned at a certain voltage V
xThe probability density at place is:
Wherein V is a sinusoidal signal, and A is the amplitude of sinusoidal signal, and ω is the angular frequency of sinusoidal signal, and t is any some coordinates on the time shaft, and x is any some coordinates on the voltage axis;
Step 12, according to formula (1), a voice signal drops on (V
a, V
b) between probability be:
Step 13, cosine function cos is got on formula (2) both sides, and obtains according to
:
3. the peak value statistical method of automatic gain control loop according to claim 2 is characterized in that, said step 2 specifically comprises:
Step 21, the supply voltage of establishing this automatic gain control loop are VDD, and then the optimum range scope of voice signal is between
;
Step 22, according to step 21, will
In the formula of substitution step 13 (3), can obtain cos (π P (V
a, V
b)) ≈ 0.94188;
4. the peak value statistical method of automatic gain control loop according to claim 2 is characterized in that, said step 3 specifically comprises:
One section complete voice signal needs the sampled point at least 600 cycles; Therefore the probable value that draws according to step 23; Calculating needs 600 * 0.1091 ≈ 65.4 at least; Promptly the statistical property of 66 above sampled points could judge whether this voice signal drops between
.
5. the peak value statistical method of automatic gain control loop according to claim 4 is characterized in that, said step 4 specifically comprises:
Result of calculation according to step 3; In 600 sampled points of each sampling; When being Digital Logic comparison upper limit threshold level with
, 600-66=534 Digital Logic " 0 " appears at least; And be Digital Logic relatively during the lower threshold level with
, occur 66 Digital Logic " 1 " at least and could adjudicate this signal and drop between
.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101267947A CN102651636A (en) | 2012-04-26 | 2012-04-26 | Peak counting method of automatic gain control loop |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101267947A CN102651636A (en) | 2012-04-26 | 2012-04-26 | Peak counting method of automatic gain control loop |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102651636A true CN102651636A (en) | 2012-08-29 |
Family
ID=46693537
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012101267947A Pending CN102651636A (en) | 2012-04-26 | 2012-04-26 | Peak counting method of automatic gain control loop |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102651636A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105322975A (en) * | 2015-11-25 | 2016-02-10 | 上海斐讯数据通信技术有限公司 | Method and device for adjusting digital variable gain amplifier |
TWI572141B (en) * | 2012-11-21 | 2017-02-21 | 國立中央大學 | Methods for processing sequential data |
CN106445451A (en) * | 2016-09-09 | 2017-02-22 | 腾讯科技(深圳)有限公司 | Audio volume gain method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5029182A (en) * | 1988-10-24 | 1991-07-02 | Hughes Aircraft Company | Automatic gain control (AGC) for frequency hopping receiver |
CN101447771A (en) * | 2008-12-24 | 2009-06-03 | 北京中星微电子有限公司 | Method and system for automatically controlling gains |
CN101601190A (en) * | 2006-12-25 | 2009-12-09 | 汤姆逊许可公司 | Auto gain control method and equipment |
-
2012
- 2012-04-26 CN CN2012101267947A patent/CN102651636A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5029182A (en) * | 1988-10-24 | 1991-07-02 | Hughes Aircraft Company | Automatic gain control (AGC) for frequency hopping receiver |
CN101601190A (en) * | 2006-12-25 | 2009-12-09 | 汤姆逊许可公司 | Auto gain control method and equipment |
CN101447771A (en) * | 2008-12-24 | 2009-06-03 | 北京中星微电子有限公司 | Method and system for automatically controlling gains |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI572141B (en) * | 2012-11-21 | 2017-02-21 | 國立中央大學 | Methods for processing sequential data |
US9760540B2 (en) | 2012-11-21 | 2017-09-12 | National Central University | Methods for processing sequential data to identify possible peak points and to estimate peak to noise ratio of sequential data |
CN105322975A (en) * | 2015-11-25 | 2016-02-10 | 上海斐讯数据通信技术有限公司 | Method and device for adjusting digital variable gain amplifier |
CN105322975B (en) * | 2015-11-25 | 2018-09-28 | 上海斐讯数据通信技术有限公司 | The method of adjustment and device of digital variable gain amplifier |
CN106445451A (en) * | 2016-09-09 | 2017-02-22 | 腾讯科技(深圳)有限公司 | Audio volume gain method and device |
CN106445451B (en) * | 2016-09-09 | 2020-04-03 | 腾讯科技(深圳)有限公司 | Audio volume gain method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102025373B (en) | Digital background calibration circuit | |
CN103093508B (en) | Be applicable to the two-stage wake-up circuit of E-payment system | |
CN105826994B (en) | A kind of RF energy acquisition system based on dynamic impedance matching technology | |
CN102651636A (en) | Peak counting method of automatic gain control loop | |
CN103595244A (en) | Relaxation oscillator with frequency jittering function | |
CN106092156B (en) | AC servo serial communication encoder position feedback pulse frequency dividing output system and method | |
CN104461457A (en) | True random number generator and detuning compensation control method thereof | |
CN104536285A (en) | High-efficiency crystal oscillator frequency timekeeping method | |
CN103226169B (en) | Square wave detector for wireless wake-up circuit | |
CN103592508A (en) | Current detection device used for coulomb measurement | |
CN102611447A (en) | Noise adding signal synchronization clock extraction device based on FPGA (field programmable gate array) | |
CN108241143B (en) | Method for realizing fast frequency measurement and tracking output device based on Costas loop | |
CN102386916A (en) | Digital pulse width modulator circuit capable of reducing power consumption and chip area | |
CN111010169A (en) | Phase detection method, phase detection device, storage medium and electronic device | |
CN102571021A (en) | Infrared receiving circuit for automatically adjusting gain of band-pass filter | |
CN103762938A (en) | Intelligent power source management circuit applicable to optical energy supply system | |
CN102647164A (en) | Automatic gain control loop of medical equipment with ultra-low power consumption | |
CN202586998U (en) | Synchronous clock extraction device for noise-added signal based on FPGA (field programmable gate array) | |
CN108683987A (en) | A kind of Indoor Positioning System Using Ultra Wideband Radio and method based on UWB | |
CN103281283A (en) | Automatic gain control method based on encoding orthogonal frequency division multiplexing | |
CN107284258A (en) | The stabilizing control system and its method of electric automobile load Stochastic accessing wireless charging | |
CN106828158A (en) | A kind of new-energy automobile and its method of supplying power to and electric power system | |
CN101656510B (en) | Gate voltage control method and system for power amplifier | |
CN101413971A (en) | Electrical energy meter and method for amplifying signal used therein | |
CN203217298U (en) | Parallel data port AD sampling system based on DSP |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120829 |