JP2007181136A - Agc circuit, agc method, program and recording medium - Google Patents

Agc circuit, agc method, program and recording medium Download PDF

Info

Publication number
JP2007181136A
JP2007181136A JP2005380124A JP2005380124A JP2007181136A JP 2007181136 A JP2007181136 A JP 2007181136A JP 2005380124 A JP2005380124 A JP 2005380124A JP 2005380124 A JP2005380124 A JP 2005380124A JP 2007181136 A JP2007181136 A JP 2007181136A
Authority
JP
Japan
Prior art keywords
agc
attack
processing
input signal
gain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005380124A
Other languages
Japanese (ja)
Inventor
Kaoru Takamatsu
薫 高松
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.)
Kenwood KK
Original Assignee
Kenwood KK
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 Kenwood KK filed Critical Kenwood KK
Priority to JP2005380124A priority Critical patent/JP2007181136A/en
Publication of JP2007181136A publication Critical patent/JP2007181136A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an AGC circuit capable of preventing the omission of a required signal while suppressing an unwanted noise signal by controlling an attack time, a release time and the like while taking into account the continuity of noise generation. <P>SOLUTION: An AGC circuit comprises a means for comparing an input signal level with a reference level, an attack processing means for reducing an AGC gain when the input signal level is equal with or higher than the reference level, and a release processing means for returning the AGC gain to a reference value when the input signal level is lower than the reference level. In such an AGC circuit, an attach continuation time measuring means is provided for measuring how many times attack processing is continued prior to present processing, and an AGC response coefficient setting means is provided for setting an AGC response coefficient based on a measured result of the attack continuation time measuring means in release processing, and an AGC gain of release processing is then set on the basis of a value set by the AGC response coefficient setting means. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、通信機等に好適なAGC回路、AGC方法及びそのプログラムに関するものである。 The present invention relates to an AGC circuit, an AGC method, and a program thereof suitable for a communication device or the like.

無線電話装置や有線電話装置等の音声信号を扱う通信装置においては、他のチャネルに妨害を与えないように通信回線に送出する音声信号レベルを一定値以下に保ち、あるいは、送信する搬送波信号の過変調等を防止するために、変調信号となる音声信号レベルを一定に保つ手段が備えられている。一般に、この機能は音声信号自動利得制御(Automatic Gain Control:AGC)、音声信号自動振幅制御(Automatic Level Control:ALC)と呼ばれている。以下、本発明をこれに限定するものではないが、無線通信機に使用する音声信号自動利得制御(Automatic Gain Control:以下、「AGC」と略称する)を例に説明する。   In communication devices that handle audio signals such as wireless telephone devices and wired telephone devices, keep the audio signal level sent to the communication line below a certain value so as not to disturb other channels, or In order to prevent overmodulation and the like, a means for keeping the audio signal level as a modulation signal constant is provided. In general, this function is called automatic gain control (AGC) or automatic level control (ALC). Hereinafter, the present invention is not limited to this, but an audio signal automatic gain control (hereinafter referred to as “AGC”) used in a wireless communication device will be described as an example.

図6は従来の音声信号自動利得制御(AGC)回路を備えた無線通信機の一部分の構成例を示すブロック図である。この例に示す装置は、マイクロフォン20の出力をアナログ・デジタル変換器(A/D変換器)21においてデジタル信号に変換し、デジタル処理回路として構成した低域フィルタ(LPF)22、プリエンファシス回路23,AGC回路24を経て、デジタル・アナログ変換器(D/A変換器)25によって再びアナログ信号に変換した上で、変調機能を備えた電圧制御発振器(VCO)26に供給するように構成したものである。この回路において波線で囲った部分は、DSP(Digital Signal ProcessorあるいはProcessing;デジタル信号処理装置)等のデジタル処理用集積回路を用いることが多い。前記AGC回路は、変調信号としてマイクロフォン20等から供給される音声信号のレベルを一定値に保ち、過大な信号が変調回路に供給されて、最大変調周波数やその他、規定された夫々の変調レベルを越えないようにしている。
このようなAGC回路では、基準レベルと入力する音声信号レベルを比較し、基準レベルを越える信号に対しては、AGC回路の増幅回路の増幅度や減衰器の減衰量(以下これらを総称して「AGCゲイン)という)、を変化させて一定値以上のレベルにならないように制御している。このとき、過大入力に対してレベルを抑圧する処理をアタック処理といい、逆に、基準値以下の入力信号に対して、低減したAGCゲインを元の値に復帰させる処理をリリース処理と称し、夫々の処理に要する時間をアタックタイム、リリースタイムと呼んでいる。
FIG. 6 is a block diagram showing a configuration example of a part of a wireless communication apparatus provided with a conventional audio signal automatic gain control (AGC) circuit. In the apparatus shown in this example, an output of the microphone 20 is converted into a digital signal by an analog / digital converter (A / D converter) 21, and a low-pass filter (LPF) 22 configured as a digital processing circuit, a pre-emphasis circuit 23. , AGC circuit 24, converted to an analog signal again by a digital / analog converter (D / A converter) 25, and then supplied to a voltage controlled oscillator (VCO) 26 having a modulation function It is. In this circuit, a portion surrounded by a broken line often uses an integrated circuit for digital processing such as a DSP (Digital Signal Processor or Processing). The AGC circuit keeps the level of the audio signal supplied from the microphone 20 or the like as a modulation signal at a constant value, and an excessive signal is supplied to the modulation circuit to adjust the maximum modulation frequency and other specified modulation levels. I try not to exceed it.
In such an AGC circuit, the reference signal level is compared with the input audio signal level, and for the signal exceeding the reference level, the amplification level of the amplification circuit of the AGC circuit and the attenuation amount of the attenuator (hereinafter collectively referred to as these). "AGC gain") is changed so that the level does not exceed a certain value.At this time, the process of suppressing the level against excessive input is called attack processing, and conversely below the reference value. The process for returning the reduced AGC gain to the original value for the input signal is called release process, and the time required for each process is called attack time and release time.

通常、リリースタイムとアタックタイムの長さによって、処理された音声信号を聞いた際の聴感や明瞭度が大きく相違することが知られている。
例えば、過大なレベルの信号が入力した際は、AGC回路が迅速に反応して、適正なレベルに抑圧する必要があるので、アタックタイムが短い程好ましい。一方、過大レベルの信号が入力した直後に、入力信号が通常レベルに戻ったときは、比較的長時間かけて元のゲインに戻す方が、自然な聴感が得られることが知られている。
このような無線通信機に使用される前記AGC回路としては、従来例えば、特開平6−314942号「音声信号自動振幅制御回路」に示されるものが存する。これは、アナログ・デジタル変換器の前段に電子的に減衰量を調整可能な可変減衰器を設け、所要サンプリング期間の平均値を基準値と比較し、基準値レベルとの偏差に応じて、リリースタイムの長さを設定し、前記電子コントロール可能な可変減衰器の減衰量を調整するものである。
この装置は、入力される過大信号レベルの大きさに応じて、アタックタイムとリリースタイムの長さを調整するもので、大きく基準レベルを越えるレベルの信号が入力した後のリリースタイムは長くなり、僅かに基準レベルを越える信号の入力後のリリースタイムは短くなるので、僅かに基準レベルを越える入力信号の後に、比較的小さなレベルの信号が入力しても、それが抑圧されて再生音から欠落する可能性が小さくなり、明瞭度を向上することができる。
特開平6−314942号公報
In general, it is known that the audibility and intelligibility when listening to the processed audio signal differ greatly depending on the length of the release time and the attack time.
For example, when an excessive level signal is input, the AGC circuit must react quickly and be suppressed to an appropriate level, so a shorter attack time is preferable. On the other hand, when an input signal returns to a normal level immediately after an excessive level signal is input, it is known that a natural audibility can be obtained by returning to the original gain over a relatively long time.
As the AGC circuit used in such a wireless communication device, for example, one disclosed in Japanese Patent Laid-Open No. 6-314942 “Automatic Audio Signal Amplitude Control Circuit” exists. This is done by providing a variable attenuator with electronically adjustable attenuation before the analog / digital converter, comparing the average value of the required sampling period with the reference value, and releasing it according to the deviation from the reference value level. The length of time is set, and the amount of attenuation of the electronically controllable variable attenuator is adjusted.
This device adjusts the length of the attack time and release time according to the magnitude of the excessive signal level that is input, the release time after a signal with a level that greatly exceeds the reference level is input, Since the release time after input of a signal that slightly exceeds the reference level is shortened, even if a signal of a relatively small level is input after the input signal that slightly exceeds the reference level, it is suppressed and missing from the playback sound. The possibility of doing so is reduced, and the clarity can be improved.
JP-A-6-314942

