[go: up one dir, main page]

CN104485909A - Gain control method and device - Google Patents

Gain control method and device Download PDF

Info

Publication number
CN104485909A
CN104485909A CN201410851211.6A CN201410851211A CN104485909A CN 104485909 A CN104485909 A CN 104485909A CN 201410851211 A CN201410851211 A CN 201410851211A CN 104485909 A CN104485909 A CN 104485909A
Authority
CN
China
Prior art keywords
gain
control circuit
agc
signal
predetermined threshold
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.)
Granted
Application number
CN201410851211.6A
Other languages
Chinese (zh)
Other versions
CN104485909B (en
Inventor
张振浩
姚炜
孙洪军
张忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Awinic Technology Co Ltd
Original Assignee
Shanghai Awinic Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Awinic Technology Co Ltd filed Critical Shanghai Awinic Technology Co Ltd
Priority to CN201410851211.6A priority Critical patent/CN104485909B/en
Publication of CN104485909A publication Critical patent/CN104485909A/en
Application granted granted Critical
Publication of CN104485909B publication Critical patent/CN104485909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Amplification And Gain Control (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

The invention discloses a gain control method and device. The method includes the steps that N AGC control circuits compare output signals detected by the AGC control circuits with the respective preset threshold values, and corresponding gain signals are output according to corresponding sequential control clock signals in accordance with comparative results, wherein the N is larger than or equal to two; the gain of an amplifier is controlled through a gain control circuit according to the corresponding output gain signals. According to the scheme, different starting time clock signals can be selected for starting the AGC control circuits, and the playing effect of music files can be better improved.

Description

Gain control method and device
Technical field
The present invention relates to gain control field, particularly relate to a kind of gain control method and device.
Background technology
Audio frequency amplifier, be amplified by the power of audio frequency itself, reach the object that amplifies, this type of loudspeaker mainly contains category-A circuit and D class circuit application is many in outside broadcast.
In order to promote the effect of music, increase the loudness of music, current audio frequency amplifier is mostly with automatic growth control (Automatic Gain Control, AGC) function.Along with the increase of input signal, output signal increases thereupon, and AGC is after detecting that output signal exceedes the startup threshold value of setting, and the initiatively gain of step-down amplifier inside, under predetermined threshold value output signal being limited in setting; When input signal reduces, after output signal is reduced to the release threshold value of setting, the gain of AGC Active recovery power amplifier inside, within the power bracket output of amplifier being limited to setting.
A kind of gain control method of the prior art, can when detecting that the output signal of amplifier is greater than predetermined predetermined threshold value, output signal is maintained the predetermined threshold value of setting, for reducing truncation distortion, although above-mentioned gain control method can reduce truncation distortion to a certain extent, but the music file result of broadcast after above-mentioned gain control treatment is still unsatisfactory.
Summary of the invention
What the embodiment of the present invention solved is how to promote music effect better.
For solving the problem, embodiments provide a kind of gain control method, described method comprises:
Respectively detected output signal and respective predetermined threshold value are compared by N number of AGC control circuit, and according to comparative result according to corresponding sequencing control clock signal, export corresponding gain signal, N >=2;
According to exported corresponding gain signal, controlled by the gain of gain control circuit to described amplifier.
Alternatively, described sequencing control clock signal comprise N number of start-up time clock signal and one release time clock signal.
Alternatively, describedly respectively detected output signal and respective predetermined threshold value to be compared by N number of AGC control circuit, and according to comparative result according to corresponding sequencing control clock, export corresponding gain signal, comprising:
When determining that described output signal is less than M-1 predetermined threshold value and is greater than M predetermined threshold value, respectively by M AGC control circuit to N number of AGC control circuit control corresponding forward-backward counter respectively according to M the clock signal preset to carrying out appreciation counting one of in N number of clock signal, export the gain signal corresponding with the count value of corresponding forward-backward counter, wherein, 1≤M≤N;
When determining that described output signal is less than N-1 predetermined threshold value and is greater than N number of predetermined threshold value, control corresponding forward-backward counter by described N number of AGC control circuit and carry out appreciation counting according to M the clock signal preset, export the gain signal corresponding with the count value of corresponding forward-backward counter;
When determining that described output signal is less than described N number of predetermined threshold value, control corresponding forward-backward counter by described N number of AGC control circuit and carry out depreciation counting according to described release clock signal, export the gain signal corresponding with the count value of corresponding forward-backward counter.
Alternatively, described according to exported corresponding gain signal, controlled by the gain of gain control circuit to described amplifier, comprise: the gain signal that described N number of AGC control circuit exports is added, use the gain signal obtained after being added, controlled by the gain of gain control circuit to described amplifier.
Alternatively, as N=2, described plural AGC control circuit comprises an AGC control circuit and the 2nd AGC control circuit, described sequencing control clock signal comprise first start-up time clock signal, second start-up time clock signal and described release time clock signal, wherein:
When determining that described output signal is greater than the first predetermined threshold value, by a described AGC control circuit, control corresponding first forward-backward counter according to preset first start-up time clock signal frequency carry out appreciations count, export the gain signal corresponding with the count value of described first forward-backward counter, and by described 2nd AGC control circuit, control corresponding second forward-backward counter according to preset second start-up time clock signal frequency carry out appreciations count, export the gain signal corresponding with the count value of described second forward-backward counter;
When determining that described output signal is less than described first predetermined threshold value and is greater than described second predetermined threshold value, by described 2nd AGC control circuit, control corresponding second forward-backward counter and carry out appreciation counting according to the second clock signal frequency preset, export second gain signal corresponding with the count value of described second forward-backward counter;
When determining that described output signal is less than described second predetermined threshold value, by described 2nd AGC control circuit, control described second forward-backward counter and carry out depreciation counting according to clock signal frequency described release time, export the gain signal corresponding with the count value of described second forward-backward counter, described second clock signal frequency be less than described first start-up time clock signal frequency.
Alternatively, described first predetermined threshold value is for monitoring truncation distortion, and described second predetermined threshold value is the level value that the power-handling capability of loud speaker is corresponding.
The embodiment of the present invention additionally provides a kind of gain control, and described device comprises:
N number of AGC control circuit, is suitable for the output signal of detected amplifier and respective predetermined threshold value to compare, and according to comparative result according to corresponding sequencing control clock signal, exports corresponding gain signal, N >=2;
Gain control circuit, is suitable for, according to exported corresponding gain signal, controlling the gain of described amplifier.
Alternatively, described sequencing control clock signal comprise N number of start-up time clock signal and one release time clock signal.
Alternatively, in described N number of AGC control circuit,
Described M AGC control circuit comprises M AGC sequential control circuit and M amplitude detection circuit, 1≤M≤N, wherein:
Described M amplitude detection circuit, is suitable for detected output signal and M predetermined threshold value to compare;
Described M AGC sequential control circuit, be suitable for when determining that detected output signal is greater than M predetermined threshold value, control corresponding forward-backward counter and carry out appreciation counting according to M the clock signal preset, export the gain signal corresponding with the count value of described forward-backward counter;
N number of AGC control circuit comprises N number of AGC sequential control circuit and N number of amplitude detection circuit wherein:
Described N number of amplitude detection circuit, is suitable for detected output signal and N number of predetermined threshold value to compare;
Described N number of AGC sequential control circuit, be suitable for when determining that detected output signal is greater than N number of predetermined threshold value, control corresponding forward-backward counter and carry out appreciation counting according to the N number of clock signal preset, export the gain signal corresponding with the count value of corresponding forward-backward counter, and when determining that detected output signal is less than described N number of predetermined threshold value, control corresponding forward-backward counter and carry out depreciation counting according to clock signal described release time, export the gain signal corresponding with the count value of corresponding forward-backward counter.
Alternatively, described gain control circuit is suitable for being added by the gain signal that described N number of AGC control circuit exports by gain selection circuit, and the gain signal obtained after using addition, the gain of described amplifier is controlled.
Alternatively, as N=2, described N number of AGC control circuit comprises an AGC control circuit and the 2nd AGC control circuit, wherein:
A described AGC control circuit comprises an AGC sequential control circuit and the first amplitude detection circuit, and described 2nd AGC control circuit comprises the 2nd AGC sequential control circuit and the second amplitude detection circuit;
Described first amplitude detection circuit, is suitable for detected output signal and the first predetermined threshold value to compare;
A described AGC sequential control circuit, be suitable for when determining that detected output signal is greater than described first predetermined threshold value, control the first forward-backward counter according to preset first start-up time clock signal carry out appreciations count, export the gain signal corresponding with the count value of described first forward-backward counter;
Described second amplitude detection circuit, is suitable for detected output signal and the second predetermined threshold value to compare;
Described 2nd AGC sequential control circuit, be suitable for when determining that detected output signal is greater than the second predetermined threshold value, control the second forward-backward counter and carry out appreciation counting according to the second clock signal preset, export the gain signal corresponding with the count value of described second forward-backward counter, and when determining that described detected output signal is less than described second predetermined threshold value, control described second forward-backward counter and carry out depreciation counting according to clock signal described release time, export the gain signal corresponding with the count value of described second forward-backward counter.
Alternatively, described first predetermined threshold value is for monitoring truncation distortion, and described second predetermined threshold value is the level value that the power-handling capability of loud speaker is corresponding.
Compared with prior art, technical scheme of the present invention has following advantage:
By the output signal according to amplifier, choose the startup that different clocks start-up time carries out AGC control circuit, the result of broadcast of music file can be promoted better.
Further, when described first predetermined threshold value is for monitoring truncation distortion, when the second predetermined threshold value is the rated power of loud speaker, can while the distortion of minimizing truncation, promote the average broadcast sound volume of music file, the result of broadcast of music file can be promoted, promote the experience of user.
Accompanying drawing explanation
Fig. 1 and Fig. 2 is the oscillogram that peak amplitude is respectively the average broadcast sound volume of the music file of 0dB and-12dB;
Fig. 3 and Fig. 4 is the oscillogram that peak factor is respectively the average broadcast sound volume of the music file of 9dB and 19dB;
Fig. 5 a and Fig. 5 b is the oscillogram of output signal of amplifier corresponding to the start-up time of 40ms and 5ms respectively;
Fig. 6 a and Fig. 6 b is the structural representation of a kind of gain control of the prior art;
Fig. 7 is the structural representation of a kind of gain control in the embodiment of the present invention;
Fig. 8 is the gain control method flow chart that the gain control shown in Fig. 7 is corresponding;
Fig. 9 is the structural representation of the another kind of gain control in the embodiment of the present invention;
Figure 10 is the flow chart of the gain control method that the gain control shown in Fig. 9 is corresponding;
Figure 11 is the structural representation of the another kind of gain control in the embodiment of the present invention in the embodiment of the present invention;
Figure 12 is the gain control method flow chart that the gain control shown in Figure 11 is corresponding;
Figure 13 is the schematic diagram of the corresponding gain signal that an AGC control circuit in the embodiment of the present invention and the 2nd AGC control circuit export according to the output signal of amplifier;
Figure 14 is the schematic diagram of the gain signal obtained after the corresponding gain signal that an AGC control circuit and the 2nd AGC control circuit export is added by gain selection circuit;
Figure 15 is the control effects schematic diagram of the gain control shown in Figure 11 to the output signal of amplifier.
Embodiment
When playing music, can find that the average volume difference of different music file is very large, have two reasons, one is that peak amplitude is different, and two is that peak factor is different.
Fig. 1 and Fig. 2 shows the schematic diagram of the average volume of the same a piece of music of different peak amplitude.Wherein, in Fig. 1, the peak amplitude of music file is the peak amplitude that in 0dB, Fig. 2, music file is play is-12dB.
Fig. 3 and Fig. 4 shows the volume schematic diagram of the same a piece of music file of different peak factor.Wherein in Fig. 3, the peak factor of music file is the peak factor of music file in 9dB, Fig. 4 is 19dB.
In concrete enforcement, peak factor can adopt following formula to calculate:
Crestfactor = 10 lg ( P peak P AVG ) ;
Wherein, Crestfactor represents peak factor, P peakrepresent the peak power that music file is play, P aVGrepresent the average power that music file is play.
From above-mentioned analysis, when ceteris paribus, the average volume of music file when playing, increases along with the increase of peak amplitude, reduces along with the increase of peak factor.
In actual applications, audio power amplification system has default spiking output, and described spiking output is generally determined by the supply power voltage of described audio power amplification system, exceedes described spiking output, truncation distortion will occur if exported.
Specifically refer to shown in Fig. 5 b in Fig. 5 a, the 500a wherein in Fig. 5 a is the region that truncation distortion occurs, and the 500b in Fig. 5 b is the region that truncation distortion occurs.Therefore, start-up time is longer, and volume can be comparatively large, but truncation distortion also can increase thereupon; If start-up time is shorter, truncation distortion can reduce thereupon, but volume can reduce.
In prior art, in order to promote the result of broadcast of music, increase the loudness of music, current audio frequency amplifier is mostly with automatic growth control (Automatic Gain Control, AGC) function, is similar to the compression function in audio effect processing or amplitude limit function.Along with the increase of input signal, output signal increases thereupon, and AGC is after detecting that output signal exceedes the startup threshold value of setting, and the initiatively gain of step-down amplifier inside, under predetermined threshold value output signal being limited in setting; When input signal reduces, after output signal is reduced to the release threshold value of setting, the gain of AGC Active recovery power amplifier inside, within the power bracket output of amplifier being limited to setting.Wherein, the time of gain reduction is the start-up time of AGC, and the time of gain recovery is the release time of AGC.Specifically, refer to shown in Fig. 6 a and Fig. 6 b:
A kind of gain control circuit of the prior art, amplitude detection circuit 501 pairs of amplifiers 502 output signal V outmonitor, as output signal V outafter exceeding default detection threshold level, amplitude detection circuit 501 exports corresponding control signal, the alternate path of control MUX gate circuit 503 is opened, input clock signal start-up time to the forward-backward counter 5041 in AGC control circuit 504, make forward-backward counter 5041 according to the signal frequency f of clock signal described start-up time 1carry out appreciation counting, AGC control circuit 505 exports the gain signal corresponding with the count value of forward-backward counter 5041, by the gain of gain control circuit 506 droop amplifier 502 gradually, output signal Vout is reached and maintains detection threshold level.
After output signal Vout is less than described detection threshold level, amplitude detection circuit 501 exports clock signal release time, amplitude detection circuit 501 exports corresponding control signal, first path of control MUX gate circuit 503 is opened, input clock signal release time to forward-backward counter 5041, make forward-backward counter 5041 according to the frequency f of clock signal described release time 2carry out depreciation counting, AGC control circuit 505 exports the gain signal corresponding with the count value of forward-backward counter 5041, is recovered the gain of amplifier 502 gradually, output signal Vout is maintained within default scope by gain control circuit 506.
In actual applications, when described detection level threshold arranges higher, above-mentioned agc circuit effectively can reduce the generation of truncation distortion phenomenon.Although above-mentioned gain control method can reduce truncation distortion to a certain extent, but the music file result of broadcast after above-mentioned gain control treatment is still unsatisfactory.
For solving the above-mentioned problems in the prior art, the technical scheme that the embodiment of the present invention adopts is according to the output signal of amplifier, dynamically carry out the selection of AGC clock signal start-up time, can while the distortion of minimizing truncation, increase the average volume of music file, promote the result of broadcast of music file.
For enabling above-mentioned purpose of the present invention, feature and advantage more become apparent, and are described in detail specific embodiments of the invention below in conjunction with accompanying drawing.
Fig. 7 shows the structural representation of a kind of gain control in the embodiment of the present invention.Gain control 700 as shown in Figure 7, can comprise N number of AGC control circuit 7011-701N and gain control circuit 702, wherein:
N number of AGC control circuit 7011-701N, is suitable for the output signal of detected amplifier and respective predetermined threshold value to compare, and according to comparative result according to corresponding sequencing control clock signal, exports corresponding gain signal, N >=2.
Gain control circuit 702, is suitable for, according to exported corresponding gain signal, controlling the gain of described amplifier.
In an embodiment of the present invention, gain control circuit 702 is suitable for being added by exported corresponding gain signal by gain selection circuit, adopts the gain of gain signal to described amplifier obtained after being added to control.
In concrete enforcement, by the output signal of detected amplifier and predetermined threshold value are compared, dynamically carry out the selection of AGC clock signal start-up time, therefore, can while the distortion of minimizing truncation, increase the average volume of music file, the result of broadcast of music file can be promoted, promote the experience of user.
Fig. 8 is the flow chart of the gain control method that the gain control shown in Fig. 7 is corresponding.Shown in Figure 8, can comprise:
Step S801: respectively detected amplifier output signal and respective predetermined threshold value are compared by N number of AGC control circuit, and according to comparative result according to corresponding sequencing control clock signal, export corresponding gain signal.
Step S802: according to exported corresponding gain signal, is controlled by the gain of gain control circuit to described amplifier.
Fig. 9 shows the structural representation that a kind of gain in the embodiment of the present invention controls.Gain control shown in Figure 9, can comprise N number of AGC control circuit 9011-901N and gain control circuit 902, wherein, in described N number of AGC control circuit 9011-901N:
Described AGC control circuit 901M comprises M AGC sequential control circuit 901M1 and M amplitude detection circuit 901M2,1≤M≤N, wherein:
Described M amplitude detection circuit 901M1, is suitable for detected output signal and M predetermined threshold value to compare.
Described M AGC sequential control circuit 901M2, be suitable for when determining that the output signal of detected amplifier 903 is greater than M predetermined threshold value, control corresponding forward-backward counter and carry out appreciation counting according to M the clock signal preset, export the gain signal corresponding with the count value of corresponding forward-backward counter.
N number of AGC control circuit 901N comprises N number of AGC sequential control circuit 901N1 and N number of amplitude detection circuit 901N2, wherein:
Described N number of amplitude detection circuit 901N1, is suitable for detected output signal and N number of predetermined threshold value to compare.
Described N number of AGC sequential control circuit 901N2, be suitable for when determining that detected output signal is greater than N number of predetermined threshold value, control corresponding forward-backward counter and carry out appreciation counting according to the N number of clock signal preset, export the gain signal corresponding with the count value of described forward-backward counter, and when determining that detected output signal is less than described N number of predetermined threshold value, control corresponding forward-backward counter (not shown) and carry out depreciation counting according to clock signal described release time, export the gain signal corresponding with the count value of described forward-backward counter.
In an embodiment of the present invention, described gain control circuit 902, be suitable for by gain selection circuit 904, the gain signal that described N number of AGC control circuit exports being added, and the gain signal obtained after using addition, the gain of described amplifier 903 is controlled.
Below in conjunction with Figure 10, the operation principle of the gain control shown in Fig. 9 is further described in detail.Refer to shown in Fig. 9 and Figure 10:
Step S1001: when determining that described output signal is less than M-1 predetermined threshold value and is greater than M predetermined threshold value, by AGC sequential control circuit M to AGC sequential control circuit N corresponding in M AGC control circuit to N number of AGC control circuit, according to M the clock signal preset, to N number of clock signal, one of them carries out appreciation counting respectively to control corresponding forward-backward counter, export the gain signal corresponding with the count value of corresponding forward-backward counter, wherein, 1≤M≤N.In concrete enforcement, input signal can carry out amplifying and exporting according to the multiplication factor preset by amplifier 903, is outputed signal accordingly.Corresponding N number of amplitude detection circuit 90111-901N1 in N number of AGC control circuit 9011-901N, there is predetermined threshold value V1 ~ Vn respectively, the numerical value of V1 ~ Vn reduces successively, and the predetermined threshold value V1 ~ Vn namely set by N number of amplitude detection circuit 90111-901N1 reduces successively.
When the output signal of amplifier 903 being detected, N number of amplitude detection circuit 90111-901N1, can monitor according to the output signal of the predetermined threshold value of self to amplifier 903.Such as, the amplitude detection circuit 901M1 in described M AGC control circuit 901M, is suitable for the output signal of detected amplifier 903 and M predetermined threshold value to compare, wherein, and 1≤M≤N.
With N number of amplitude detection circuit 9011 ~ 9011N accordingly, sequencing control clock signal can comprise clock signal clk 1 ~ CLKn N number of start-up time, and one release time clock signal clk r.So, in N number of AGC control circuit 9011-901N:
When detecting that the output signal of amplifier 903 is greater than M predetermined threshold value Vm, amplitude detection circuit 901M1 to amplitude detection circuit 901N1 will export corresponding control signal respectively, to the forward-backward counter (not shown) input clock signal clk m corresponding start-up time in AGC sequential control circuit 901M2 to AGC sequential control circuit 901N2, CLKm+1 ... .CLKn one of them, so, forward-backward counter in AGC sequential control circuit 901M2 to AGC sequential control circuit 901N2, just can respectively according to clock signal clk m respective corresponding start-up time, CLKm+1 ... .CLKn frequency f m, fm+1 ... fn carries out appreciation counting.
Meanwhile, AGC sequential control circuit 901M2 to AGC sequential control circuit 901N2 all exports the gain signal corresponding with the count value of respective forward-backward counter.
Here it is to be noted, when AGC sequential control circuit 901M2 to AGC sequential control circuit 901N2 carries out above-mentioned action, output signal due to amplifier 903 is all less than the predetermined threshold value V1-Vm-1 of amplitude detection circuit 90111 to amplitude detection circuit 901 (M-1) 1, therefore, the gain signal that AGC sequential control circuit 90112 to AGC sequential control circuit 901 (M-1) 2 exports will be zero.
Step S1002: when determining that described output signal is less than N-1 predetermined threshold value and is greater than N number of predetermined threshold value, control corresponding forward-backward counter by described N number of AGC control circuit and carry out appreciation counting according to the N number of clock signal preset, export the gain signal corresponding with the count value of described forward-backward counter.
In concrete enforcement, when detecting that the output signal of amplifier 903 is greater than N number of predetermined threshold value Vn, amplitude detection circuit 901N1 exports corresponding control signal, to the forward-backward counter (not shown) input clock signal clk n corresponding start-up time in AGC sequential control circuit 901N2, so, forward-backward counter in AGC sequential control circuit 901N2, just can according to corresponding the N number of start-up time clock signal clk n frequency f n carry out appreciation counting.
Meanwhile, AGC control circuit 901 just can export the gain signal corresponding with the count value of the forward-backward counter in AGC sequential control circuit 901N2.
Step S1003: when determining that described output signal is less than described N number of predetermined threshold value, control corresponding forward-backward counter by described N number of AGC control circuit and carry out depreciation counting according to described release clock signal, export the gain signal corresponding with the count value of described forward-backward counter.
In concrete enforcement, when detecting that the output signal of amplifier 903 is less than N number of predetermined threshold value Vn, amplitude detection circuit 901N1 exports corresponding control signal, to the forward-backward counter (not shown) input clock signal clk r described release time in AGC sequential control circuit 901N2, so, forward-backward counter in AGC sequential control circuit 901N2, just can according to corresponding start-up time clock signal clk r frequency f r carry out depreciation counting.Meanwhile, AGC control circuit 901 just can export the gain signal corresponding with the count value of the forward-backward counter in AGC sequential control circuit 901N2.
Step S1004: the described gain signal exported by N number of AGC control circuit is added, uses the gain signal obtained after being added, controlled by the gain of gain control circuit to described amplifier.
In concrete enforcement, the gain signal that N number of AGC control circuit 9011 ~ 901N exports, carries out after addition summation through gain selection circuit 904, input-gain control circuit 902.
The gain signal that gain control circuit 902 obtains after adopting and being added, controls the gain of amplifier 903.Specifically, comprising:
When the clock signal inputted in forward-backward counter corresponding in part or all of N number of AGC sequential control circuit 90112 ~ 901N2 is clock signal start-up time, gain control circuit 902 can according to the gain signal of input, the gain of control amplifier 903 progressively decays, and the output signal of amplifier 903 is controlled the predetermined threshold value in correspondence.
When being clock signal clk r release time to the clock signal of the forward-backward counter input in N number of AGC sequential control circuit 901N2, gain control circuit 905 is by the gain signal of input, progressively can recover the gain of amplifier 903, the multiplication factor that amplifier 903 can be preset according to self is amplified accordingly input signal and exports.
Figure 11 shows the structural representation of another gain control in the embodiment of the present invention.Gain control as shown in Figure 9, an AGC control circuit 1101 and the 2nd AGC control circuit 1102, gain selection circuit 1103 and gain control circuit 1104 can be comprised, one AGC control circuit 1101 and the 2nd AGC control circuit 1102 respectively gain selection circuit 1103 are connected with amplifier 1105, gain selection circuit 1103 is also connected with gain control circuit 1104, gain control circuit 1104 is also connected with amplifier 1105, wherein:
A described AGC control circuit 1101 comprises AGC sequential control circuit 11011 and first amplitude detection circuit 11012;
Described first amplitude detection circuit 11011, is suitable for detected output signal and the first predetermined threshold value to compare;
A described AGC sequential control circuit 11012, be suitable for when determining that detected output signal is greater than described first predetermined threshold value, control the first forward-backward counter (not shown) according to preset first start-up time clock signal carry out appreciations count, export the gain signal corresponding with the count value of described first forward-backward counter.
Described 2nd AGC control circuit 1102 comprises the second amplitude detection circuit 11021 and the 2nd AGC sequential control circuit 11022, wherein:
Described second amplitude detection circuit 11021, is suitable for detected output signal and the second predetermined threshold value to compare.
Described 2nd AGC sequential control circuit 11022, be suitable for when determining that detected output signal is greater than the second predetermined threshold value, control the second forward-backward counter and carry out appreciation counting according to the second clock signal preset, export the gain signal corresponding with the count value of described second forward-backward counter, and when determining that described detected output signal is less than described second predetermined threshold value, control corresponding forward-backward counter and carry out depreciation counting according to clock signal release time, export the gain signal corresponding with the count value of described forward-backward counter.
Below in conjunction with Figure 12, the operation principle of the gain control shown in Figure 11 is further described in detail.Refer to shown in Figure 11 and Figure 12:
Step S1201: when determining that described output signal is greater than the first predetermined threshold value, by a described AGC control circuit, control corresponding first forward-backward counter according to preset first start-up time clock signal frequency carry out appreciations count, export the gain signal corresponding with the count value of described first forward-backward counter, and by described 2nd AGC control circuit, control corresponding second forward-backward counter according to preset second start-up time clock signal frequency carry out appreciations count, export the gain signal corresponding with the count value of described second forward-backward counter.
In concrete enforcement, the first amplitude detection circuit 11011 in one AGC control circuit 1101 is when detecting that the output signal of amplifier 1105 is greater than the first predetermined threshold value, corresponding control signal can be exported, control the first forward-backward counter in an AGC sequential control circuit 11012 according to first start-up time clock signal frequency carry out appreciation counting, an AGC control circuit 1101 exports the gain signal corresponding with the count value of the first forward-backward counter in an AGC sequential control circuit 11012.
Meanwhile, because the output signal when amplifier 1105 is greater than the first predetermined threshold value, and the first predetermined threshold value is greater than the second predetermined threshold value, so, the output signal of the amplifier 1105 that the second amplitude detection circuit 11021 in the 2nd AGC control circuit 1102 detects also will be greater than described second predetermined threshold value.Now, second amplitude detection circuit 11021 just can export corresponding control signal, control the second forward-backward counter in the 2nd AGC sequential control circuit 11022 according to second start-up time clock signal frequency carry out appreciation counting, the 2nd AGC control circuit 1102 exports the gain signal corresponding with the count value of the second forward-backward counter in the 2nd AGC sequential control circuit 11022.
Step S1202: when determining that described output signal is less than described first predetermined threshold value and is greater than described second predetermined threshold value, by described 2nd AGC control circuit, control corresponding forward-backward counter and carry out appreciation counting according to the second clock signal frequency preset, export second gain signal corresponding with the count value of described forward-backward counter.
In concrete enforcement, when the first amplitude detection circuit 11011 in an AGC control circuit 1101 is when detecting that the output signal of amplifier 1105 is less than the first predetermined threshold value, one AGC control circuit 1101 can not output gain signal, in other words, now, the gain signal that an AGC control circuit 1101 now exports will be zero.
Meanwhile, the output signal of amplifier 1104 and the second predetermined threshold value preset compare, to determine whether the output signal of amplifier 1104 is greater than the second predetermined threshold value by the second amplitude detection circuit in the 2nd AGC control circuit.When the second amplitude detection circuit 11021 detects that the output signal of amplifier 1105 is greater than the second predetermined threshold value, corresponding control signal can be exported, control the second forward-backward counter (not shown) in the 2nd AGC sequential control circuit 11022 according to second start-up time clock signal frequency carry out appreciation counting, the 2nd AGC control circuit 1102 exports the gain signal corresponding with the count value of the second forward-backward counter in the 2nd AGC sequential control circuit 11022.
Step S1203: when determining that described output signal is less than described second predetermined threshold value, by described 2nd AGC control circuit, control described second forward-backward counter and carry out depreciation counting according to clock signal frequency described release time, export the gain signal corresponding with the count value of described second forward-backward counter, described second clock signal frequency be less than described first start-up time clock signal frequency.
In concrete enforcement, when the second amplitude detection circuit 11021 detects that the output signal of amplifier 1105 is less than the second predetermined threshold value, corresponding control signal can be exported, control the second forward-backward counter in the 2nd AGC sequential control circuit 11022 and carry out depreciation counting according to clock signal frequency described release time, the 2nd AGC control circuit 1102 exports the gain signal corresponding with the count value of the second forward-backward counter in the 2nd AGC sequential control circuit 11022.
Step S1204: the described gain signal exported by an AGC control circuit and the 2nd AGC control circuit is added, uses the gain signal obtained after being added, controlled by the gain of gain control circuit to described amplifier.
In concrete enforcement, the gain signal that one AGC control circuit 1101 and the 2nd AGC control circuit 1102 export can be added by gain selection circuit 1103, and the gain signal input-gain control circuit will obtained after addition, by gain control circuit 1102 according to the gain signal obtained after addition, the gain of amplifier is controlled.
Refer to shown in Figure 13 and Figure 14, the gain signal (gain signal 1 and gain signal 2) that one AGC control circuit and the 2nd AGC control circuit produce by gain selection circuit is separately added, be input in gain control circuit as final gain signal, by the change of gain control circuit controls amplifier gain.Concrete control result is shown in Figure 15, while significantly reducing truncation noise, can promote average power.
In an embodiment of the present invention, described first predetermined threshold value may be used for the distortion of monitoring truncation, and described second predetermined threshold value can be the level value that the power-handling capability of loud speaker is corresponding.One AGC control circuit 1101 and the 2nd AGC control circuit 1102 can control the output signal of amplifier 1105: the first predetermined threshold value of an AGC control circuit 1101 arranges higher, such as monitor truncation distortion, a corresponding AGC sequential control circuit 11011 responds comparatively fast, when after the distortion of generation truncation, can respond fast, eliminate truncation noise; The setting of the predetermined threshold value of the 2nd AGC control circuit 1102 is lower, the power-handling capability of such as loud speaker, and corresponding speed is comparatively slow, can promote average volume, promote sense of hearing while protection loud speaker.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
Done detailed introduction to the method and system of the embodiment of the present invention above, the present invention is not limited to this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, and therefore protection scope of the present invention should be as the criterion with claim limited range.

Claims (12)

1. a gain control method, is characterized in that, comprising:
Respectively detected output signal and respective predetermined threshold value are compared by N number of AGC control circuit, and according to comparative result according to corresponding sequencing control clock signal, export corresponding gain signal, N >=2;
According to exported corresponding gain signal, controlled by the gain of gain control circuit to described amplifier.
2. gain control method according to claim 1, is characterized in that, described sequencing control clock signal comprise N number of start-up time clock signal and one release time clock signal.
3. gain control method according to claim 2, it is characterized in that, describedly respectively detected output signal and respective predetermined threshold value to be compared by N number of AGC control circuit, and according to comparative result according to corresponding sequencing control clock, export corresponding gain signal, comprising:
When determining that described output signal is less than M-1 predetermined threshold value and is greater than M predetermined threshold value, respectively by M AGC control circuit to N number of AGC control circuit control corresponding forward-backward counter respectively according to M the clock signal preset to carrying out appreciation counting one of in N number of clock signal, export the gain signal corresponding with the count value of corresponding forward-backward counter, wherein, 1≤M≤N;
When determining that described output signal is less than N-1 predetermined threshold value and is greater than N number of predetermined threshold value, control corresponding forward-backward counter by described N number of AGC control circuit and carry out appreciation counting according to the N number of clock signal preset, export the gain signal corresponding with the count value of corresponding forward-backward counter;
When determining that described output signal is less than described N number of predetermined threshold value, control corresponding forward-backward counter by described N number of AGC control circuit and carry out depreciation counting according to described release clock signal, export the gain signal corresponding with the count value of corresponding forward-backward counter.
4. gain control method according to claim 3, it is characterized in that, described according to exported corresponding gain signal, controlled by the gain of gain control circuit to described amplifier, comprise: the gain signal that described N number of AGC control circuit exports is added, use the gain signal obtained after being added, controlled by the gain of gain control circuit to described amplifier.
5. gain control method according to claim 3, it is characterized in that, as N=2, described plural AGC control circuit comprises an AGC control circuit and the 2nd AGC control circuit, described sequencing control clock signal comprise first start-up time clock signal, second start-up time clock signal and described release time clock signal, wherein:
When determining that described output signal is greater than the first predetermined threshold value, by a described AGC control circuit, control corresponding first forward-backward counter according to preset first start-up time clock signal frequency carry out appreciations count, export the gain signal corresponding with the count value of described first forward-backward counter, and by described 2nd AGC control circuit, control corresponding second forward-backward counter according to preset second start-up time clock signal frequency carry out appreciations count, export the gain signal corresponding with the count value of described second forward-backward counter;
When determining that described output signal is less than described first predetermined threshold value and is greater than described second predetermined threshold value, by described 2nd AGC control circuit, control corresponding second forward-backward counter and carry out appreciation counting according to the second clock signal frequency preset, export second gain signal corresponding with the count value of described second forward-backward counter;
When determining that described output signal is less than described second predetermined threshold value, by described 2nd AGC control circuit, control described second forward-backward counter and carry out depreciation counting according to clock signal frequency described release time, export the gain signal corresponding with the count value of described second forward-backward counter, described second clock signal frequency be less than described first start-up time clock signal frequency.
6. gain control method according to claim 5, is characterized in that, described first predetermined threshold value is for monitoring truncation distortion, and described second predetermined threshold value is the level value that the power-handling capability of loud speaker is corresponding.
7. a gain control, is characterized in that, comprising:
N number of AGC control circuit, is suitable for the output signal of detected amplifier and respective predetermined threshold value to compare, and according to comparative result according to corresponding sequencing control clock signal, exports corresponding gain signal, N >=2;
Gain control circuit, is suitable for, according to exported corresponding gain signal, controlling the gain of described amplifier.
8. gain control according to claim 7, is characterized in that, described sequencing control clock signal comprise N number of start-up time clock signal and one release time clock signal.
9. gain control according to claim 8, is characterized in that, in described N number of AGC control circuit,
Described M AGC control circuit comprises M AGC sequential control circuit and M amplitude detection circuit, 1≤M≤N, wherein:
Described M amplitude detection circuit, is suitable for detected output signal and M predetermined threshold value to compare;
Described M AGC sequential control circuit, be suitable for when determining that detected output signal is greater than M predetermined threshold value, control corresponding forward-backward counter and carry out appreciation counting according to M the clock signal preset, export the gain signal corresponding with the count value of described forward-backward counter;
N number of AGC control circuit comprises N number of AGC sequential control circuit and N number of amplitude detection circuit wherein:
Described N number of amplitude detection circuit, is suitable for detected output signal and N number of predetermined threshold value to compare;
Described N number of AGC sequential control circuit, be suitable for when determining that detected output signal is greater than N number of predetermined threshold value, control corresponding forward-backward counter and carry out appreciation counting according to the N number of clock signal preset, export the gain signal corresponding with the count value of corresponding forward-backward counter, and when determining that detected output signal is less than described N number of predetermined threshold value, control corresponding forward-backward counter and carry out depreciation counting according to clock signal described release time, export the gain signal corresponding with the count value of corresponding forward-backward counter
10. gain control according to claim 9, it is characterized in that, described gain control circuit is suitable for being added by the gain signal that described N number of AGC control circuit exports by gain selection circuit, and the gain signal obtained after using addition, the gain of described amplifier is controlled.
11. gain controls according to any one of claim 7-10, it is characterized in that, as N=2, described N number of AGC control circuit comprises an AGC control circuit and the 2nd AGC control circuit, wherein:
A described AGC control circuit comprises an AGC sequential control circuit and the first amplitude detection circuit,
Described 2nd AGC control circuit comprises the 2nd AGC sequential control circuit and the second amplitude detection circuit;
Described first amplitude detection circuit, is suitable for detected output signal and the first predetermined threshold value to compare;
A described AGC sequential control circuit, be suitable for when determining that detected output signal is greater than described first predetermined threshold value, control the first forward-backward counter according to preset first start-up time clock signal carry out appreciations count, export the gain signal corresponding with the count value of described first forward-backward counter;
Described second amplitude detection circuit, is suitable for detected output signal and the second predetermined threshold value to compare;
Described 2nd AGC sequential control circuit, be suitable for when determining that detected output signal is greater than the second predetermined threshold value, control the second forward-backward counter and carry out appreciation counting according to the second clock signal preset, export the gain signal corresponding with the count value of described second forward-backward counter, and when determining that described detected output signal is less than described second predetermined threshold value, control described second forward-backward counter and carry out depreciation counting according to clock signal described release time, export the gain signal corresponding with the count value of described second forward-backward counter.
12. gain controls according to claim 11, is characterized in that, described first threshold is for monitoring truncation distortion, and described second predetermined threshold value is the level value that the power-handling capability of loud speaker is corresponding.
CN201410851211.6A 2014-12-31 2014-12-31 Gain control method and device Active CN104485909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410851211.6A CN104485909B (en) 2014-12-31 2014-12-31 Gain control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410851211.6A CN104485909B (en) 2014-12-31 2014-12-31 Gain control method and device

Publications (2)

Publication Number Publication Date
CN104485909A true CN104485909A (en) 2015-04-01
CN104485909B CN104485909B (en) 2017-12-19

Family

ID=52760426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410851211.6A Active CN104485909B (en) 2014-12-31 2014-12-31 Gain control method and device

Country Status (1)

Country Link
CN (1) CN104485909B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099385A (en) * 2015-08-24 2015-11-25 上海艾为电子技术股份有限公司 Gain control circuit and audio equipment
CN106130497A (en) * 2016-06-21 2016-11-16 深圳天珑无线科技有限公司 Audio frequency power amplifier gain control circuit and there is the mobile device of this circuit
CN106656085A (en) * 2017-01-20 2017-05-10 深圳市中移联半导体科技有限公司 Gain control device
WO2018188193A1 (en) * 2017-04-11 2018-10-18 深圳思凯微电子有限公司 Automatic gain control device and method
CN108768329A (en) * 2018-07-23 2018-11-06 上海艾为电子技术股份有限公司 Double AGC systems
WO2024099038A1 (en) * 2022-11-07 2024-05-16 武汉市聚芯微电子有限责任公司 Gain control apparatus and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262208A (en) * 2007-03-09 2008-09-10 松下电器产业株式会社 Automatic Gain Control Circuit
CN101599747A (en) * 2008-05-05 2009-12-09 晨星软件研发(深圳)有限公司 Volume control device and method
CN101764586A (en) * 2008-12-04 2010-06-30 索尼株式会社 Sound volume correcting device, sound volume correcting method, sound volume correcting program, and electronic apparatus
CN102025333A (en) * 2009-09-10 2011-04-20 罗姆股份有限公司 Level adjusting circuit and audio system using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262208A (en) * 2007-03-09 2008-09-10 松下电器产业株式会社 Automatic Gain Control Circuit
CN101599747A (en) * 2008-05-05 2009-12-09 晨星软件研发(深圳)有限公司 Volume control device and method
CN101764586A (en) * 2008-12-04 2010-06-30 索尼株式会社 Sound volume correcting device, sound volume correcting method, sound volume correcting program, and electronic apparatus
CN102025333A (en) * 2009-09-10 2011-04-20 罗姆股份有限公司 Level adjusting circuit and audio system using the same

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099385A (en) * 2015-08-24 2015-11-25 上海艾为电子技术股份有限公司 Gain control circuit and audio equipment
CN105099385B (en) * 2015-08-24 2018-07-10 上海艾为电子技术股份有限公司 Gain control circuit and audio frequency apparatus
CN106130497A (en) * 2016-06-21 2016-11-16 深圳天珑无线科技有限公司 Audio frequency power amplifier gain control circuit and there is the mobile device of this circuit
CN106656085A (en) * 2017-01-20 2017-05-10 深圳市中移联半导体科技有限公司 Gain control device
WO2018188193A1 (en) * 2017-04-11 2018-10-18 深圳思凯微电子有限公司 Automatic gain control device and method
CN108768329A (en) * 2018-07-23 2018-11-06 上海艾为电子技术股份有限公司 Double AGC systems
CN108768329B (en) * 2018-07-23 2023-10-13 上海艾为电子技术股份有限公司 Dual AGC system
WO2024099038A1 (en) * 2022-11-07 2024-05-16 武汉市聚芯微电子有限责任公司 Gain control apparatus and method

Also Published As

Publication number Publication date
CN104485909B (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN104485909A (en) Gain control method and device
US9800206B2 (en) Signal envelope processing
CN104410379B (en) A kind of volume adjusting method
CN104767498A (en) Gain control method and device
EP2645740A1 (en) Control method and apparatus for a speaker system and mobile apparatus
US9462381B2 (en) Intelligent dynamics processing
US9431982B1 (en) Loudness learning and balancing system
US10200000B2 (en) Handheld electronic apparatus, sound producing system and control method of sound producing thereof
EP2928076B1 (en) Level adjustment device and method
CN102610229B (en) Method, apparatus and device for audio dynamic range compression
JP6785907B2 (en) How to arrange wireless speakers, wireless speakers and terminal devices
CN104363510B (en) A kind of playback terminal
US9166547B2 (en) Electronic device and method for adjusting volume levels of audio signal outputted by the electronic device
US9391575B1 (en) Adaptive loudness control
US20130156226A1 (en) Volume adjustment circuit with automatic gain control and electronic device using same
CN104485910A (en) Gain control method and device
CN102568512A (en) Method and device of volume control
CN105099385A (en) Gain control circuit and audio equipment
US9191737B2 (en) Crest-factor based gain modification
JP6314662B2 (en) Audio signal processing apparatus and program thereof
CN110808064B (en) Audio processing method and device
US11394356B1 (en) Block-based audio limiter
GB2559858A (en) Audio processing apparatus and method of controlling same
JP2014175847A (en) Sound signal processing device, acoustic device, method for controlling sound signal processing device, and program
KR102035605B1 (en) Multi channel audio system and control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant