JP2617207B2 - Adaptive differential pulse code modulation encoding / decoding device - Google Patents

Adaptive differential pulse code modulation encoding / decoding device

Info

Publication number
JP2617207B2
JP2617207B2 JP63133572A JP13357288A JP2617207B2 JP 2617207 B2 JP2617207 B2 JP 2617207B2 JP 63133572 A JP63133572 A JP 63133572A JP 13357288 A JP13357288 A JP 13357288A JP 2617207 B2 JP2617207 B2 JP 2617207B2
Authority
JP
Japan
Prior art keywords
output
input
encoding
control signal
analog
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 - Fee Related
Application number
JP63133572A
Other languages
Japanese (ja)
Other versions
JPH01302400A (en
Inventor
正男 竹内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP63133572A priority Critical patent/JP2617207B2/en
Publication of JPH01302400A publication Critical patent/JPH01302400A/en
Application granted granted Critical
Publication of JP2617207B2 publication Critical patent/JP2617207B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、固体録音再生システム、電話ディジタル回
線の伝送システム等に使用されるもので、音声や画像等
のアナログ波形から適応型差分パルス符号変調符号への
変換、及びその逆変換を行う適応型差分パルス符号変調
(以下、ADPCMという)符号化復号化装置に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION (Industrial application field) The present invention is used for a solid-state recording / reproducing system, a transmission system of a telephone digital line, and the like. The present invention relates to an adaptive differential pulse code modulation (hereinafter, referred to as ADPCM) encoding / decoding device for performing conversion into a modulation code and inverse conversion thereof.

(従来の技術) 従来、この種のADPCM符号化復号化装置としては、沖
電気研究開発、47[1](昭和55年1月1日)沖電気工
業株式会社、P.61−66に記載されるものがあった。以
下、その構成を図を用いて説明する。
(Prior Art) Conventionally, this type of ADPCM encoding / decoding device is described in Oki Electric R & D, 47 [1] (January 1, 1980) Oki Electric Industry Co., Ltd., pp. 61-66. There was something to be done. Hereinafter, the configuration will be described with reference to the drawings.

第2図は、従来のADPCM符号化復号化装置の一構成例
を示すブロック図である。
FIG. 2 is a block diagram showing a configuration example of a conventional ADPCM encoding / decoding device.

このADPCM符号化復号化装置は、音声や画像等のアナ
ログ波形を入力する入力端子1を有し、その入力端子1
には、サンプル・ホールド回路2、アナログ/ディジタ
ル変換器(以下、A/D変換器という)3、ディジタル型
減算器4、及びディジタル信号をADPCM符号に変換する
ための符号化器5が縦続接続されている。符号化器5の
出力側は、量子化幅器6を介して該符号化器5の入力側
に接続されると共に、ADPCM符号の入出力端子7に接続
されている。符号化器5及び量子化幅器6の各出力側に
は、ADPCM符号をディジタル信号に変換するための復号
化器8が接続され、さらにその復号化器8の出力側に、
加算器9、データ格納用のレジスタ10、ディジタル/ア
ナログ変換器(以下、D/A変換器という)11、及びアナ
ログ再生波形用の出力端子12がそれぞれ縦続接続されて
いる。またレジスタ10の出力側は、減算器4及び加算器
9に接続されている。
This ADPCM encoding / decoding apparatus has an input terminal 1 for inputting an analog waveform such as audio or image.
Includes a sample-and-hold circuit 2, an analog / digital converter (hereinafter, referred to as an A / D converter) 3, a digital subtractor 4, and an encoder 5 for converting a digital signal into an ADPCM code. Have been. The output side of the encoder 5 is connected to the input side of the encoder 5 via the quantizer 6 and to the input / output terminal 7 of the ADPCM code. A decoder 8 for converting an ADPCM code into a digital signal is connected to each output side of the encoder 5 and the quantization width unit 6, and further, an output side of the decoder 8 is
An adder 9, a data storage register 10, a digital / analog converter (hereinafter, referred to as a D / A converter) 11, and an analog reproduction waveform output terminal 12 are connected in cascade. The output side of the register 10 is connected to the subtractor 4 and the adder 9.

次に、このADPCM符号化復号化装置の動作を、(i)
符号化装置として動作する場合と、(ii)復号化装置と
して動作する場合とに分けて説明する。
Next, the operation of the ADPCM encoder / decoder is described in (i)
The case of operating as an encoding device and the case of (ii) operating as a decoding device will be described separately.

(i) 符号化装置として動作する場合 入力端子1より入力された音声や画像等のアナログ波
形は、サンプル・ホールド回路2により、波形の波高値
が所定のシンプリング周期毎に変化する段階波形に変え
られ、A/D変換器3に入力される。A/D変換器3は、入力
された段階波形を各段階毎にディジタル信号に変換す
る。このディジタル信号は、パルス符号変調(以下、PC
Mという)された信号であるため、以下、入力PCM符号と
いう。ここで、所定のサンプリング周期毎に得られた入
力PCM符号のうち、n番目の入力PCM符号をXnとする。入
力PCM符号Xnと、レジスタ10より出力されるPCM再生値
n-1とは、減算器4に与えられ、その減算器4で両入力
の差分dnがとられ、その差分値dnが符号化器5に与えら
れる。差分値dn(1)式で与えられる。
(I) In the case of operating as an encoding device The analog waveform such as voice or image input from the input terminal 1 is converted into a step waveform in which the peak value of the waveform changes every predetermined sampling cycle by the sample and hold circuit 2. It is changed and input to the A / D converter 3. The A / D converter 3 converts the input step waveform into a digital signal for each step. This digital signal is pulse code modulated (hereinafter referred to as PC
The signal is referred to as “input PCM code” hereinafter. Here, among the input PCM codes obtained for each predetermined sampling period, the n-th input PCM code is defined as Xn . Input PCM code Xn and PCM playback value output from register 10
The n-1, given to a subtracter 4, its subtractor 4 difference d n of the two inputs is taken, the difference value d n is given to the encoder 5. The difference value is given by d n (1).

dn=Xnn-1 …(1) 符号化器5は、差分値dnと、量子化幅器6からの出力
信号である量子化幅値Δ入力信号として受け、ADPCM
符号Ln出力する。
d n = X n - n- 1 ... (1) encoder 5 receives the difference value d n, as the quantization width value delta n input signals as the output signals from the quantization width unit 6, ADPCM
To code L n output.

ここで、符号化器5が例えば4ビットのADPCM符号Ln
を作り出す過程を説明する。4ビットのADPCM符号L
nは、重要性の順にLn1,Ln2,Ln3,Ln4のディジタル符号
(1または0)で表記されるものとする。まず、差分値
dnが正の値(0を含む)か、負の値かを調べ、ADPCM符
号Ln1を決定する。例えば、正の値であればLn1=0、負
の値であればLn1=1となる。この算出式を(2)式に
示す。
Here, the encoder 5 is, for example, a 4-bit ADPCM code L n
The process of creating is described. 4-bit ADPCM code L
n is represented by a digital code (1 or 0) of L n1 , L n2 , L n3 , L n4 in order of importance. First, the difference value
It checks whether d n is a positive value (including 0) or a negative value, and determines the ADPCM code L n1 . For example, if the value is positive, L n1 = 0, and if the value is negative, L n1 = 1. This calculation equation is shown in equation (2).

次に、差分値dn絶対値|dn|と量子化幅値Δの比較を
行う。|dn|とΔn/2の大小比較をした結果Ln2が決定する
様子を(3)式に示す。
Then, the difference value d n absolute value | for comparing the quantization width value delta n | d n. Expression (3) shows how L n2 is determined as a result of magnitude comparison between | d n | and Δn / 2.

絶対値|dn|と、(3)式によって得られたLn2にΔn/2
を乗算したものに、更にΔn/4を加算した値(Ln2×Δn/
2+Δn/4)とを大小比較して、その結果によりLn3が決
定する様子を(4)式に示す。
The absolute value | d n | a, (3) delta to L n2 obtained by expression n / 2
, And a value obtained by adding Δ n / 4 (L n2 × Δ n /
2 + delta n / 4) and then compares the illustrates that L n3 is determined by the results in (4) below.

絶対値|dn|と、(4)式によって得られたLn3にΔn/4
を乗算したものに、更にΔn/8を加算した値(Ln2×Δn/
2+Ln3×Δn/4+Δn/8)とを大小比較して、その結果に
よりLn4が決定する様子を(5)式に示す。
Δ n / 4 is added to the absolute value | d n | and L n3 obtained by equation (4).
And a value obtained by adding Δ n / 8 to the product (L n2 × Δ n /
2 + L n3 × Δ n / 4 + Δ n / 8) and by magnitude comparison are shown in state (5) formula L n4 is determined by the result.

このように符号化器5により得られたADPCM符号Ln(L
n1,Ln2,Ln3,Ln4)は、入出力端子7から出力されると共
に、復号化器8に入力される。復号化器8は、他の入力
として量子化幅器6より出力される量子化幅値Δを受
けて差分復調器qnを算出し、それを加算器9に与える。
差分復調値qnを算出する基本式を(6)式に示す。
The ADPCM code L n (L
n1 , Ln2 , Ln3 , Ln4 ) are output from the input / output terminal 7 and input to the decoder 8. Decoder 8 calculates the difference demodulator q n receives the quantization width value delta n outputted from the quantization width unit 6 as another input, give it to the adder 9.
The basic formula for calculating the difference demodulated values q n shown in equation (6).

qn=Δ×(Ln+1/16) …(6) また、Ln1〜Ln4を用いたqnの算出式を(7)に示す。 q n = Δ n × (L n +1/16) ... (6) also shows a calculation formula for q n with L n1 ~L n4 (7).

加算器9は、(8)式に示すように、差分復調値q
nと、レジスタ10より出力されるPCM再生値n-1とを加
算して新規のPCM再生値を出力し、それをレジスタ1
0に格納させる。n-1+qn …(8) 一方、符号化器5から出力されるADPCM符号Lnは、量
子化幅器6に入力される。量子化幅器6では(9)式に
示すように、ADPCM符号Lnにより定められる係数M
(Ln)と、量子化幅値Δとを乗算してΔn+1を形成す
る。
The adder 9 calculates the difference demodulated value q as shown in Expression (8).
n and the PCM playback value n-1 output from the register 10 are added to output a new PCM playback value n , which is then stored in the register 1
Store to 0. n = n-1 + q n ... (8) On the other hand, ADPCM code L n that is output from the encoder 5 is inputted to the quantization width unit 6. In the quantization width unit 6, as shown in Expression (9), the coefficient M determined by the ADPCM code L n
(L n) and to form a delta n + 1 by multiplying the quantization width value delta n.

Δn+1=Δ×M(Ln) …(9) 以上が、N番目の入力PCM符号Xnにより実行される過
程であるが、次のサンプリング周期(N+1)番目にお
いても、全く同様な過程を経てADPCM符号Ln+1が形成さ
れる。
Δ n + 1 = Δ n × M (L n ) (9) The above is the process executed by the N-th input PCM code X n , but the same applies to the next sampling period (N + 1) -th. The ADPCM code Ln + 1 is formed through the following steps.

(ii) 復号化装置として動作する場合 ADPCM符号Lnは、入出力端子7より復号化器8に入力
される。復号化器8は、他の入力そして量子化幅器6よ
り出力される量子化幅値Δを受けて差分復調値qnを算
出し、その値qnを加算器9に与える。差分復調値qnを算
出する基本式を(10)式に示す。この(10)式は前記
(6)式と同じである。
ADPCM code L n when acting as (ii) decoding apparatus is input to the decoder 8 from output terminal 7. Decoder 8, the other input and receiving the quantization width value delta n outputted from the quantization width unit 6 calculates the difference demodulated values q n, and gives the value q n to adder 9. The basic formula for calculating the difference demodulated values q n shown in equation (10). The equation (10) is the same as the equation (6).

qn=Δ×(Ln+1/16) …(10) 加算器9は(11)式に示すように、差分復調値qnと、
レジスタ10より出力されるPCM再生値n-1とを加算して
新規のPCM再生値を出力し、それをレジスタ10に格
納させる。n-1+qn …(11) 更新されたレジスタ10のPCM再生値Xnは、D/A変換器11
によりアナログ再生波形に変換され、出力端子12より出
力される。
q n = Δ n × (L n +1/16) ... (10) adder 9 as shown in (11), a differential demodulation value q n,
The PCM reproduction value n-1 output from the register 10 is added to output a new PCM reproduction value n , which is stored in the register 10. n = n-1 + q n ... (11) PCM reproduction values X n of the updated register 10, D / A converter 11
Is converted into an analog reproduction waveform, and output from the output terminal 12.

一方、入出力端子7より入力されたADPCM符号Lnは、
量子化幅器6に供給され、その量子化幅器6により、前
記(9)式に示したような新規の量子化幅値Δn+1が作
られる。
On the other hand, the ADPCM code L n input from the input / output terminal 7 is
It is supplied to the quantization width unit 6, and the quantization width unit 6 creates a new quantization width value Δn + 1 as shown in the above equation (9).

以上が、n番目の入力ADPCM符号Lnにより実行される
過程であるが、以下同様な過程を経て出力端子12よりア
ナログ再生波形が順次出力される。
The above is a process executed by the n-th input ADPCM code L n, the analog reproduction waveform are sequentially output from an output terminal 12 through a similar process follows.

(発明が解決しようとする課題) しかしながら、上記構成の装置では、次のような課題
があった。
(Problems to be Solved by the Invention) However, the apparatus having the above configuration has the following problems.

第2図のADPCM符号化復号化装置においては、一般にA
/D変換器3によるアナログ波形からディジタル信号(入
力PCM符号)への変換時、符号化器5によるディジタル
信号(入力PCM符号)からADPCM符号への変換時、復号化
器8によるADPCM符号からディジタル信号(PCM符号)へ
の変換時、及びD/A変換器11によるディジタル信号(PCM
符号)からアナログ再生波形への変換時にそれぞれ信号
歪が生じる。このような信号歪は再生音品質や再生画像
品質等の悪影響を与えるため、可能な限り低減すること
が望ましいが、回路規模を大型化することなく、前記の
ような信号変換歪を例えば2〜3%以下にすることが極
めて困難であった。
In the ADPCM encoding / decoding apparatus shown in FIG.
At the time of conversion from an analog waveform to a digital signal (input PCM code) by the / D converter 3, at the time of conversion from a digital signal (input PCM code) by the encoder 5 to an ADPCM code, conversion from the ADPCM code by the decoder 8 to digital When converting to a digital signal (PCM code) by the D / A converter 11
(Sign) to an analog reproduction waveform, respectively, causes signal distortion. Since such signal distortion has an adverse effect on reproduced sound quality and reproduced image quality, it is desirable to reduce the signal distortion as much as possible. It was extremely difficult to reduce the content to 3% or less.

信号変換歪を減少させる一つの方法として、A/D変換
器3及びD/A変換器11の分解能を、例えば8ビットから1
2ビットへというように向上させて信号変換歪を減少さ
せることも考えられるが、回路規模が大きくなって装置
のコスト上昇を招くという弊害があった。
As one method for reducing the signal conversion distortion, the resolution of the A / D converter 3 and the D / A converter 11 is set, for example, from 8 bits to 1 bit.
Although it is conceivable to reduce the signal conversion distortion by increasing the signal conversion to two bits, there is a problem that the circuit scale is increased and the cost of the device is increased.

本発明は、前記従来技術が持っていた課題として、回
路規模の大型化によって装置のコストを高くすることな
く、信号変換歪を減少させることが困難である点につい
て解決したADPCM符号化復号化装置を提供するものであ
る。
The present invention provides an ADPCM encoding / decoding apparatus which solves the problem of the prior art that it is difficult to reduce signal conversion distortion without increasing the cost of the apparatus due to an increase in circuit scale. Is provided.

(課題を解決するための手段) 前記課題を解決するために、第1の発明は、アナログ
波形をADPCM符号に符号化し、かつADPCM符号を復号化す
るADPCM符号化復号化装置に於て、アナログ波形をサン
プリングしてそれを一定時間保持するサンプル・ホール
ド回路と、加算器が出力するPCM再生値からなる加算結
果をアナログ再生値に変換するD/A変換器と、前記サン
プル・ホールド回路の出力と前記D/A変換器の出力とを
比較してそれに応じた信号を出力するアナログ比較器
と、前記アナログ比較器の出力を格納する第1のレジス
タと、符号化過程で前記第1のレジスタの出力であるAD
PCM符号を出力し、復号化過程で外部よりADPCM符号を入
力する入出力端子と、符号化過程で、前記アナログ比較
器の出力を入力し、前記アナログ比較器の出力に基づい
て第1の制御信号及び第2の制御信号を出力し、復号化
過程で、前記外部より入力されたADPCM符号を入力し、
それに基づいて第3の制御信号及び第4の制御信号を出
力する符号化制御回路と、符号化過程で、前記第1の制
御信号と前記第1のレジスタの出力とを入力し、それに
基づいて所定の量子化幅を生成し、復号化過程で、前記
第3の制御信号と前記外部より入力されたADPCM符号と
を入力し、それに基づいて所定の量子化幅を生成する量
子化幅器と、符号化過程で前記第2の制御信号に基づい
て前記加算器が出力する加算結果を格納し、復号化過程
で前記第4の制御信号に基づいて前記加算器が出力する
加算結果を格納する第2のレジスタと、前記量子化幅器
の出力と前記第2のレジスタの出力とを加算して加算結
果を出力する前記加算器とを、備えている。
(Means for Solving the Problems) In order to solve the above problems, a first aspect of the present invention provides an ADPCM encoding / decoding device which encodes an analog waveform into an ADPCM code and decodes the ADPCM code. A sample and hold circuit that samples a waveform and holds it for a certain period of time, a D / A converter that converts an addition result consisting of a PCM reproduction value output by an adder to an analog reproduction value, and an output of the sample and hold circuit And an analog comparator for comparing the output of the D / A converter and outputting a signal corresponding thereto, a first register for storing the output of the analog comparator, and the first register for encoding. AD which is the output of
An input / output terminal for outputting a PCM code and externally inputting an ADPCM code in a decoding process, and inputting an output of the analog comparator in a coding process, and performing first control based on an output of the analog comparator. Outputting a signal and a second control signal, and inputting the externally input ADPCM code in a decoding process;
An encoding control circuit for outputting a third control signal and a fourth control signal based thereon, and an input of the first control signal and the output of the first register in an encoding process, and A quantization width generator that generates a predetermined quantization width, receives the third control signal and the externally input ADPCM code in a decoding process, and generates a predetermined quantization width based on the input; Storing an addition result output from the adder based on the second control signal in an encoding process, and storing an addition result output from the adder based on the fourth control signal in a decoding process. A second register; and the adder that adds an output of the quantization width unit and an output of the second register and outputs an addition result.

第2の発明は、アナログ波形をADPCM符号に符号化
し、かつADPCM符号を復号化するADPCM符号化復号化装置
に於て、アナログ波形をサンプリングしてそれを一定時
間保持するサンプル・ホールド回路と、加算器が出力す
るPCM再生値からなる加算結果をアナログ再生値に変換
するD/A変換器と、前記サンプル・ホールド回路の出力
と前記D/A変換器の出力とを比較してそれに応じた信号
を出力するアナログ比較器と、符号化過程で、前記アナ
ログ比較器の出力であるADPCM符号を出力し、復号化過
程で外部よりADPCM符号を入力する入出力端子と、符号
化過程で前記アナログ比較器の出力を入力し、前記アナ
ログ比較器の出力に基づいて第1の制御信号及び第2の
制御信号を出力し、復号化過程で、前記外部より入力さ
れたADPCM符号を入力し、それに基づいて第3の制御信
号及び第4の制御信号を出力する符号化制御回路と、符
号化過程で、前記第1の制御信号と前記アナログ比較器
の出力とを入力し、それに基づいて所定の量子化幅を生
成し、復号化過程で、前記第3の制御信号と前記外部よ
り入力されたADPCM符号とを入力し、それに基づいて所
定の量子化幅を生成する量子化幅器と、符号化過程で前
記第2の制御信号に基づいて前記加算器が出力する加算
結果を格納し、復号化過程で前記第4の制御信号に基づ
いて前記加算器が出力する加算結果を格納するレジスタ
と、前記量子化幅器の出力と前記レジスタの出力とを加
算して加算結果を出力する前記加算器とを、備えてい
る。
According to a second aspect of the present invention, there is provided an ADPCM encoding / decoding device which encodes an analog waveform into an ADPCM code and decodes the ADPCM code. A D / A converter that converts the addition result consisting of the PCM playback value output by the adder to an analog playback value, and compares the output of the sample and hold circuit with the output of the D / A converter and responds accordingly. An analog comparator that outputs a signal, an input / output terminal that outputs an ADPCM code that is an output of the analog comparator in a coding process, and inputs an ADPCM code from the outside in a decoding process, and the analog in a coding process. An output of a comparator is input, a first control signal and a second control signal are output based on an output of the analog comparator, and an ADPCM code input from the outside is input in a decoding process. Based on And a coding control circuit for outputting a control signal and a fourth control signal, and in a coding process, the first control signal and the output of the analog comparator, and a predetermined quantization width is set based on the input. Generating and decoding, in the decoding step, the third control signal and the externally input ADPCM code, and a quantization width generator for generating a predetermined quantization width based thereon; and A register for storing an addition result output from the adder based on a second control signal, and storing an addition result output from the adder based on the fourth control signal in a decoding process; The adder for adding the output of the width unit and the output of the register and outputting an addition result.

(作 用) 第1の発明によれは、以上のようにADPCM符号化復号
化装置を構成したので、アナログ波形を符号化する場
合、このアナログ波形がサンプル・ホールド回路でサン
プリングされ、アナログ比較器へ送られ、このアナログ
比較器の出力が第1のレジスタに格納される。量子化幅
器では、符号化制御回路からの第1の制御信号と第1の
レジスタの出力とを入力し、所定の量子化幅を生成す
る。この量子化幅と第2のレジスタの出力とが、加算器
で加算され、この加算結果であるPCM再生値がD/A変換器
でアナログ再生値に変換され、アナログ比較器へフィー
ドバック入力される。アナログ比較器は、サンプル・ホ
ールド回路の出力とアナログ再生値とを比較してそれに
応じたADPCM符号を出力し、このADPCM符号が第1のレジ
スタを介して入出力端子から出力される。
(Operation) According to the first invention, since the ADPCM encoding / decoding device is configured as described above, when encoding an analog waveform, the analog waveform is sampled by the sample / hold circuit, and the analog comparator is sampled. And the output of the analog comparator is stored in the first register. The quantization width unit receives the first control signal from the encoding control circuit and the output of the first register and generates a predetermined quantization width. This quantization width and the output of the second register are added by an adder, and the PCM reproduction value that is the result of the addition is converted into an analog reproduction value by a D / A converter, and fed back to an analog comparator. . The analog comparator compares the output of the sample and hold circuit with the analog reproduction value and outputs an ADPCM code corresponding to the output, and the ADPCM code is output from the input / output terminal via the first register.

外部より入出力端子に入力されるADPCM符号を復号化
する場合、量子化幅器では、符号化制御回路からの第3
の制御信号と、外部より入力されたADPCM符号とに基づ
き、所定の量子化幅を生成する。この量子化幅と第2の
レジスタの出力とが、加算器で加算され、この加算結果
であるPCM再生値がD/A変換器でアナログ再生値に変換さ
れて出力される。
When decoding the ADPCM code input from the outside to the input / output terminal, the quantization width unit uses the third signal from the coding control circuit.
, And a predetermined quantization width is generated based on the control signal and the ADPCM code input from the outside. The quantization width and the output of the second register are added by an adder, and the PCM reproduction value that is the result of the addition is converted into an analog reproduction value by a D / A converter and output.

第2の発明によれば、アナログ波形を符号化する場
合、このアナログ波形がサンプル・ホールド回路でサン
プリングされ、アナログ比較器へ送られる。量子化幅器
では、符号化制御回路からの第1の制御信号とアナログ
比較器の出力とを入力し、所定の量子化幅を生成する。
この量子化幅とレジスタの出力とが、加算器で加算さ
れ、この加算結果であるPCM再生値がD/A変換器でアナロ
グ再生値に変換され、アナログ比較器へフィードバック
入力される。アナログ比較器は、サンプル・ホールド回
路の出力とアナログ再生値とを比較してそれに応じたAD
PCM符号を出力し、このADPCM符号が入出力端子から出力
される。
According to the second aspect, when encoding an analog waveform, the analog waveform is sampled by the sample and hold circuit and sent to the analog comparator. The quantization width unit receives the first control signal from the encoding control circuit and the output of the analog comparator, and generates a predetermined quantization width.
The quantization width and the output of the register are added by an adder, and the PCM reproduction value as the result of the addition is converted into an analog reproduction value by a D / A converter, and is fed back to an analog comparator. The analog comparator compares the output of the sample-and-hold circuit with the analog reproduction value, and
The PCM code is output, and the ADPCM code is output from the input / output terminal.

外部よ入出力端子に入力されるADPCM符号を復号化す
る場合、量子化幅器では、符号化制御回路からの第3の
制御信号と、外部より入力されたADPCM符号とに基づ
き、所定の量子化幅を生成する。この量子化幅とレジス
タの出力とが、加算器で加算され、この加算結果である
PCM再生値がD/A変換器でアナログ再生値に変換されて出
力される。
When decoding the ADPCM code input to the input / output terminal from the outside, the quantization width unit determines a predetermined quantization based on the third control signal from the coding control circuit and the ADPCM code input from the outside. Generate a pass width. The quantization width and the output of the register are added by an adder, and the result of the addition is obtained.
The PCM playback value is converted to an analog playback value by a D / A converter and output.

(実施例) 第1図は、本発明の一実施例を示すADPCM符号化復号
化装置の構成ブロック図である。
(Embodiment) FIG. 1 is a block diagram showing the configuration of an ADPCM encoding / decoding apparatus according to an embodiment of the present invention.

このADPCM符号化復号化装置は、例えばMOSトランジス
タ等で構成され、タイミング制御信号発生回路20から出
力されるタイミング制御信号a〜eにより全体の動作が
制御される装置である。ADPCM符号化復号化装置は、音
声や画像等のアナログ波形Ainを入力する入力端子21を
有し、その入力端子21には、タイミング制御信号aによ
りアナログ信号Ainをサンプリングしてそれを一定時間
保持するサンプル・ホールド回路22が接続され、その回
路22の出力信号S22が出力信号S30と共にアナログ比較器
23に入力されるようになっている。アナログ比較器23
は、両出力信号S22,S30を比較してそれに応じたADPCM符
号からなる出力信号S23を出力する回路であり、その出
力信号S23が第1のレジスタ24に入力されるようになっ
ている。
This ADPCM encoding / decoding device is a device which is composed of, for example, a MOS transistor or the like, and whose overall operation is controlled by timing control signals a to e output from the timing control signal generation circuit 20. The ADPCM encoding / decoding device has an input terminal 21 for inputting an analog waveform A in such as audio or image, and the input terminal 21 samples the analog signal A in by a timing control signal a and makes it constant. The sample hold circuit 22 for holding time is connected, and the output signal S22 of the circuit 22 is output together with the output signal S30 to the analog comparator.
23 is entered. Analog comparator 23
Is a circuit that compares the two output signals S22 and S30 and outputs an output signal S23 composed of an ADPCM code corresponding to the output signals S22 and S30. The output signal S23 is input to the first register 24.

第1のレジスタ24は、タイミング制御信号bにより出
力信号S23を格納する回路であり、その出力側がADPCM符
号の入出力端子25、符号化制御回路26、及び量子化幅器
27に接続されている。符号化制御回路26はタイミング制
御信号Cに基づき、符号化過程ではアナログ比較器23の
出力信号S23を入力し、復号化過程ではADPCM符号を入力
して符号化制御のための制御信号S26a,S26bを出力する
回路である。量子化幅器27はタイミング制御信号dによ
り動作が制御されるもので、第1のレジスタ24の出力信
号、または復号化過程のADPCM符号を入力して制御信号S
26aに基づき所定の量子化幅を生成する回路であり、そ
の出力信号S27が第2のレジスタ29の出力信号S29と共に
加算器28に入力されるようになっている。加算器28の出
力信号S28は、第2のレジスタ29及びD/A変換器30の入力
側に入力されるようになっている。
The first register 24 is a circuit for storing the output signal S23 in accordance with the timing control signal b, and its output side is an input / output terminal 25 of an ADPCM code, an encoding control circuit 26, and a
Connected to 27. The encoding control circuit 26 receives the output signal S23 of the analog comparator 23 in the encoding process based on the timing control signal C, and inputs the ADPCM code in the decoding process to control signals S26a and S26b for encoding control. Is a circuit that outputs. The operation of the quantizer 27 is controlled by the timing control signal d. The output signal of the first register 24 or the ADPCM code in the decoding process is input to the control signal S.
This circuit generates a predetermined quantization width based on 26a, and its output signal S27 is input to the adder 28 together with the output signal S29 of the second register 29. The output signal S28 of the adder 28 is input to the second register 29 and the input side of the D / A converter 30.

加算器28は、量子化幅器27の出力信号S27の第2のレ
ジスタ29の出力信号S29とを加算し、PCM再生値からなる
出力信号S28を第2のレジスタ29及びD/A変換器30に与え
る回路である。第2のレジスタ29は制御信号S26bに基づ
き、加算器28の出力信号S28を加算する機能を有してい
る。D/A変換器30はタイミング制御信号eに基づき、加
算器28の出力信号S28をアナログ再生値に変換する回路
であり、その出力信号S30がアナログ比較器23に入力さ
れると共に、アナログ再生波形Aoutの出力端子31へ出力
されるようになっている。
The adder 28 adds the output signal S27 of the quantization width unit 27 and the output signal S29 of the second register 29, and outputs an output signal S28 composed of a PCM reproduction value to the second register 29 and the D / A converter 30. Circuit. The second register 29 has a function of adding the output signal S28 of the adder 28 based on the control signal S26b. The D / A converter 30 is a circuit for converting the output signal S28 of the adder 28 into an analog reproduction value based on the timing control signal e. The output signal S30 is input to the analog comparator 23 and the analog reproduction waveform The signal is output to the output terminal 31 of A out .

次に、このADPCM符号化復号化装置の動作を第3図
(1),(2)及び第4図を参照しつつ、(i)符号化
装置として動作する場合と、(ii)復号化装置として動
作する場合とに分けて説明する。なお、第3図(1),
(2)は第1図の符号化タイミング図、第4図は第1図
の復号化タイミング図である。
Next, the operation of the ADPCM encoding / decoding device will be described with reference to FIGS. 3 (1), (2) and 4, while (i) operating as an encoding device, and (ii) decoding device. The operation will be described separately. FIG. 3 (1),
(2) is an encoding timing chart of FIG. 1, and FIG. 4 is a decoding timing chart of FIG.

(i) 符号化装置として動作する場合 入力端子21より入力されたアナログ波形Ainは、タイ
ミング制御信号aで動作するサンプル・ホールド回路22
により、所定のサンプリング周期内で一定のアナログ値
が保持される。保持されたアナログ値Xnは、出力信号S2
2としてアナログ比較器23の一方の入力側に供給され
る。レジスタ29に格納されているPCM再生値[n-1
と、0を加算器28によって加算された値[n-1]をD/A
変換器30に入力して得られたアナログ再生値n-1が、
出力信号S30の形でアナログ比較器23の他方の入力側に
供給される。すると、アナログ比較器23は(12)式のよ
うな比較をし、その比較結果を出力信号S23の形で後段
のレジスタ24及び符号化制御回路26に与える。
(I) When Operating as an Encoding Device The analog waveform A in input from the input terminal 21 is converted into a sample-and-hold circuit 22 operated by a timing control signal a.
As a result, a constant analog value is held within a predetermined sampling period. The held analog value Xn is the output signal S2
2 is supplied to one input side of the analog comparator 23. PCM playback value [ n-1 ] stored in register 29
And the value [ n-1 ] obtained by adding 0 by the adder 28 to D / A
The analog reproduction value n-1 obtained by inputting to the converter 30 is
The output signal S30 is supplied to the other input side of the analog comparator 23. Then, the analog comparator 23 makes a comparison as shown in Expression (12), and supplies the result of the comparison to the register 24 and the encoding control circuit 26 in the subsequent stage in the form of an output signal S23.

レジスタ24は、タイミング制御信号bによりLn1をそ
のまま格納する。符号化制御回路26は、タイミング制御
信号Cに基づき制御信号S26aを出力し、Ln1=0であれ
ば、量子化幅器27を促して[+Δn/2]を出力させ、Ln1
=1であれば、その量子化幅器27より[−Δn/2]を出
力させる。
The register 24 stores L n1 as it is by the timing control signal b. The coding control circuit 26 outputs a control signal S26a based on the timing control signal C. If L n1 = 0, the encoding control circuit 26 prompts the quantization width unit 27 to output [+ Δ n / 2] and outputs L + n 1
If = 1, to output the [-Δ n / 2] from the quantization width 27.

加算器28は、レジスタ29の出力信号S29である
n-1]と、量子化幅器27の出力信号S27である[±Δ
n/2]とを加算し、その加算結果[n-1±Δn/2]を出
力信号S28の形でD/A変換器30に供給する。D/A変換器30
は、タイミング制御信号eに基づき、出力信号S28をア
ナログ値n-1±Δn/2に変換してその出力信号S30をア
ナログ比較器23の他方の入力側に供給する。アナログ比
較器23は、前段のサンプル・ホールド回路22によって保
持されたXnを一方の入力としているので、(13)式のよ
うな比較結果を出力する。
The adder 28 outputs [ n-1 ], which is the output signal S29 of the register 29, and [± Δ], which is the output signal S27 of the quantization width unit 27.
n / 2] and adds, supplied to the D / A converter 30 in the form of its addition result [n-1 ± Δ n / 2] the output signal S28. D / A converter 30
, Based on the timing control signal e, and supplies its output signal S30 to the other input side of the analog comparator 23 converts the output signal S28 to an analog value n-1 ± Δ n / 2 . Since the analog comparator 23 uses one of the inputs Xn held by the sample-and-hold circuit 22 in the preceding stage, the analog comparator 23 outputs a comparison result as shown in Expression (13).

Xn n-1±Δn/2 Xnn-1+Δn/2 ならばLn2=1 Xnn-1+Δn/2 ならばLn2=0 Xnn-1−Δn/2 ならばLn2=0 Xnn-1−Δn/2 ならばLn2=1 …(13) 後段のレジスタ24は、Ln2を格納する。符号化制御回
路26はLn2を入力し、Ln2=1ならば、レジスタ29に、前
の加算器28の加算結果[n-1±Δn/2]を格納する制御
信号S26bを与え、Ln2=0ならば、レジスタ29には制御
信号S26bを出力せず、該レジスタ29がそのまま前の値を
保持させるようにする。そして、制御信号S26aにより量
子化幅器27を促し、Ln1=1ならば[+Δn/4]を、Ln1
=0ならば[−Δn/4]を出力させる。
X n n-1 ± Δ n / 2 X n ≧ n-1 + Δ n / 2 if L n2 = 1 X n <n -1 + Δ n / 2 if L n2 = 0 X n ≧ n -1 -Δ n / 2 if L n2 = 0 X n <n -1 -Δ n / 2 if L n2 = 1 ... (13) downstream of the register 24 stores L n2. Encoding control circuit 26 inputs the L n2, L n2 = 1 if the register 29 provides a control signal S26b for storing previous addition result of the adder 28 [n-1 ± Δ n / 2], If L n2 = 0, the control signal S26b is not output to the register 29, and the register 29 holds the previous value as it is. Then, the quantizer 27 is prompted by the control signal S26a, and if L n1 = 1, [+ Δ n / 4] is added to L n1
= 0, to output [-Δ n / 4].

次に加算器28は、レジスタ29の出力信号S29である
n-1±Ln2×Δn/2]と、量子化幅器27の出力信号S27
である[±Δn/4]とを加算し、その加算結果[Xn-1±L
n2×Δn/2±Δn/4]を出力信号S28の形でD/A変換器30に
与える。D/A変換器30及びアナログ比較器23は、前記の
ような動作を行い、結果として(14)式のような比較結
果を出力する。
Then the adder 28 is the output signal S29 in the register 29 and [n-1 ± L n2 × Δ n / 2], the output signal S27 in the quantization width 27
In a [± Δ n / 4] and adding, the addition result [X n-1 ± L
The n2 × Δ n / 2 ± Δ n / 4] in the form of the output signal S28 supplied to the D / A converter 30. The D / A converter 30 and the analog comparator 23 perform the operation as described above, and as a result, output a comparison result as shown in Expression (14).

