JPS62271525A - Code compression conversion system - Google Patents
Code compression conversion systemInfo
- Publication number
- JPS62271525A JPS62271525A JP11356986A JP11356986A JPS62271525A JP S62271525 A JPS62271525 A JP S62271525A JP 11356986 A JP11356986 A JP 11356986A JP 11356986 A JP11356986 A JP 11356986A JP S62271525 A JPS62271525 A JP S62271525A
- Authority
- JP
- Japan
- Prior art keywords
- code
- digital signal
- register
- sign
- processor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 29
- 230000006835 compression Effects 0.000 title claims abstract description 26
- 238000007906 compression Methods 0.000 title claims abstract description 26
- 238000012545 processing Methods 0.000 claims abstract description 47
- 238000000034 method Methods 0.000 claims description 15
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000015654 memory Effects 0.000 description 1
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
【発明の詳細な説明】
3、発明の詳細な説明
(産業上の利用分野)
本発明は直線符号を非直線PCM符号に変換する方式に
関するものである。Detailed Description of the Invention 3. Detailed Description of the Invention (Field of Industrial Application) The present invention relates to a method for converting a linear code into a non-linear PCM code.
(従来の技術)
従来、このような分野の技術としては、「ディジタル信
号処理の応用」 (電子通信学会発行、P140〜14
3)に記載されたものがある。以下、これに沿って説明
する。(Prior art) Conventionally, as a technology in this field, "Application of digital signal processing" (Published by Institute of Electronics and Communication Engineers, pp. 140-14)
There are some listed in 3). This will be explained below.
従来より、直線符号を非直線符号化する場合に用いられ
る符号として、8ビットμ法則(μ=225)、又は8
ビットへ法則(A=87.6)の折線形の非直線PCM
符号がある。直線符号をこれらの非直線PCM符号に変
換するには、μ法則の非直線PCM符号の場合は直線符
号に「−)−33j又は[+32Jを加算した符号値が
、また、A法則の非直線PCM符号の場合はそのままの
符号値が、それぞれ第2図および第3図に示すような対
応関係にあることを利用して、ハードウェア又はソフト
ウェアにより変換処理を行なっていた。Conventionally, the codes used when converting linear codes to non-linear codes are the 8-bit μ-law (μ=225) or the 8-bit μ-law (μ=225)
Bitto’s law (A=87.6) fold-line non-linear PCM
There is a sign. To convert linear codes to these non-linear PCM codes, in the case of μ-law non-linear PCM codes, the code value obtained by adding "-)-33j or [+32 J" to the linear code is also added to the A-law non-linear PCM code. In the case of PCM codes, conversion processing is performed by hardware or software by utilizing the fact that the original code values have a correspondence relationship as shown in FIGS. 2 and 3, respectively.
一般に、μ法則の非直線PCM符号に変換する処理手順
は下記の如くなる。Generally, the processing procedure for converting into a μ-law nonlinear PCM code is as follows.
1)直線符号の絶対値を求める。1) Find the absolute value of the linear code.
2)絶対値に「+33J又はl+32Jを加算する。2) Add “+33J or l+32J to the absolute value.
3)加算補正した符号13ビツトと入力の極性を表わす
サイン符号(P)1ビツトにより、第2図の対応関係に
基づいて8ビツトの非直IMPCM符号に変換する。3) Conversion into an 8-bit non-direct IMPCM code based on the correspondence shown in FIG. 2 using the 13-bit addition-corrected code and 1-bit sign code (P) representing the polarity of the input.
4)変換された非直線PGM符号を反転する。4) Invert the converted non-linear PGM code.
前述した直線符号を非直線PCM符号に変換する処IM
!(以下、符号圧縮変換処理と称す。)は、ディジタル
信号処理プロセッサを使用したディジタル信号処理の後
において用いられることが多く、これらの処理を全てソ
フトウェアにより、該ディジタル信号処理プロセッサで
実行することも可能である。IM for converting the above-mentioned linear code into a non-linear PCM code
! (hereinafter referred to as code compression conversion processing) is often used after digital signal processing using a digital signal processing processor, and it is also possible to perform all of these processings on the digital signal processing processor using software. It is possible.
しかしながら、ディジタル信号処理プロセッサにおいて
、前記符号圧縮変換処理を行なうために使用可能な時間
(又は時間的な割合)に制限があり、該符号圧縮変換処
理を全てソフトウェアで実現すると、この制限を超過す
るような場合は、前記3)、 4)の処理における、1
ビツトのサイン符号および加算補正を行なった13ビツ
トの符号を8ビツトの非直線PCM符号に変換、反転す
る部分をハードウェアで実現し、その他の絶対値処理、
数値加算処理をソフトウェアで実現するようになしてい
た。However, in a digital signal processor, there is a limit to the time (or time percentage) that can be used to perform the code compression conversion process, and if the code compression conversion process is implemented entirely by software, this limit will be exceeded. In such a case, 1 in the process of 3) and 4) above.
The part that converts and inverts the sign code of bits and the 13-bit code after addition correction to an 8-bit non-linear PCM code is realized by hardware, and other absolute value processing,
Numerical addition processing was implemented using software.
第4図はディジタル信号処理プロセッサを使用した場合
の装置の一例を示すもので、図中、1はディジタル信号
処理プロセッサ、2はデコーダ(DEC) 、3はレジ
スタ、4は符号圧縮変換回路である。また、第5図はデ
ィジタル信号処理プロセッサ1における符号圧縮変換処
理に関する流れ図である。FIG. 4 shows an example of a device using a digital signal processing processor. In the figure, 1 is a digital signal processing processor, 2 is a decoder (DEC), 3 is a register, and 4 is a code compression conversion circuit. . Further, FIG. 5 is a flowchart regarding code compression conversion processing in the digital signal processing processor 1.
前記装置において、直線符号a1 、 a2 、・・・
・・・a14を非直線PGM符号AI 、A2、−・・
−・A8に変換する場合、まずプロセッサ1により、変
換する直線符号中のサイン符号a1を一時記憶し、また
、該直線符号a1〜a14を絶対値化し、即ち前記サイ
ン符号a1が正であればそのままとし、負であれば「−
1」を乗じ、さらにr+33J (又は1”+32J)
を加算し、符号a2−、 a3−、・・・・・・a14
′とし、これに前記記憶したサイン符号^1を付加し、
該サイン符号a1は信号線5を介して、また、加算補正
された13ビツトの符号a2−〜814′は信号線群6
を介してレジスタ3に出力する。また、この際、デコー
ダ2から信号線7を介してレジスタ3のcp端子へセッ
ト信号(パルス)が出力され、前記サイン符号a1と加
算補正された符@82′〜814′が該レジスタ3に設
定される。In the device, linear codes a1, a2, . . .
... a14 is a non-linear PGM code AI, A2, --...
- When converting to A8, first, the processor 1 temporarily stores the sign code a1 in the linear code to be converted, and converts the linear codes a1 to a14 into absolute values, that is, if the sign code a1 is positive, Leave it as is, and if it is negative, “−
Multiply by 1” and then r+33J (or 1”+32J)
are added, and the signs a2-, a3-, ...... a14
', and add the memorized sign code ^1 to it,
The sign code a1 is passed through the signal line 5, and the 13-bit code a2- to 814' which has been added and corrected is sent to the signal line group 6.
It is output to register 3 via. Also, at this time, a set signal (pulse) is output from the decoder 2 to the cp terminal of the register 3 via the signal line 7, and the signs @82' to 814' that have been added and corrected to the sign code a1 are sent to the register 3. Set.
レジスタ3に設定されたサイン符号a1と加算補正され
た符号a2 ′〜814′は、符号圧縮変換回路4によ
り、8ビツトの非直線PCM符号AI。The sign code a1 set in the register 3 and the addition-corrected codes a2' to 814' are converted into an 8-bit nonlinear PCM code AI by the code compression conversion circuit 4.
A2.・・・・・・A8に変換され、さらに反転されて
出力される。なお、前記符号圧縮変換回路4としては、
例えば前記文献に記載されるように複数のり一ドAンリ
メモリ等によって構成される。A2. . . . is converted to A8, further inverted and output. Note that the code compression conversion circuit 4 includes:
For example, as described in the above-mentioned document, it is constituted by a plurality of bonded memories and the like.
(発明が解決しようとする問題点)
しかしながら前記構成によれば、直線符号中のサイン符
号a1を一旦、記憶・格納しておき、絶対値化および数
値加算処理を施した符号a2 ′〜a14−に、前記記
憶・格納したサイン符号a1を付加する、という単純な
手順の処理をディジタル信号処理プロセッサにて行なっ
ており、その分、符号圧縮変換処理に対するプログラム
ステップ数が多くなっており、該ディジタル信号処理プ
ロセッサの利用効率が悪いという問題点があった。(Problems to be Solved by the Invention) However, according to the above configuration, the sine code a1 in the linear code is once memorized and stored, and the codes a2' to a14-, which are converted into absolute values and subjected to numerical addition processing, are The simple procedure of adding the memorized sign code a1 to the digital signal processor is performed by a digital signal processor. There was a problem that the usage efficiency of the signal processing processor was poor.
本発明は前記問題点を除去し、ハード量をそれほど増加
させることなく、ディジタル信号処理プロセッサにおけ
る符号圧縮変換処理に対するプログラムステップ数を減
少させ、該ディジタル信号処理プロセッサの利用効率を
向上し得る符号圧縮変換方式を提供することを目的とす
る。The present invention eliminates the above problems, reduces the number of program steps for code compression conversion processing in a digital signal processing processor without significantly increasing the amount of hardware, and improves the utilization efficiency of the digital signal processing processor. The purpose is to provide a conversion method.
(問題点を解決するための手段)
本発明では前記問題点を解決するため、ディジタル信号
処理プロセッサにて、入力の極性を示すサイン符号を含
む直線符号を絶対値化し、さらに一定の数値を加算し、
前記サイン符号と加算補正後の符号とを符号圧縮変換回
路に入力して非直線PCM符号に変換する符号圧縮変換
方式において、前記アイジタル信号処理プロセッサと符
号圧縮変換回路との間に、前記サイン符号を格納する第
1のレジスタと、前記加算補正後の符号を格納する第2
のレジスタとを設け、ディジタル信号処理プロセッサで
は、まず、第1のレジスタにサイン符号を出力し設定し
、その後、前記絶対値化および数値加算処理を行ない、
加算補正後の符号を第2のレジスタに出力し設定するよ
うになした。(Means for Solving the Problems) In order to solve the above problems, the present invention uses a digital signal processor to convert a linear code including a sign code indicating the polarity of the input into an absolute value, and then adds a certain numerical value. death,
In a code compression conversion method in which the sine code and the code after addition correction are input to a code compression conversion circuit and converted into a non-linear PCM code, the sine code is input between the digital signal processing processor and the code compression conversion circuit. a first register that stores the code, and a second register that stores the code after the addition correction.
The digital signal processing processor first outputs and sets a sign code to the first register, and then performs the absolute value conversion and numerical addition processing,
The code after addition correction is output to the second register and set.
(作 用)
本発明によれば、直線符号中のサイン符号は、ディジタ
ル信号処理プロセッサより、そのまま第1のレジスタに
出力され設定され、一方、該直線符号は、ディジタル信
号処理プロセッサにより絶対値化され、さらに一定の数
値が加算され、第2のレジスタに出力され設定され、該
第1および第2のレジスタより、符号圧縮変換回路にサ
イン符号および加算補正された符号が出力され、非直線
PCM符号に変換される。(Function) According to the present invention, the sine code in the linear code is directly outputted to the first register by the digital signal processing processor and set therein, while the linear code is converted into an absolute value by the digital signal processing processor. Then, a certain numerical value is added, outputted to and set in the second register, and the first and second registers output the sine code and the addition-corrected code to the code compression conversion circuit, and the non-linear PCM converted to code.
(実施例)
第1図は本発明の一実施例を示すもので、図中、従来例
と同一構成部分は同一符号をもって表わす。(Embodiment) FIG. 1 shows an embodiment of the present invention, and in the figure, the same components as those of the conventional example are denoted by the same reference numerals.
即ち、1aはディジタル信号処理プロセッサ、2aはデ
コーダ(DEC)、4は符号圧縮変換回路、8および9
は第1および第2のレジスタである。That is, 1a is a digital signal processing processor, 2a is a decoder (DEC), 4 is a code compression conversion circuit, 8 and 9.
are the first and second registers.
前記ディジタル信号処理プロセッサ1aは、信号線5を
介してレジスタ8と接続され、また、信号線群6を介し
てレジスタ9と接続され、該レジスタ8および9に、そ
れぞれサイン符号および加算補正された符号を出力する
如くなっている。The digital signal processor 1a is connected to a register 8 via a signal line 5, and is also connected to a register 9 via a signal line group 6. It is designed to output a code.
また、デコーダ2aは信号線7aおよび7bを介して、
それぞれレジスタ8および9のcp端子に接続され、該
レジスタ8にサイン符号をセットするためのセット信号
、およびレジスタ9に加算補正された符号をセットする
ためのセット信号を出力する如くなっている。また、レ
ジスタ8および9の出力は全て符号圧縮変換回路4の入
力に接続されている。Further, the decoder 2a is connected via signal lines 7a and 7b,
They are connected to the cp terminals of registers 8 and 9, respectively, and output a set signal for setting the sign code in register 8 and a set signal for setting the addition-corrected code in register 9. Further, the outputs of the registers 8 and 9 are all connected to the input of the code compression conversion circuit 4.
なお、第6図はディジタル信号処理プロセッシ1aにお
ける符号圧縮変換処理の流れ図である。Note that FIG. 6 is a flowchart of the code compression conversion process in the digital signal processing processor 1a.
次に、従来例と同様直線符号a1 、 a2 、・・・
・・・a14を非直線PCM符号AI 、A2 、 ・
=−A8に変換する場合の動作について説明する。Next, as in the conventional example, linear codes a1, a2,...
...a14 is a non-linear PCM code AI, A2, ・
The operation when converting to =-A8 will be explained.
まず、ディジタル信号処理プロセッサ1aは、直線符号
中の1ビツトのサイン符号a1を、そのまま信号線5に
出力する。この際、デコーダ2aよりレジスタ8のcp
端子にセット信号が出力され、該サイン符号a1がレジ
スタ2に設定される。First, the digital signal processor 1a outputs the 1-bit sign code a1 in the linear code to the signal line 5 as it is. At this time, the cp of register 8 is input from the decoder 2a.
A set signal is output to the terminal, and the sign code a1 is set in the register 2.
次にディジタル信号処理プロセッサ1aは前記直線符号
a1〜a14を絶対値化し、さらに「+33」(又はl
−+32J)を加算し、符号a2−、 a3−。Next, the digital signal processor 1a converts the linear codes a1 to a14 into absolute values, and further converts them into "+33" (or l
-+32J), and the signs a2-, a3-.
・・・・・・a14′とし、これを信号線群6を介して
レジスタ9に出力する。また、この際、デコーダ2aか
ら信号線7bを介してレジスタ9のcp端子へセット信
号が出力され、前記加算補正された符号a2−〜a14
′が該レジスタ9に設定される。. . . a14' and outputs it to the register 9 via the signal line group 6. At this time, a set signal is output from the decoder 2a to the cp terminal of the register 9 via the signal line 7b, and the added and corrected codes a2--a14
' is set in the register 9.
レジスタ8および9に設定されたサイン符号a1および
加算補正された符号a2 =〜a14−は、符号圧縮変
換回路4により、8ビツトの非直線PCM符号AI 、
A2 、・・・・・・A8に変換され、さらに反転さ
れて出力される。The sign code a1 and the addition-corrected code a2 =~a14- set in registers 8 and 9 are converted into 8-bit nonlinear PCM code AI,
A2, . . . A8 are converted, and further inverted and output.
前記実施例によれば、ディジタル信号処理プロセッサに
おいて、直線符号中のサイン符号を一時記憶し、直線符
号に他の処理を行なった後、再度、該サイン符号を付加
する処理を行なう必要がなく、その分、プログラムステ
ップ数が少なくなり、符号圧縮変換処理に要する処理時
間が減少する。According to the embodiment, there is no need for the digital signal processor to temporarily store the sine code in the linear code, perform other processing on the linear code, and then perform the process of adding the sine code again. The number of program steps is correspondingly reduced, and the processing time required for code compression conversion processing is reduced.
第7図は本発明の他の実施例を示すもので、ここでは直
線符号の過大値に対する処理を施した例を示す。即ち、
図中、10は過大値の処理を指示する信号を記憶するレ
ジスタであり、該信号はディジタル信号処理プロセッサ
1aより信号線11を介して、該レジスタ10に出力さ
れ設定される。FIG. 7 shows another embodiment of the present invention, in which an example in which processing is performed for excessive values of linear codes is shown. That is,
In the figure, 10 is a register for storing a signal instructing excessive value processing, and the signal is output from the digital signal processor 1a to the register 10 via a signal line 11 and set therein.
而して、符号圧縮変換部5は前記信号に基づいて、出力
の非直線PCM符号を正の最大値又は負の最大値に固定
する。なお、その他の構成および作用は前記実施例と同
様である。Based on the signal, the code compression converter 5 fixes the output non-linear PCM code to the maximum positive value or the maximum negative value. Note that the other configurations and operations are the same as those in the previous embodiment.
(発明の効果)
以上説明したように本発明によれば、ハードウェアの増
加を最小におさえた構成で、ディジタル信号処理ブ0け
ツサにおけるプログラムステップ数を効果的に減少させ
ることができるため、処理時間が減少し、他のディジタ
ル信号処理にその処理時間を割当てることができ、ディ
ジタル信号処理能力の向上が期待できる等の利点がある
。(Effects of the Invention) As explained above, according to the present invention, the number of program steps in the digital signal processing processor can be effectively reduced with a configuration that minimizes the increase in hardware. There are advantages such as the processing time is reduced, the processing time can be allocated to other digital signal processing, and the digital signal processing ability can be expected to be improved.
第1図は本発明の符号圧縮変換方式の一実施例を示す構
成図、第2図は8ビットμ法則における直線符号と非直
線PCM符号との対応を示す図、第3図は8ビットA法
則における第2図と同様な図、第4図は従来の符号圧縮
変換方式の一例を示す図、第5図は第4図の回路におけ
る処理の流れ図、第6図は第1図の回路における処理の
流れ図、第7図は本発明の他の実施例を示す構成図であ
る。
1a・・・ディジタル信号処理プロセッサ、2a・・・
デコーダ、4・・・符号圧縮変換部、8・・・第1のレ
ジスタ、9・・・第2のレジスタ。
特許出願人 沖電気工業株式会社
代把人弁理士 古 1)精 孝
第1図
第4図の回路における処理の流れ図
第6図
第7図FIG. 1 is a block diagram showing an embodiment of the code compression conversion method of the present invention, FIG. 2 is a diagram showing the correspondence between linear codes and non-linear PCM codes in the 8-bit μ law, and FIG. 3 is an 8-bit A Figure 4 is a diagram similar to Figure 2 in the law, Figure 4 is a diagram showing an example of a conventional code compression conversion method, Figure 5 is a flowchart of processing in the circuit of Figure 4, and Figure 6 is a diagram of the circuit of Figure 1. The process flowchart, FIG. 7, is a block diagram showing another embodiment of the present invention. 1a...Digital signal processing processor, 2a...
Decoder, 4... Code compression converter, 8... First register, 9... Second register. Patent applicant: Oki Electric Industry Co., Ltd. Patent attorney Furu 1) Takashi Sei Figure 1 Flowchart of processing in the circuit shown in Figure 4 Figure 6 Figure 7
Claims (1)
サイン符号を含む直線符号を絶対値化し、さらに一定の
数値を加算し、前記サイン符号と加算補正後の符号とを
符号圧縮変換回路に入力して非直線PCM符号に変換す
る符号圧縮変換方式において、 前記ディジタル信号処理プロセッサと符号圧縮変換回路
との間に、前記サイン符号を格納する第1のレジスタと
、前記加算補正後の符号を格納する第2のレジスタとを
設け、 ディジタル信号処理プロセッサでは、まず、第1のレジ
スタにサイン符号を出力し設定し、その後、前記絶対値
化および数値加算処理を行ない、加算補正後の符号を第
2のレジスタに出力し設定するようになした ことを特徴とする符号圧縮変換方式。[Claims] A digital signal processor converts a linear code including a sign code indicating the polarity of the input into an absolute value, adds a certain numerical value, and compresses the sign code and the code after addition correction. In a code compression conversion method that inputs the sine code into a conversion circuit and converts it into a non-linear PCM code, a first register that stores the sine code and a first register that stores the sine code after the addition correction is provided between the digital signal processing processor and the code compression conversion circuit. The digital signal processing processor first outputs and sets the sign code to the first register, then performs the absolute value conversion and numerical addition processing, and after the addition correction 1. A code compression conversion method characterized in that the code of is output to and set in a second register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11356986A JPS62271525A (en) | 1986-05-20 | 1986-05-20 | Code compression conversion system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11356986A JPS62271525A (en) | 1986-05-20 | 1986-05-20 | Code compression conversion system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62271525A true JPS62271525A (en) | 1987-11-25 |
Family
ID=14615573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11356986A Pending JPS62271525A (en) | 1986-05-20 | 1986-05-20 | Code compression conversion system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62271525A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0213133A (en) * | 1988-06-30 | 1990-01-17 | Nec Corp | Code conversion circuit |
-
1986
- 1986-05-20 JP JP11356986A patent/JPS62271525A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0213133A (en) * | 1988-06-30 | 1990-01-17 | Nec Corp | Code conversion circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH05216619A (en) | I/o conversion system for multiple character code set | |
JPS62271525A (en) | Code compression conversion system | |
US4686512A (en) | Integrated digital circuit for processing speech signal | |
US4037226A (en) | Pulse code modulation compressor | |
JPH10190474A (en) | Adpcm transcoder | |
JPS62298229A (en) | Voltage-digital code converter | |
US6775685B1 (en) | Method and apparatus for calculating energy in a-law or μ-law encoded speech signals | |
JP2599984B2 (en) | Input data peak value detection circuit | |
JP3261742B2 (en) | Redundant binary / binary conversion circuit including rounding processing | |
JPS6129932A (en) | Microcomputer with a/d converter | |
KR100201285B1 (en) | Line interface controlling circuit in voice mailing apparatus | |
JP2890412B2 (en) | Code conversion circuit | |
JP3937463B2 (en) | Huffman coding apparatus and method | |
JPH0863411A (en) | Data communicating method and data communication system | |
CA1127307A (en) | .mu.-LAW TO FLOATING POINT CONVERTER | |
JPH02114328A (en) | Patch source conversion method | |
JPS58119046A (en) | Adder and subtracter | |
JPH04260921A (en) | Signal processor | |
JPS5977720A (en) | Digital-analog converting circuit of alternate signal output | |
JPS6029039A (en) | Analog/digital conversion system | |
JPH04323970A (en) | Picture signal processing circuit | |
JPH05252225A (en) | Data conversion system in communication control processing | |
JPH01162926A (en) | Data length variable arithmetic unit | |
JPH0435590A (en) | Difference encoding circuit | |
JPH07120964B2 (en) | Extension circuit |