しかしながら、上述した従来のAGC回路では、入力信号レベルの大きさに応じてアタックタイムとリリースタイムが制御されるが、例えば、基準レベルを大きく越える過大信号が入力した直後は利得が大幅に制限されているので、その直後に比較的小さい音声信号が入力すると、その部分の音声信号は振幅が低減される結果、再生音声信号からその部分が欠如したものとなり明瞭度が低下したものとなる欠点があった。例えば、無線通信機のマイクロフォンに混入する過大な音声信号としては、自動車等のクラクションのような単発的な騒音と、航空機の飛行や大型自動車の通過等、比較的長い時間連続して発生する騒音や、更に長時間連続するバックグラウンドノイズ的騒音等、種々のものが存在する。   However, in the above-described conventional AGC circuit, the attack time and release time are controlled according to the magnitude of the input signal level. For example, the gain is greatly limited immediately after an excessive signal exceeding the reference level is input. Therefore, if a relatively small audio signal is input immediately after that, the amplitude of the audio signal of that portion is reduced, resulting in a lack of that portion from the reproduced audio signal, resulting in reduced clarity. there were. For example, excessive audio signals mixed in the microphone of a radio communication device include single noises such as horns of automobiles and noises generated continuously for a relatively long time, such as flight of an airplane or passage of a large automobile. There are various types of noise such as background noise that continues for a longer time.

このなかで例えば、自動車のクラクション等の単発的な過大騒音にAGC回路が応答すると、短いアタックタイムによって瞬時に大幅に利得を減少させて、その騒音を所定レベルに抑圧するが、その後のリリースタイムが長いので、リリースタイム中に入力する比較的小さいレベルの音声信号はレベル制限を受けて更に小さくなる結果欠落し、明瞭な会話が阻害されることになる。
本発明は、このような従来のAGC回路の欠点を除去し、ノイズ発生の連続性を加味して、アタックタイム、リリースタイム等を制御することによって、不要な騒音信号を抑圧しつつ、必要な信号の欠落を防止することが可能なAGC回路、AGC方法及びプログラムを提供することを目的としている。
In this case, for example, when the AGC circuit responds to a single excessive noise such as a car horn, the gain is instantaneously greatly reduced by a short attack time, and the noise is suppressed to a predetermined level. Therefore, a relatively small level audio signal input during the release time is dropped as a result of the level limitation, and clear conversation is hindered.
The present invention eliminates the drawbacks of the conventional AGC circuit, and controls the attack time, release time, etc. in consideration of the continuity of noise generation, while suppressing unnecessary noise signals. An object of the present invention is to provide an AGC circuit, an AGC method, and a program capable of preventing signal loss.

本発明はかかる課題を解決するために、請求項1記載のAGC回路では、入力信号レベルを基準レベルと比較する手段と、入力信号レベルが基準レベル以上のときはAGCゲインを小さくするアタック処理手段と、入力信号レベルが基準レベルより小さいときはAGCゲインを基準値に戻すリリース処理手段とを備えたAGC回路において、現処理以前の連続するアタック処理回数を計測するアタック連続回数計測手段と、リリース処理に際して前記アタック連続回数計測手段の計測結果に基づいてAGC応答係数を設定するAGC応答係数設定手段と、前記AGC応答係数設定手段により設定された値に基づいてリリース処理のAGCゲインを設定したことを特徴とする。   In order to solve the above problems, the present invention provides an AGC circuit according to claim 1, wherein means for comparing an input signal level with a reference level, and attack processing means for reducing the AGC gain when the input signal level is equal to or higher than the reference level. And an AGC circuit having a release processing means for returning the AGC gain to the reference value when the input signal level is lower than the reference level, and a continuous attack count measuring means for measuring the number of consecutive attack processes before the current process, and a release AGC response coefficient setting means for setting an AGC response coefficient based on the measurement result of the consecutive attack count measurement means at the time of processing, and an AGC gain for the release process is set based on a value set by the AGC response coefficient setting means It is characterized by.

請求項2記載のAGC回路では、入力信号レベルを基準レベルと比較する比較手段と、入力信号レベルが基準レベル以上のときにAGCゲインを小さくするアタック処理手段と、入力信号レベルが基準レベルより小さいときにAGCゲインを基準値に戻すリリース処理手段とを備えたAGC回路において、入力するアナログ信号をデジタル信号に変換するA/D変換手段と、入力信号を所定時間遅延させてタイミングを調整する遅延手段と、前記入力信号から計算される電力の平均値(Pn)を所定の基準レベル値(Pref)と比較する比較手段と、前記比較手段の比較結果がPn≧Prefのときはアタック処理手段として、α=Pref/Pnなる係数(α)に基づいてAGCゲインを設定するAGCゲイン設定手段及び、現処理以前の連続するアタック処理回数を計測するアタック連続回数計測手段を含み、前記比較結果がPn<Prefのときにリリース処理手段として前記アタック連続回数計測手段の計測値に対応してAGC応答計数(μ)を設定すると共に該アタック連続回数計測手段の計測値をリセットするAGC応答係数設定手段とを含み、前記アタック処理手段と前記リリース処理手段とに基づいて設定したAGCゲインの基づいた係数を前記遅延手段によってタイミング調整した入力信号に乗算する乗算手段とを備えたことを特徴とする。   The AGC circuit according to claim 2, wherein the comparing means for comparing the input signal level with the reference level, the attack processing means for reducing the AGC gain when the input signal level is equal to or higher than the reference level, and the input signal level being lower than the reference level. In an AGC circuit having a release processing means for returning the AGC gain to a reference value sometimes, an A / D conversion means for converting an input analog signal into a digital signal, and a delay for adjusting the timing by delaying the input signal for a predetermined time Means for comparing the average value (Pn) of power calculated from the input signal with a predetermined reference level value (Pref), and when the comparison result of the comparison means is Pn ≧ Pref, as attack processing means , AGC gain setting means for setting an AGC gain based on a coefficient (α) of α = Pref / Pn, and before the current processing An attack continuous number measuring means for measuring the number of consecutive attack processes, and when the comparison result is Pn <Pref, an AGC response count (μ) corresponding to a measured value of the attack continuous number measuring means as a release processing means. AGC response coefficient setting means for setting and resetting the measurement value of the continuous attack count measurement means, and the delay means sets a coefficient based on the AGC gain set based on the attack processing means and the release processing means. Multiplying means for multiplying the timing-adjusted input signal is provided.

請求項3記載のAGC回路制御方法では、入力信号レベルを基準レベルと比較する処理と、入力信号レベルが基準レベル以上のときはAGCゲインを小さくするアタック処理と、入力信号レベルが基準レベルより小さいときはAGCゲインを基準値に戻すリリース処理とを含むAGC回路制御方法において、現処理以前の連続するアタック処理回数を計測するアタック連続回数計測処理と、リリース処理に際して前記アタック連続回数計測処理の結果に基づいてAGC応答係数(μ)を設定するAGC応答係数設定処理と、前記AGC応答係数設定処理により設定された値に基づいてリリース処理のAGCゲインを設定するリリースゲイン設定処理を含むことを特徴とする。   4. The AGC circuit control method according to claim 3, wherein a process for comparing the input signal level with the reference level, an attack process for reducing the AGC gain when the input signal level is equal to or higher than the reference level, and the input signal level is smaller than the reference level. In the AGC circuit control method including the release process for returning the AGC gain to the reference value, the result of the continuous attack count measurement process for measuring the number of consecutive attack processes before the current process and the result of the continuous attack count measurement process during the release process An AGC response coefficient setting process for setting an AGC response coefficient (μ) based on the AGC, and a release gain setting process for setting an AGC gain of the release process based on the value set by the AGC response coefficient setting process And