Xn n-1±Ln2×Δn/2±Δn/4 Xnn-1+Ln2×Δn/2+Δn/4 ならばLn3=1 Xnn-1+Ln2×Δn/2+Δn/4 ならばLn3=0 Xnn-1−Ln2×Δn/2−Δn/4 ならばLn3=0 Xnn-1−Ln2×Δn/2−Δn/4 ならばLn3=1 …(14) そして、後段のレジスタ24はLn3を格納する。符号化
制御回路26は、Ln3を入力してレジスタ29に対し、前の
加算器28の加算結果とLn3の結果により、[n-1±Ln2
×Δn/2±Ln3×Δn/4]を格納する制御信号S26bを与え
る。
X n n-1 ± L n2 × Δ n / 2 ± Δ n / 4 X n ≧ n-1 + L n2 × Δ n / 2 + Δ n / 4 if L n3 = 1 X n <n -1 + L n2 × Δ n / 2 + Δ n / 4 if L n3 = 0 X n ≧ n -1 -L n2 × Δ n / 2-Δ n / 4 if L n3 = 0 X n <n -1 -L n2 × Δ n / 2-Δ n / 4 if L n3 = 1 ... (14) Then, the subsequent register 24 stores L n3. The encoding control circuit 26 inputs L n3 and sends the result to the register 29 based on the addition result of the previous adder 28 and the result of L n3 [ n−1 ± L n2
× provides control signals S26b for storing Δ n / 2 ± L n3 × Δ n / 4].

