JP3200875B2 - ADPCM decoder - Google Patents

ADPCM decoder

Info

Publication number
JP3200875B2
JP3200875B2 JP17079991A JP17079991A JP3200875B2 JP 3200875 B2 JP3200875 B2 JP 3200875B2 JP 17079991 A JP17079991 A JP 17079991A JP 17079991 A JP17079991 A JP 17079991A JP 3200875 B2 JP3200875 B2 JP 3200875B2
Authority
JP
Japan
Prior art keywords
value
register
adpcm
data
difference value
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
JP17079991A
Other languages
Japanese (ja)
Other versions
JPH0519800A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP17079991A priority Critical patent/JP3200875B2/en
Publication of JPH0519800A publication Critical patent/JPH0519800A/en
Application granted granted Critical
Publication of JP3200875B2 publication Critical patent/JP3200875B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はADPCM方式復号器に
関し、特に音声合成に使用されるADPCM方式復号器
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an ADPCM decoder and, more particularly, to an ADPCM decoder used for speech synthesis.

【0002】[0002]

【従来の技術】従来のADPCM方式復号器は、図4に
示すように、ADPCM符号データをラッチするLレジ
スタ1と、このLレジスタ1の値をデコードして量子化
幅ポインタの移動量を決めるデコーダ2と、このデコー
ダ2の出力と量子化幅ポインタの値をラッチしているA
レジスタ4と、このAレジスタ4の出力とデコーダ2の
出力との加減算を行なう加減算器11と、この加減算結
果を量子化幅ポインタの上限と下限の範囲内に制限する
リミッタ3と、Lレジスタ1とAレジスタ4でアドレス
を選択され次のサンプリングポイントの差分値を出力す
る差分値データテーブルROM5と、差分値を順次累積
していった結果をラッチするXレジスタ7と、このXレ
ジスタ7の値に差分値データテーブルROM5の出力を
加算または減算して次のサンプリングポイントの振幅値
を演算する加減算器6と、Xレジスタ7の出力をアナロ
グ信号に変換するDA変換器8とを備えている。
2. Description of the Related Art A conventional ADPCM decoder, as shown in FIG. 4, determines an L register 1 for latching ADPCM code data, and the amount of movement of a quantization width pointer by decoding the value of the L register 1. A decoder 2 which latches the output of the decoder 2 and the value of the quantization width pointer
A register 4, an adder / subtracter 11 for performing addition and subtraction between the output of the A register 4 and the output of the decoder 2, a limiter 3 for limiting the result of addition and subtraction to a range between an upper limit and a lower limit of a quantization width pointer, and an L register 1 Value data table ROM 5 for selecting an address by the A register 4 and outputting a difference value of the next sampling point, an X register 7 for latching the result of sequentially accumulating the difference values, and a value of the X register 7 An adder / subtracter 6 that adds or subtracts the output of the difference value data table ROM 5 to calculate the amplitude value of the next sampling point, and a DA converter 8 that converts the output of the X register 7 into an analog signal.

【0003】ADPCM方式とは、音声の隣接したサン
プリング間の相関の強さを利用したデータ圧縮方式で、
連続したサンプリングポイントでの振幅値の差を圧縮符
号化しようとする方式である。このADPCM符号とし
て正負の極性を表わすビットと振幅を表わす3ビットの
計4ビット符号とし、量子化幅ポインタを3ビットとし
て、現在の量子化幅ポインタとADPCM符号の振幅デ
ータで選択される差分値データをADPCM符号の極性
ビットの値により現在のサンプリングポイントの振幅値
に加算または減算を行なって次のサンプリングポイント
の振幅値を計算し、現在の量子化幅に予測係数を乗じた
値を次のサンプリングポイントの量子化幅とする乗算処
理を行なう代りにあらかじめ乗算結果をROMに差分値
データとしてテーブル化して入れておく構成となってい
る。
[0003] The ADPCM method is a data compression method using the strength of correlation between adjacent samplings of audio.
In this method, a difference between amplitude values at successive sampling points is to be compression-coded. A difference value selected by the current quantization width pointer and the amplitude data of the ADPCM code, with the ADPCM code being a 4-bit code consisting of a bit representing positive and negative polarities and a 3-bit representing amplitude, and having a quantization width pointer of 3 bits. The amplitude value of the next sampling point is calculated by adding or subtracting the data to the amplitude value of the current sampling point according to the value of the polarity bit of the ADPCM code, and the value obtained by multiplying the current quantization width by the prediction coefficient is calculated as the following value. Instead of performing the multiplication processing using the quantization width of the sampling point, the multiplication result is stored in advance as a table in the ROM as difference value data.