請求項4記載のAGC回路制御方法では、入力信号レベルを基準レベルと比較する比較処理と、入力信号レベルが基準レベル以上のときにAGCゲインを小さくするアタック処理と、入力信号レベルが基準レベルより小さいときにAGCゲインを基準値に戻すリリース処理とを含むAGC回路制御方法において、入力するアナログ信号をデジタル信号に変換するA/D変換処理と、入力信号を所定時間遅延させてタイミングを調整する遅延処理と、前記入力信号から計算される電力の平均値(Pn)を所定の基準レベル値(Pref)と比較する比較処理と、前記比較処理の結果がPn≧Prefのときアタック処理として、α=Pref/Pnなる係数(α)に基づいてAGCゲインを設定するAGCゲイン設定処理と、現処理以前の連続するアタック処理回数を計測するアタック連続回数計測処理とを含み、前記比較処理の結果がPn<Prefのときリリース処理として、前記アタック連続回数計測処理の計測値に対応してAGC応答係数(μ)を設定すると共に該アタック連続回数計測処理における計測値をリセットするAGC応答係数設定処理とを含み、前記アタック処理と前記リリース処理とにより設定したAGCゲインに基づく係数を、前記遅延処理によってタイミング調整した入力信号に乗算する乗算処理とを含むことを特徴とする。   5. The AGC circuit control method according to claim 4, wherein the comparison processing for comparing the input signal level with the reference level, the attack processing for reducing the AGC gain when the input signal level is equal to or higher than the reference level, and the input signal level higher than the reference level. In an AGC circuit control method including a release process for returning an AGC gain to a reference value when it is small, an A / D conversion process for converting an input analog signal into a digital signal, and adjusting the timing by delaying the input signal for a predetermined time Delay processing, comparison processing for comparing the average value (Pn) of power calculated from the input signal with a predetermined reference level value (Pref), and attack processing when the result of the comparison processing is Pn ≧ Pref, = AGC gain setting processing for setting the AGC gain based on the coefficient (α) of Pref / Pn, and continuous processing before the current processing AGC response coefficient (μ) corresponding to the measured value of the attack continuous count measurement process as a release process when the result of the comparison process is Pn <Pref. And an AGC response coefficient setting process for resetting a measurement value in the continuous attack count measurement process, and the timing based on the coefficient based on the AGC gain set by the attack process and the release process is adjusted by the delay process. And a multiplication process for multiplying the input signal.

請求項5記載の発明は、請求項3又は4記載のAGC回路制御方法の各処理を、コンピュータによって処理可能なようにプログラミングしたことを特徴とするAGC処理プログラムである。
請求項6記載の発明は、請求項5に記載のAGC処理プログラムをコンピュータが読み取り可能な形式で記録したことを特徴とする記録媒体である。
The invention according to claim 5 is an AGC processing program in which each process of the AGC circuit control method according to claim 3 or 4 is programmed to be processed by a computer.
The invention according to claim 6 is a recording medium in which the AGC processing program according to claim 5 is recorded in a computer-readable format.

請求項1記載のAGC回路では、アタック処理手段とリリース処理手段とを備えたAGC回路において、現処理以前の連続するアタック処理回数を計測するアタック連続回数計測手段を備え、リリース処理に際して前記アタック連続回数計測手段の計測結果に基づいてAGC応答係数を設定し、この応答係数設定手段により設定された値に基づいてリリース処理のAGCゲインを設定したので、現在の処理以前のアタック処理回数に応じて、リリース処理時のAGCゲインを調整することが可能となり、単発的な過大入力と、連続的に発生する過大入力に対応してリリース処理時のAGCゲインを選択できる。これにより、バックグラウンドノイズのように連続して発生する過大入力信号に対するリリース処理においてはリリース時間を長くし、引き続き発生する過大入力に迅速に対応することができ、また、単発的なノイズ発生に際してのリリース処理ではリリース処理期間を短くなるようにAGC応答計数を設定することができるので、直後に入力する通常レベルの信号の欠落を防止することができる。   The AGC circuit according to claim 1, wherein the AGC circuit includes an attack processing means and a release processing means, and further comprises an attack continuation number measuring means for measuring the number of consecutive attack processes before the current process, and the attack continuation in the release process. Since the AGC response coefficient is set based on the measurement result of the frequency measurement means, and the AGC gain of the release process is set based on the value set by the response coefficient setting means, according to the number of attack processes before the current process Thus, the AGC gain at the time of release processing can be adjusted, and the AGC gain at the time of release processing can be selected corresponding to a single excessive input and a continuously generated excessive input. This makes it possible to lengthen the release time in the release process for excessive input signals that occur continuously such as background noise, and to quickly respond to excessive input that occurs continuously. In the release process, the AGC response count can be set so that the release process period is shortened, so that it is possible to prevent a normal level signal that is input immediately thereafter from being lost.