同様にして加算器28は、レジスタ29の出力値[n-1
±Ln2×Δn/2±Ln3×Δn/4]と、量子化幅器27の出力値
±Δn/8とを加算し、その加算結果[n-1±Ln2×Δn/2
±Ln3×Δn/4±Δn/8]をD/A変換器30に与える。D/A変
換器30及びアナログ比較器23は、前記のような動作を行
い、結果として(15)式のような比較結果を出力する。
Similarly, the adder 28 outputs the output value [ n-1
± L and n2 × Δ n / 2 ± L n3 × Δ n / 4], and adds the output value ± delta n / 8 of the quantization scale 27, the addition result [n-1 ± L n2 × Δ n / 2
± give L n3 × Δ n / 4 ± Δ n / 8] to the D / A converter 30. The D / A converter 30 and the analog comparator 23 perform the operation described above, and output a comparison result as shown in Expression (15).

Xn n-1±Ln2×Δn/2±Ln3×Δn/4±Δn/8 Xn≧n-1+Ln2×Δn/2+Ln3×Δn/4+Δn/8 ならばLn4=1 Xn<n-1+Ln2×Δn/2+Ln3×Δn/4+Δn/8 ならばLn4=0 Xn≧n-1−Ln2×Δn/2−Ln3×Δn/4−Δn/8 ならばLn4=0 Xn<n-1−Ln2×Δn/2−Ln3×Δn/4−Δn/8 ならばLn4=1 …(15) そして後段のレジスタ24は、Ln4を格納する。符号化
制御回路26はLn4を入力してレジスタ29に対し、前の加
算器28の加算結果とLn4の結果により[n-1±Ln2×Δn
/2±Ln3×Δn/4±Ln4×Δn/8]を格納する制御信号S26b
を与える。
X n n-1 ± L n2 × Δ n / 2 ± L n3 × Δ n / 4 ± Δ n / 8 Xn ≧ n-1 + L n2 × Δ n / 2 + L n3 × Δ n / 4 + Δ n / 8 If L n4 = 1 Xn <n-1 + L n2 × Δ n / 2 + L n3 × Δ n / 4 + Δ n / 8 If L n4 = 0 Xn ≧ n- 1 -L n2 × Δ n / 2-L n3 × Δ n / 4-Δ n / 8 If L n4 = 0 Xn <if n-1 -L n2 × Δ n / 2-L n3 × Δ n / 4-Δ n / 8 L n4 = 1 ... (15) and subsequent Register 24 stores L n4 . The encoding control circuit 26 receives L n4 and inputs the result to the register 29 according to the result of the previous addition performed by the adder 28 and the result of L n4 [ n-1 ± L n2 × Δ n
/ 2 ± L n3 × Δ n / 4 control signals S26b for storing ± L n4 × Δ n / 8 ]
give.