【0004】ADPCM符号の復号処理をする前にAレ
ジスタ4に初期値0を入れ、振幅値データを累積してい
く8ビットのXレジスタ7に出力波形の中点データ80
Hを入れておく。最初のサンプリングポイントの振幅値
を求めるにはLレジスタ1のADPCM符号データとA
レジスタ4の量子化幅ポインタの値を差分値データテー
ブルROM5のアドレスとして入力し、差分値データテ
ーブルROM5の出力にADPCM符号の振幅データと
現在の量子化幅により決められる最大8ビットの差分値
の振幅データと1ビットの正負の符号データが出力され
る。
Before decoding the ADPCM code, the initial value 0 is put in the A register 4 and the midpoint data 80 of the output waveform is stored in the 8-bit X register 7 for accumulating the amplitude data.
Add H. To find the amplitude value of the first sampling point, the ADPCM code data of L register 1 and A
The value of the quantization width pointer of the register 4 is input as the address of the difference value data table ROM5, and the output of the difference value data table ROM5 outputs the difference data of the maximum of 8 bits determined by the amplitude data of the ADPCM code and the current quantization width. The amplitude data and 1-bit positive / negative sign data are output.

【0005】この差分値データテーブルROM5の内容
としては、次の表1に示すようなデータを入れAレジス
タの値を加算または減算することは差分値データに予測
係数を乗算することと等価にしている。
The contents of the difference value data table ROM 5 are as shown in Table 1 below, and adding or subtracting the value of the A register is equivalent to multiplying the difference value data by a prediction coefficient. I have.

【0006】[0006]

【表1】 [Table 1]

【0007】正負の符号データの値によりXレジスタ7
と差分値データテーブルROM5の出力の振幅データと
を加算または減算を行ない結果をXレジスタ7にラッチ
しDA変換器8でアナログ信号出力する。Xレジスアラ
ッチ信号SxをローレベルにしてXレジスタ7の値をラ
ッチした後ADPCM符号の振幅データ3ビットをデコ
ーダ2で、次の表2に示すようにデコードし、デコーダ
2の出力とAレジスタ4の値を加算または減算し、リミ
ッタ3で演算結果が負の値になれば0をAレジスタ4に
入力し、演算結果が8以上の値になれば7をAレジスタ
4に入力する。
The X register 7 is set according to the value of the sign data.
And the amplitude data output from the difference value data table ROM 5 are added or subtracted, the result is latched in the X register 7, and the DA converter 8 outputs an analog signal. After the X register latch signal Sx is set to low level and the value of the X register 7 is latched, 3 bits of the amplitude data of the ADPCM code are decoded by the decoder 2 as shown in Table 2 below, and the output of the decoder 2 and the A register 4 The value is added or subtracted. If the operation result becomes a negative value by the limiter 3, 0 is inputted to the A register 4, and if the operation result becomes a value of 8 or more, 7 is inputted to the A register 4.

【0008】[0008]

【表2】 [Table 2]

【0009】このようにAレジスタ4には0から7まで
の値が入り、次のサンプリングポイントの予測係数を乗
じた差分値データを選択する量子化幅ポインタとして用
いられる。
As described above, the value from 0 to 7 is stored in the A register 4 and is used as a quantization width pointer for selecting the difference value data multiplied by the prediction coefficient of the next sampling point.