請求項2記載の発明では、アタック処理手段とリリース処理手段とを備えたAGC回路において、入力するアナログ信号をデジタル信号に変換するA/D変換手段と、入力信号を所定時間遅延させてタイミングを調整する遅延手段と、前記入力信号から計算される電力の平均値(Pn)を所定の基準レベル値(Pref)と比較する比較手段と、前記比較手段の比較結果がPn≧Prefのときはアタック処理手段として、α=Pref/Pnなる係数(α)に基づいてAGCゲインを設定するAGCゲイン設定手段と、現処理以前の連続するアタック処理回数を計測するアタック連続回数計測手段を含み、前記比較結果がPn<Prefのときはリリース処理手段として、前記アタック連続回数計測手段の計測値に対応してAGC応答計数(μ)を設定すると共に該アタック連続回数計測手段の計測値をリセットするAGC応答係数設定手段とを含み、前記アタック処理手段と前記リリース処理手段とに基づいて設定したAGCゲインの基づいた係数を前記遅延手段によってタイミング調整した入力信号に乗算する乗算手段とを備えたので、前記請求項1記載のAGC回路を、デジタル処理回路として構成することが容易となる。更に、これらのデジタル処理は、近年多用されているDSP等の汎用集積回路を利用して本発明を実施する上で有用である。   According to the second aspect of the present invention, in the AGC circuit including the attack processing means and the release processing means, the A / D conversion means for converting the input analog signal into the digital signal, the input signal is delayed for a predetermined time, and the timing is set. Delay means for adjustment, comparison means for comparing an average value (Pn) of power calculated from the input signal with a predetermined reference level value (Pref), and an attack when the comparison result of the comparison means is Pn ≧ Pref The processing means includes an AGC gain setting means for setting an AGC gain based on a coefficient (α) of α = Pref / Pn, and a continuous attack count measuring means for measuring the number of consecutive attack processes before the current process, the comparison When the result is Pn <Pref, as the release processing means, an AGC response count (corresponding to the measured value of the consecutive attack count measuring means ( μ) and an AGC response coefficient setting means for resetting the measured value of the continuous attack count measuring means, and a coefficient based on the AGC gain set based on the attack processing means and the release processing means The AGC circuit according to the first aspect is easily configured as a digital processing circuit because the multiplication means for multiplying the input signal whose timing is adjusted by the delay means is provided. Furthermore, these digital processes are useful in carrying out the present invention using a general-purpose integrated circuit such as a DSP that has been frequently used in recent years.

請求項3乃至5記載の発明では、夫々、前記請求項1及び2記載のAGC回路を処理手順として構成したので、請求項1,2記載のAGC回路を、専用のハードウエア回路によって実現する他、各処理手順をプログラミングしソフトウエア処理によって実現することが可能となる。
更に、これらのソフトウエアをCD−ROM等の記録媒体に収納したので、これらを持ち運び、所要のコンピュータにおいて読み出して、同様のOSで駆動可能なCPU搭載機器にインストールすることにより、本発明のAGC回路を実現することができる。
In the inventions according to claims 3 to 5, since the AGC circuit according to claims 1 and 2 is configured as a processing procedure, respectively, the AGC circuit according to claims 1 and 2 is realized by a dedicated hardware circuit. Each processing procedure can be programmed and realized by software processing.
Further, since these softwares are stored in a recording medium such as a CD-ROM, they are carried, read by a required computer, and installed in a CPU-equipped device that can be driven by the same OS, thereby AGC of the present invention. A circuit can be realized.

以下、本発明を図に示した実施形態を用いて詳細に説明する。但し、この実施形態に記載される構成要素、種類、組み合わせ、形状、その相対配置などは特定的な記載がない限り、この発明の範囲をそれのみに限定する主旨ではなく単なる説明例に過ぎない。
図1は、本発明にかかる一実施態様例を示すAGC回路のブロック構成図である。
この例に示す回路は、デジタル信号に変換された入力信号を所定時間遅延させる遅延器1と、前記入力信号を二乗する二乗器2と、その出力を積分する積分器3と、該積分器3の出力と予め記憶した閾値(Pref1)と比較する比較器4と、上述した閾値(Pref1)を記憶する第一の閾値メモリ5と、前記比較器4の比較結果に基づいて制御され、前記積分器3の出力信号を切替えて出力する切替スイッチ(SW1)6と、前記切替スイッチ6の一つの端子に接続された乗算器7と、該乗算器7に基準値(Pref)を供給する基準値メモリ8と、アタック処理と判定される連続回数を係数するカウンタ9と、前記切替スイッチSW1のもう一方の端子に接続されるAGC係数設定器10と、AGC応答係数μの値を設定するAGC応答係数設定器11と、前記切替スイッチ6を介して出力される信号の平方根を演算する平方根計算器12と、前記平方根計算器12によって出力された一サンプリング前の処理デーアを記憶するバッファメモリ13と、該バッファメモリ13に記憶された一サンプリング前の処理データを前記平方根計算器12から出力される現在処理中のサンプリングデータと比較する第二の比較器14と、該第二の比較器14によって制御される第二の切替スイッチ(SW2)15と、該切替スイッチの一方の端子に接続されたAGC係数演算器16と、前記遅延器1の出力と、前記切替スイッチ15の他方端の出力と前記AGC係数演算器16の出力とを乗算する出力乗算器17とを備えたものである。
なお、前記積分器3としては、この例に限定する必要はないが、例えば図2に示すように、一次ローパスフィルタ型回路を使用すればよい。
Hereinafter, the present invention will be described in detail with reference to embodiments shown in the drawings. However, the components, types, combinations, shapes, relative arrangements, and the like described in this embodiment are merely illustrative examples and not intended to limit the scope of the present invention only unless otherwise specified. .
FIG. 1 is a block diagram of an AGC circuit showing an embodiment according to the present invention.
The circuit shown in this example includes a delay device 1 that delays an input signal converted into a digital signal for a predetermined time, a squarer 2 that squares the input signal, an integrator 3 that integrates an output thereof, and the integrator 3. And the first threshold memory 5 for storing the above-described threshold value (Pref1), the comparator 4 for comparing the output of the output and the threshold value (Pref1) stored in advance, and the integration result. A selector switch (SW1) 6 for switching and outputting the output signal of the multiplier 3, a multiplier 7 connected to one terminal of the selector switch 6, and a reference value for supplying a reference value (Pref) to the multiplier 7 A memory 8, a counter 9 for coefficient of the number of consecutive times determined to be attack processing, an AGC coefficient setting unit 10 connected to the other terminal of the changeover switch SW1, and an AGC response for setting the value of the AGC response coefficient μ. A coefficient setter 11; a square root calculator 12 for calculating the square root of the signal output via the changeover switch 6; and a buffer memory 13 for storing the processing data before one sampling output by the square root calculator 12; A second comparator 14 for comparing the processing data before one sampling stored in the buffer memory 13 with the sampling data currently being processed output from the square root calculator 12, and the second comparator 14 A second changeover switch (SW2) 15 to be controlled, an AGC coefficient computing unit 16 connected to one terminal of the changeover switch, an output of the delay unit 1, and an output of the other end of the changeover switch 15; An output multiplier 17 for multiplying the output of the AGC coefficient calculator 16 is provided.
The integrator 3 need not be limited to this example, but a first-order low-pass filter type circuit may be used as shown in FIG.

図3は前記1図、図2に示したように構成したAGC回路を制御する具体的な一実施例を示すフローチャートである。以下、図1、図2を参照しつつ、図3に示した本発明の一実施例を説明する。なお、近年のデジタル無線通信機では、一般にDSP(Digital Signal ProcessorあるいはProcessing;デジタル信号処理装置)等のデジタル処理用集積回路を用いることが多い。以下の説明では、前記図1の構成図を含めて機能ブロックとして表現したが、本発明の実施に際しては、同様のブロックをハードウエアとして実現する他に、以下に説明するような手順をプログラムしたソフトウエアで実現することができることは、云うまでもない。   FIG. 3 is a flow chart showing a specific embodiment for controlling the AGC circuit configured as shown in FIG. 1 and FIG. The embodiment of the present invention shown in FIG. 3 will be described below with reference to FIGS. In recent years, digital wireless communication devices often use digital processing integrated circuits such as a DSP (Digital Signal Processor or Processing). In the following description, the functional block including the configuration diagram of FIG. 1 is expressed as a functional block. However, in implementing the present invention, in addition to realizing the same block as hardware, the following procedure is programmed. Needless to say, it can be realized by software.

先ず、フローがスタートすると、無線通信機等の送信回路においてマイクから入力された音声信号のアナログ信号をデジタル信号に変換し(S1)、遅延器1と二乗器2とに供給される。信号波形の振幅レベルは通常、信号の電圧値に比例したものであるが、それを二乗することによって電力のディメンジョン(次元)をもった値となり(S2)、更に、そのデータを所定期間積分器3で積分すると、その間の平均電力値Pw(第nサンプリング処理における値をPnと表記するが意味同じである)が求まる(S3)。そこで、この平均値電力値Pwを比較器4において、予め設定した基準値の電力値閾値メモリ5に記憶している閾値(Pref、この例では基準値を閾値とする)と比較し(S4)、Pw≧Prefの場合は、閾値レベルより入力信号レベルの方が大きいので、そのレベルを一定値に保つために、AGC回路の利得を小さくする処理、即ち、上述したアタック処理を行う旨の信号を出力する(S4 Yes)。この比較器4からの信号に基づいて切替スイッチ(SW1)6を制御し、図面上部端子側(attack)に切替えると共に、次の乗算器7において、基準値メモリ8に記憶している基準値(Pref)を用いて、α=Pref/Pwなる演算を行う(S5)。このとき、Pw≧Prefであるので、α<1となり、この係数をAGC係数として自動利得機能を働かせ、AGC回路の利得(ゲイン)を小さくして、出力信号レベルを低減すれば、基準レベルを超えないように制御されることになる。このとき、後述する理由によって、前記比較器4での比較において、基準値を越える入力が連続して何回発生したかをカウンタ9によって計数しておく(S6)。一方、前記S4における判断の結果、Pw<Prefである場合は(S4 No)、入力信号レベルが基準値以下であるので前記切替スイッチ(SW1)6を図面下部の端子側(release)に切替え、上述したリリース処理を行う旨の信号を発生し、このときのAGC係数αを最大値(MAX)、例えば1に設定する(S7)。このとき、前記カウンタ9の数値をリセットし、連続して基準値を上回る回数(連続するアタック処理回数のカウント)をゼロとする(S8)。なお、後述するが、リリース処理におけるゲイン復帰速度を調整するために、AGC応答係数μを定義すると共に、この値を複数設定しておき、以前の連続するアタック処理回数(入力する信号の振幅値が連続して基準値を越える回数)に応じて、その直後のリリース処理におけるAGC応答係数μを選択する制御を行う。その処理以前の連続するアタック処理回数は、前記カウンタ9によって計測し、その計測結果に基づいて、いくつかの数値からμ値が選択されるようにしておく。   First, when the flow starts, an analog signal of a voice signal input from a microphone is converted into a digital signal in a transmission circuit such as a wireless communication device (S1) and supplied to the delay device 1 and the squarer 2. The amplitude level of the signal waveform is usually proportional to the voltage value of the signal, but by squaring it, it becomes a value having a power dimension (dimension) (S2), and the data is integrated for a predetermined period of time. When integration is performed at 3, an average power value Pw (a value in the n-th sampling process is expressed as Pn but has the same meaning) is obtained (S3). Therefore, the average power value Pw is compared with a threshold value (Pref, in this example, the reference value is set as a threshold value) stored in the power value threshold value memory 5 of the reference value set in advance in the comparator 4 (S4). , Pw ≧ Pref, the input signal level is higher than the threshold level, so that the signal for reducing the gain of the AGC circuit, that is, the attack processing described above is performed in order to keep the level at a constant value. Is output (S4 Yes). Based on the signal from the comparator 4, the selector switch (SW 1) 6 is controlled to switch to the upper terminal side (attack) of the drawing, and at the next multiplier 7, the reference value (stored in the reference value memory 8) Pref) is used to calculate α = Pref / Pw (S5). At this time, since Pw ≧ Pref, α <1, and this coefficient is used as an AGC coefficient, and the automatic gain function is activated to reduce the gain of the AGC circuit to reduce the output signal level. It will be controlled not to exceed. At this time, for the reason described later, the counter 9 counts how many times the input exceeding the reference value has continuously occurred in the comparison by the comparator 4 (S6). On the other hand, if the result of determination in S4 is Pw <Pref (S4 No), since the input signal level is below the reference value, the selector switch (SW1) 6 is switched to the terminal side (release) at the bottom of the drawing, A signal for performing the release process described above is generated, and the AGC coefficient α at this time is set to a maximum value (MAX), for example, 1 (S7). At this time, the numerical value of the counter 9 is reset, and the number of times that the reference value is continuously exceeded (the count of the number of consecutive attack processes) is set to zero (S8). As will be described later, in order to adjust the gain recovery speed in the release process, an AGC response coefficient μ is defined and a plurality of values are set, and the previous number of consecutive attack processes (the amplitude value of the input signal) The AGC response coefficient μ in the release process immediately after that is controlled according to the number of times that exceeds the reference value. The number of consecutive attack processes before the process is measured by the counter 9, and the μ value is selected from several numerical values based on the measurement result.