符号化制御回路26は、制御信号S26aにより量子化幅器
27を促し、[±Δn/16]の出力値を出させ、レジスタ29
の出力値[n-1±Ln2×Δn/2±Ln3×Δn/4±Ln4×Δn/
8]とを加算器28にて加算させ、その加算結果[n-1±
Ln2×Δn/2±Ln3×Δn/4±Ln4×Δn/8±Δn/16]を再
度、レジスタ29に格納させるための制御信号S26bを与え
る。
The encoding control circuit 26 uses the control signal S26a to
Encourage 27 causes out an output value of [± Δ n / 16], the register 29
The output value [n-1 ± L n2 × Δ n / 2 ± L n3 × Δ n / 4 ± L n4 × Δ n /
8] in the adder 28, and the addition result [ n-1 ±
L n2 × Δ n / 2 ± L n3 × Δ n / 4 ± L n4 × Δ n / 8 ± Δ n / 16] again, providing a control signal S26b for causing stored in the register 29.

レジスタ29が格納した値は、[]として次のアナ
ログ入力値Xn+1との比較演算に用いられる。
The value stored in the register 29 is used as a comparison operation with the next analog input value Xn + 1 as [ n ].

レジスタ24に順次格納されたLn1,Ln2,Ln3,Ln4は、ADP
CM符号Lnとして入出力端子25により出力される。これと
同時に、Lnは量子化幅器27に入力され、前記(9)式の
計算式によりΔn+1を算出する。
L n1 , L n2 , L n3 , L n4 sequentially stored in the register 24 are ADP
Output by output terminal 25 as a CM code L n. At the same time, L n is input to the quantizer 27, and Δn + 1 is calculated by the equation (9).