【0010】以上説明したように、新たにADPCM符
号データがくる度に、Lレジスタ1とAレジスタ4を差
分値データテーブルROM5のアドレスとして差分値を
選び、Xレジスタ7に加算または減算することにより、
次のサンプリングポイントの振幅値を求めDA変換器8
でアナログ信号出力し、Xレジスタ7の値をラッチした
後Lレジスタ1の値をデコーダ2でデコードした値をA
レジスタ4に加算または減算して量子化幅ポインタの値
を更新するという動作をくり返すことによりADPCM
データの復号化処理を行なうことができる。
As described above, each time new ADPCM code data comes, a difference value is selected from the L register 1 and the A register 4 as an address of the difference value data table ROM 5 and added to or subtracted from the X register 7. ,
The amplitude value of the next sampling point is obtained and the DA converter 8
Outputs an analog signal, latches the value of the X register 7 and then decodes the value of the L register 1 by the decoder 2 to A
ADPCM is repeated by repeating the operation of updating the value of the quantization width pointer by adding or subtracting from the register 4.
Data decryption processing can be performed.

【0011】[0011]

【発明が解決しようとする課題】この従来のADPCM
方式復号器では、図5に示すような、大振幅の原音波形
をサンプリングしてADPCM符号化する時に、サンプ
リング値S1に差分値Δ2を加算してサンプリング値S
2を求めた後、次のサンプリングポイントを求めてい
る。この時に量子化幅ポインタの値が大きくなっている
と、差分値データの絶対値が大きく変化するようにな
り、ADPCM符号の振幅データをΔ3’とΔ3しか選
べない場合が生じ原音との誤差がΔ3’よりΔ3を選ん
だ方が小さくなることになる。この原音波形との誤差を
小さくする為にΔ3を選んでADPCM符号化しても、
ADPCM符号としては差分値を圧縮したデータなので
差分値を累積した振幅データが最大値のFFHをオーバ
ーしてもそのまま符号化できる。
SUMMARY OF THE INVENTION The conventional ADPCM
In the system decoder, when a large amplitude original sound waveform as shown in FIG. 5 is sampled and subjected to ADPCM encoding, the difference value Δ2 is added to the sampling value S1 to obtain the sampling value S2.
After obtaining 2, the next sampling point is obtained. At this time, if the value of the quantization width pointer is large, the absolute value of the difference value data will change greatly, and there may be cases where only Δ3 ′ and Δ3 can be selected as the amplitude data of the ADPCM code. It becomes smaller when Δ3 is selected than Δ3 ′. Even if Δ3 is selected and ADPCM encoded to reduce the error with the original sound waveform,
Since the ADPCM code is data obtained by compressing the difference value, even if the amplitude data obtained by accumulating the difference value exceeds the maximum value of FFH, it can be encoded as it is.

【0012】一方、サンプリング値S7に差分値Δ8を
減算してサンプリング値S8を求めた後次のサンプリン
グポイントでADPCM符号の振幅データをΔ9’とΔ
9しか選べない場合、原音との誤差がΔ9’よりΔ9を
選んだ方が小さくなる。原音波形との誤差を小さくする
為にΔ9を選んでADPCM符号化しても、差分値を累
積した振幅データが最小値の0より小さくなってもその
まま符号化できる。
On the other hand, after subtracting the difference value Δ8 from the sampling value S7 to obtain the sampling value S8, the amplitude data of the ADPCM code is converted to Δ9 ′ and Δ9 ′ at the next sampling point.
When only 9 can be selected, the error from the original sound is smaller when .DELTA.9 is selected than when .DELTA.9 '. Even if Δ9 is selected and ADPCM-coded to reduce the error from the original sound waveform, even if the amplitude data in which the difference values are accumulated becomes smaller than the minimum value of 0, the coding can be performed as it is.