以上のようにしてAGC係数αとAGC応答係数μが求まると、次の平方根計算器12において、上記のとおり求められたAGC係数αの平方根を計算する(S9)。αの平方根を求める目的は、α自体は入力信号の電力に対応する値であるので、それの平方根を求めて入力信号波形の電圧値(振幅値)に対応した値を得るためである。この計算結果を、次段の第二の比較器14に供給すると共に、同値をバッファメモリ13に記憶する。なお、以上説明した処理が、それ以前にも実行されていて、前記バッファメモリ13には、一サンプリング前の同様のαの平方根値が記憶されている。   When the AGC coefficient α and the AGC response coefficient μ are obtained as described above, the square root of the AGC coefficient α obtained as described above is calculated in the next square root calculator 12 (S9). The purpose of obtaining the square root of α is to obtain a value corresponding to the voltage value (amplitude value) of the input signal waveform because α itself is a value corresponding to the power of the input signal. The calculation result is supplied to the second comparator 14 at the next stage and the same value is stored in the buffer memory 13. Note that the processing described above has been executed before that, and the buffer memory 13 stores the same square root value of α before one sampling.

この状態において、そのときの処理がリリース処理であるか否かを判断する(S10)。即ち、前記S4におけるPw≧Prefであるか否かの判断は、入力信号レベルが基準値より大きいか否かを判断する処理であるが、ここでの判断はそのときの処理がリリース処理であるか否かを判断するものである。なお、このステップにおける判断は、実際のその時点の処理がリリース処理であるか否かを判断してもよいし、一サンプリング前の処理との比較によってリリース処理が必要であるか否かを判断するものであってもよい。例えば、前記S4における前記第一の比較器4での比較の結果、リリース処理であることが判断されていた場合は、リリース処理の必要性ありと判断(S10 Yes)するが、前記S4における第一の比較器4の比較結果がアタック処理であると判断した場合、及び、α=MAX(例えばα=1)の状態で入力信号レベルが基準値を越えていない状態、つまりアタック処理でもなくリリース処理でもない場合(S10 No)は、ステップ11に移行し、現在のαnの平方根(√αn)と前回のサンプリングの際値αn−1の平方根(√αn−1)との大小関係を検出する。   In this state, it is determined whether or not the process at that time is a release process (S10). That is, the determination of whether or not Pw ≧ Pref in S4 is a process of determining whether or not the input signal level is greater than the reference value, but the determination here is the release process. Whether or not. The determination in this step may determine whether or not the actual processing at that time is the release processing, or determine whether or not the release processing is necessary by comparing with the processing before one sampling. You may do. For example, if it is determined that the release process is a result of the comparison by the first comparator 4 in S4, it is determined that the release process is necessary (S10 Yes). When it is determined that the comparison result of one comparator 4 is attack processing, and when α = MAX (for example, α = 1), the input signal level does not exceed the reference value, that is, the attack processing is not released. If it is not processing (S10 No), the process proceeds to step 11 to detect the magnitude relationship between the square root of the current αn (√αn) and the square root of the value αn-1 at the previous sampling (√αn-1). .

この結果(√αn)≧(√αn−1)である場合、即ち、前回のサンプリング時のAGC係数値より今回のAGC係数値が大きいということは、その係数αを算出した時の入力信号レベル値の比較においては、今回のほうが小さいことになるときは、前記S10、Yesであるときと同様に、リリース処理が必要であることになるので、S12に移行する。S12では、上述したように、それ以前に連続したアタック処理回数に応じて、前記カウンタ9とAGC応答係数設定器11の処理結果に基づいて、AGC応答係数μを選定する(S12)。このμ値選定は、前記カウンタ9の計数値が大きいほど、即ち、それ以前のアタック処理回数の連続回数が多いほどAGC応答係数μの値を大きくし、逆に、アタック処理の連続回数が少ないときは、AGC応答係数を小さくし、この係数を使用して、AGC利得Gnを計算する(S13)。計算式は、例えば
Gn=(Gn−1)+[(Gref)−(Gn−1)]*μ・・・(式1)
とする。なお、この式でGnは現在サンプリング処理におけるAGC回路の利得(ゲイン)、Gn−1は一サンプリング前の処理におけるAGC回路のゲイン、Grefは当該AGC回路の目標ゲイン、μはAGC応答係数である。
この式からも明らかなように、ここで計算するゲインGnは、目標ゲインから一サンプリング前の処理時のゲインを引いた値にAGC応答係数μを乗算し、その値を一サンプリング前処理のゲインに加算したものであり、AGC応答計数μ値が大きいほどGnは大きくなる。
When this result (√αn) ≧ (√αn−1), that is, that the current AGC coefficient value is larger than the AGC coefficient value at the previous sampling, the input signal level when the coefficient α is calculated. In the comparison of values, if this time is smaller, the release process is required as in the case of S10, Yes, and the process proceeds to S12. In S12, as described above, the AGC response coefficient μ is selected based on the processing results of the counter 9 and the AGC response coefficient setting unit 11 in accordance with the number of consecutive attack processes before that (S12). In this μ value selection, the value of the AGC response coefficient μ is increased as the count value of the counter 9 is larger, that is, as the number of consecutive attack processes before that is larger, and conversely, the number of consecutive attack processes is smaller. When the AGC response coefficient is reduced, the AGC gain Gn is calculated using this coefficient (S13). The calculation formula is, for example, Gn = (Gn−1) + [(Gref) − (Gn−1)] * μ (Formula 1)
And In this equation, Gn is the gain (gain) of the AGC circuit in the current sampling process, Gn−1 is the gain of the AGC circuit in the process before one sampling, Gref is the target gain of the AGC circuit, and μ is the AGC response coefficient. .
As is clear from this equation, the gain Gn calculated here is obtained by multiplying the target gain by subtracting the gain at the time of the processing before one sampling by the AGC response coefficient μ, and multiplying that value by the gain of the one sampling preprocessing. Gn increases as the AGC response count μ value increases.

図4は、前記AGC応答係数μ値と、系の収束の速度との関係を説明する図であって、この例では、例えばAGC応答係数μを、μ1=1/128、μ2=1/512、μ3=1/2048の三種類示しており、μ1>μ2>μ3の関係となる。この図からも明らかなように、μ値が大きいほどAGCゲインが大きくなってリリースタイムが短くなり、逆にμ値が小さくなるとリリースタイムは長くなる。従って、一旦、大幅に低減されたAGCゲインを急速に回復させる場合にはAGC応答係数μは大きくし、逆の場合は小さく設定すればよい。
このように、設定されたAGC応答係数μに基づいて、式1の計算を実施し(S13)、計算結果得られたゲイン(利得)Gnを出力乗算器17に供給して、前記遅延器1を介してタイミング調整を図られた入力信号(S14)に乗算すれば(S15)、必要な信号振幅値となって次段の処理ブロックに出力される。なお一方、前記S11の処理における判断結果の結果、(√αn)<(√αn−1)である場合、即ち、一サンプリング前の処理におけるAGC係数平方根値(√αn−1)の方が大きい場合は、今回の入力信号レベルの方が大きいことになるので、更にAGCゲインを低減する必要はなくそのとき得られているゲインGn(=√αn)を前記出力乗算器17に供給して(S16)出力を得る(S15)。
FIG. 4 is a diagram for explaining the relationship between the AGC response coefficient μ value and the convergence speed of the system. In this example, for example, the AGC response coefficient μ is set to μ1 = 1/128 and μ2 = 1/512. , Μ3 = 1/2048, and the relationship is μ1>μ2> μ3. As is clear from this figure, the larger the μ value, the larger the AGC gain and the shorter the release time. Conversely, when the μ value becomes smaller, the release time becomes longer. Therefore, once the AGC gain that has been greatly reduced is rapidly recovered, the AGC response coefficient μ is increased, and in the opposite case, it may be set smaller.
In this way, the calculation of Equation 1 is performed based on the set AGC response coefficient μ (S13), and the gain (gain) Gn obtained as a result of the calculation is supplied to the output multiplier 17, and the delay device 1 Is multiplied by the input signal (S14) whose timing is adjusted through (S15), it is output to the next processing block as a required signal amplitude value. On the other hand, when (√αn) <(√αn−1) as a result of the determination result in the processing of S11, that is, the AGC coefficient square root value (√αn−1) in the processing one sampling before is larger. In this case, since the current input signal level is larger, it is not necessary to further reduce the AGC gain, and the gain Gn (= √αn) obtained at that time is supplied to the output multiplier 17 ( S16) An output is obtained (S15).