以上が、1サンプリング周期内で実施される演算過程
であり、順次サンプリング毎に、ADPCM符号が生成され
ていく。
The above is the calculation process performed within one sampling period, and the ADPCM code is sequentially generated for each sampling.

(ii) 復号化装置として動作する場合 入出力端子25より入力されたADPCM符号Lnは、タイミ
ング制御信号cにより符号化制御回路26に入力される。
符号化制御回路26は、Ln1が1ならば、量子化幅器27の
出力信号S27が常に負の値になるように、またLn1が0な
らば、該出力信号S27が正の値なるように制御する。次
に、符号化制御回路26はLn2が1か0かにより、加算器2
8の加算結果を更新するかしないかの制御信号S26bをレ
ジスタ29に与える。以下、Ln3,Ln4についても同様な動
作を実行してLn(Ln1,Ln2,Ln3,Ln4)により、レジスタ
2は(16)式のようなPCM再生値を格納することにな
る。
(Ii) ADPCM code L n input than output terminal 25 operating as the decoding device is input to the encoding control circuit 26 by the timing control signal c.
The encoding control circuit 26 sets the output signal S27 of the quantization width unit 27 to always a negative value if L n1 is 1, and sets the output signal S27 to a positive value if L n1 is 0. Control. Next, the encoding control circuit 26 determines whether L n2 is 1 or 0,
A control signal S26b for updating or not updating the result of adding 8 is given to the register 29. Hereinafter, the L n3, the L n4 running similar operation also L n (L n1, L n2 , L n3, L n4), register 2 to store the PCM reproduction values, such as (16) become.