【0013】このように図5のS1からS12までの振
幅データを符号化したADPCMデータを図4の復号器
で再生すると、図6の波形図に示すように、X1にΔ2
を加算した値がX2になり、X2にΔ3を加算すると加
算値がFFHをオーバするのでX3は0に近い値にな
る。一方、X7からΔ8を減算した値がX8になり、X
8からΔ9を減算するとボローが発生し、減算値X9は
FFHに近い値になり、X1からX12の部分の復号波
形としてはX3とX9の振幅値が原音と正反対の全く違
う値が発生され、復号波形に原音波形には無い大きな振
幅変化を生じるという問題点がある。
When the ADPCM data obtained by encoding the amplitude data from S1 to S12 in FIG. 5 is reproduced by the decoder in FIG. 4, as shown in the waveform diagram in FIG.
Is added to X2, and when Δ3 is added to X2, the added value exceeds FFH, so that X3 becomes a value close to 0. On the other hand, the value obtained by subtracting Δ8 from X7 becomes X8, and X
When Δ9 is subtracted from 8, a borrow occurs, the subtraction value X9 becomes a value close to FFH, and as the decoded waveform of the portion from X1 to X12, a completely different value is generated in which the amplitude values of X3 and X9 are exactly opposite to the original sound. There is a problem that a large amplitude change is generated in the decoded waveform which is not present in the original sound waveform.

【0014】本発明の目的は、このような問題を解決
し、復号波形の歪を除き、忠実な原音波形を復号化でき
るADPCM方式復号器を提供することにある。
An object of the present invention is to solve the above problem and to provide an ADPCM decoder capable of decoding a faithful original sound waveform by removing distortion of a decoded waveform.

【0015】[0015]

【課題を解決するための手段】本発明の構成は、ADP
CM符号データと量子化幅ポインタで選択される差分値
を加減算器により順次累積して第1のレジスタに保持さ
せこの出力をnビットのDA変換器によりアナログ信号
に変換して出力し、前記ADPCM符号データをデコー
ダによりデコードして量子化幅ポインタの値を順次更新
していくADPCM方式復号器において、前記加減算器
により前記差分値の累積演算を(n+1)ビットまで行
ない現在のサンプリング点までの差分値を累積させ次の
サンプリング点の差分値を加算または減算した(n+
1)ビットの累積値を出力する第2のレジスタと、この
第2のレジスタの最上位ビットがオーバフローとなった
時その累積値の下位nビットを前記nビットDA変換器
に転送せずに前記nビットDA変換器が前記オーバフロ
ーする前の値を前記第1のレジスタに保持させたままに
制御するゲート回路とを備えたことを特徴とする。
According to the present invention, an ADP is provided.
The CM code data and the difference value selected by the quantization width pointer are sequentially accumulated by the adder / subtractor and held in the first register.
In the ADPCM decoder, the output is converted into an analog signal by an n-bit DA converter and output, and the ADPCM code data is decoded by a decoder to sequentially update the value of a quantization width pointer. The accumulator of the difference value is performed up to (n + 1) bits by a calculator, the difference value up to the current sampling point is accumulated, and the difference value at the next sampling point is added or subtracted (n +
1) a second register for outputting a cumulative value of bits,
When the most significant bit of the second register overflows, the lower n bits of the accumulated value are not transferred to the n-bit DA converter, and the n-bit DA converter overflows.
The value before over left to held in the first register
And a controlling gate circuit.

【0016】[0016]

【実施例】図1は本発明の一実施例のブロック図であ
る。本実施例は、従来例に対してSレジスタ9およびA
NDゲート10が付加されている。
FIG. 1 is a block diagram showing an embodiment of the present invention. This embodiment is different from the conventional example in that the S register 9 and A
An ND gate 10 is added.