図5は、具体的な入力信号波形の例に基づいて上述した信号処理を説明したものであり、(A)は入力信号波形、(B)はAGCゲイン係数Gn、(C)は出力信号波形で、図(A)の入力信号に図(B)のAGCゲイン(Gn)を乗じたものである。
図5(A)に示す入力信号では、信号波形を横切る線51は基準レベル(Pref)に対応するもので、このレベル線以上の部分が過大入力として、AGC回路で低減制御される。従来のAGC回路では、基準レベルを越える信号に対して一律に設定したアタックタイム時のAGCゲインによって抑圧され、また、リリースタイムは過大入力信号レベルに対応して一律にリリースタイムが設定されていた。本発明では、上述したように以前の処理結果を参照し、アタック処理の連続回数によってリリース処理におけるAGCゲインを設定し、また、前回の処理におけるAGC計数αの増減傾向を検出し、その結果に基づいてもAGCゲインを設定するように構成したものである。
FIG. 5 illustrates the above-described signal processing based on a specific example of an input signal waveform. (A) is an input signal waveform, (B) is an AGC gain coefficient Gn, and (C) is an output signal waveform. Thus, the input signal in FIG. (A) is multiplied by the AGC gain (Gn) in FIG.
In the input signal shown in FIG. 5A, the line 51 crossing the signal waveform corresponds to the reference level (Pref), and the portion above this level line is excessively input and reduced and controlled by the AGC circuit. In the conventional AGC circuit, the signal exceeding the reference level is suppressed by the AGC gain at the uniform attack time, and the release time is uniformly set corresponding to the excessive input signal level. . In the present invention, as described above, the previous process result is referred to, the AGC gain in the release process is set according to the number of consecutive attack processes, and the increase / decrease tendency of the AGC count α in the previous process is detected. Based on this, the AGC gain is set.

この例に示す波形では、同図の時間タイミングa〜b、c〜f、e〜f、g〜hの期間において、それ以前の処理におけるAGC係数αが比較されて、AGC応答係数μの値が選択されている。即ち、時間タイミングaでは基準値を超えているのでアタック処理が開始され、タイミングbで最も大きなゲイン抑制機能が働き、それ以降はリリース処理となる。タイミングc〜dにおいても同様にアタック処理がなされ、d〜eのタイミング期間はリリース処理となる。なお、タイミングc〜f期間は時間的に長い過大入力となり、カウントアップ数が大きくなるので、上述したAGC応答係数μ値を小さくすることによって、AGC回路のゲインを小さくし、リリースタイムを長くしている。タイミングbとdにおける入力信号レベル値がほぼ同じであるが、その後のリリースタイムが異なっているのは、過大入力信号の連続する長さに基づいて、その後のリリース処理のゲインを制御しているからである。   In the waveform shown in this example, the AGC coefficient α in the previous processing is compared during the time timings a to b, c to f, ef and g to h in FIG. Is selected. That is, since the reference value is exceeded at time timing a, attack processing is started, the largest gain suppression function is activated at timing b, and release processing is performed thereafter. Similarly, attack processing is performed at timings c to d, and release processing is performed during the timing period from d to e. In addition, since the time c to f period is an excessively long input and the count-up number increases, the AGC circuit gain is reduced and the release time is extended by reducing the above-described AGC response coefficient μ value. ing. The input signal level values at timings b and d are substantially the same, but the subsequent release times are different because the gain of subsequent release processing is controlled based on the continuous length of the excessive input signal. Because.

その結果、同図5(B)に示すように、時間タイミングa〜b、c〜f、e〜f、g〜hの期間のAGCゲイン信号波形が、従来のAGC回路の処理とは異なった処理がなされ、同図5(C)に示すように、基準レベルを超えた部分は抑圧されているが、基準レベル以下の信号波形は、欠落されることなく、ほぼ同様の波形が保持されている。即ち、時間タイミングa〜b、g〜hの期間は、比較的短時間の単発的な過大入力信号であるので、夫々のリリースタイム、図中i、j部分は短時間で基準ゲインに復帰し、その後の正常レベル信号の必要以上のレベル抑圧は発生していない。一方、時間タイミングc〜fの期間は比較的長時間にわたって連続する過大入力信号であるので、その後のリリースタイム(図中k)は長くなっているが、若干の信号変形がみられるものの、同期間中のアタック処理中であっても、期間e〜fでは前処理における係数を比較することによって信号レベルの増減傾向を検出し、精密にゲイン制御を行った結果、再生信号の大幅な波形変形を防止していることが明らかであろう。
これらの処理によって、従来の問題点で指摘したような不要なゲイン抑圧による信号歪み発生や不明瞭な通信を防止する効果が得られる。
As a result, as shown in FIG. 5B, the AGC gain signal waveform during the time timings a to b, c to f, e to f, and g to h is different from the processing of the conventional AGC circuit. As shown in FIG. 5C, the portion exceeding the reference level is suppressed, but the signal waveform below the reference level is not lost, and almost the same waveform is maintained. Yes. That is, since the period of time timings a to b and g to h is a single excessive input signal for a relatively short time, each release time, i and j in the figure, returns to the reference gain in a short time. Thereafter, the level suppression more than necessary for the normal level signal does not occur. On the other hand, since the period of time timings c to f is an excessively large input signal that continues for a relatively long time, the subsequent release time (k in the figure) is long, but although the signal is slightly deformed, Even during attack processing during the period, in the periods ef, the signal level increase / decrease trend is detected by comparing the coefficients in the preprocessing, and the gain control is performed precisely, resulting in significant waveform deformation of the reproduced signal. It will be clear that this has been prevented.
By these processes, the effects of preventing signal distortion due to unnecessary gain suppression and unclear communication as pointed out in the conventional problems can be obtained.

以上本発明の実施態様例について説明したが、本発明はこれらの例に限定する必要はなく種々変形が可能である。例えば、前記AGC応答係数μ値は3種類に限らず、更に多くの値を用意しておき、現処理以前の結果を参照しながら、細かくμ値を選択することも可能であり、また、図1の平方根計算器12において計算する√αの値は、入力信号の電圧に対応する値であればよいので、入力信号をA/D変換した結果を利用することも可能である。
また、前記図1に示した構成や、図3に示した処理手順に関しても、各機能ブロックや処理をCPUを含むコンピュータ装置によってソフトウエア処理により実現することも可能である。更に、リリースタイムのゲイン制御についても、直線的に復帰させる方法や、指数関数的に変化させる方法等、種々の選択が可能であろう。
Although the embodiments of the present invention have been described above, the present invention need not be limited to these examples and can be variously modified. For example, the AGC response coefficient μ value is not limited to three types, and more values can be prepared and the μ value can be selected finely while referring to the results before the current processing. Since the value of √α calculated by the square root calculator 12 of 1 only needs to be a value corresponding to the voltage of the input signal, the result of A / D conversion of the input signal can be used.
Further, regarding the configuration shown in FIG. 1 and the processing procedure shown in FIG. 3, each functional block and processing can be realized by software processing by a computer device including a CPU. Furthermore, regarding the gain control of the release time, various selections such as a method of returning linearly and a method of changing exponentially will be possible.

また、上述した実施形態のAGC回路を構成する各機能、又は方法を、夫々プログラム化し、あらかじめCD−ROM等の記録媒体に書き込んでおき、これらのプログラムをコンピュータのメモリあるいは記憶装置に格納し、それを実行することによって、本発明の目的が達成されることは言うまでもない。
この場合、記録媒体から読み出されたプログラム自体が上述した実施形態の機能を実現することになり、そのプログラムおよびそのプログラムを記録した記録媒体も本発明を構成することになる。
In addition, each function or method constituting the AGC circuit of the above-described embodiment is programmed and written in a recording medium such as a CD-ROM in advance, and these programs are stored in a memory or a storage device of a computer. It goes without saying that the object of the present invention can be achieved by implementing it.
In this case, the program itself read from the recording medium realizes the functions of the above-described embodiment, and the program and the recording medium recording the program also constitute the present invention.