n-1±Ln2×Δn/2±Ln3×Δn/4±Ln4 ×Δn/8±Δn/16] …(16) これは、本装置の符号化過程で得られた[]と同
一である。
[N-1 ± L n2 × Δ n / 2 ± L n3 × Δ n / 4 ± L n4 × Δ n / 8 ± Δ n / 16] ... (16) which is obtained by coding process of the device It is the same as [ n ].

その後、レジスタ29の格納値[]は、加算器28に
より、もう一方の入力を0として加算された結果
]として出力され、D/A変換器30に与えられる。D
/A変換器30は、[]をアナログ再生値に変換
し、これを信号Aoutの形で出力端子31より出力する。そ
して、量子化幅器27では、入力されたLnと前のΔ
り、(9)式にあるようなΔn+1を算出して次のADPCM符
号Ln+1の入力に備えることになる。
Thereafter, the value [ n ] stored in the register 29 is output by the adder 28 as a result [ n ] obtained by adding the other input to 0, and is supplied to the D / A converter 30. D
The / A converter 30 converts [ n ] into an analog reproduction value n , and outputs this from the output terminal 31 in the form of a signal Aout . Then, the quantization width 27, from delta n before and inputted L n, (9) to calculate the delta n + 1 as in equation be provided to the input of the next ADPCM code L n + 1 become.

