[go: up one dir, main page]

CN208174647U - Double AGC systems - Google Patents

Double AGC systems Download PDF

Info

Publication number
CN208174647U
CN208174647U CN201821174504.5U CN201821174504U CN208174647U CN 208174647 U CN208174647 U CN 208174647U CN 201821174504 U CN201821174504 U CN 201821174504U CN 208174647 U CN208174647 U CN 208174647U
Authority
CN
China
Prior art keywords
signal
gain
value
agc
input
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.)
Withdrawn - After Issue
Application number
CN201821174504.5U
Other languages
Chinese (zh)
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 CN201821174504.5U priority Critical patent/CN208174647U/en
Application granted granted Critical
Publication of CN208174647U publication Critical patent/CN208174647U/en
Withdrawn - After Issue legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Amplification And Gain Control (AREA)

Abstract

The utility model discloses a kind of double AGC systems, including:Zero passage detection unit;Gain linearization unit, for finding the first gain adjustment value and the second gain adjustment value of linearisation in linear look-up table according to automatic gain stairstep signal in digital input signals zero passage;Output gain adjustment unit obtains digital output signal after multiplying and saturation arithmetic processing according to digital input signals and the first gain adjustment value;Input gain adjustment unit obtains input gain adjustment signal after multiplying and saturation arithmetic processing according to digital input signals and the second gain adjustment value;Selecting unit, for according to the received mode signal of mode signal input terminal, selectivity to export digital output signal or input gain adjustment signal;Automatic gain control unit generates automatic gain stairstep signal for the output signal according to selection signal output end.Implement the risk that the utility model is avoided that digital input signals truncation and signal overcompression.

Description