なお、プログラムを格納する記録媒体としては半導体媒体(例えば、ROM、不揮発性メモリカード等)、光媒体(例えば、DVD、MO、MD、CD等)、磁気媒体(例えば、磁気テープ、フレキシブルディスク等)等のいずれであってもよい。
また、ロードしたプログラムを実行することにより上述した実施形態の機能が実現されるだけでなく、そのプログラムの指示に基づき、オペレーティングシステムあるいは他のアプリケーションプログラム等と共同して処理することによって上述した実施形態の機能が実現される場合も含まれる。
市場に流通させる場合には、可搬型の記録媒体にプログラムを格納して流通させ、あるいは、インターネット等を介して接続されたサーバコンピュータの記憶装置にプログラムを格納しておき、インターネット等を通じて他のコンピュータに転送することもできる。この場合、このサーバコンピュータの記憶装置も本発明の記録媒体に含まれる。
なお、コンピュータでは、可搬型の記録媒体上のプログラム、または転送されてくるプログラムを、コンピュータに接続した記録媒体にインストールし、そのインストールされたプログラムを実行することによって上述した実施形態の機能が実現される。
As a recording medium for storing the program, a semiconductor medium (for example, ROM, nonvolatile memory card, etc.), an optical medium (for example, DVD, MO, MD, CD, etc.), a magnetic medium (for example, magnetic tape, flexible disk, etc.) ) Or the like.
Further, not only the functions of the above-described embodiment are realized by executing the loaded program, but also the above-described implementation by cooperating with the operating system or other application programs based on the instructions of the program. The case where the function of the form is realized is also included.
When distributing to the market, store the program in a portable recording medium for distribution, or store the program in a storage device of a server computer connected via the Internet, etc. It can also be transferred to a computer. In this case, the storage device of this server computer is also included in the recording medium of the present invention.
In the computer, the functions of the above-described embodiments are realized by installing a program on a portable recording medium or a transferred program on a recording medium connected to the computer and executing the installed program. Is done.

本発明の一実施形態にかかるAGC回路示すブロック図である。It is a block diagram which shows the AGC circuit concerning one Embodiment of this invention. 本発明において使用する積分器の一実施形態を示す機能回路図である。It is a functional circuit diagram which shows one Embodiment of the integrator used in this invention. 本発明の一実施形態にかかるAGC回路制御方法を示すフローチャートである。It is a flowchart which shows the AGC circuit control method concerning one Embodiment of this invention. 本発明の一実施形態において使用するAGC応答係数の例を示す図である。It is a figure which shows the example of the AGC response coefficient used in one Embodiment of this invention. 本発明の一実施態様例における信号波形図であり、(A)は入力信号波形図、(B)はAGCゲイン信号波形図、(C)はAGC出力信号波形図である。It is a signal waveform diagram in one embodiment of the present invention, (A) is an input signal waveform diagram, (B) is an AGC gain signal waveform diagram, (C) is an AGC output signal waveform diagram. 従来のAGC回路を備えた無線通信機の一部を示すブロック図である。It is a block diagram which shows a part of radio | wireless communication apparatus provided with the conventional AGC circuit.

符号の説明Explanation of symbols

1 遅延器、2 二乗器、3 積分器、4 比較器、5 しきい値(閾値)メモリ、6、15 切替スイッチ、7、17 乗算器、8 基準値メモリ、9 カウンタ、10 AGC係数設定器、11 AGC応答係数設定器、12 平方根計算器、13 比較器、14 バッファメモリ、16 AGC係数演算器、20 マイク、21 アナログ・デジタル変換器(A/D)、22 低域フィルタ(LPF)、23 プリエンファシス回路、24 AGC回路、25 デジタル・アナログ変換器(D/A)、26 電圧制御発振器(VCO)、27 DSP回路、α AGC係数、μ AGC応答係数。   1 delay unit, 2 square unit, 3 integrator, 4 comparator, 5 threshold value (threshold value) memory, 6, 15 changeover switch, 7, 17 multiplier, 8 reference value memory, 9 counter, 10 AGC coefficient setting unit 11 AGC response coefficient setting unit, 12 square root calculator, 13 comparator, 14 buffer memory, 16 AGC coefficient calculator, 20 microphone, 21 analog-to-digital converter (A / D), 22 low-pass filter (LPF), 23 Pre-emphasis circuit, 24 AGC circuit, 25 Digital-to-analog converter (D / A), 26 Voltage controlled oscillator (VCO), 27 DSP circuit, α AGC coefficient, μ AGC response coefficient.

Claims (6)

入力信号レベルを基準レベルと比較する比較手段と、入力信号レベルが基準レベル以上のときはAGCゲインを小さくするアタック処理手段と、入力信号レベルが基準レベルより小さいときはAGCゲインを基準値に戻すリリース処理手段と、を備えたAGC回路において、現処理以前の連続するアタック処理回数を計測するアタック連続回数計測手段と、リリース処理に際して前記アタック連続回数計測手段の計測結果に基づいてAGC応答係数を設定するAGC応答係数設定手段と、前記AGC応答係数設定手段により設定された値に基づいてリリース処理のAGCゲインを設定したことを特徴とするAGC回路。   Comparing means for comparing the input signal level with the reference level, attack processing means for reducing the AGC gain when the input signal level is higher than the reference level, and returning the AGC gain to the reference value when the input signal level is lower than the reference level In the AGC circuit comprising the release processing means, the AGC response coefficient is calculated based on the measurement result of the continuous attack count measuring means for measuring the number of consecutive attack processes before the current process and the continuous attack count measuring means during the release process. An AGC circuit characterized in that an AGC response coefficient setting means for setting and an AGC gain for release processing are set based on a value set by the AGC response coefficient setting means. 入力信号レベルを基準レベルと比較する比較手段と、入力信号レベルが基準レベル以上のときはAGCゲインを小さくするアタック処理手段と、入力信号レベルが基準レベルより小さいときはAGCゲインを基準値に戻すリリース処理手段と、を備えたAGC回路において、
入力するアナログ信号をデジタル信号に変換するA/D変換手段と、
入力信号を所定時間遅延させてタイミングを調整する遅延手段と、
前記入力信号から計算される電力の平均値(Pn)を所定の基準レベル値(Pref)と比較する比較手段と、
前記比較手段の比較結果がPn≧Prefのときにアタック処理手段としてα=Pref/Pnなる係数(α)に基づいてAGCゲインを設定するAGCゲイン設定手段及び現処理以前の連続するアタック処理回数を計測するアタック連続回数計測手段と、
前記比較結果がPn<Prefのときにリリース処理手段として前記アタック連続回数計測手段の計測値に対応してAGC応答計数(μ)を設定すると共に該アタック連続回数計測手段の計測値をリセットするAGC応答係数設定手段と、
前記アタック処理手段と前記リリース処理手段により設定したAGCゲインに基づいた係数を前記遅延手段によってタイミング調整した入力信号に乗算する乗算手段と、を備えたことを特徴とするAGC回路。
Comparing means for comparing the input signal level with the reference level, attack processing means for reducing the AGC gain when the input signal level is higher than the reference level, and returning the AGC gain to the reference value when the input signal level is lower than the reference level An AGC circuit comprising release processing means,
A / D conversion means for converting an input analog signal into a digital signal;
Delay means for delaying an input signal for a predetermined time to adjust timing;
A comparison means for comparing an average value (Pn) of power calculated from the input signal with a predetermined reference level value (Pref);
When the comparison result of the comparison means is Pn ≧ Pref, the AGC gain setting means for setting the AGC gain based on the coefficient (α) of α = Pref / Pn as the attack processing means, and the number of consecutive attack processes before the current process, Means for measuring the number of consecutive attacks, and
When the comparison result is Pn <Pref, the AGC response count (μ) is set as the release processing means corresponding to the measurement value of the attack continuous number measuring means, and the measurement value of the attack continuous number measuring means is reset. Response coefficient setting means;
An AGC circuit comprising: multiplication means for multiplying an input signal whose timing is adjusted by the delay means by a coefficient based on the AGC gain set by the attack processing means and the release processing means.
入力信号レベルを基準レベルと比較する処理と、入力信号レベルが基準レベル以上のときはAGCゲインを小さくするアタック処理と、入力信号レベルが基準レベルより小さいときはAGCゲインを基準値に戻すリリース処理とを含むAGC回路制御方法において、
現処理以前の連続するアタック処理回数を計測するアタック連続回数計測処理と、リリース処理に際して前記アタック連続回数計測処理の結果に基づいてAGC応答係数(μ)を設定するAGC応答係数設定処理と、前記AGC応答係数設定処理により設定された値に基づいてリリース処理のAGCゲインを設定するリリースゲイン設定処理を含むことを特徴とするAGC方法。
Processing for comparing the input signal level with the reference level, attack processing for reducing the AGC gain when the input signal level is higher than the reference level, and release processing for returning the AGC gain to the reference value when the input signal level is lower than the reference level In an AGC circuit control method including:
A continuous attack count measurement process for measuring the number of consecutive attack processes before the current process; an AGC response coefficient setting process for setting an AGC response coefficient (μ) based on the result of the continuous attack count measurement process during the release process; An AGC method comprising a release gain setting process for setting an AGC gain of a release process based on a value set by an AGC response coefficient setting process.
入力信号レベルを基準レベルと比較する比較処理と、入力信号レベルが基準レベル以上のときにAGCゲインを小さくするアタック処理と、入力信号レベルが基準レベルより小さいときにAGCゲインを基準値に戻すリリース処理とを含むAGC回路制御方法において、
入力するアナログ信号をデジタル信号に変換するA/D変換処理と、
入力信号を所定時間遅延させてタイミングを調整する遅延処理と、
前記入力信号から計算される電力の平均値(Pn)を所定の基準レベル値(Pref)と比較する比較処理と、
前記比較処理の結果がPn≧Prefのときアタック処理として、α=Pref/Pnなる係数(α)に基づいてAGCゲインを設定するAGCゲイン設定処理と、現処理以前の連続するアタック処理回数を計測するアタック連続回数計測処理と、
前記比較処理の結果がPn<Prefのときリリース処理として、AGCゲインを基準値に戻すAGCゲイン復帰処理と、前記アタック連続回数計測処理の計測値に対応してAGC応答係数(μ)を設定すると共に該アタック連続回数計測処理における計測値をリセットするAGC応答係数設定処理と、
前記アタック処理と前記リリース処理とにより設定したAGCゲインに基づく係数を前記遅延処理によってタイミング調整した入力信号に乗算する乗算処理とを含むことを特徴とするAGC方法。
Comparison processing that compares the input signal level with the reference level, attack processing that reduces the AGC gain when the input signal level is equal to or higher than the reference level, and release that returns the AGC gain to the reference value when the input signal level is lower than the reference level In an AGC circuit control method including processing,
A / D conversion processing for converting an input analog signal into a digital signal;
Delay processing for delaying the input signal for a predetermined time and adjusting timing;
A comparison process for comparing an average value (Pn) of power calculated from the input signal with a predetermined reference level value (Pref);
When the result of the comparison process is Pn ≧ Pref, as the attack process, an AGC gain setting process for setting an AGC gain based on a coefficient (α) of α = Pref / Pn, and the number of consecutive attack processes before the current process are measured. The attack continuous count measurement process,
When the result of the comparison process is Pn <Pref, as the release process, an AGC gain return process for returning the AGC gain to the reference value and an AGC response coefficient (μ) are set corresponding to the measurement value of the consecutive attack count measurement process. AGC response coefficient setting processing for resetting the measurement value in the attack continuous number measurement processing,
An AGC method comprising: a multiplication process for multiplying an input signal whose timing is adjusted by the delay process by a coefficient based on an AGC gain set by the attack process and the release process.
請求項3又は4記載のAGC方法の各処理を、コンピュータによって処理可能なようにプログラミングしたことを特徴とするAGC処理プログラム。   5. An AGC processing program in which each process of the AGC method according to claim 3 or 4 is programmed so as to be processed by a computer. 請求項5に記載のAGC処理プログラムをコンピュータが読み取り可能な形式で記録したことを特徴とする記録媒体。   A recording medium in which the AGC processing program according to claim 5 is recorded in a computer-readable format.
JP2005380124A 2005-12-28 2005-12-28 Agc circuit, agc method, program and recording medium Pending JP2007181136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005380124A JP2007181136A (en) 2005-12-28 2005-12-28 Agc circuit, agc method, program and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005380124A JP2007181136A (en) 2005-12-28 2005-12-28 Agc circuit, agc method, program and recording medium