【0017】すなわち、ADPCM符号データをラッチ
するLレジスタ1と、Lレジスタ1の値をデコードして
量子化幅ポインタの移動量を決めるデコーダ2と、量子
化幅ポインタの値をラッチしているAレジスタ4と、こ
のAレジスタの出力とデコーダ2の出力との加減算を行
なう加減算器11と、この加減算結果を量子化幅ポイン
タの上限と下限の範囲内に制限するリミッタ3と、レジ
スタ1とAレジスタ4でアドレスを選択され次のサンプ
リングポイントの差分値を出力する差分値データテーブ
ルROM5と、差分値を順次累積していった結果をラッ
チする(n+1)ビットのSレジスタ9と、このSレジ
スタ9の値に差分値データテーブルROM5の出力を加
算また減算して次のサンプリングポイントの振幅値を演
算する加減算器6と、Sレジスタ9の下位nビットのデ
ータが入力されるXレジスタ7と、Sレジスタ9の最上
位ビットの信号Sn+1 を反転した信号とXレジスタラッ
チ信号SxのAND論理をとるANDゲート10と、こ
のANDゲート10の出力をXレジスタ7のラッチ信号
としてXレジスタ7の出力をアナログ信号に変換するD
A変換器8とを備えている。
That is, an L register 1 for latching ADPCM code data, a decoder 2 for decoding the value of the L register 1 to determine the moving amount of the quantization width pointer, and an A for latching the value of the quantization width pointer. A register 4; an adder / subtracter 11 for performing addition and subtraction between the output of the A register and the output of the decoder 2; a limiter 3 for limiting the result of addition and subtraction to a range between an upper limit and a lower limit of a quantization width pointer; A difference value data table ROM 5 for selecting an address by the register 4 and outputting a difference value of the next sampling point, an (n + 1) -bit S register 9 for latching the result of sequentially accumulating the difference values, and an S register An adder / subtractor 6 that adds or subtracts the output of the difference value data table ROM 5 to the value of 9 to calculate the amplitude value of the next sampling point , AND gate 10 for taking an X register 7 which data of the lower n bits of the S register 9 are inputted, the AND logic of the inverted signal and the X register latch signal Sx signal S n + 1 most significant bits of the S register 9 And converts the output of the X register 7 into an analog signal by using the output of the AND gate 10 as a latch signal of the X register 7.
A converter 8 is provided.

【0018】次に、このADPCM方式復号器の動作に
ついて説明する。本実施例により、図2に示す大振幅の
原音波形をサンプリングしてADPCM符号化するとす
る。この場合、サンプリング値S1に差分値Δ2を加算
してサンプリング値S2を求めた後、次の差分値として
原音波形との誤差が最も小さいΔ3を選んでADPCM
符号化すると差分値を累積したS3の振幅は最大値のF
FHをオーバーすることになる。
Next, the operation of the ADPCM decoder will be described. According to this embodiment, it is assumed that a large amplitude original sound waveform shown in FIG. 2 is sampled and ADPCM encoded. In this case, after the difference value Δ2 is added to the sampling value S1 to obtain the sampling value S2, Δ3 having the smallest error from the original sound waveform is selected as the next difference value, and ADPCM is performed.
After encoding, the amplitude of S3 in which the difference value is accumulated is the maximum value of F3.
FH will be exceeded.

【0019】一方、サンプリング値S7に差分値Δ8を
減算してサンプリング値S8を求めた後、次の差分値と
して原音波形との誤差が最も小さいΔ9を選んでADP
CM符号化すると差分値を累積したS9の振幅は最小値
の0以下になる。
On the other hand, after subtracting the difference value Δ8 from the sampling value S7 to obtain the sampling value S8, the next difference value is selected as Δ9, which has the smallest error from the original sound waveform, and ADP is selected.
When the CM coding is performed, the amplitude of S9 in which the difference values are accumulated becomes equal to or smaller than the minimum value of 0.