Dual AGC system
Technical Field
The utility model relates to an automatic gain control field, in particular to two AGC systems.
Background
In the field of audio signal processing, there has been considerable research on Automatic Gain Control (AGC) of digital audio signals, and in order to amplify audio signals without damaging speakers and without sound break, Automatic Gain Control (AGC) technology has been widely used in digital audio processing. Such as in prior art fig. 1: the output signal is used directly to check whether the gain is too large and to adjust the gain of the input signal. In prior art fig. 2: when checking whether the gain is adjusted, the signal gain is adjusted when the signal crosses zero, which can effectively prevent the sound from becoming premature in fig. 1.
However, although fig. 2 effectively prevents the sound from becoming premature by adjusting the signal gain when the signal crosses zero, the AGC strategy is too simple and the digital input signal is easily truncated and the signal is over-compressed.
SUMMERY OF THE UTILITY MODEL
In view of the above, the present invention is directed to a dual AGC system to avoid the risk of digital input signal truncation and signal overcompression.
Particularly, the utility model provides a two AGC systems, include:
a zero-crossing detection unit for detecting whether the digital input signal crosses zero;
the gain linearization unit is used for finding a linearized first gain adjustment value and a linearized second gain adjustment value in a linear lookup table according to an automatic gain stepping signal when the digital input signal passes through zero;
the output gain adjusting unit is used for obtaining a digital output signal after multiplication and saturation operation processing according to the digital input signal and the first gain adjusting value;
the input gain adjusting unit is used for obtaining an input gain adjusting signal after multiplication and saturation operation processing according to the digital input signal and the second gain adjusting value;
a selection unit comprising: a mode signal input, a first select signal input for receiving the digital output signal, a second select signal input for receiving the input gain adjustment signal, and a select signal output; the selection signal output end is used for selectively outputting the digital output signal or the input gain adjustment signal according to the mode signal received by the mode signal input end;
and the automatic gain control unit is used for generating the automatic gain stepping signal according to the output signal of the selection signal output end.
Further, the dual AGC system further comprises:
the prevention large unit is used for amplifying the digital input signal according to a preset amplification parameter to obtain an amplified digital input signal;
the output gain adjusting unit comprises a first multiplier and a first saturation operation processor, wherein the first multiplier calculates a first product of the amplified digital input signal and a first gain adjusting value, and the first saturation operation processor is used for performing saturation operation processing on the first product to obtain the digital output signal;
the input gain adjustment unit comprises a second multiplier and a second saturation operation processor, wherein the second multiplier calculates a second product of the amplified digital input signal and a second gain adjustment value, and the second saturation operation processor is used for performing saturation operation processing on the second product to obtain the input gain adjustment signal.
Furthermore, the dual AGC system further comprises an absolute value calculating unit, wherein an input end of the absolute value calculating unit is connected to a selection signal output end of the selecting unit; the output end of the absolute value calculating unit is connected with the input end of the automatic gain control unit;
and the automatic gain control unit is used for generating the automatic gain stepping signal according to the output signal of the output end of the absolute value calculation unit.
Further, the automatic gain control unit includes:
the device comprises a reset signal end, a fast gain enabling end and a slow gain enabling end;
the signal peak value monitoring module is used for judging whether the input signal of the automatic gain control unit exceeds a preset fast AGC amplitude threshold value, a preset slow AGC amplitude threshold value and a preset AGC release amplitude threshold value or not, and generating corresponding monitoring values according to the judgment result, wherein the monitoring values comprise a fast AGC amplitude monitoring value, a slow AGC amplitude monitoring value and a AGC release amplitude monitoring value;
the main control state machine is used for determining the working state of the corresponding monitoring value according to the preset fast gain counting value, the preset slow gain counter, the gain keeping counting value and the corresponding relation between various monitoring values and the working state of each automatic gain control unit, and outputting the current working state information and the next working state information; the working state comprises: a Release (Release) state in which gain adjustment is not performed on the digital input signal, a tracking (attach) state in which fast/slow gain adjustment is performed on the digital input signal, and a HOLD (HOLD) state in which output of the digital input signal at a fixed gain amplitude is maintained;
the fast gain counter is used for counting according to the current working state information, the next working state information and the preset duration time required by the fast AGC to adjust the one-step gain to obtain a fast gain count value;
the slow gain counter is used for counting according to the current working state information, the next working state information and the preset duration time required by the slow AGC for adjusting the gain in one step to obtain a count value of the slow gain;
the gain keeping counter is used for adjusting the duration time required by one-step gain according to the current working state information, the next working state information and the preset AGC amplitude keeping value, counting is carried out, and the gain keeping count value is obtained;
and the gain stepping adjustment module is used for generating the automatic gain stepping signal according to the current working state information, the next working state information, the fast gain counting value, the slow gain counter, the fast AGC amplitude monitoring value, the slow AGC amplitude monitoring value and the AGC release amplitude monitoring value, wherein the amplitude of the automatic gain stepping signal is limited to a preset maximum value of gain stepping adjustment.
Further, the zero-crossing detection unit includes:
a first delay register having a first end for receiving the digital input signal, a second end for receiving a clock signal, and a first output end;
a logical or-not operation module, a first end for receiving the digital input signal, a second end for receiving the signal of the output end of the first delay register, and a second output end;
a logic or operation module, a first end for receiving the detection result that the digital input signal is the smallest near a positive value, a second end for receiving the detection result that the digital input signal is the smallest near a negative value, a third end for receiving the output signal of the second output end, and a third output end for outputting a zero-crossing detection signal.
Further, the gain linearizing unit includes:
the adder is used for calculating and obtaining a gain sum value obtained by adding a preset gain value and the automatic gain stepping signal;
a second delay register comprising: the data input end is used for receiving the gain sum value, the clock signal input end, the enabling end for receiving the zero-crossing detection signal and the delay data output end;
a selector, comprising: an enable terminal for receiving the zero-crossing detection signal, a first selection input terminal for receiving the gain sum value, a second selection input terminal for connecting the delay data output terminal, and a selection output terminal for selectively outputting an output signal for receiving the gain sum value or the delay data output terminal according to the zero-crossing detection signal;
the first look-up table module is used for finding a linearized first gain adjustment value in a linear look-up table according to the output signal of the selection output end;
and the second lookup table module is used for finding a second linearized gain adjusting value in the linear lookup table according to the gain sum value.
Further, the gain linearizing unit further comprises: and the input end of the amplitude limiting module is connected with the output end of the adder, and the output end of the amplitude limiting module is connected with the data input end of the second delay register.
Further, the entry condition of the release state includes:
the reset signal end receives a reset signal, and the fast gain enabling end and the slow gain enabling end do not receive an enabling signal; or,
when in a holding state, the signal peak value monitoring module cannot detect that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value, the slow AGC amplitude threshold value and the AGC release amplitude threshold value, and enters the release state after the gain counter is full;
the condition for the release state to enter the tracking state includes: and the signal peak value monitoring module detects that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value or the slow AGC amplitude threshold value.
Further, the entry condition of the tracking state includes:
the signal peak value monitoring module detects that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value or the slow AGC amplitude threshold value;
the condition that the tracking state enters the holding state comprises the following steps:
the signal peak value monitoring module detects that the input signal of the automatic gain control unit does not exceed the fast AGC amplitude threshold value and the slow AGC amplitude threshold value.
Further, the entry condition of the hold state includes:
in the tracking state, the signal peak value monitoring module detects that the input signal of the automatic gain control unit does not exceed the fast AGC amplitude threshold value and the slow AGC amplitude threshold value;
when the signal is in the holding state, the signal peak value monitoring module detects that the input signal of the automatic gain control unit exceeds an AGC release amplitude monitoring value;
the condition that the hold state enters the track state includes:
the signal peak value monitoring module cannot detect that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value, the slow AGC amplitude threshold value and the AGC release amplitude threshold value, and the gain counter is kept full.
The utility model discloses a two AGC systems, through setting up output gain adjustment unit, input gain adjustment unit and optional unit, the selective signal output end is used for the basis mode signal that mode signal input end received, the selectivity is exported digital output signal or input gain adjustment signal, from this on the source of judgement to automatic gain control unit, select through the configuration behind AGC digital output signal or after pre-amplification input gain adjustment signal not only to AGC's application scene on, has more nimble selection, can also carry out the dynamic real-time adjustment to audio signal's amplitude, furthest remains the original sound and reduces the risk that signal truncation and signal overcompressed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention. In the drawings, like reference numerals are used to indicate like elements. The drawings in the following description are directed to some, but not all embodiments of the invention. For a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic topology diagram of a first AGC system in the prior art;
fig. 2 is a schematic topology diagram of a second AGC system in the prior art;
fig. 3 is a schematic topology diagram of a dual AGC system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a dual AGC system according to an embodiment of the present invention;
fig. 5 is a schematic waveform diagram of a fast AGC amplitude threshold and a slow AGC amplitude threshold in a dual AGC system according to an embodiment of the present invention;
fig. 6 is a block diagram illustrating an automatic gain control unit in a dual AGC system according to an embodiment.
FIG. 7 is a state transition diagram of a master state machine in the AGC unit of FIG. 6;
fig. 8 is a schematic structural diagram of a zero-crossing detection unit and a gain linearization unit in a dual AGC system according to an embodiment of the present invention.
Fig. 9 is a schematic diagram of saturation operation in a dual AGC system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative work belong to the protection scope of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The following describes the dual AGC system according to the present invention in detail with reference to the drawings.
Referring to fig. 3-4, an embodiment of the present invention provides a dual AGC system, including:
a zero-crossing detection unit for detecting whether the digital input signal crosses zero;
the gain linearization unit is used for finding a linearized first gain adjustment value and a linearized second gain adjustment value in a linear lookup table according to an automatic gain stepping signal when the digital input signal passes through zero;
the output gain adjusting unit is used for obtaining a digital output signal after multiplication and saturation operation processing according to the digital input signal and the first gain adjusting value;
the input gain adjusting unit is used for obtaining an input gain adjusting signal after multiplication and saturation operation processing according to the digital input signal and the second gain adjusting value;
a selection unit comprising: a mode signal input, a first select signal input for receiving the digital output signal, a second select signal input for receiving the input gain adjustment signal, and a select signal output; the selection signal output end is used for selectively outputting the digital output signal or the input gain adjustment signal according to the mode signal received by the mode signal input end;
and the automatic gain control unit is used for generating the automatic gain stepping signal according to the output signal of the selection signal output end.
Preferably, the dual AGC system further comprises:
the prevention large unit is used for amplifying the digital input signal according to a preset amplification parameter to obtain an amplified digital input signal;
the output gain adjusting unit comprises a first multiplier and a first saturation operation processor, wherein the first multiplier calculates a first product of the amplified digital input signal and a first gain adjusting value, and the first saturation operation processor is used for performing saturation operation processing on the first product to obtain the digital output signal;
the input gain adjustment unit comprises a second multiplier and a second saturation operation processor, wherein the second multiplier calculates a second product of the amplified digital input signal and a second gain adjustment value, and the second saturation operation processor is used for performing saturation operation processing on the second product to obtain the input gain adjustment signal.
Preferably, the dual AGC system further comprises an absolute value calculating unit, an input end of the absolute value calculating unit is connected to the selection signal output end of the selecting unit; the output end of the absolute value calculating unit is connected with the input end of the automatic gain control unit;
and the automatic gain control unit is used for generating the automatic gain stepping signal according to the output signal of the output end of the absolute value calculation unit.
Table 1 lists the meanings represented for each symbol in fig. 3, and table 2 lists the meanings represented for each symbol in fig. 4. The control signals in brackets in fig. 4 are configurable parameters, giving the present invention great flexibility to adapt to various situations. The automatic gain control unit mainly performs amplitude judgment on the input signal abs _ agc to obtain the gain step acc _ cnt [5:0] to be adjusted.
TABLE 1
TABLE 2
According to the embodiment, the gain of the input signal is adjusted after the zero-crossing detection of the signal through the pre-judgment of the digital input signal, so that the signal compression and the premature sound change of the audio signal caused by the early-time sound change can be effectively prevented. Meanwhile, the utility model discloses also improve to the preliminary treatment of signal, behind 16 bits's digital quantization signal Din [15:0], the utility model discloses carry out the preliminary amplification to this signal, can effectively promote digital signal's dynamic range. The utility model discloses on the source of judgement to automatic gain, also have the input quantization signal after the output quantization signal or the preliminary amplification of selecting through the configuration after AGC. Therefore, the method has more flexible selection for the application scene of the AGC. The embodiment dynamically adjusts the amplitude of the audio signal in real time, furthest retains the original sound and reduces the risks of signal truncation and signal overcompression.
As shown in fig. 6, specifically, the automatic gain control unit includes:
the device comprises a reset signal end, a fast gain enabling end and a slow gain enabling end;
a signal peak value monitoring module, configured to determine whether an input signal of the automatic gain control unit exceeds a preset fast AGC amplitude threshold, a preset slow AGC amplitude threshold, and an AGC release amplitude threshold shown in fig. 5, and generate corresponding monitoring values according to a determination result, where the monitoring values include a fast AGC amplitude monitoring value, a slow AGC amplitude monitoring value, and an AGC release amplitude monitoring value;
a main control state machine (FSM _ Controller) for determining the working state at the corresponding monitoring value according to the corresponding relationship between the preset fast gain counting value, the preset slow gain counter, the gain keeping counting value and the working states of various monitoring values and respective automatic gain control units, and outputting the current working state information and the next working state information; the operating states include the following states as shown in fig. 7: the method comprises the following steps of releasing the digital input signal without gain adjustment, tracking the digital input signal with fast/slow gain adjustment, and maintaining the output holding state of the digital input signal under the fixed gain amplitude;
the fast gain counter is used for counting according to the current working state information, the next working state information and the preset duration time required by the fast AGC to adjust the one-step gain to obtain a fast gain count value;
the slow gain counter is used for counting according to the current working state information, the next working state information and the preset duration time required by the slow AGC for adjusting the gain in one step to obtain a count value of the slow gain;
the gain keeping counter is used for adjusting the duration time required by one-step gain according to the current working state information, the next working state information and the preset AGC amplitude keeping value, counting is carried out, and the gain keeping count value is obtained;
and the gain stepping adjustment module is used for generating the automatic gain stepping signal according to the current working state information, the next working state information, the fast gain counting value, the slow gain counter, the fast AGC amplitude monitoring value, the slow AGC amplitude monitoring value and the AGC release amplitude monitoring value, wherein the amplitude of the automatic gain stepping signal is limited to a preset maximum value of gain stepping adjustment.
As shown in fig. 8, the zero-crossing detecting unit includes:
a first delay register having a first end for receiving the digital input signal, a second end for receiving a clock signal, and a first output end;
a logical or-not operation module, a first end for receiving the digital input signal, a second end for receiving the signal of the output end of the first delay register, and a second output end;
a logic or operation module, a first end for receiving the detection result that the digital input signal is the smallest near a positive value, a second end for receiving the detection result that the digital input signal is the smallest near a negative value, a third end for receiving the output signal of the second output end, and a third output end for outputting a zero-crossing detection signal.
The zero-crossing adjustment ensures that the signal amplitude is subjected to gain adjustment only when the signal crosses the zero point, so that the phenomenon that sound is changed or pop sound occurs due to the fact that the signal gain is adjusted too early is avoided, and the adjustment of the sound is smoother and softer. Note that: the detection of zero crossing adjustment is made only for the input Din [15:0] signal. Since the gain is only adjusted for zero crossings of the input signal, it is the target of the AGC.
Further, the gain linearizing unit includes:
the adder is used for calculating and obtaining a gain sum value obtained by adding a preset gain value and the automatic gain stepping signal;
a second delay register comprising: the data input end is used for receiving the gain sum value, the clock signal input end, the enabling end for receiving the zero-crossing detection signal and the delay data output end;
a selector, comprising: an enable terminal for receiving the zero-crossing detection signal, a first selection input terminal for receiving the gain sum value, a second selection input terminal for connecting the delay data output terminal, and a selection output terminal for selectively outputting an output signal for receiving the gain sum value or the delay data output terminal according to the zero-crossing detection signal;
the first look-up table module is used for finding a linearized first gain adjustment value in a linear look-up table according to the output signal of the selection output end;
and the second lookup table module is used for finding a second linearized gain adjusting value in the linear lookup table according to the gain sum value.
The Gain Linear Table in fig. 8 is a linearized look-up Table: the linearized gain is found by the step gain and fed back to the input and output gain adjustment modules. The gain adjustment is accomplished by directly multiplying the input signal and the output feedback signal by the linear gain (multiplier) and performing Saturation operation (Saturation).
With continued reference to fig. 8, the gain linearizing unit further comprises: and the input end of the amplitude limiting module is connected with the output end of the adder, and the output end of the amplitude limiting module is connected with the data input end of the second delay register. Table 3 shows the meanings of the symbols in fig. 8.
TABLE 3
Continuing with fig. 7, the entry conditions for the release state include:
the reset signal end receives a reset signal, and the fast gain enabling end and the slow gain enabling end do not receive an enabling signal; or,
when in a holding state, the signal peak value monitoring module cannot detect that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value, the slow AGC amplitude threshold value and the AGC release amplitude threshold value, and enters the release state after the gain counter is full;
the condition for the release state to enter the tracking state includes: and the signal peak value monitoring module detects that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value or the slow AGC amplitude threshold value.
The above for the release state can also be described in the following intuitive way:
(ii) Release State [ Release ]
Processing content
At this time, the signal is not subjected to gain adjustment, and can be in a dynamic range
From the previous state
The reset signal rst _ n is active. (rst _ n is 0)
The modules of the present invention are not enabled. (enable ═ 0)
[ hold ] 1) at the time of the hold state, the exceeding of the Fast/Slow threshold is not detected, and the release threshold is not exceeded, and the release state is entered after the hold _ cnt counter is full.
Transition to the next state
Tracking 1) detects an amplitude threshold exceeding the fast AGC (above _ avth1 ═ 1)
2) Detecting an amplitude threshold exceeding the slow AGC (above _ avth0 ═ 1)
Is maintained in this state
Other conditions
Further, the entry condition of the tracking state includes:
the signal peak value monitoring module detects that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value or the slow AGC amplitude threshold value;
the condition that the tracking state enters the holding state comprises the following steps:
the signal peak value monitoring module detects that the input signal of the automatic gain control unit does not exceed the fast AGC amplitude threshold value and the slow AGC amplitude threshold value.
The above for the tracking state can also be described in the following intuitive way:
② AGC tracking state [ tracking ]
Processing content
The signal is subjected to fast and slow gain adjustment to ensure that the signal is not truncated and keep high-power output
From the previous state
IDLE 1) detects an amplitude threshold exceeding fast AGC (above _ avth1 ═ 1)
2) Detecting an amplitude threshold exceeding the slow AGC (above _ avth0 ═ 1)
Hold 1) detects an amplitude threshold exceeding fast AGC (above _ avth1 ═ 1)
2) Detecting an amplitude threshold exceeding the slow AGC (above _ avth0 ═ 1)
Transition to the next state
Hold 1) detect signal threshold, neither fast AGC nor slow AGC threshold exceeds (above _ avth1 is 0 and above _ avth0 is 0)
Is maintained in this state
Other conditions
Further, the entry condition of the hold state includes:
in the tracking state, the signal peak value monitoring module detects that the input signal of the automatic gain control unit does not exceed the fast AGC amplitude threshold value and the slow AGC amplitude threshold value;
when the signal is in the holding state, the signal peak value monitoring module detects that the input signal of the automatic gain control unit exceeds an AGC release amplitude monitoring value;
the condition that the hold state enters the track state includes:
the signal peak value monitoring module cannot detect that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value, the slow AGC amplitude threshold value and the AGC release amplitude threshold value, and the gain counter is kept full.
The above for the holding state can also be described in the following intuitive way:
③ Hold State [ Hold ]
Processing content
The signal does not need to adjust the gain at this time, and the output of the signal at a fixed gain amplitude is maintained.
From the previous state
1) cannot detect an amplitude threshold exceeding the fast AGC (above _ avth1 ═ 0) and cannot detect an amplitude threshold exceeding the slow AGC (above _ avth0 ═ 0)
Hold 1) detects a release amplitude threshold exceeding AGC (above _ rvth ═ 1)
Transition to the next state
Release 1) the release counter is full (hold _ cnt > -hold _ time _ th) and no overshoot of the AGC fast, slow, release amplitude threshold is detected. (above _ avth1 ═ 0 and above _ avth0 ═ 0 and above _ rvth ═ 0)
Is maintained in this state
Others
Fig. 9 is a simplified illustration of the saturation operation of the signed signal according to the present invention, and the signal having undergone SSAT (signalsaving) is outputted as a normal digital audio signal having undergone gain adjustment. It can be seen in the figure that: if the saturation operation is not performed, the signal is distorted. And the saturation operation is to ensure that the signal is not distorted.
With reference to the above drawings, the operation principle of the dual AGC system is briefly described as follows: the audio quantization signal Din [15:0] is pre-amplified, subjected to gain adjustment of an output signal, and subjected to saturation operation processing and then output. After the input signal is subjected to zero-crossing detection, the adjustment gain generated by the automatic gain control unit is subjected to linearization processing, then the gain is respectively adjusted for the input signal and the output signal, the adjusted signal is returned to the automatic gain control unit again through the configuration of a selectable source, and the gain step of the signal is further adjusted.
The utility model discloses a detailed design block diagram the utility model discloses in, the digital signal of quantization is through enlargiing in advance, and the AGC gain that calculates at automatic gain control module is step-by-step, in the signal zero passage, through seeking the linear gain that the gain step-by-step corresponds, does multiplication and saturation operation with it and the signal after enlargiing in advance, obtains final output gain. The utility model discloses used two kinds of feedbacks of output and input to detect the gain to through built-in quick, the gain adjustment function at a slow speed, carry out gain control to the signal. The gain can be adjusted quickly without truncation, and the high-power stable output signal can be ensured under the condition of slow gain adjustment. Because now to the pursuit of tone quality, music audibility, the utility model discloses a two AGC framework circuit have fine multi-scene suitability. The circuit of this architecture is capable of: 1, the signal is promoted by a certain dynamic range, the implementation mode is very simple and can be easily realized, and the original signal can be configured and reserved in a zero-activity mode. 2, owing to have that the double signal source can be selected, high low gain compression threshold is optional, can dispose, signal compression ratio and compression ratio developments can be joined in marriage with fine general type characteristic, the utility model discloses a but two AGC frameworks wide application in digital audio power amplifier chip and the chip that needs similar relevant digital signal processing.
It will be understood by those skilled in the art that all or part of the steps/units/modules for implementing the embodiments may be implemented by hardware associated with program instructions, and the program may be stored in a computer-readable storage medium, and when executed, the program performs the steps corresponding to the units in the embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-mentioned embodiments, further detailed description of the objects, technical solutions and advantages of the present invention, it should be understood that the above-mentioned embodiments are only specific embodiments of the present invention, and are not intended to limit the present invention, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A dual AGC system, comprising:
a zero-crossing detection unit for detecting whether the digital input signal crosses zero;
the gain linearization unit is used for finding a linearized first gain adjustment value and a linearized second gain adjustment value in a linear lookup table according to an automatic gain stepping signal when the digital input signal passes through zero;
the output gain adjusting unit is used for obtaining a digital output signal after multiplication and saturation operation processing according to the digital input signal and the first gain adjusting value;
the input gain adjusting unit is used for obtaining an input gain adjusting signal after multiplication and saturation operation processing according to the digital input signal and the second gain adjusting value;
a selection unit comprising: a mode signal input, a first select signal input for receiving the digital output signal, a second select signal input for receiving the input gain adjustment signal, and a select signal output; the selection signal output end is used for selectively outputting the digital output signal or the input gain adjustment signal according to the mode signal received by the mode signal input end;
and the automatic gain control unit is used for generating the automatic gain stepping signal according to the output signal of the selection signal output end.
2. The dual AGC system of claim 1, further comprising:
the prevention large unit is used for amplifying the digital input signal according to a preset amplification parameter to obtain an amplified digital input signal;
the output gain adjusting unit comprises a first multiplier and a first saturation operation processor, wherein the first multiplier calculates a first product of the amplified digital input signal and a first gain adjusting value, and the first saturation operation processor is used for performing saturation operation processing on the first product to obtain the digital output signal;
the input gain adjustment unit comprises a second multiplier and a second saturation operation processor, wherein the second multiplier calculates a second product of the amplified digital input signal and a second gain adjustment value, and the second saturation operation processor is used for performing saturation operation processing on the second product to obtain the input gain adjustment signal.
3. The dual AGC system of claim 2 further comprising an absolute value calculation unit having an input coupled to the select signal output of said selection unit; the output end of the absolute value calculating unit is connected with the input end of the automatic gain control unit;
and the automatic gain control unit is used for generating the automatic gain stepping signal according to the output signal of the output end of the absolute value calculation unit.
4. The dual AGC system of any of claims 1-3, wherein the automatic gain control unit comprises:
the device comprises a reset signal end, a fast gain enabling end and a slow gain enabling end;
the signal peak value monitoring module is used for judging whether the input signal of the automatic gain control unit exceeds a preset fast AGC amplitude threshold value, a preset slow AGC amplitude threshold value and a preset AGC release amplitude threshold value or not, and generating corresponding monitoring values according to the judgment result, wherein the monitoring values comprise a fast AGC amplitude monitoring value, a slow AGC amplitude monitoring value and a AGC release amplitude monitoring value;
the main control state machine is used for determining the working state of the corresponding monitoring value according to the preset fast gain counting value, the preset slow gain counter, the gain keeping counting value and the corresponding relation between various monitoring values and the working state of each automatic gain control unit, and outputting the current working state information and the next working state information; the working state comprises: the method comprises the following steps of releasing the digital input signal without gain adjustment, tracking the digital input signal with fast/slow gain adjustment, and maintaining the output holding state of the digital input signal under the fixed gain amplitude;
the fast gain counter is used for counting according to the current working state information, the next working state information and the preset duration time required by the fast AGC to adjust the one-step gain to obtain a fast gain count value;
the slow gain counter is used for counting according to the current working state information, the next working state information and the preset duration time required by the slow AGC for adjusting the gain in one step to obtain a count value of the slow gain;
the gain keeping counter is used for adjusting the duration time required by one-step gain according to the current working state information, the next working state information and the preset AGC amplitude keeping value, counting is carried out, and the gain keeping count value is obtained;
and the gain stepping adjustment module is used for generating the automatic gain stepping signal according to the current working state information, the next working state information, the fast gain counting value, the slow gain counter, the fast AGC amplitude monitoring value, the slow AGC amplitude monitoring value and the AGC release amplitude monitoring value, wherein the amplitude of the automatic gain stepping signal is limited to a preset maximum value of gain stepping adjustment.
5. The dual AGC system of claim 4, wherein the zero crossing detection unit comprises:
a first delay register having a first end for receiving the digital input signal, a second end for receiving a clock signal, and a first output end;
a logical or-not operation module, a first end for receiving the digital input signal, a second end for receiving the signal of the output end of the first delay register, and a second output end;
a logic or operation module, a first end for receiving the detection result that the digital input signal is the smallest near a positive value, a second end for receiving the detection result that the digital input signal is the smallest near a negative value, a third end for receiving the output signal of the second output end, and a third output end for outputting a zero-crossing detection signal.
6. The dual AGC system of claim 5, wherein the gain linearizer comprises:
the adder is used for calculating and obtaining a gain sum value obtained by adding a preset gain value and the automatic gain stepping signal;
a second delay register comprising: the data input end is used for receiving the gain sum value, the clock signal input end, the enabling end for receiving the zero-crossing detection signal and the delay data output end;
a selector, comprising: an enable terminal for receiving the zero-crossing detection signal, a first selection input terminal for receiving the gain sum value, a second selection input terminal for connecting the delay data output terminal, and a selection output terminal for selectively outputting an output signal for receiving the gain sum value or the delay data output terminal according to the zero-crossing detection signal;
the first look-up table module is used for finding a linearized first gain adjustment value in a linear look-up table according to the output signal of the selection output end;
and the second lookup table module is used for finding a second linearized gain adjusting value in the linear lookup table according to the gain sum value.
7. The dual AGC system as recited in claim 6, wherein said gain linearizer further comprises: and the input end of the amplitude limiting module is connected with the output end of the adder, and the output end of the amplitude limiting module is connected with the data input end of the second delay register.
8. The dual AGC system of claim 4, wherein the entry condition for the release state comprises:
the reset signal end receives a reset signal, and the fast gain enabling end and the slow gain enabling end do not receive an enabling signal; or,
when in a holding state, the signal peak value monitoring module cannot detect that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value, the slow AGC amplitude threshold value and the AGC release amplitude threshold value, and enters the release state after the gain counter is full;
the condition for the release state to enter the tracking state includes: and the signal peak value monitoring module detects that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value or the slow AGC amplitude threshold value.
9. The dual AGC system of claim 4, wherein the tracking state entry condition comprises:
the signal peak value monitoring module detects that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value or the slow AGC amplitude threshold value;
the condition that the tracking state enters the holding state comprises the following steps:
the signal peak value monitoring module detects that the input signal of the automatic gain control unit does not exceed the fast AGC amplitude threshold value and the slow AGC amplitude threshold value.
10. The dual AGC system of claim 4, wherein the hold state entry condition comprises:
in the tracking state, the signal peak value monitoring module detects that the input signal of the automatic gain control unit does not exceed the fast AGC amplitude threshold value and the slow AGC amplitude threshold value;
when the signal is in the holding state, the signal peak value monitoring module detects that the input signal of the automatic gain control unit exceeds an AGC release amplitude monitoring value;
the condition that the hold state enters the track state includes:
the signal peak value monitoring module cannot detect that the input signal of the automatic gain control unit exceeds the fast AGC amplitude threshold value, the slow AGC amplitude threshold value and the AGC release amplitude threshold value, and the gain counter is kept full.
CN201821174504.5U 2018-07-23 2018-07-23 Double AGC systems Withdrawn - After Issue CN208174647U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201821174504.5U CN208174647U (en) 2018-07-23 2018-07-23 Double AGC systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201821174504.5U CN208174647U (en) 2018-07-23 2018-07-23 Double AGC systems