Publications (1)

Publication Number Publication Date
JP2007181136A true JP2007181136A (en) 2007-07-12

Family

ID=38305778

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005380124A Pending JP2007181136A (en) 2005-12-28 2005-12-28 Agc circuit, agc method, program and recording medium

Country Status (1)

Country Link
JP (1) JP2007181136A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009141471A (en) * 2007-12-04 2009-06-25 Yamaha Corp Automatic volume correcting apparatus
JP2011147127A (en) * 2009-12-29 2011-07-28 Gn Resound As Method for detecting whistling in audio system
JPWO2017042875A1 (en) * 2015-09-08 2018-07-19 パイオニア株式会社 Electronic auscultation apparatus, control method, computer program, and recording medium
JP2018207318A (en) * 2017-06-05 2018-12-27 キヤノン株式会社 Voice processing device, control method therefor, program and storage medium
JP2019169861A (en) * 2018-03-23 2019-10-03 株式会社Jvcケンウッド Receiver and program
JP2019169860A (en) * 2018-03-23 2019-10-03 株式会社Jvcケンウッド Receiver and program
JP2021183201A (en) * 2020-02-27 2021-12-02 パイオニア株式会社 Electronic auscultation device, control method, computer program and recording medium
CN113811945A (en) * 2019-04-01 2021-12-17 伯斯有限公司 Noise cancellation signal saturation control
JP2022046647A (en) * 2018-03-23 2022-03-23 株式会社Jvcケンウッド Pulse noise determination device and program

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009141471A (en) * 2007-12-04 2009-06-25 Yamaha Corp Automatic volume correcting apparatus
JP2011147127A (en) * 2009-12-29 2011-07-28 Gn Resound As Method for detecting whistling in audio system
JPWO2017042875A1 (en) * 2015-09-08 2018-07-19 パイオニア株式会社 Electronic auscultation apparatus, control method, computer program, and recording medium
JP2018207318A (en) * 2017-06-05 2018-12-27 キヤノン株式会社 Voice processing device, control method therefor, program and storage medium
JP7006432B2 (en) 2018-03-23 2022-01-24 株式会社Jvcケンウッド Receiver and program
JP2019169860A (en) * 2018-03-23 2019-10-03 株式会社Jvcケンウッド Receiver and program
JP2019169861A (en) * 2018-03-23 2019-10-03 株式会社Jvcケンウッド Receiver and program
JP7006431B2 (en) 2018-03-23 2022-01-24 株式会社Jvcケンウッド Receiver and program
JP2022046647A (en) * 2018-03-23 2022-03-23 株式会社Jvcケンウッド Pulse noise determination device and program
JP7196992B2 (en) 2018-03-23 2022-12-27 株式会社Jvcケンウッド Pulse noise judgment device and program
CN113811945A (en) * 2019-04-01 2021-12-17 伯斯有限公司 Noise cancellation signal saturation control
JP2022519945A (en) * 2019-04-01 2022-03-25 ボーズ・コーポレーション Noise reduction signal saturation control
US11869477B2 (en) 2019-04-01 2024-01-09 Bose Corporation Noise cancellation signal saturation control
CN113811945B (en) * 2019-04-01 2024-01-26 伯斯有限公司 Noise cancellation signal saturation control
JP2021183201A (en) * 2020-02-27 2021-12-02 パイオニア株式会社 Electronic auscultation device, control method, computer program and recording medium
JP7357031B2 (en) 2020-02-27 2023-10-12 エア・ウォーター・バイオデザイン株式会社 Electronic auscultation device and control method

Similar Documents

Publication Publication Date Title
JP2007181136A (en) Agc circuit, agc method, program and recording medium
US8130126B2 (en) Analog to digital conversion system
US8315410B2 (en) Dynamic range controller
EP2352225A1 (en) Audio signal adjustment device and audio signal adjustment method
EP2928076B1 (en) Level adjustment device and method
US20120288121A1 (en) Acoustic control device
EP1971184A2 (en) Bass enhancing method, signal processing device, and audio reproducing system
US20040190731A1 (en) Adaptive feedback canceller
JP2005167380A (en) Audio signal processing apparatus and audio signal processing method
US20110002481A1 (en) Audio signal amplitude adjusting device and method
KR20160014027A (en) A digital compressor for compressing an audio signal
US20110286606A1 (en) Method and system for noise cancellation
JP4983694B2 (en) Audio playback device
US9628907B2 (en) Audio device and method having bypass function for effect change
JP2008109560A (en) Audio signal processing apparatus
EP3379847B1 (en) Audio device, speaker device, and audio signal processing method
JP6314662B2 (en) Audio signal processing apparatus and program thereof
WO2007069369A1 (en) Signal processing device, and signal processing method
JP4803193B2 (en) Audio signal gain control apparatus and gain control method
US20120155656A1 (en) Audio-Signal Processing Apparatus and Method, and Program
JP2004104692A (en) Automatic gain controller, automatic gain control method, and automatic gain control program
JP2002367298A (en) Noise cancel device and noise cancelling method
TWI399918B (en) Method for automatic gain modulation and apparatus applying the method
JP2010178224A (en) Hearing aid
JP2011044909A (en) Sound processing apparatus and method of operating the same