本実施例では、次(a)〜(c)のような利点を有し
ている。
The present embodiment has the following advantages (a) to (c).

(a) 従来のA/D変換器3に代えてアナログ比較器23
を設け、アナログ再生に用いているD/A変換器30の出力
信号S30を、符号化及び復号化の過程でも共通に使用す
る構成にしたので、従来のA/D変換器3を用いたADPCM符
号化復号化装置よりも簡便な回路構成で、且つADPCM演
算をほぼ同一な演算過程で実施できる利点を有してい
る。
(A) Instead of the conventional A / D converter 3, an analog comparator 23
And the output signal S30 of the D / A converter 30 used for analog reproduction is commonly used in the process of encoding and decoding, so that the ADPCM using the conventional A / D converter 3 is used. It has an advantage that it has a simpler circuit configuration than the encoding / decoding device and can perform ADPCM operation in almost the same operation process.

(b) 装置全体の信号変換歪に影響を及ぼしていたA/
D変換器3の除去と、D/A変換器30を符号化過程と復号化
過程に共通に用いて歪相殺を図ることにより、実質的な
信号変換歪を、PCMとADPCM間の信号変換歪と、D/A変換
器30の分解能による歪との和のみに抑えることができ、
よれによって装置全体の信号歪を的確に減少させること
ができる。
(B) A / A that affected the signal conversion distortion of the entire device
The removal of the D converter 3 and the use of the D / A converter 30 in both the encoding process and the decoding process to cancel the distortion can substantially reduce the signal conversion distortion between the PCM and the ADPCM. And the distortion due to the resolution of the D / A converter 30 can be suppressed only to
Due to this, the signal distortion of the entire apparatus can be accurately reduced.

(c) 符号化と復号化の両処理で、符号化制御回路2
6、量子化幅器27、加算器28、レジスタ29、及びD/A変換
器30を兼用するような回路構成にしたので、兼用による
余分な回路の削減により、装置全体の回路規模を縮小で
き、低コスト化が可能となる。
(C) In both the encoding and decoding processes, the encoding control circuit 2
6.Since the circuit configuration is such that the quantization width unit 27, the adder 28, the register 29, and the D / A converter 30 are shared, the circuit scale of the entire device can be reduced by reducing extra circuits due to the shared use. In addition, the cost can be reduced.

(発明の効果) 以上詳細に説明したように、第1及び第2の発明によ
れば、アナログ比較器を設け、アナログ再生に用いるD/
A変換器の出力を符号化及び復号化の過程で共通に使用
するようにしたので、従来のA/D変換器の除去による信
号変換歪の減少、及びD/A変換器出力を符号化過程と復
号化過程に共通に用いて歪相殺を図ることによる歪の減
少が可能になり、それによって信号変換歪を的確に低減
できる。
(Effects of the Invention) As described in detail above, according to the first and second inventions, an analog comparator is provided, and the D / D
Since the output of the A-converter is commonly used in the encoding and decoding processes, the signal conversion distortion is reduced by removing the conventional A / D converter, and the output of the D / A converter is encoded. Thus, the distortion can be reduced by using the same in the decoding process to cancel the distortion, and thereby the signal conversion distortion can be accurately reduced.

さらに、第1の発明では、符号化と復号化の両処理
で、符号化制御回路、量子化幅器、加算器、第2のレジ
スタ、及びD/A変換器を兼用するような回路構成にした
ので、兼用による余分な回路の削減により、装置全体の
回路規模を縮小でき、低コスト化が可能となる。
Furthermore, in the first invention, the circuit configuration is such that the encoding control circuit, the quantization width unit, the adder, the second register, and the D / A converter are used in both the encoding and decoding processes. As a result, the circuit scale of the entire device can be reduced and the cost can be reduced by reducing extra circuits due to dual use.

同様に、第2の発明でも、符号化と復号化の両処理
で、符号化制御回路、量子化幅器、加算器、レジスタ、
及びD/A変換器を兼用するような回路構成にしたので、
兼用による余分な回路の削減により、装置全体の回路規
模を縮小でき、低コスト化が可能となる。
Similarly, in the second invention, the encoding control circuit, the quantizer, the adder, the register,
And a circuit configuration that also serves as a D / A converter,
The reduction of the extra circuit due to the dual use can reduce the circuit scale of the entire device and can reduce the cost.

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