【0020】このような図2のS1からS12までの振
幅データを符号化したADPCMデータをn=8とした
復号器で再生すると、図3に示すように、X1にΔ2を
加算した値がX2になり、X2にΔ3を加算すると加算
値がFFHをオーバーするが加減算器6と演算結果をラ
ッチするSレジスタ9は9ビットあるのでSレジスタの
最上位ビット信号Sn+1 が下位8ビットの桁上りにより
1となる。
When ADPCM data obtained by encoding the amplitude data from S1 to S12 in FIG. 2 is reproduced by a decoder with n = 8, as shown in FIG. 3, the value obtained by adding Δ2 to X1 is X2 When Δ3 is added to X2, the addition value exceeds FFH. However, since the adder / subtractor 6 and the S register 9 for latching the operation result have 9 bits, the most significant bit signal Sn + 1 of the S register is the lower 8 bits. It becomes 1 due to carry.

【0021】信号Sn+1 が1になると、ANDゲート1
0の出力はXレジスタラッチ信号Sxの値によらず0に
固定されるので、Xレジスタ7のラッチ信号が発生せ
ず、差分値を累積した値をラッチしているSレジスタの
下位8ビットの値がXレジスタ7に転送されず、X3は
X2と同じ振幅値が保持されたままになる。
When the signal Sn + 1 becomes 1, the AND gate 1
Since the output of 0 is fixed to 0 irrespective of the value of the X register latch signal Sx, the latch signal of the X register 7 is not generated, and the lower 8 bits of the S register latching the accumulated value of the difference value are not generated. The value is not transferred to the X register 7, and X3 keeps the same amplitude value as X2.

【0022】次に、S3からΔ4を減算すると差分値を
累積した振幅値はFFH以下になるので信号Sn+1 は0
となる。信号Sn+1 が0になるとANDゲート10の出
力にはXレジスタラッチ信号Sxが出力され、Sレジス
タの下位8ビットの差分値を累積した値がXレジスタ7
にX4としてラッチされDA変換器8でアナログ信号出
力される通常動作を行なう。
Next, the signal S n + 1 the amplitude value obtained by accumulating the Subtracting difference value Δ4 becomes less FFH from S3 0
Becomes When the signal Sn + 1 becomes 0, an X register latch signal Sx is output to the output of the AND gate 10, and the value obtained by accumulating the difference values of the lower 8 bits of the S register is stored in the X register 7.
Performs a normal operation of being latched as X4 and being output as an analog signal by the DA converter 8.

【0023】図3でX7からΔ8を減算した値がX8に
なり、X8からΔ9を減算すると減算値が0H以下にな
るので加減算器6はボローが発生し、演算出力は補数表
示の1FFHに近い値になるのでSレジスタ9の最上位
ビット信号Sn+1 となる。信号Sn+1 が1になるとAN
Dゲート10の出力はXレジスタラッチ信号Sxの値に
よらず0に固定されるのでXレジスタ7のラッチ信号が
発生せず、差分値を累積した値をラッチしているSレジ
スタ9の下位8ビットの値がXレジスタ7に転送され
ず、X9はX8と同じ振幅値が保持されたままになる。
In FIG. 3, the value obtained by subtracting .DELTA.8 from X7 becomes X8. When .DELTA.9 is subtracted from X8, the subtracted value becomes 0H or less. Therefore, the highest bit signal S n + 1 of the S register 9 is obtained. When the signal Sn + 1 becomes 1, AN
Since the output of the D gate 10 is fixed to 0 irrespective of the value of the X register latch signal Sx, no latch signal of the X register 7 is generated and the lower 8 bits of the S register 9 latching the accumulated value of the difference value. The value of the bit is not transferred to the X register 7, and the amplitude of X9 remains the same as that of X8.

【0024】次に、S9にΔ10を加算すると加減算器
6はキャリーが発生し演算出力は0H以上の値になるの
で信号Sn+1 は0となる。信号Sn+1 が0になると、A
NDゲート10の出力にはXレジスタラッチ信号Sxが
出力され、Sレジスタ9の下位8ビットの差分値を累積
した値がXレジスタ7にX10としてラッチされ、DA
変換器8でアナログ信号出力される通常動作を行なう。
Next, when .DELTA.10 is added to S9, the adder / subtractor 6 carries, and the arithmetic output becomes a value of 0H or more, so that the signal Sn + 1 becomes 0. When the signal S n + 1 becomes 0, A
An X register latch signal Sx is output to the output of the ND gate 10, and a value obtained by accumulating the difference values of the lower 8 bits of the S register 9 is latched in the X register 7 as X10.
Converter 8 performs a normal operation of outputting an analog signal.

【0025】[0025]

【発明の効果】以上説明したように、本発明のADPC
M方式復号器で復号化処理を行なうと、サンプリング波
形に対して忠実な復号波形が得られ、原音を符号化して
差分値を累積した振幅値がスケールオーバしても復号波
形に無い大きな振幅変化を生じないという効果を有す
る。さらに、従来のADPCM方式復号器と完全にAD
PCM符号データの互換性を有し、差分値を累積した値
がDA変換器の出力範囲をオーバーしてもオーバーした
サンプリングポイント以外では常に正しい振幅値が出力
され、簡単な回路の追加だけで済むので半導体集積回路
化も容易である。
As described above, the ADPC of the present invention
When the decoding process is performed by the M-system decoder, a decoded waveform that is faithful to the sampling waveform is obtained. Even if the amplitude value obtained by encoding the original sound and accumulating the difference values exceeds the scale, a large amplitude change that is not present in the decoded waveform. Does not occur. Furthermore, the conventional ADPCM decoder is completely AD
PCM code data is compatible, and even if the value obtained by accumulating the difference values exceeds the output range of the DA converter, the correct amplitude value is always output except at the sampling point where the difference value exceeds the output range, and only a simple circuit needs to be added. Therefore, it is easy to make a semiconductor integrated circuit.

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

【図1】本発明の一実施例のブロック図。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】図1を説明する原音波形符号化データの波形
図。
FIG. 2 is a waveform diagram of original sound waveform coded data for explaining FIG. 1;

【図3】図2の符号化データを図1の復号器で信号処理
した波形図。
FIG. 3 is a waveform chart of signal processing of the encoded data of FIG. 2 by the decoder of FIG. 1;

【図4】従来のADPCM方式復号器の一例のブロック
図。
FIG. 4 is a block diagram showing an example of a conventional ADPCM decoder.

【図5】図4を説明する原音波形符号化データの波形
図。
FIG. 5 is a waveform chart of original sound waveform coded data for explaining FIG. 4;

【図6】図5の符号化データを図4の復号器で復号処理
した波形図。
FIG. 6 is a waveform chart of the encoded data of FIG. 5 decoded by the decoder of FIG. 4;

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

1 Lレジスタのラッチ 2 デコーダ 3 リミッタ 4 Aレジスタのラッチ 5 差分値データテーブルROM 6,11 加減算器 7 Xレジスタのラッチ 8 DA変換器 9 Sレジスタのラッチ 10 ANDゲート Reference Signs List 1 Latch of L register 2 Decoder 3 Limiter 4 Latch of A register 5 Difference value data table ROM 6,11 Adder / subtracter 7 Latch of X register 8 DA converter 9 Latch of S register 10 AND gate

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ADPCM符号データと量子化幅ポイン
タで選択される差分値を加減算器により順次累積して
1のレジスタに保持させこの出力をnビットのDA変換
によりアナログ信号に変換して出力し、前記ADPC
M符号データをデコーダによりデコードして量子化幅ポ
インタの値を順次更新していくADPCM方式復号器に
おいて、前記加減算器により前記差分値の累積演算を
(n+1)ビットまで行ない現在のサンプリング点まで
の差分値を累積させ次のサンプリング点の差分値を加算
または減算した(n+1)ビットの累積値を出力する
2のレジスタと、この第2のレジスタの最上位ビットが
オーバフローとなった時その累積値の下位nビットを前
記nビットDA変換器に転送せずに前記nビットDA変
換器が前記オーバフローする前の値を前記第1のレジス
タに保持させたままに制御するゲート回路とを備えたこ
とを特徴とするADPCM方式復号器。
1. An ADPCM code data and a difference value selected by a quantization width pointer are sequentially accumulated by an adder / subtracter, and are sequentially accumulated .
1 is converted into an analog signal by an n-bit DA converter and output.
In an ADPCM decoder in which M code data is decoded by a decoder and the value of a quantization width pointer is sequentially updated, the adder / subtractor performs the accumulation operation of the difference value up to (n + 1) bits and performs the operation up to the current sampling point. The difference value is accumulated, and the difference value at the next sampling point is added or subtracted, and the (n + 1) -bit accumulated value is output .
And second register, the most significant bit of the second register
When the overflow occurs, the lower n bits of the accumulated value are not transferred to the n-bit D / A converter, and the value before the n-bit D / A converter overflows is stored in the first register.
And a gate circuit for controlling the ADPCM decoder while holding it .
JP17079991A 1991-07-11 1991-07-11 ADPCM decoder Expired - Fee Related JP3200875B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17079991A JP3200875B2 (en) 1991-07-11 1991-07-11 ADPCM decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17079991A JP3200875B2 (en) 1991-07-11 1991-07-11 ADPCM decoder

Publications (2)

Publication Number Publication Date
JPH0519800A JPH0519800A (en) 1993-01-29
JP3200875B2 true JP3200875B2 (en) 2001-08-20

Family

ID=15911569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17079991A Expired - Fee Related JP3200875B2 (en) 1991-07-11 1991-07-11 ADPCM decoder

Country Status (1)

Country Link
JP (1) JP3200875B2 (en)

Also Published As

Publication number Publication date
JPH0519800A (en) 1993-01-29

Similar Documents

Publication Publication Date Title
JP3339335B2 (en) Compression encoding / decoding method
JP2754741B2 (en) Encoding device
JPWO2004098066A1 (en) Floating-point format digital signal lossless encoding method, decoding method, each apparatus, and each program
US6366881B1 (en) Voice encoding method
JP3200875B2 (en) ADPCM decoder
JPH07199996A (en) Device and method for waveform data encoding, decoding device for waveform data, and encoding and decoding device for waveform data
JPS6031325A (en) System and circuit of forecast stop adpcm coding
JP3136797B2 (en) Sound data processing method and sound data processing device
JPH073953B2 (en) Code converter
JP3223281B2 (en) Waveform data encoding device, waveform data encoding method, waveform data decoding device, and waveform data encoding / decoding device
JPS5875341A (en) Data compression device using finite difference
JP3008668B2 (en) ADPCM decoder
JP2626236B2 (en) ADPCM decoder
JP2723660B2 (en) Orthogonal transformer
JP2005018606A (en) Linear prediction analysis method and device of floating-point type signal sequence, program, and its storage medium
JPH0715347A (en) Coder and decoder
JP3083119B2 (en) Encoding / decoding circuit using adaptive delta modulation scheme
KR100799904B1 (en) Inverse quantizer, method for inverse quantizing and recorded medium recorded the program performing it
JP2848610B2 (en) Voice analysis and synthesis device
JP2617207B2 (en) Adaptive differential pulse code modulation encoding / decoding device
JPH0654874B2 (en) Predictive coding device
JP3521487B2 (en) Signal processing device
JP2521052B2 (en) Speech coding system
JP2730028B2 (en) Linear predictive coding method
JP2652371B2 (en) Audio coding method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010522

LAPS Cancellation because of no payment of annual fees