[go: up one dir, main page]

JP2001339306A - Compression circuit - Google Patents

Compression circuit

Info

Publication number
JP2001339306A
JP2001339306A JP2000157534A JP2000157534A JP2001339306A JP 2001339306 A JP2001339306 A JP 2001339306A JP 2000157534 A JP2000157534 A JP 2000157534A JP 2000157534 A JP2000157534 A JP 2000157534A JP 2001339306 A JP2001339306 A JP 2001339306A
Authority
JP
Japan
Prior art keywords
level
compression
input signal
circuit
change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000157534A
Other languages
Japanese (ja)
Other versions
JP3679310B2 (en
Inventor
Akiyoshi Fujita
章義 藤田
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 JP2000157534A priority Critical patent/JP3679310B2/en
Publication of JP2001339306A publication Critical patent/JP2001339306A/en
Application granted granted Critical
Publication of JP3679310B2 publication Critical patent/JP3679310B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a compression circuit without dispersion in electric characteristic of components and change in characteristic due to an ambient temperature change. SOLUTION: An analog/digital converter 1 applies analog/digital conversion to an input signal, an absolute value calculation circuit 21 obtains an absolute value of an output of the analog/digital converter, a level detection circuit 22 detects a maximum value in the absolute values obtained by the absolute value calculation circuit 21 at least over a half period of the input signal, an attack time release time processing circuit 23 adds a change in the maximum value on the basis of a change as a comparison result between the detected maximum value and the detected level of one preceding sample, the direction in the change, and a predetermined attack time and a predetermined release time, to the maximum value to obtain the detected level of one preceding sample, and a compression arithmetic processing circuit 24 compresses the input signal on the basis of the detected level subjected to the attack time and release time processing.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は無線通信機に設ける
シラブルコンパンダ等に用いることができる圧縮回路に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a compression circuit which can be used for a syllable compander provided in a radio communication device.

【0002】[0002]

【従来の技術】従来の圧縮回路は、アナログ信号処理に
よって行われている。具体的には、図5に示すように、
音声信号などの入力信号Vinは整流器12に供給し
て、整流器12において入力信号Vinのレベルに応じ
た直流信号を生成し、該直流信号のレベルに比例して増
幅器11の利得を可変して、増幅器11によって入力信
号Vinを増幅し、緩衝器14を介して増幅器11の増
幅出力Voutを圧縮出力として送出している。
2. Description of the Related Art A conventional compression circuit is performed by analog signal processing. Specifically, as shown in FIG.
An input signal Vin such as an audio signal is supplied to a rectifier 12, where the rectifier 12 generates a DC signal corresponding to the level of the input signal Vin, and varies the gain of the amplifier 11 in proportion to the level of the DC signal. The input signal Vin is amplified by the amplifier 11, and the amplified output Vout of the amplifier 11 is sent out as a compressed output via the buffer 14.

【0003】ここで、入力信号のレベルが変化する速度
に対する整流器12の応答速度は、整流器12と協働す
るコンデンサ13の静電容量と整流器12の入力インピ
ーダンスによって決定される。
Here, the response speed of the rectifier 12 with respect to the speed at which the level of the input signal changes is determined by the capacitance of the capacitor 13 cooperating with the rectifier 12 and the input impedance of the rectifier 12.

【0004】例えば圧縮比2の圧縮処理の時には、整流
器12の出力に基づいて入力信号Vinと出力信号Vo
utの関係を、Vout=0.3162×√(Vin)
となるように増幅器11の利得を制御する。この結果、
デシベル表現では、Vout=0.5×Vin(dB)
となり圧縮比2が得られる。
For example, at the time of compression processing with a compression ratio of 2, the input signal Vin and the output signal Vo are based on the output of the rectifier 12.
Vout = 0.3162 × √ (Vin)
The gain of the amplifier 11 is controlled so that As a result,
In decibel expression, Vout = 0.5 × Vin (dB)
And a compression ratio of 2 is obtained.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記し
たような従来の圧縮回路により入力信号を圧縮するとき
は、増幅器、整流器、緩衝器などの構成部品の電気的特
性のバラツキや、周囲温度の変化によって特性が変化す
るという問題点があった。さらに、コンデンサの静電容
量の変化によって整流器から出力される信号の応答速度
が変化するという問題点もある。
However, when an input signal is compressed by the above-described conventional compression circuit, variations in electrical characteristics of components such as an amplifier, a rectifier, and a buffer, and a change in an ambient temperature. There is a problem that the characteristics change due to the above. Another problem is that the response speed of the signal output from the rectifier changes due to the change in the capacitance of the capacitor.

【0006】本発明は、構成部品の電気特性のバラツ
キ、周囲温度変化による特性変化のない圧縮回路を提供
することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a compression circuit in which the electrical characteristics of components do not vary and the characteristics do not change due to a change in ambient temperature.

【0007】[0007]

【課題を解決するための手段】本発明にかかる圧縮回路
は、入力信号を圧縮する圧縮回路であって、入力信号を
A/D変換するA/D変換手段と、A/D変換出力の絶
対値を求める絶対値計算手段と、絶対値計算手段によっ
て求めた入力信号の少なくとも半周期分にわたる絶対値
中の最大値を検出するレベル検出手段とを備え、レベル
検出手段によって検出した最大値を元にして圧縮演算を
することを特徴とする。
A compression circuit according to the present invention is a compression circuit for compressing an input signal, the A / D conversion means for A / D converting the input signal, and the absolute value of the A / D conversion output. An absolute value calculating means for obtaining a value; and a level detecting means for detecting a maximum value among absolute values of at least a half cycle of the input signal obtained by the absolute value calculating means. And performing a compression operation.

【0008】本発明にかかる圧縮回路によれば、圧縮の
ための入力信号の最大値は入力信号の絶対値を求め、入
力信号の少なくとも半周期にわたって求めた絶対値の最
大値で求められるために、最大値を求めるためデジタル
変換された入力信号データの保存期間も半周期の期間で
済み、この最大値を元に圧縮演算が行われることにな
る。しかるに最大値を求めるためにデジタル変換された
入力信号データの絶対値を入力信号の半周期分記憶すれ
ば足り、記憶のためのメモリの記憶容量も少なくて済
む。
According to the compression circuit of the present invention, the maximum value of the input signal for compression is obtained by obtaining the absolute value of the input signal and obtaining the maximum value of the absolute value obtained over at least a half cycle of the input signal. In order to find the maximum value, the storage period of the input signal data that has been digitally converted is also a half period, and the compression operation is performed based on this maximum value. However, it is sufficient to store the absolute value of the digitally converted input signal data for a half cycle of the input signal in order to obtain the maximum value, and the storage capacity of the memory for storage can be reduced.

【0009】本発明にかかる圧縮回路は、請求項1記載
の圧縮回路において、レベル検出手段によって検出した
最大値と1サンプル前の検出レベルの値とを比較した結
果の変化量、変化の方向および予め定めたアタック時間
およびリリース時間に基づく変化分を前記最大値に加え
て1サンプル前の検出レベルとするアタック時間、リリ
ース時間処理手段を備えて、アタック時間処理、リリー
ス時間処理された検出レベルの値を元にして圧縮演算を
することを特徴とする。
In the compression circuit according to the present invention, the amount of change, the direction of the change, and the result of comparing the maximum value detected by the level detection means with the value of the detection level one sample before are compared with the compression circuit according to the first aspect. Attack time and release time processing means for adding a change based on a predetermined attack time and release time to the maximum value and making it a detection level one sample before. The compression operation is performed based on the value.

【0010】したがって、本発明にかかる圧縮回路によ
れば、応答速度がアタック時間、リリース時間に基づい
て、圧縮作用のための最大値の急激な変化が抑制される
ため、圧縮作用の実行において入力信号の瞬間的な変化
に処理が追従するようなことはなくなって、圧縮回路を
アナログ回路で構成した場合と同様となる一方、アナロ
グ回路による場合の電気回路部品の電気的特性の変化に
よって生じた追従特性の変化はなくなる。
Therefore, according to the compression circuit of the present invention, the response speed is suppressed from abrupt change of the maximum value for the compression action based on the attack time and the release time, so that the input speed is reduced when the compression action is executed. The processing no longer follows the instantaneous change in the signal, and is similar to the case where the compression circuit is configured by an analog circuit, but is caused by the change in the electrical characteristics of the electric circuit components in the case of the analog circuit. The tracking characteristic does not change.

【0011】本発明の圧縮回路は、請求項1記載の圧縮
回路において、レベル検出手段によって検出した最大値
に対して圧縮比に基づく圧縮処理を行い、該圧縮処理の
結果に値1/B(Bは1よりも大きい正の数)を乗算
し、該乗算の結果を前記最大値で除算し、該除算の結果
に対しA/D変換された入力信号を乗算し、この乗算結
果に値Bを乗算して圧縮演算することを特徴とする。
In the compression circuit according to the present invention, the maximum value detected by the level detection means is subjected to a compression process based on a compression ratio, and a value 1 / B ( B is a positive number greater than 1), the result of the multiplication is divided by the maximum value, and the result of the division is multiplied by the A / D converted input signal. , And performing a compression operation.

【0012】したがって、本発明にかかる圧縮回路によ
れば、圧縮演算が限られた数値範囲内で行われる場合に
おいて、レベル検出手段によって検出した最大値に対す
る圧縮処理の結果に値1/Bが乗算されて、レベルが一
旦低減された後に、値Bが乗算されるため、前記限られ
た数値範囲内で圧縮演算が行われる場合にも支障が生じ
ない。
Therefore, according to the compression circuit of the present invention, when the compression operation is performed within a limited numerical range, the result of the compression processing on the maximum value detected by the level detection means is multiplied by the value 1 / B. Then, since the level is once reduced and then multiplied by the value B, no problem occurs even when the compression operation is performed within the limited numerical range.

【0013】[0013]

【発明の実施の形態】以下、本発明にかかる圧縮回路を
実施の一形態によって説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A compression circuit according to the present invention will be described below with reference to an embodiment.

【0014】図1は本発明の実施の一形態にかかる圧縮
回路の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a compression circuit according to an embodiment of the present invention.

【0015】図1に示す本発明の実施の一形態にかかる
圧縮回路10は、圧縮比2の場合を例示している。
The compression circuit 10 according to the embodiment of the present invention shown in FIG. 1 exemplifies a case where the compression ratio is 2.

【0016】圧縮回路10は、入力信号をA/D変換器
1に供給してデジタル信号に変換し、A/D変換器1か
ら出力されるデジタル信号はデジタルシグナルプロセッ
サ等からなるコンプレッサ回路2に供給して、コンプレ
ッサ回路2において圧縮作用を行わせ、コンプレッサ回
路2において圧縮されたデジタル信号はD/A変換器3
に供給してアナログ信号に変換のうえ出力する。
A compression circuit 10 supplies an input signal to an A / D converter 1 and converts it into a digital signal. A digital signal output from the A / D converter 1 is supplied to a compressor circuit 2 comprising a digital signal processor or the like. The compressed digital signal is supplied to the compressor circuit 2 so that the digital signal is compressed by the D / A converter 3.
To convert it to an analog signal and output it.

【0017】コンプレッサ回路2は、予め定めた時間的
範囲の入力信号の絶対値を求める絶対値計算回路21と
求められた絶対値の最大レベルを検出するレベル検出回
路22とからなる絶対値レベル検出回路20と、絶対値
レベル検出回路20によって検出された絶対値レベルに
対してアタック時間、またはリリース時間に基づく処理
を行うアタック時間、リリース時間処理回路23と、ア
タック時間、リリース時間処理回路23によって処理さ
れた信号レベルとA/D変換された入力信号とを乗算し
て圧縮処理を行う圧縮演算処理回路24とを機能的に備
え、圧縮演算処理出力をD/A変換器3に送出する。
The compressor circuit 2 comprises an absolute value calculating circuit 21 for obtaining an absolute value of an input signal in a predetermined time range and a level detecting circuit 22 for detecting a maximum level of the obtained absolute value. A circuit 20, an attack time or release time processing circuit 23 for performing processing based on an attack time or a release time for the absolute value level detected by the absolute value level detection circuit 20, and an attack time and release time processing circuit 23. A compression operation processing circuit 24 for multiplying the processed signal level by the A / D converted input signal to perform a compression process is provided, and sends a compression operation processing output to the D / A converter 3.

【0018】上記のように構成された圧縮回路10の作
用を図2に示すフローチャートに基づいて、入力信号V
inを音声信号とし、かつVin=A・sinωtとし
て説明する。
The operation of the compression circuit 10 constructed as described above will be described with reference to the flow chart shown in FIG.
A description will be given assuming that in is an audio signal and Vin = A · sin ωt.

【0019】圧縮処理前における入力信号と出力信号と
の関係は図4(a)に示す如くであって、圧縮回路の基
準レベルに対応している。
The relation between the input signal and the output signal before the compression processing is as shown in FIG. 4A, and corresponds to the reference level of the compression circuit.

【0020】入力信号はA/D変換器1においてデジタ
ル信号に変換され(ステップS1)、デジタル変換され
た入力信号の絶対値が計算される(ステップS2)。こ
こで、ステップS1における処理が絶対値計算回路21
の処理に対応している。
The input signal is converted into a digital signal in the A / D converter 1 (step S1), and the absolute value of the digitally converted input signal is calculated (step S2). Here, the processing in step S1 is performed by the absolute value calculation circuit 21.
It corresponds to the processing of.

【0021】ステップS2に続いて絶対値データが所定
時間にわたってコンプレッサ回路2のメモリに保存され
る。ここで入力信号(音声信号)に必要な周波数の下限
は300Hzであるため、その半周期分(約1.67m
sec)のデータがあれば入力信号レベルの検出が可能
であることから、余裕を見て所定時間は例えば1.86
msec時間とし、1.86msecの時間にわたって
メモリに保存する(ステップS3)。ステップS3に続
いて、A/D変換のサンプリングを行う毎に前記メモリ
内の最大値を検出する(ステップS4)。
After step S2, the absolute value data is stored in the memory of the compressor circuit 2 for a predetermined time. Here, since the lower limit of the frequency required for the input signal (audio signal) is 300 Hz, it is equivalent to a half cycle thereof (about 1.67 m).
If the data of (sec) exists, the input signal level can be detected.
The time is set to msec and stored in the memory for a time of 1.86 msec (step S3). Subsequent to step S3, the maximum value in the memory is detected each time A / D conversion sampling is performed (step S4).

【0022】ここで、ステップS3およびステップS4
における処理がレベル検出回路22の処理に対応してい
る。このように絶対値を取ることによって、正側と負側
の振幅の最大レベルを正側だけで求めることができ、さ
らに、絶対値を取って最大レベルを求めるために、デジ
タル変換された入力信号データの保存時間もほぼ半周期
の時間で済むことになる。
Here, steps S3 and S4
Corresponds to the processing of the level detection circuit 22. By taking the absolute value in this way, the maximum level of the positive side and the negative side amplitude can be obtained only on the positive side, and further, in order to obtain the absolute value and obtain the maximum level, the digitally converted input signal The data storage time is also almost half a cycle.

【0023】入力信号の圧縮動作をさせる前に、コンプ
レッサ回路2の応答速度を調整して、入力信号の瞬間的
な変化に処理が追従しないように実質的に時定数を持た
せて、入力信号の瞬間的な変化を吸収させる。すなわち
ステップS4において検出された最大レベルとステップ
S7において保存されたアタック時間、リリース時間処
理後の検出レベルとが比較されてその差と変化の方向が
検出される(ステップS5)。
Before the compression operation of the input signal, the response speed of the compressor circuit 2 is adjusted so as to have a time constant substantially so that the processing does not follow an instantaneous change of the input signal. Absorb instantaneous changes in That is, the maximum level detected in step S4 is compared with the detected level after the attack time and release time processing stored in step S7, and the difference and the direction of change are detected (step S5).

【0024】ステップS5における比較の結果、ステッ
プS4において検出された最大レベルがステップS7に
おいて保存されているアタック時間、リリース時間処理
後の検出レベルより増加しておれば保存された検出レベ
ルを増加させ、減少しておれば保存された検出レベルを
減少させ、比較の結果に変化が無ければ検出レベルの増
減をさせず、こうして得られた検出レベルの値を次のサ
ンプル時の最大データと比較するために保存する(ステ
ップS6〜ステップS7)。
As a result of the comparison in step S5, if the maximum level detected in step S4 is higher than the detection level after the processing of the attack time and release time stored in step S7, the stored detection level is increased. , If it decreases, the stored detection level is reduced, and if there is no change in the comparison result, the detection level is not increased or decreased, and the value of the detection level thus obtained is compared with the maximum data at the next sample. (Step S6 to Step S7).

【0025】ここで、ステップS5〜ステップS7の処
理がアタック時間、リリース時間処理回路23の処理に
対応している。
Here, the processing of steps S5 to S7 corresponds to the processing of the attack time / release time processing circuit 23.

【0026】ステップS6における増加、減少のための
定数は、最大レベルが減少する方向に対する定数をアタ
ック時間(アタックタイム)と称し、最大レベルが増加
する方向に対する定数をリリース時間(リリースタイ
ム)と称する。ITU−T勧告に規定されている標準ア
タックタイムは3msec、標準リリースタイムは1
3.5msecであって、ステップS6においてはこの
値に設定されている。
Regarding the constants for increasing and decreasing in step S6, the constant in the direction in which the maximum level decreases is called an attack time (attack time), and the constant in the direction in which the maximum level increases is called the release time (release time). . The standard attack time specified in the ITU-T recommendation is 3 msec, and the standard release time is 1
3.5 msec, and is set to this value in step S6.

【0027】次に、圧縮回路10におけるアタック時
間、リリース時間処理について、図3によって、さらに
詳細に説明する。
Next, the attack time and release time processing in the compression circuit 10 will be described in more detail with reference to FIG.

【0028】ステップS4において検出された最大レベ
ルAと、ステップS7において保存されているアタック
時間、リリース時間処理がなされたレベルA´とのレベ
ル比較がなされ(ステップS5)、(最大レベルA−レ
ベルA´)>0か否かがチェックされる(ステップS6
1)。ステップS61において(最大レベルA−レベル
A´)>0でないと判別されると、(最大レベルA−レ
ベルA´)<0か否かがチェックされる(ステップS6
2)。ステップS62において(最大レベルA−レベル
A´)<0でないと判別されると、最大レベルA=レベ
ルA´の場合であって、ステップS62に続いて前回の
処理によるレベルA´が検出レベルとして使用されて
(ステップS63)、後記のステップS8が実行され
る。
A comparison is made between the maximum level A detected in step S4 and the level A 'subjected to the attack time and release time processing stored in step S7 (step S5). A ′)> 0 is checked (step S6)
1). If it is determined in step S61 that (maximum level A-level A ')> 0, it is checked whether (maximum level A-level A') <0 (step S6).
2). If it is determined in step S62 that (maximum level A−level A ′) <0, then it is the case of maximum level A = level A ′, and the level A ′ by the previous process is set as the detection level following step S62. Used (step S63), step S8 described below is executed.