第1図は本発明の一実施例を示すADPCM符号化復号化装
置の構成ブロック図、第2図は従来のADPCM符号化復号
化装置の構成ブロック図、第3図(1),(2)は第1
図の符号化タイミング図、第4図は第1図の復号化タイ
ミング図である。 21……入力端子、22……サンプル・ホールド回路、23…
…アナログ比較器、24,29……第1,第2のレジスタ、25
……入出力端子、26……符号化制御回路、27……量子化
幅器、28……加算器、30……D/A変換器、31……出力端
子。
FIG. 1 is a block diagram showing the configuration of an ADPCM encoding / decoding device showing an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of a conventional ADPCM encoding / decoding device, and FIGS. 3 (1) and (2). Is the first
FIG. 4 is an encoding timing diagram, and FIG. 4 is a decoding timing diagram of FIG. 21 ... input terminal, 22 ... sample-and-hold circuit, 23 ...
... Analog comparators, 24,29 ... First and second registers, 25
... I / O terminals, 26 ... Encoding control circuit, 27 ... Quantization width unit, 28 ... Adder, 30 ... D / A converter, 31 ... Output terminal.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】アナログ波形を適応型差分パルス符号変調
符号に符号化し、かつ適応型差分パルス符号変調符号を
復合化する適応型差分パルス符号変調符号化復号化装置
に於て、 アナログ波形をサンプリングしてそれを一定時間保持す
るサンプル・ホールド回路と、 加算器が出力するパルス符号変調再生値からなる加算結
果をアナログ再生値に変換するディジタル/アナログ変
換器と、 前記サンプル・ホールド回路の出力と前記ディジタル/
アナログ変換器の出力とを比較してそれに応じた信号を
出力するアナログ比較器と、 前記アナログ比較器の出力を格納する第1のレジスタ
と、 符号化過程で前記第1のレジスタの出力である適応型差
分パルス符号変調符号を出力し、復合化過程で外部より
適応型差分パルス符号変調符号を入力する入出力端子
と、 符号化過程で、前記アナログ比較器の出力を入力し、前
記アナログ比較器の出力に基づいて第1の制御信号及び
第2の制御信号を出力し、復合化過程で、前記外部より
入力された適応型差分パルス符号変調符号を入力し、そ
れに基づいて第3の制御信号及び第4の制御信号を出力
する符号化制御回路と、 符号化過程で、前記第1の制御信号と前記第1のレジス
タの出力とを入力し、それに基づいて所定の量子化幅を
生成し、復号化過程で、前記第3の制御信号と前記外部
より入力された適応型差分パルス符号変調符号とを入力
し、それに基づいて所定の量子化幅を生成する量子化幅
器と、 符号化過程で前記第2の制御信号に基づいて前記加算器
が出力する加算結果を格納し、復合化過程で前記第4の
制御信号に基づいて前記加算器が出力する加算結果を格
納する第2のレジスタと、 前記量子化幅器の出力と前記第2のレジスタの出力とを
加算して加算結果を出力する前記加算器とを、 備えたことを特徴とする適応型差分パルス符号変調符号
化復号化装置。
1. An adaptive differential pulse code modulation encoding / decoding device for encoding an analog waveform into an adaptive differential pulse code modulation code and decoding the adaptive differential pulse code modulation code, wherein the analog waveform is sampled. A sample-and-hold circuit for holding the same for a certain period of time; a digital / analog converter for converting an addition result consisting of a pulse code modulation reproduction value output from the adder to an analog reproduction value; The digital /
An analog comparator that compares the output of the analog converter and outputs a signal corresponding to the output; a first register that stores the output of the analog comparator; and an output of the first register in an encoding process. An input / output terminal for outputting an adaptive differential pulse code modulation code from outside in a decoding process, and an output of the analog comparator in an encoding process, A first control signal and a second control signal are output based on the output of the device, and during the decoding process, the adaptive differential pulse code modulation code input from the outside is input, and a third control An encoding control circuit that outputs a signal and a fourth control signal; and, in an encoding process, receives the first control signal and the output of the first register, and generates a predetermined quantization width based on the input. And decrypt In the quantization step, the third control signal and the adaptive differential pulse code modulation code input from the outside are input, and a quantization width generator that generates a predetermined quantization width based on the input signal; A second register for storing an addition result output from the adder based on the second control signal, and storing an addition result output from the adder based on the fourth control signal in a decoding process; An adaptive difference pulse code modulation encoding / decoding apparatus, comprising: an adder that adds an output of the quantization width unit and an output of the second register to output an addition result. .
【請求項2】アナログ波形を適応型差分パルス符号変調
符号に符号化し、かつ適応型差分パルス符号変調符号を
復号化する適応型差分パルス符号変調符号化復号化装置
に於て、 アナログ波形をサンプリングしてそれを一定時間保持す
るサンプル・ホールド回路と、 加算器が出力するパルス符号変調再生値からなる加算結
果をアナログ再生値に変換するディジタル/アナログ変
換器と、 前記サンプル・ホールド回路の出力と前記ディジタル/
アナログ変換器の出力とを比較してそれに応じた信号を
出力するアナログ比較器と、 符号化過程で前記アナログ比較器の出力である適応型差
分パルス符号変調符号を出力し、復号化過程で外部より
適応型差分パルス符号変調符号を入力する入出力端子
と、 符号化過程で、前記アナログ比較器の出力を入力し、前
記アナログ比較器の出力に基づいて第1の制御信号及び
第2の制御信号を出力し、復号化過程で、前記外部より
入力された適応型差分パルス符号変調符号を入力し、そ
れに基づいて第3の制御信号及び第4の制御信号を出力
する符号化制御回路と、 符号化過程で、前記第1の制御信号と前記アナログ比較
器の出力とを入力し、それに基づいて所定の量子化幅を
生成し、復号化過程で、前記第3の制御信号と前記外部
より入力された適応型差分パルス符号変調符号とを入力
し、それに基づいて所定の量子化幅を生成する量子化幅
器と、 符号化過程で前記第2の制御信号に基づいて前記加算器
が出力する加算結果を格納し、復号化過程で前記第4の
制御信号に基づいて前記加算器が出力する加算結果を格
納するレジスタと、 前記量子化幅器の出力と前記レジスタの出力とを加算し
て加算結果を出力する前記加算器とを、 備えたことを特徴とする適応型差分パルス符号変調符号
化復号化装置。
2. An adaptive differential pulse code modulation encoding / decoding device for encoding an analog waveform into an adaptive differential pulse code modulation code and decoding the adaptive differential pulse code modulation code, wherein the analog waveform is sampled. A sample-and-hold circuit for holding the same for a certain period of time; a digital / analog converter for converting an addition result consisting of a pulse code modulation reproduction value output from the adder into an analog reproduction value; and an output of the sample-and-hold circuit. The digital /
An analog comparator that compares the output of the analog converter and outputs a signal corresponding to the output; and outputs an adaptive differential pulse code modulation code that is an output of the analog comparator in a coding process, and outputs an external signal in a decoding process. An input / output terminal for inputting a more adaptive differential pulse code modulation code; an input of an output of the analog comparator in an encoding process; a first control signal and a second control based on an output of the analog comparator; A coding control circuit that outputs a signal, and in the decoding process, receives the externally input adaptive differential pulse code modulation code, and outputs a third control signal and a fourth control signal based on the adaptive difference pulse code modulation code; In the encoding process, the first control signal and the output of the analog comparator are input, a predetermined quantization width is generated based on the input, and in the decoding process, the third control signal and the external Entered A differential width pulse code modulation code, and a quantization width generator that generates a predetermined quantization width based on the input signal; and an addition result output by the adder based on the second control signal in an encoding process. A register for storing and storing an addition result output by the adder based on the fourth control signal in a decoding process, and adding an output of the quantizer and an output of the register to obtain an addition result. An adaptive differential pulse code modulation encoding / decoding device, comprising: the adder for outputting.
JP63133572A 1988-05-31 1988-05-31 Adaptive differential pulse code modulation encoding / decoding device Expired - Fee Related JP2617207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63133572A JP2617207B2 (en) 1988-05-31 1988-05-31 Adaptive differential pulse code modulation encoding / decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63133572A JP2617207B2 (en) 1988-05-31 1988-05-31 Adaptive differential pulse code modulation encoding / decoding device

Publications (2)

Publication Number Publication Date
JPH01302400A JPH01302400A (en) 1989-12-06
JP2617207B2 true JP2617207B2 (en) 1997-06-04

Family

ID=15107944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63133572A Expired - Fee Related JP2617207B2 (en) 1988-05-31 1988-05-31 Adaptive differential pulse code modulation encoding / decoding device

Country Status (1)

Country Link
JP (1) JP2617207B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61249100A (en) * 1985-04-26 1986-11-06 シャープ株式会社 Waveform encoder

Also Published As

Publication number Publication date
JPH01302400A (en) 1989-12-06

Similar Documents

Publication Publication Date Title
EP0731348A3 (en) Voice storage and retrieval system
US5594443A (en) D/A converter noise reduction system
JPS6031325A (en) System and circuit of forecast stop adpcm coding
JP2617207B2 (en) Adaptive differential pulse code modulation encoding / decoding device
WO1998037636A1 (en) Voice encoding method
JPH0469455B2 (en)
JP2008046405A (en) Encoding method and decoding method in adaptive differential pulse code modulation system
JP3133677B2 (en) Decoding processing device and decoding processing method thereof
JP3136797B2 (en) Sound data processing method and sound data processing device
JPS6093839A (en) Information transmission system using dither
JP2626236B2 (en) ADPCM decoder
JPH05303399A (en) Audio time axis companding device
JPH0588697A (en) Absent speech interpolation system
JPH0555917A (en) A/d converter
JP3200875B2 (en) ADPCM decoder
JP2848610B2 (en) Voice analysis and synthesis device
JP2603631B2 (en) Voice analysis and synthesis device
JP3008668B2 (en) ADPCM decoder
KR100223164B1 (en) Method and apparatus for audio signal error correction
JP3085723B2 (en) Code-excited linear predictive encoder and decoder
JPH1127145A (en) A/d and d/a conversion system
JPH0351900A (en) Error processing system
KR870000672B1 (en) Multiplying circuit for muting in digital-audio tape recorder system
JP3344104B2 (en) Adaptive quantization A / D converter and adaptive quantization D / A converter
JPH0654874B2 (en) Predictive coding device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees