JPH0531328B2 - - Google Patents

Info

Publication number
JPH0531328B2
JPH0531328B2 JP21185087A JP21185087A JPH0531328B2 JP H0531328 B2 JPH0531328 B2 JP H0531328B2 JP 21185087 A JP21185087 A JP 21185087A JP 21185087 A JP21185087 A JP 21185087A JP H0531328 B2 JPH0531328 B2 JP H0531328B2
Authority
JP
Japan
Prior art keywords
value
average level
register
leading
digital
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP21185087A
Other languages
Japanese (ja)
Other versions
JPS6454822A (en
Inventor
Fujio Nakagawa
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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP21185087A priority Critical patent/JPS6454822A/en
Publication of JPS6454822A publication Critical patent/JPS6454822A/en
Publication of JPH0531328B2 publication Critical patent/JPH0531328B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Control Of Amplification And Gain Control (AREA)
  • Dc Digital Transmission (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、デイジタル表現された信号の平均レ
ベルを一定にするためのデイジタルAGC回路に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a digital AGC circuit for keeping the average level of a digitally expressed signal constant.

〔従来の技術〕[Conventional technology]

従来、この種のデイジタルAGC回路は、デイ
ジタル入力信号の平均レベルを算出して、その算
出値に応じて利得を求め、入力信号にこの利得を
乗じていた。
Conventionally, this type of digital AGC circuit calculates the average level of a digital input signal, determines a gain according to the calculated value, and multiplies the input signal by this gain.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のデイジタルAGC回路は、入力
の平均レベルから直接利得を求めているため、入
力信号の平均レベルのダイナミツクレンジが広い
場合、その平均レベルのデイジタル表現のビツト
長が長くなつて、ROMテーブルを用いて利得を
求める場合ROMテーブルの容量が大きくなり、
また、この場合利得のダイナミツクレンジも広く
なるので利得をデイジタル表現するビツト長も長
くなり、入力信号と利得を乗算する乗算路のハー
ドウエアも大きくなるという欠点がある。
The conventional digital AGC circuit described above calculates the gain directly from the average level of the input, so if the dynamic range of the average level of the input signal is wide, the bit length of the digital representation of the average level becomes long, and the ROM When calculating gain using a table, the capacity of the ROM table becomes large,
Further, in this case, the dynamic range of the gain becomes wider, so the bit length for digitally representing the gain becomes longer, and the hardware of the multiplication path for multiplying the input signal and the gain also becomes larger.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のデイジタルAGC回路は、 当該デイジタルAGC回路が出力したデイジタ
ル信号を入力してそれ以前に入力した所定数の入
力値との平均レベルを算出し、2進数デイジタル
値として出力する平均レベル算出手段と、 平均レベル算出手段の算出値のリーデイング
“0”を検出し、予め決められている平均レベル
の目標値のリーデイング“0”との差分の数値を
出力するリーデイング“0”検出手段と、 平均レベル算出手段の出力値を入力し、その値
をリーデイング“0”検出手段が出力した数値分
だけシフトして出力する第1のシフト手段と、 第1のシフト手段によつてシフトされた平均レ
ベル値を入力し、その値と平均レベルの目標値と
の比に対応する利得を出力する可変利得発生手段
と、 第1のレジスタと、 リーデイング“0”検出手段の出力値と第1の
レジスタの値を加算し、加算結果を第1のレジス
タに出力する加算手段と、 第2のレジスタと、 可変利得発生手段の出力と第2のレジスタの値
を乗算し、乗算結果を第2のレジスタに出力する
第1の乗算手段と、 入力したデイジタル値を第1のレジスタに保持
されている数値分シフトしてその値を出力する第
2のシフト手段と、 第2のシフト手段の出力値に第2のレジスタに
保持されている利得を乗算してその値を出力する
第2の乗算手段を有する。
The digital AGC circuit of the present invention includes an average level calculating means that inputs the digital signal outputted by the digital AGC circuit, calculates the average level with a predetermined number of previously input input values, and outputs the average level as a binary digital value. and a leading "0" detection means for detecting the leading "0" of the calculated value of the average level calculating means and outputting a numerical value of the difference between the leading "0" of the target value of the average level determined in advance, and a first shifting means for inputting the output value of the level calculating means, shifting the value by the numerical value outputted by the leading "0" detecting means and outputting the result; and an average level shifted by the first shifting means; variable gain generating means for inputting a value and outputting a gain corresponding to the ratio of the value to a target value of the average level; a first register; an addition means for adding values and outputting the addition result to the first register; a second register; multiplying the output of the variable gain generation means by the value of the second register; a first multiplication means for outputting; a second shifting means for shifting the input digital value by the numerical value held in the first register and outputting the value; It has a second multiplication means that multiplies the gains held in the second register and outputs the obtained value.

〔作用〕[Effect]

直前に当該デイジタルAGCから出力された所
定数のデイジタル値の平均値がそのリーデイング
“0”を目標値のリーデイング“0”と同じにな
るようにシフトされ、そのシフト数と前回粗調の
AGCに用いられたシフト数とを加算したシフト
数を用いて粗調のAGCが行なわれ、微調用の係
数も同じリーデイング“0”にシフトされた平均
レベル値と平均レベルの目標値との比が算出さ
れ、前回の微調用利得と乗算されたものを利得と
しているので、値が小さく、その乗算用領域は決
められた精度によつて定まるものとなる。
The average value of a predetermined number of digital values output from the digital AGC immediately before is shifted so that its leading value is the same as the leading value of the target value, and the number of shifts and the previous coarse adjustment are used.
Coarse AGC is performed using the shift number added to the shift number used for AGC, and the coefficient for fine adjustment is also shifted to the same leading "0".The ratio of the average level value and the average level target value. is calculated and multiplied by the previous fine adjustment gain to obtain the gain, so the value is small and the multiplication area is determined by a predetermined accuracy.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して
説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のデイジタルAGC回路の一実
施例のブロツク図である。
FIG. 1 is a block diagram of one embodiment of the digital AGC circuit of the present invention.

平均レベル算出手段1は第2の乗算手段6が直
前に出力したデイジタル値を入力し、それ以前に
入力した所定数の入力値との平均レベルを算出し
て2進数のデイジタル値として出力する。リーデ
イング“0”検出手段2は前記平均レベルの2進
数のリーデイング“0”を検出して、予め決めら
れている平均レベルの目標値のリーデイング
“0”との差分を出力する。第1のシフト手段3
はリーデイング“0”検出手段2の出力に応じて
平均レベルの2進数のリーデイング“0”を平均
レベル目標値のリーデイング“0”と同数になる
ようにシフトし、末尾が長ければ末尾を切捨て、
短かければ“0”を付加して出力する。可変利得
発生手段5は第1のシフト手段3の出力を入力
し、その値と目標値との比からそれに対応する微
調用の利得を出力する。加算手段11はリーデイ
ング“0”検出手段3の出力値と第1のレジスタ
8の値を加算し、加算結果を第1のレジスタ8に
出力する。第1の乗算手段7は可変利得発生手段
5の出力と第2のレジスタ9の値を乗算し、乗算
結果を第2のレジスタ9に出力する。第2のシフ
ト手段4は入力したデイジタル信号に対し、レジ
スタ8が保持している更新されたシフト数だけシ
フトして粗調のAGCを行ない、そのシフトした
デイジタル信号を出力する。第2の乗算手段6は
第2のシフト手段4の出力を入力し、レジスタ9
の保持する更新された利得を乗算して微調の
AGCを行ない、その結果を出力する。
The average level calculation means 1 inputs the digital value outputted immediately before by the second multiplication means 6, calculates the average level with a predetermined number of previously inputted input values, and outputs the average level as a binary digital value. The leading "0" detection means 2 detects the leading "0" of the binary number of the average level and outputs the difference from the leading "0" of the predetermined target value of the average level. First shift means 3
According to the output of the leading "0" detection means 2, the leading "0" of the average level binary number is shifted to be the same number as the leading "0" of the average level target value, and if the end is long, the end is truncated,
If it is shorter, "0" is added and output. The variable gain generating means 5 inputs the output of the first shifting means 3, and outputs a fine adjustment gain corresponding to the ratio of the output value to the target value. The addition means 11 adds the output value of the leading "0" detection means 3 and the value of the first register 8, and outputs the addition result to the first register 8. The first multiplication means 7 multiplies the output of the variable gain generation means 5 by the value of the second register 9, and outputs the multiplication result to the second register 9. The second shift means 4 shifts the input digital signal by the updated shift number held in the register 8, performs coarse AGC, and outputs the shifted digital signal. The second multiplication means 6 inputs the output of the second shift means 4, and the register 9
of fine adjustment by multiplying the updated gain of
Performs AGC and outputs the result.

次に、本実施例の動作について具体的数値によ
り説明する。
Next, the operation of this embodiment will be explained using specific numerical values.

直前に平均レベル算出手段1に入力されたデイ
ジタル信号のレベルが「01000000」であり、それ
以前のレベルが「00100000」、「01100000」である
とすると、平均レベル算出手段1の出力は
「01000000」となる。また、平均レベル目標値が
「01100000」とすると、リーデイング“0”検出
手段2の出力が0となる。したがつて、第1のシ
フト手段3の出力は「01000000」となつて可変利
得発生手段5に入力する。ここで、平均レベルの
目標値「01100000」との比「01100000」/
「01000000」が計算されて0.1が利得として出力さ
れる。そしてこの値がレジスタ9に書込まれてい
る前回の微調AGC利得0.01に第1の乗算手段7
で乗算され、その値0.11がレジスタ9の更新値と
なる。一方、リーデイング“0”検出手段2の出
力0とレジスタ8に書込まれている前回の粗調
AGCのシフト数「5」と仮定するとその値が加
算手段11で加算されてその値「5」がレジスタ
8の更新値となる。その状態において入力された
デイジタル値「00000010」は、まず第2のシフト
手段4でレジスタ8に書込まれているシフト数
「5」だけシフトされる粗調のAGCが行なわれ、
そのシフトされた出力「01000000」が第2の乗算
手段6においてレジスタ9に書込まれている微調
AGCの利得0.11と乗算されて「01110000」が出
力される。
If the level of the digital signal input to the average level calculation means 1 immediately before is "01000000" and the levels before that are "00100000" and "01100000", the output of the average level calculation means 1 is "01000000". becomes. Further, when the average level target value is "01100000", the output of the leading "0" detection means 2 becomes zero. Therefore, the output of the first shift means 3 becomes "01000000" and is input to the variable gain generation means 5. Here, the ratio of the average level target value "01100000" is "01100000" /
"01000000" is calculated and 0.1 is output as the gain. This value is then multiplied by the previous fine adjustment AGC gain 0.01 written in the register 9 by the first multiplier 7.
The value 0.11 becomes the updated value of register 9. On the other hand, the output 0 of the leading “0” detection means 2 and the previous rough adjustment written in the register 8
Assuming that the number of AGC shifts is "5", the value is added by the adding means 11 and the value "5" becomes the updated value of the register 8. The digital value "00000010" inputted in this state is first subjected to rough AGC by being shifted by the shift number "5" written in the register 8 by the second shifting means 4.
The fine adjustment whose shifted output "01000000" is written in the register 9 in the second multiplication means 6
It is multiplied by the AGC gain of 0.11 and "01110000" is output.

したがつて、入力が「00000010」である時の平
均レベルも大体この値に近似しているのでそのま
ま用いると目標値が「01100000」、平均レベル値
が「00000010」の場合その利得は「01100000」/
「00000010」=110000となり、入力「00000010」に
対する乗算は「00000010」×「110000」=
0000001100000となる。これに対して本実施例に
よると00000010×0.11=01110000となり精度によ
り異なるが少くとも3桁分は消減される。
Therefore, the average level when the input is "00000010" is also roughly approximated to this value, so if you use it as is, the target value is "01100000", and if the average level value is "00000010", the gain is "01100000". /
"00000010" = 110000, and the multiplication for the input "00000010" is "00000010" x "110000" =
It becomes 0000001100000. On the other hand, according to this embodiment, 00000010×0.11=01110000, which differs depending on the accuracy, but at least three digits are erased.

可変利得発生手段5としてはROMテーブルを
用いた場合のテーブル容量は入力信号の平均レベ
ルのダイナミツクレンジは第1のシフト手段3、
第2のシフト手段4で調整されているため、
AGCの必要精度のみで決まる。したがつて、従
来のシフト手段を用いないAGC回路に比べて非
常に小さくできる。また、このことは、可変利得
発生手段5の出力のビツト長を小さくできること
も意味しているので第2の乗算手段6の入力ビツ
ト長もシフト手段を用いない場合に比べて非常に
小さくなり、乗算器のハードウエアを小さくでき
る。
When a ROM table is used as the variable gain generating means 5, the table capacity is determined by the dynamic range of the average level of the input signal by the first shift means 3,
Since it is adjusted by the second shift means 4,
Determined only by the required accuracy of AGC. Therefore, it can be much smaller than conventional AGC circuits that do not use shift means. This also means that the bit length of the output of the variable gain generating means 5 can be made small, so the input bit length of the second multiplication means 6 is also much smaller than when no shifting means is used. Multiplier hardware can be made smaller.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、従来のAGC回
路にシフト手段による粗調AGC回路を設けるこ
とにより、可変利得発生手段と乗算手段のハード
ウエアを小さくすることができる効果がある。
As described above, the present invention has the effect that the hardware of the variable gain generation means and the multiplication means can be made smaller by providing a coarse adjustment AGC circuit using a shift means in a conventional AGC circuit.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明のデイジタルAGC回路の一実
施例のブロツク図である。 1……平均レベル算出手段、2……リーデイン
グ“0”検出手段、3……第1のシフト手段、4
……第2のシフト手段、5……可変利得発生手
段、6……第2の乗算手段、7……第1の乗算手
段、8……第1のレジスタ、9……第2のレジス
タ、11……加算手段。
FIG. 1 is a block diagram of one embodiment of the digital AGC circuit of the present invention. DESCRIPTION OF SYMBOLS 1... Average level calculation means, 2... Leading "0" detection means, 3... First shifting means, 4
... second shift means, 5 ... variable gain generation means, 6 ... second multiplication means, 7 ... first multiplication means, 8 ... first register, 9 ... second register, 11...Addition means.

Claims (1)

【特許請求の範囲】 1 デイジタルAGC回路であつて、 当該デイジタルAGC回路が出力したデイジタ
ル信号を入力してそれ以前に入力した所定数の入
力値との平均レベルを算出し、2進数デイジタル
値として出力する平均レベル算出手段と、 平均レベル算出手段の算出値のリーデイング
“0”を検出し、予め決められている平均レベル
の目標値のリーデイング“0”との差分の数値を
出力するリーデイング“0”検出手段と、 平均レベル算出手段の出力値を入力し、その値
をリーデイング“0”検出手段が出力した数値分
だけシフトして出力する第1のシフト手段と、 第1のシフト手段によつてシフトされた平均レ
ベル値を入力し、その値と平均レベルの目標値と
の比に対応する利得を出力する可変利得発生手段
と、 第1のレジスタと、 リーデイング“0”検出手段の出力値と第1の
レジスタの値を加算し、加算結果を第1のレジス
タに出力する加算手段と、 第2のレジスタと、 可変利得発生手段の出力と第2のレジスタの値
を乗算し、乗算結果を第2のレジスタに出力する
第1の乗算手段と、 入力したデイジタル値を第1のレジスタに保持
されている数値分シフトしてその値を出力する第
2のシフト手段と、 第2のシフト手段の出力値に第2のレジスタに
保持されている利得を乗算してその値を出力する
第2の乗算手段を有するデイジタルAGC回路。
[Claims] 1. A digital AGC circuit, which inputs the digital signal outputted by the digital AGC circuit, calculates the average level with a predetermined number of previously input input values, and calculates the average level as a binary digital value. An average level calculating means to output, and a leading “0” which detects a leading “0” of the calculated value of the average level calculating means and outputs a numerical value of the difference between the leading “0” of a predetermined target value of the average level. ``detecting means; first shifting means that inputs the output value of the average level calculating means, shifts the value by the numerical value outputted by the leading "0" detecting means, and outputs the result; and variable gain generating means for inputting the shifted average level value and outputting a gain corresponding to the ratio between the value and the target value of the average level; a first register; and an output value of the leading "0" detecting means. an addition means for adding the value of the first register and the value of the first register, and outputting the addition result to the first register; a first multiplier for outputting the input digital value to a second register; a second shifting means for shifting the input digital value by the numerical value held in the first register and outputting the value; and a second shifting means. A digital AGC circuit having second multiplication means for multiplying the output value of the means by a gain held in a second register and outputting the resultant value.
JP21185087A 1987-08-25 1987-08-25 Digital agc circuit Granted JPS6454822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21185087A JPS6454822A (en) 1987-08-25 1987-08-25 Digital agc circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21185087A JPS6454822A (en) 1987-08-25 1987-08-25 Digital agc circuit

Publications (2)

Publication Number Publication Date
JPS6454822A JPS6454822A (en) 1989-03-02
JPH0531328B2 true JPH0531328B2 (en) 1993-05-12

Family

ID=16612626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21185087A Granted JPS6454822A (en) 1987-08-25 1987-08-25 Digital agc circuit

Country Status (1)

Country Link
JP (1) JPS6454822A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19636463C2 (en) * 1996-09-07 1998-07-02 Eht Werkzeugmaschinen Gmbh Sheet metal working machine for plate-shaped work pieces with a hold-down divided into individual segments
JP5382393B1 (en) * 2013-02-15 2014-01-08 東洋システム株式会社 Digital AGC control method and feedback control apparatus

Also Published As

Publication number Publication date
JPS6454822A (en) 1989-03-02

Similar Documents

Publication Publication Date Title
US4999628A (en) Analog-to-digital converting unit with broad dynamic range
US7602320B2 (en) Systems and methods for companding ADC-DSP-DAC combinations
US5619198A (en) Number format conversion apparatus for signal processing
US5343200A (en) Analog/digital converter with digital automatic gain control
US7382150B2 (en) Sensitivity switchable detection circuit and method
JPH0531328B2 (en)
JPH0531327B2 (en)
US4737925A (en) Method and apparatus for minimizing a memory table for use with nonlinear monotonic arithmetic functions
US5706217A (en) Digital signal processing automatic gain control amplifier
KR0142262B1 (en) Automatic high brightness compression circuit
EP0849662A2 (en) Arithmetic operation and rounding system
JPH08504046A (en) Device for converting a floating point binary number to a logarithm in binary form and vice versa
US20040252209A1 (en) Digital programmable gain stage with high resolution for CMOS image sensors
US4941118A (en) Division circuit having an operation loop including an adder and multiplier
JPH031709A (en) Variable resistance circuit and variable gain amplifier
JPH0217730A (en) Digital agc circuit
JP2771704B2 (en) Automatic gain control circuit
JPS6132436Y2 (en)
JPS60142735A (en) Overflow detecting and correcting circuit
SU593212A1 (en) Digital device for logarithmation of binary numbers
JPH0883263A (en) Digital signal processor
JPS61169027A (en) Digital hysteresis circuit
JP2926657B2 (en) Digital envelope generator
KR0149323B1 (en) Digital Audio Volume Control
JP2569976B2 (en) Digital filter