【0029】ステップS61において、(最大レベルA
−レベルA´)>0であると判別されると、ステップS
61に続いて前回も同じ状態、すなわち(最大レベルA
−レベルA´)>0であったか、(最大レベルA=レベ
ルA´)であったか、否かがチェックされる(ステップ
S64)。ステップS64において前回も同じ状態でな
かったと判別されたときは増加率ΔAが、増加率ΔA=
{(A―A´)/リリース時間に達するサンプリング回
数}によって求められ(ステップS65)、A´=(A
´+ΔA)が演算されて(ステップS66)、ステップ
S66によって演算されたA´が新たな検出レベルとし
て保存される(ステップS7)。
In step S61, (maximum level A
If it is determined that level A ′)> 0, step S
Following 61, the same condition was also applied the previous time, ie, (maximum level A
It is checked whether (−level A ′)> 0 or (maximum level A = level A ′) (step S64). If it is determined in step S64 that the state was not the same in the previous time, the increase rate ΔA is equal to the increase rate ΔA =
It is obtained by {(A−A ′) / sampling number to reach release time} (step S65), and A ′ = (A
'+ ΔA) is calculated (step S66), and A' calculated in step S66 is stored as a new detection level (step S7).

【0030】ステップS64において前回と同じ状態で
あったと判別されたときは、ステップS65がスキップ
されて、続いてステップS66、ステップS7が実行さ
れて、演算されたA´が新たな検出レベルとして保存さ
れる。
If it is determined in step S64 that the state is the same as the previous state, step S65 is skipped, and steps S66 and S7 are executed, and the calculated A 'is stored as a new detection level. Is done.

【0031】ステップS62において、(最大レベルA
−レベルA´)<0であると判別されると、ステップS
62に続いて前回も同じ状態、すなわち(最大レベルA
−レベルA´)<0であったか、(最大レベルA=レベ
ルA´)であったか、否かがチェックされる(ステップ
S67)。ステップS67において前回は同じ状態でな
かったと判別されたときは減少率ΔAが、減少率ΔA=
{(A´−A)/アタック時間に達するサンプリング回
数}によって求められ(ステップS68)、A´=(A
´−ΔA)が演算されて(ステップS69)、ステップ
S69によって演算されたA´が新たな検出レベルとし
て保存される(ステップS7)。
In step S62, (maximum level A
-If it is determined that level A ') <0, step S
After 62, the same condition as the previous time, that is, (maximum level A
It is checked whether (−level A ′) <0 or (maximum level A = level A ′) (step S67). If it is determined in step S67 that the previous state was not the same, the decrease rate ΔA is determined as follows.
It is obtained by {(A′−A) / the number of samplings reaching the attack time} (step S68), and A ′ = (A
'-ΔA) is calculated (step S69), and A' calculated in step S69 is stored as a new detection level (step S7).

【0032】ステップS67において前回も同じ状態で
あったと判別されたときは、ステップS68がスキップ
されてステップS69、ステップS7が実行されて、演
算されたA´が新たな検出レベルとして保存される。
If it is determined in step S67 that the previous state was the same, step S68 is skipped, steps S69 and S7 are executed, and the calculated A 'is stored as a new detection level.

【0033】上記を具体的に説明すれば、ステップS6
1においてA=100mV、A´=80mVであり、前
回A=A´であったとすると、A−A´>0のために、
ステップS64において前回と同じ状態ではないと判別
されて、ステップS65において増加率ΔA=(100
mV−80mV)/10=2mVが演算される。ここで
分母の10は、10回のサンプリングによってリリース
タイム13.5msecになる場合を示している。した
がって、新A´=(旧A´+ΔA)=80mV+2mV
=82mVとなり、この82mVが新たな検出レベルと
なって、保存される。
If the above is specifically described, step S6
At 1, A = 100 mV, A ′ = 80 mV, and if A = A ′ last time, A−A ′> 0,
In step S64, it is determined that the state is not the same as the previous state, and in step S65, the increase rate ΔA = (100
mV−80 mV) / 10 = 2 mV. Here, the denominator of 10 indicates a case where the release time becomes 13.5 msec by 10 samplings. Therefore, new A ′ = (old A ′ + ΔA) = 80 mV + 2 mV
= 82 mV, and this 82 mV is stored as a new detection level.

【0034】次のステップS5の実行において、ステッ
プS61においてA=100mV、A´=(上記の新た
な検出レベル)82mVであり、前回もA(100m
V)−A´(82mV)>0であるため、ステップS6
4において前回と同じ状態であると判別されて、ステッ
プS65がスキップされて、新A´=(旧A´+ΔA)
=(82mV+2mV)=84mVとなり、この84m
Vが新たな検出レベルとなって、保存される。
In the execution of the next step S5, in step S61, A = 100 mV and A '= (the above-mentioned new detection level) 82 mV.
V) -A '(82 mV)> 0, so step S6
In step 4, it is determined that the state is the same as the previous state, step S65 is skipped, and new A ′ = (old A ′ + ΔA)
= (82mV + 2mV) = 84mV, and this 84mV
V becomes a new detection level and is stored.

【0035】次のステップS5の実行において、ステッ
プS62においてA=64mV、A´=(上記の新たな
検出レベル)84mVであり、前回はA−A´>0であ
ったとすると、A−A´<0なので前回と同じ状態では
なく、減少率が、減少率ΔA=(84mV−64mV)
/2=10mVにより演算される。ここで分母の2は、
2回のサンプリングによってアタックタイム3msec
になる場合を示している。したがって、新A´=(旧A
´+ΔA)=(84mV−10mV)=74mVとな
り、この74mVが新たな検出レベルとなって、保存さ
れる。
In the execution of the next step S5, if A = 64 mV and A '= (the above-mentioned new detection level) 84 mV in step S62, and A-A'> 0 the previous time, A-A ' Since it is <0, it is not the same state as the previous time, and the decrease rate is the decrease rate ΔA = (84 mV−64 mV)
/ 2 = 10 mV. Where the denominator 2 is
Attack time 3msec by two samplings
Is shown. Therefore, new A ′ = (old A
'+ ΔA) = (84 mV-10 mV) = 74 mV, and this 74 mV is stored as a new detection level.

【0036】次に図2に戻って説明する。ステップS6
3において使用される検出レベル、または、ステップS
7において保存された検出レベルの値の平方根を求める
圧縮演算がなされる(ステップ8)。ここで、ステップ
S63において使用される検出レベルおよびステップS
7において保存されたレベルの値はAであるため、ステ
ップS8における演算によって√Aが求められて、圧縮
比2で圧縮されることになる。この結果を模式的に示す
と図4(b)の如くになり、図4(b)において実線が
圧縮処理後の状態を模式的に示し、破線は入力信号を示
している。
Next, returning to FIG. Step S6
3 or the detection level used in step S
A compression operation for obtaining the square root of the stored detection level value is performed in step 7 (step 8). Here, the detection level used in step S63 and step S63
Since the value of the level stored in step 7 is A, √A is obtained by the calculation in step S8, and compression is performed at a compression ratio of 2. This result is schematically shown in FIG. 4B. In FIG. 4B, the solid line schematically shows the state after the compression processing, and the broken line shows the input signal.

【0037】図4(b)において示すようにステップS
8における圧縮処理後のレベルが入力信号レベルを超え
ているのは、デジタルシグナルプロセッサからなるコン
プレッサ回路2において処理される信号の大きさは(−
1〜+1)の範囲であるため、平方根演算を行うと元の
数値よりも値が大きくなるからである。
As shown in FIG.
The reason why the level after the compression processing in step S8 exceeds the input signal level is that the magnitude of the signal processed in the compressor circuit 2 including the digital signal processor is (−).
This is because the value is larger than the original value when the square root operation is performed because the value is in the range of 1 to +1).

【0038】ステップS8に続いて、基準レベルを合わ
せるための基準レベル係数αを乗算する(ステップS
9)。ここで、基準レベルとは、コンプレッサ回路20
の入力と出力とが等しくなるレベルであって、この点に
おいて入出力信号間のゲインは0dBである。ステップ
S9の実行によってα√Aが求められる。ステップS9
の実行の結果は図4(c)に示す如くである。図4
(c)において、1点鎖線はステップS8において圧縮
処理された信号レベルを示し、この圧縮処理された信号
レベルにステップS9において基準レベル係数αが乗算
されて、実線で示す圧縮信号レベルとなる。この両方の
交点が基準レベルである。図4(c)において、破線は
入力信号レベルを示している。
Subsequent to step S8, a reference level coefficient α for adjusting the reference level is multiplied (step S8).
9). Here, the reference level means the compressor circuit 20
Is a level at which the input and output of the input signal are equal, and at this point, the gain between the input and output signals is 0 dB. Α√A is obtained by executing step S9. Step S9
Is as shown in FIG. 4 (c). FIG.
In (c), the alternate long and short dash line indicates the signal level subjected to the compression processing in step S8, and the signal level subjected to the compression processing is multiplied by the reference level coefficient α in step S9 to obtain the compressed signal level indicated by the solid line. Both intersections are reference levels. In FIG. 4C, a broken line indicates an input signal level.

【0039】ステップS9の処理によって圧縮する信号
のレベルの計算はできたが、図4(c)の表示からも明
らかなように、基準レベル以下の入力信号に対して出力
信号はゲインを持つ。しかるに、デジタルシグナルプロ
セッサからなるコンプレッサ回路2では、直接的にゲイ
ンの計算はできない。これは、コンプレッサ回路2にお
いて処理される信号の大きさは(−1〜+1)の範囲で
あるためである。したがって、ゲインが1未満になるよ
うに、ステップS9に続いてステップS9における演算
結果α√Aに1/Bを乗算する(ステップS10)。ス
テップS10の実行の結果、α√A/Bとなる。ここ
で、Bは1より大きい正の数である。
Although the level of the signal to be compressed can be calculated by the processing in step S9, as is apparent from the display of FIG. 4C, the output signal has a gain for an input signal below the reference level. However, the compressor circuit 2 including the digital signal processor cannot directly calculate the gain. This is because the magnitude of the signal processed in the compressor circuit 2 is in the range of (−1 to +1). Therefore, following step S9, the calculation result α√A in step S9 is multiplied by 1 / B so that the gain is less than 1 (step S10). As a result of the execution of step S10, α√A / B. Here, B is a positive number greater than one.

【0040】この状態を図示すれば、図4(d)に示す
如く、1点鎖線で示すステップS9の演算結果が実線で
示すように1/Bされてレベルが下げられる。図4
(c)において、破線は入力信号レベルを示している。
この場合、1/Bされた結果、後記のように入力信号レ
ベルより大きいレベルの部分、すなわち、ゲインを持つ
部分は入力信号レベルの部分を採る。
As shown in FIG. 4D, the operation result of step S9 indicated by a dashed line is reduced by 1 / B as indicated by a solid line to lower the level. FIG.
In (c), the dashed line indicates the input signal level.
In this case, as a result of 1 / B, as described later, a portion having a level higher than the input signal level, that is, a portion having a gain, takes a portion of the input signal level.

【0041】ステップS10に続いて、ステップS10
における演算結果を、ステップS63、ステップS7に
おいて保存されている検出レベルAにて除算して係数を
求める(ステップS11)。ステップS11の演算の結
果、求められた係数はα√A/(A・B)=α/(B√
A)となる。ステップS11に続いて、ステップS11
にて求めた係数にA/D変換された入力信号を乗算する
(ステップS12)。ステップS12における乗算結果
は、A・sinωt・α/(B√A)=α√A・sin
ωt/Bとなる。
Following step S10, step S10
Is divided by the detection level A stored in steps S63 and S7 to obtain a coefficient (step S11). As a result of the calculation in step S11, the coefficient obtained is α√A / (AB) = α / (B√
A). Following step S11, step S11
Is multiplied by the A / D-converted input signal (step S12). The multiplication result in step S12 is A · sin ωt · α / (B√A) = α√A · sin
ωt / B.

【0042】ステップS12に続いて、ステップS10
において一旦下げたゲインを元に戻すべく、ステップS
12の演算結果にステップS10におけるBを乗算して
元の信号レベルに戻す(ステップS13)。ステップS
13による演算結果は、α√A・sinωtとなり、圧
縮による最大ゲインはB倍となる。この結果、図4
(e)に示すように、破線で示す圧縮処理前の入力信号
に対して実線で示す圧縮処理された出力信号が得られ
る。ステップS13によって得られた信号がD/A変換
器3にてアナログ信号として出力される(ステップS1
4)。
Following step S12, step S10
In step S, in order to restore the gain once lowered in step S
The calculation result of step 12 is multiplied by B in step S10 to return to the original signal level (step S13). Step S
13 results in α に よ る A · sin ωt, and the maximum gain by compression becomes B times. As a result, FIG.
As shown in (e), the input signal before the compression processing indicated by the broken line is subjected to the compression-processed output signal indicated by the solid line. The signal obtained in step S13 is output as an analog signal by the D / A converter 3 (step S1).
4).

【0043】ここで、ステップS10におけるBとして
例えば2を採用する。このようにすると圧縮による最
大ゲインは16倍となって、微少信号のゲインが落ちて
しまうが、実際に測定した結果、16倍のゲインとなる
信号(入力信号で約10Hz)は微弱であり、ノイズ成
分の圧縮によるS/N悪化を防ぐため、16倍を圧縮に
よるゲインの最大としても、不都合はなかった。
[0043] Here, adopting as the B example 2 4 in step S10. In this case, the maximum gain due to the compression becomes 16 times, and the gain of the small signal decreases. However, as a result of the actual measurement, the signal having the gain of 16 times (about 10 Hz for the input signal) is weak. In order to prevent the S / N from deteriorating due to the compression of the noise component, there was no inconvenience even if the gain by compression was set to a maximum of 16 times.

【0044】[0044]

【発明の効果】以上説明したように本発明にかかる圧縮
回路によれば、デジタル信号処理によって圧縮演算を行
うことができて、部品の電気特性のバラツキ、周囲温度
変化による特性の変化のない圧縮回路が得られる。
As described above, according to the compression circuit of the present invention, the compression operation can be performed by digital signal processing, and the compression can be performed without variation in the electrical characteristics of the components and no change in the characteristics due to a change in the ambient temperature. A circuit is obtained.

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

【図1】本発明の実施の一形態にかかる圧縮回路の構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a compression circuit according to an embodiment of the present invention.

【図2】本発明の実施の一形態にかかる圧縮回路の作用
の説明に供するフローチャートである。
FIG. 2 is a flowchart for explaining an operation of the compression circuit according to the embodiment of the present invention;

【図3】本発明の実施の一形態にかかる圧縮回路におけ
るアタック時間、リリース時間処理の説明に供するフロ
ーチャートである。
FIG. 3 is a flowchart for explaining an attack time and release time process in the compression circuit according to the embodiment of the present invention;

【図4】本発明の実施の一形態にかかる圧縮回路の作用
の説明に供する説明図である。
FIG. 4 is an explanatory diagram for explaining an operation of the compression circuit according to the embodiment of the present invention;

【図5】従来の圧縮回路の回路図である。FIG. 5 is a circuit diagram of a conventional compression circuit.

【符号の説明】[Explanation of symbols]

1 A/D変換器 2 コンプレッサ回路 3 D/A変換器 10 圧縮回路 20 絶対値レベル検出回路 21 絶対値計算回路 22 レベル検出回路 23 アタック時間、リリース時間処理回路 24 圧縮演算処理回路 DESCRIPTION OF SYMBOLS 1 A / D converter 2 Compressor circuit 3 D / A converter 10 Compression circuit 20 Absolute value level detection circuit 21 Absolute value calculation circuit 22 Level detection circuit 23 Attack time and release time processing circuit 24 Compression arithmetic processing circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】入力信号を圧縮する圧縮回路であって、入
力信号をA/D変換するA/D変換手段と、A/D変換
出力の絶対値を求める絶対値計算手段と、絶対値計算手
段によって求めた入力信号の少なくとも半周期分にわた
る絶対値中の最大値を検出するレベル検出手段とを備
え、レベル検出手段によって検出した最大値を元にして
圧縮演算をすることを特徴とする圧縮回路。
1. A compression circuit for compressing an input signal, A / D conversion means for A / D converting the input signal, absolute value calculation means for obtaining an absolute value of an A / D conversion output, and absolute value calculation Level detecting means for detecting a maximum value in an absolute value of at least a half cycle of the input signal obtained by the means, and performing a compression operation based on the maximum value detected by the level detecting means. circuit.
【請求項2】請求項1記載の圧縮回路において、レベル
検出手段によって検出した最大値と1サンプル前の検出
レベルの値とを比較した結果の変化量、変化の方向およ
び予め定めたアタック時間およびリリース時間に基づく
変化分を前記最大値に加えて1サンプル前の検出レベル
とするアタック時間、リリース時間処理手段を備えて、
アタック時間処理、リリース時間処理された検出レベル
の値を元にして圧縮演算をすることを特徴とする圧縮回
路。
2. The compression circuit according to claim 1, wherein the amount of change, the direction of change, the predetermined attack time, and the amount of change obtained as a result of comparing the maximum value detected by the level detection means with the value of the detection level one sample before. Attack time and release time processing means for adding a change based on the release time to the maximum value and the detection level one sample before, comprising:
A compression circuit for performing a compression operation based on a detection level value subjected to attack time processing and release time processing.
【請求項3】請求項1記載の圧縮回路において、レベル
検出手段によって検出した最大値に対して圧縮比に基づ
く圧縮処理を行い、該圧縮処理の結果に値1/B(Bは
1よりも大きい正の数)を乗算し、該乗算の結果を前記
最大値で除算し、該除算の結果に対しA/D変換された
入力信号を乗算し、この乗算結果に値Bを乗算して圧縮
演算することを特徴とする圧縮回路。
3. A compression circuit according to claim 1, wherein the maximum value detected by the level detection means is subjected to a compression process based on a compression ratio, and a value of 1 / B (B is larger than 1) is obtained as a result of the compression process. A large positive number), divide the result of the multiplication by the maximum value, multiply the result of the division by the A / D-converted input signal, and multiply the result of the multiplication by the value B for compression. A compression circuit characterized by performing an operation.
JP2000157534A 2000-05-29 2000-05-29 Compression circuit Expired - Lifetime JP3679310B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000157534A JP3679310B2 (en) 2000-05-29 2000-05-29 Compression circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000157534A JP3679310B2 (en) 2000-05-29 2000-05-29 Compression circuit

Publications (2)

Publication Number Publication Date
JP2001339306A true JP2001339306A (en) 2001-12-07
JP3679310B2 JP3679310B2 (en) 2005-08-03

Family

ID=18662152

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000157534A Expired - Lifetime JP3679310B2 (en) 2000-05-29 2000-05-29 Compression circuit

Country Status (1)

Country Link
JP (1) JP3679310B2 (en)

Also Published As

Publication number Publication date
JP3679310B2 (en) 2005-08-03

Similar Documents

Publication Publication Date Title
JP2007133035A (en) Digital sound recording device, digital sound recording method, and program and storage medium thereof
US20050147262A1 (en) Method for decreasing the dynamic range of a signal and electronic circuit
JP2003083763A (en) Correcting method for self noise and device using the same
US5923768A (en) Digital audio processing
JP3679310B2 (en) Compression circuit
JP3870005B2 (en) Expansion circuit
US6782335B1 (en) Method and system for estimating input power in a cable modem network
CN112866877B (en) Speaker control method, speaker control device, electronic apparatus, and storage medium
CN114094966A (en) Dynamic range control circuit, audio processing chip and audio processing method thereof
JP2681957B2 (en) Digital signal processor
JP2002299975A (en) Digital AGC device
CN114125658A (en) Dynamic range control circuit, audio processing chip and audio processing method thereof
JP4003580B2 (en) Vibration wave determination device
US6748092B1 (en) Hearing aid with improved percentile estimator
JP2681956B2 (en) Envelope detection method for digital signal processor
JP2004173173A (en) Audio processing device
JP2001165766A (en) Device for evaluating loudness of unsteady noise
CN109462809B (en) Power amplifier detection method and system
JP3004389B2 (en) Digital compressor
JP3278864B2 (en) Digital auto gain controller
JP4106622B2 (en) VOX circuit
KR100531776B1 (en) How to set the gain of the amplifier according to the user
JPH06164275A (en) Signal processor
JPH0894731A (en) Method and apparatus for detecting sound source direction
JPH08125475A (en) Linear clipper method and apparatus

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040611

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20040820

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040913

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041110

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050419

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050512

R150 Certificate of patent or registration of utility model

Ref document number: 3679310

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080520

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090520

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100520

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100520

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110520

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110520

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120520

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120520

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120520

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130520

Year of fee payment: 8

EXPY Cancellation because of completion of term