Publications (1)

Publication Number Publication Date
CN208174647U true CN208174647U (en) 2018-11-30

Family

ID=64363595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201821174504.5U Withdrawn - After Issue CN208174647U (en) 2018-07-23 2018-07-23 Double AGC systems

Country Status (1)

Country Link
CN (1) CN208174647U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768329A (en) * 2018-07-23 2018-11-06 上海艾为电子技术股份有限公司 Double AGC systems

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768329A (en) * 2018-07-23 2018-11-06 上海艾为电子技术股份有限公司 Double AGC systems
CN108768329B (en) * 2018-07-23 2023-10-13 上海艾为电子技术股份有限公司 Dual AGC system

Similar Documents

Publication Publication Date Title
CN102685638B (en) Method and apparatus for outputting audio signal
CN107682802B (en) Method and device for debugging sound effect of audio equipment
CN208174647U (en) Double AGC systems
JP4983694B2 (en) Audio playback device
WO2018036143A1 (en) Advanced servo bias method of a-class audio power amplifier and amplifier
US8300843B2 (en) Sound effect circuit and processing method
JP4862820B2 (en) Acoustic signal amplifier
US9059671B2 (en) Automatic gain control device
CN108768329B (en) Dual AGC system
US9306595B2 (en) System and method for low-power digital signal processing
JP3194135B2 (en) Digital audio processor
WO2007040770A2 (en) Method and system for receiving and decoding audio signals
US20130093489A1 (en) Signal converter equipped with overvoltage protection mechanism
JPH10173455A (en) Automatic dynamic range control circuit
US9356572B2 (en) Sound processing apparatus, sound system and sound processing method
JP6314662B2 (en) Audio signal processing apparatus and program thereof
JP4803193B2 (en) Audio signal gain control apparatus and gain control method
US20120155656A1 (en) Audio-Signal Processing Apparatus and Method, and Program
JP2002299975A (en) Digital agc device
CN215420721U (en) Sound box mute circuit
CN208623633U (en) A kind of frequency multiplication jump pulse protective device suitable for PWM power amplifier
CN109981066A (en) Automatic gain control equipment and auto gain control method
EP4404646A1 (en) Signal processing method, electronic device and storage medium
JP4067361B2 (en) Gain control circuit and gain control method
JP3114821B2 (en) Optical receiver circuit for ternary APD

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
AV01 Patent right actively abandoned

Granted publication date: 20181130

Effective date of abandoning: 20231013

AV01 Patent right actively abandoned

Granted publication date: 20181130

Effective date of abandoning: 20231013

AV01 Patent right actively abandoned
AV01 Patent right actively abandoned