JPH01280936A - Coding/decoding processing control system - Google Patents

Coding/decoding processing control system

Info

Publication number
JPH01280936A
JPH01280936A JP63109892A JP10989288A JPH01280936A JP H01280936 A JPH01280936 A JP H01280936A JP 63109892 A JP63109892 A JP 63109892A JP 10989288 A JP10989288 A JP 10989288A JP H01280936 A JPH01280936 A JP H01280936A
Authority
JP
Japan
Prior art keywords
data
data area
encoded data
frame
transferred
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
Application number
JP63109892A
Other languages
Japanese (ja)
Inventor
Hideaki Kurihara
秀明 栗原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63109892A priority Critical patent/JPH01280936A/en
Publication of JPH01280936A publication Critical patent/JPH01280936A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PURPOSE:To prevent noise due to fluctuation of synchronization of a received coded data by transferring a coded data from a reception buffer to a 1st data area if the 1st data area is not in use and transferring the coded data from the reception buffer to a 2nd data area when the 1st data area is busy. CONSTITUTION:When an interruption flag is set before the start of coding processing, a coded data is transferred from the reception buffer 3 to the 1st data area 4. When an interrupt flag is set before decoding processing, if the 1st data area 4 is idle, the coded data is transferred and transferred to the 2nd data area 5 when not idle and the coded data is transferred from the 2nd data area 5 to the 1st data area 4 by the end of decoding processing. Thus, the memory capacity is saved and the fluctuation of frame synchronization of the received coded data due to the state change of a transmission line is absorbed by the 1st and 2nd data areas 4, 5, then the generating of noise is prevented.

Description

【発明の詳細な説明】 〔概要〕 1個のディジタル信号処理プロセッサにより符号化と復
号化とを行う符号復号処理制御方式に関受信符号化デー
タの同期の揺らぎによるノイズを、ワークエリアを拡大
することなく防止することを目的とし、 1個のディジタル信号処理ブロセ・ノサと送信バッファ
と受信ハソファとを備え、且つ第1.第2のデータエリ
アを設け、受信バッファに1フレーム分の符号化データ
を受信蓄積する毎に割込フラグをセットし、前記ディジ
タル信号処理プロセッサは、フレーム信号の立上りによ
り符号化処理を開始して、符号化データを前記送信バ・
ノファに加え、前記フレーム信号の立下りにより前記第
1のデータエリアから符号化データを読出して復号化処
理を開始し、前記符号化処理開始前に前記割込フラグが
セットされた時、前記第1のデータエリアに前記受信バ
ッファから符号化データを転送し、前記復号化処理開始
前に前記割込フラグがセットされた時、前記第1のデー
タエリアが未使用状態の場合は該第1のデータエリアに
前記受信バ・ノファから符号化データを転送し、前記第
1のデータエリアが使用状態の場合は前記第2のデータ
エリアに前記受信ハソファから符号化データを転送し、
それぞれ割込フラグをリセフトする。又復号化処理終了
により前記第2のデータエリアから前記第1のデータエ
リアへ符号化データを転送するするように構成した。
[Detailed Description of the Invention] [Summary] Regarding a code/decoding processing control method that performs coding and decoding using one digital signal processing processor, the work area is expanded to eliminate noise caused by fluctuations in synchronization of received coded data. The first digital signal processing system includes one digital signal processing buffer, a transmission buffer, and a reception buffer. A second data area is provided, and an interrupt flag is set each time one frame of encoded data is received and accumulated in the reception buffer, and the digital signal processor starts encoding processing at the rising edge of the frame signal. , send the encoded data to the transmitter
In addition to the first signal, when the encoded data is read from the first data area and the decoding process is started at the falling edge of the frame signal, and the interrupt flag is set before the start of the encoding process, the first When the encoded data is transferred from the reception buffer to the data area 1 and the interrupt flag is set before the start of the decoding process, if the first data area is unused, the first data area is Transferring encoded data from the reception bar to a data area, and when the first data area is in use, transferring encoded data from the reception bar to the second data area;
Reset each interrupt flag. Further, the encoded data is configured to be transferred from the second data area to the first data area upon completion of the decoding process.

〔産業上の利用分野〕[Industrial application field]

本発明は、1個のディジタル信号処理プロセッサにより
符号化と復号化とを行う符号復号処理制御方式に関する
ものである。
The present invention relates to a code/decoding process control system that performs encoding and decoding using one digital signal processor.

音声信号や画像信号等を高能率符号化して伝送する方式
に於いて、加入者側の装置を簡単且つ小型化する為に、
1個のディジタル信号処理プロセッサを用いて、符号化
と復号化とを行わせる方式が採用されている。このよう
な符号復号化処理制御方式に於いて、ノイズ発生がなく
、経済的に符号化と復号化との処理が行われることが要
望されている。
In the system of highly efficient encoding and transmission of audio signals, image signals, etc., in order to simplify and downsize the equipment on the subscriber side,
A method has been adopted in which one digital signal processor is used to perform encoding and decoding. In such an encoding/decoding process control system, it is desired that the encoding and decoding processes be performed economically without noise generation.

〔従来の技術〕[Conventional technology]

第6図は前述のような1個のディジタル信号処理プロセ
ッサ(DSP)31を用いて、符号化処理と復号化処理
とを行うシステム構成説明図であり、32は送受信部、
33はメモリ、34はA/D変換器、35はD/A変換
器、36はハイブリッド回路(H) 、37は電話機、
38は送信バッファ (SBF) 、39は受信バッフ
ァ (RBF)、40は交換網である。
FIG. 6 is an explanatory diagram of a system configuration that performs encoding processing and decoding processing using one digital signal processing processor (DSP) 31 as described above, and 32 is a transmitting/receiving section;
33 is a memory, 34 is an A/D converter, 35 is a D/A converter, 36 is a hybrid circuit (H), 37 is a telephone,
38 is a sending buffer (SBF), 39 is a receiving buffer (RBF), and 40 is a switching network.

電話機37からのアナログ音声信号は、A/D変換器3
4によりディジタル信号に変換されてディジタル信号処
理プロセッサ31に加えられ、1フレーム毎に高能率符
号化される。音声信号の1フレームは、例えば、l 5
ms又は32msに選定され、8KHzで音声信号のサ
ンプリングを行った場合、128又は256サンプル数
となる。
The analog audio signal from the telephone 37 is sent to the A/D converter 3.
4, the signal is converted into a digital signal and sent to the digital signal processing processor 31, where it is highly efficiently encoded on a frame-by-frame basis. One frame of the audio signal is, for example, l 5
ms or 32 ms, and if the audio signal is sampled at 8 KHz, the number of samples will be 128 or 256.

又1サンプルを8ビツトとすると、64 K b / 
sのビットレートとなる。
Also, if one sample is 8 bits, then 64 Kb/
The bit rate is s.

ディジタル信号処理プロセッサ31は、前述の64 K
 b / sの音声データを、適応予測符号化等により
16 K b / s或いは8 K b / s等に圧
縮処理する高能率符号化処理を行い、その符号化データ
を送信バッファ38に一旦蓄積し、一定速度で読出して
送出し、交換y440を介して相手加入者へ伝送する。
The digital signal processing processor 31 has the aforementioned 64K
A high-efficiency encoding process is performed to compress the b/s audio data to 16 K b/s or 8 K b/s using adaptive predictive coding, etc., and the encoded data is temporarily stored in the transmission buffer 38. , read out at a constant speed, send it out, and transmit it to the other subscriber via exchange y440.

又相手加入者から交換網40を介して伝送された符号化
データを、受信バッファ39に受信蓄積し、■フレーム
分の受信によりディジタル信号処理プロセッサ31に割
込要求IRQを行う。ディジタル信号処理プロセッサ3
1は、この割込要求IRQにより受信バッファ39から
符号化データを読出して復号化処理を行い、復号化デー
タをD/A変換器35に加えてアナログ音声信号に変換
し、ハイブリッド回路36を介して電話機37に加える
Also, the encoded data transmitted from the other subscriber via the switching network 40 is received and stored in the reception buffer 39, and an interrupt request IRQ is sent to the digital signal processing processor 31 upon reception of ① frames. Digital signal processing processor 3
1 reads encoded data from the reception buffer 39 in response to this interrupt request IRQ, performs decoding processing, adds the decoded data to the D/A converter 35, converts it into an analog audio signal, and sends it through the hybrid circuit 36. and add it to telephone 37.

第7図は前述の処理タイミング説明図で、(a)はフレ
ーム信号、(b)は符号化処理、(C)は復号化処理を
示す。フレーム信号の立上りにより符号化処理が開始さ
れ、前述のように、1フレーム分の符号化データの受信
による割込要求IRQによって復号化処理が開始される
。第7図に於いては、符号化処理の途中に割込要求IR
Qが加えられた場合を示し、その割込要求IRQにより
符号化処理は中断されて、tc+に示すように復号化処
理が開始され、その復号化処理が終了すると、符号化処
理が再開される。
FIG. 7 is a diagram explaining the above-mentioned processing timing, in which (a) shows a frame signal, (b) shows an encoding process, and (C) shows a decoding process. Encoding processing is started by the rising edge of the frame signal, and decoding processing is started by an interrupt request IRQ upon reception of one frame of encoded data, as described above. In FIG. 7, an interrupt request IR is sent during the encoding process.
Indicates the case where Q is added, the encoding process is interrupted by the interrupt request IRQ, the decoding process is started as shown in tc+, and when the decoding process is finished, the encoding process is restarted. .

第8図は従来例のフローチャートであり、フレーム信号
の立上りか否か識別し■、立上りの場合は符号化処理0
を開始する。そして、割込要求の存無を識別し◎、割込
要求がなければ符号化処理を継続し、割込要求があると
、符号化処理を中断し0、復号化処理[相]を開始する
。この復号化処理が終了すると、符号化処理を再開する
[相]。
FIG. 8 is a flowchart of a conventional example, in which it is determined whether or not the frame signal is rising, and if it is a rising edge, the encoding process is 0.
Start. Then, it identifies whether there is an interrupt request or not, and if there is no interrupt request, it continues the encoding process, and if there is an interrupt request, it interrupts the encoding process and starts the decoding process [phase]. . When this decoding process is completed, the encoding process is restarted [phase].

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

1個のディジタル信号処理プロセッサ31により、符号
化処理、と復号化処理とを行う構成としたことにより、
小型且つ経済的な構成とすることができる。しかし、符
号化処理側として、入力データを処理するまで蓄積する
メモリエリアと、割込時の保護の為の次フレームのデー
タを請積するメモリエリアを確保する必要があると共に
、符号化処理途中に於ける割込要求により、符号化処理
途中のデータを退避する為のメモリエリアが必要であり
、従って、符号化処理のワークエリアを大きく確保する
必要があり、その為に大きい容量のメモリを必要とする
欠点があった。
By having a configuration in which one digital signal processing processor 31 performs encoding processing and decoding processing,
The configuration can be small and economical. However, on the encoding processing side, it is necessary to secure a memory area for storing input data until it is processed, and a memory area for requesting data for the next frame for protection in the event of an interrupt. Due to interrupt requests during the encoding process, a memory area is required to save data during the encoding process.Therefore, it is necessary to secure a large work area for the encoding process, and for this reason, a large capacity memory is required. There was a flaw that made it necessary.

又符号化処理はフレーム信号に同期して開始することが
できるが、復号化処理は、受信符号化データのフレーム
に同期して開始することになり、温度変動等による伝送
路の状態変化により、受信符号化データのフレーム同期
に数μ秒の揺らぎが生じる。このフレーム同期の揺らぎ
によりノイズが発生する欠点があった。
Furthermore, although the encoding process can be started in synchronization with the frame signal, the decoding process must be started in synchronization with the frame of the received encoded data. A fluctuation of several microseconds occurs in frame synchronization of received encoded data. There was a drawback that noise was generated due to fluctuations in frame synchronization.

例えば、第9図の(alに示すフレーム信号の立上りに
より(blに示すように符号化処理を開始し、このフレ
ーム信号の立下りに同期して、割込要求IRQが加えら
れると、即ち、符号化処理のフレーム信号と、受信符号
化データのフレームとが同期している場合、(C)に示
すように復号化処理が開始され、次のフレーム信号の立
上り前に復号此処Plが終了し、フレーム信号の立上り
によりfd)に示すように復号化データを出力すること
により、前フレームの復号化データとの連続性が維持さ
れる。
For example, when the encoding process is started as shown in (bl) by the rising edge of the frame signal shown in (al) in FIG. 9, and an interrupt request IRQ is added in synchronization with the falling edge of this frame signal, that is, When the frame signal of the encoding process and the frame of the received encoded data are synchronized, the decoding process starts as shown in (C), and the decoding process Pl ends before the next frame signal rises. , by outputting the decoded data as shown in fd) at the rising edge of the frame signal, continuity with the decoded data of the previous frame is maintained.

(−かし、受信符号化データのフレーム同期の揺らぎに
より、点線矢印で示すように、フレーム信号の立下りか
ら遅れて割込要求IRQ“が加えられる場合がある。こ
の場合は、(elに示すように復号化処理が開始され、
その終了タイミングがフレーム信号の立上り後になると
、(flの斜線を施した部分に於いて前フレームの復号
化データが繰り返して出力され、復号化処理の終了によ
りその復号化データが出力される。従って、斜線を施し
た部分の復号化データは1、連続性を有しないものとな
るから、アナログ音声信号に変換した時にノイズとなる
(- However, due to fluctuations in the frame synchronization of the received encoded data, the interrupt request IRQ may be added late from the falling edge of the frame signal, as shown by the dotted arrow. In this case, (el The decryption process will start as shown,
When the end timing is after the rise of the frame signal, the decoded data of the previous frame is repeatedly output in the shaded part of fl, and the decoded data is output when the decoding process ends. , the decoded data in the shaded portion is 1, and does not have continuity, so it becomes noise when converted to an analog audio signal.

本発明は、受信符号化データの同期の揺らぎによるノイ
ズを、ワークエリアを拡大することなく防止することを
目的とするものである。
An object of the present invention is to prevent noise caused by fluctuations in the synchronization of received encoded data without enlarging the work area.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の符号復号処理制御方式は、フレーム信号の立上
りにより符号化処理を開始し、フレーム信号の立下りに
より復号化処理を開始するものであり、第1図を参照し
て説明する。
The encoding/decoding processing control method of the present invention starts the encoding processing at the rising edge of a frame signal, and starts the decoding processing at the falling edge of the frame signal, and will be explained with reference to FIG.

1個のディジタル信号処理プロセッサ1と送信バッファ
2と受信バッファ3とを備えて、符号化処理と復号化処
理とを一定時間で切替える符号復号処理制御方式に於い
て、第1.第2のデータエリア4,5を設けて、受信バ
ッファ3に1フレーム分の符号化データを受信蓄積する
毎に割込フラグをセットし、ディジタル信号処理プロセ
ッサ1は、フレーム信号の立上りにより符号化処理を開
始し、フレーム信号の立下りにより第1のデータエリア
4から符号化データを読出して復号化処理を開始する。
In the coding/decoding processing control method that includes one digital signal processing processor 1, transmission buffer 2, and reception buffer 3 and switches between coding processing and decoding processing at a fixed time, the first method is as follows. Second data areas 4 and 5 are provided, and an interrupt flag is set each time encoded data for one frame is received and accumulated in the reception buffer 3, and the digital signal processing processor 1 performs encoding at the rising edge of the frame signal. Processing is started, and encoded data is read out from the first data area 4 at the falling edge of the frame signal, and decoding processing is started.

又符号化処理開始前に割込フラグがセットされた時は、
第1のデータエリア4に受信バッファ3から符号化デー
タを転送して割込フラグをリセットし、又復号化処理開
始前に割込フラグがセットされた時は、第1のデータエ
リア4が未使用状態の場合に、第1のデータエリア4に
受信バッファ3から符号化データを転送して割込フラグ
をリセットし、第1のデータエリア4が使用状態の場合
に、第2のデータエリア5に受信バッファ3がら符号化
データを転送して割込フラグをリセットする。又復号化
処理終了により第2のデータエリア5から第1のデータ
エリア4に符号化データを転送するものである。
Also, if the interrupt flag is set before the encoding process starts,
When the encoded data is transferred from the reception buffer 3 to the first data area 4 and the interrupt flag is reset, and when the interrupt flag is set before the start of the decoding process, the first data area 4 is When in use, encoded data is transferred from reception buffer 3 to first data area 4 to reset the interrupt flag, and when first data area 4 is in use, encoded data is transferred from reception buffer 3 to first data area 4. The encoded data is transferred from the reception buffer 3 to reset the interrupt flag. Further, upon completion of the decoding process, encoded data is transferred from the second data area 5 to the first data area 4.

〔作用〕[Effect]

第1及び第2のデータエリア4.5は、ディジタル信号
処理プロセッサ1の内部メモリ或いは外部メモリに形成
することができ、受信バッファ3から第1のデータエリ
ア4又は第2のデータエリア5に受信符号化データを転
送し、第2のデータエリア5から第1のデータエリア4
へ符号化データを転送する構成を有する。
The first and second data areas 4.5 can be formed in the internal memory or external memory of the digital signal processing processor 1, and receive data from the reception buffer 3 to the first data area 4 or the second data area 5. Transfer the encoded data from the second data area 5 to the first data area 4
It has a configuration to transfer encoded data to.

又ディジタル信号処理プロセッサ1は、受信符号化デー
タのフレーム同期の揺らぎに関係なく、フレーム信号の
立上りにより符号化処理、立下りにより復号化処理を開
始する。復号化処理は、第1のデータエリア4から符号
化データを読出して行うものである。又受信バッファ3
で1フレーム分の符号化データを受信すると、割込フラ
グをセットする。ディジタル信号処理プロセッサ1は、
このil+込フラフラグて、受信バッファ3とデータエ
リア4,5との間のデータ転送を制御する。即ち、符号
化処理開始前に割込フラグがセットされた時は、受信バ
ッファ3から第1のデータエリア4に符号化データを転
送し、復号化処理開始前に割込フラグがセットされた時
は、第1のデータエリア4が使用中か否かを判断して、
使用中でなれば、その第1のデータエリア4へ受信バッ
ファ3から符号化データを転送し、使用中であれば、第
2のデータエリア5へ受信バッファ3から符号化データ
を転送する。そして、転送終了により割込フラグをリセ
ットする。
Further, the digital signal processor 1 starts the encoding process at the rising edge of the frame signal, and the decoding process at the falling edge of the frame signal, regardless of fluctuations in the frame synchronization of the received encoded data. The decoding process is performed by reading encoded data from the first data area 4. Also, receive buffer 3
When one frame of encoded data is received, an interrupt flag is set. The digital signal processing processor 1 is
This il+include flag controls data transfer between the reception buffer 3 and the data areas 4 and 5. That is, when the interrupt flag is set before the start of the encoding process, the encoded data is transferred from the reception buffer 3 to the first data area 4, and when the interrupt flag is set before the start of the decoding process. determines whether the first data area 4 is in use,
If it is in use, the encoded data is transferred from the reception buffer 3 to the first data area 4, and if it is in use, the encoded data is transferred from the reception buffer 3 to the second data area 5. Then, upon completion of the transfer, the interrupt flag is reset.

又復号化処理は第1のデータエリア4から符号化データ
を読出して行うものであるから、復号化処理終了により
第2のデータエリア5の符号化データを第1のデータエ
リア4に転送する。
Furthermore, since the decoding process is performed by reading the encoded data from the first data area 4, the encoded data in the second data area 5 is transferred to the first data area 4 upon completion of the decoding process.

従って、第1と第2とのデータエリアにより、受信符号
化データのフレーム同期の揺らぎが吸収されるので、ノ
イズの発生はなくなり、又符号化処理が中断されること
がないので、データ退避用のエリアを確保する必要もな
くなる。
Therefore, fluctuations in the frame synchronization of received encoded data are absorbed by the first and second data areas, eliminating the generation of noise and preventing interruption of the encoding process. There is no need to secure an area for this purpose.

〔実施例〕〔Example〕

以下図面を参照して本発明の実施例について詳細に説明
する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第2図は本発明の実施例のブロック図であり、IIはデ
ィジタル信号処理プロセッサ、12は送受信部、13は
外部メモリ、14はA/D変換器、15はD/A変換器
、16はハイブリッド回路、17は電話機、18は送信
バッファ、19は受信バッファ、20.21は第1及び
第2のデータエリアである。この実施例は、第1及び第
2のデータエリア20.21を外部メモリ13に形成し
た場合を示すが、ディジタル信号処理プロセッサ11の
内部メモリに形成することも可能である。
FIG. 2 is a block diagram of an embodiment of the present invention, where II is a digital signal processing processor, 12 is a transmitter/receiver, 13 is an external memory, 14 is an A/D converter, 15 is a D/A converter, and 16 is a The hybrid circuit includes a telephone set 17, a transmitting buffer 18, a receiving buffer 19, and first and second data areas 20 and 21. Although this embodiment shows the case where the first and second data areas 20.21 are formed in the external memory 13, it is also possible to form them in the internal memory of the digital signal processing processor 11.

ディジタル信号処理プロセッサ11は、フレーム信号の
立上りによりA/D変換器14で変換されたディジタル
信号の帯域圧縮を行う符号化処理を開始し、符号化デー
タを送信バッファ18に加える。又フレーム信号の立下
りにより第1のデータエリア20から符号化データを読
出して復号化処理を開始し、復号化データをD/A変換
器15に加えてアナログ音声信号に変換する。
The digital signal processor 11 starts encoding processing for band compression of the digital signal converted by the A/D converter 14 at the rising edge of the frame signal, and adds encoded data to the transmission buffer 18 . Also, upon the fall of the frame signal, encoded data is read out from the first data area 20 to start decoding processing, and the decoded data is added to the D/A converter 15 and converted into an analog audio signal.

又受信バッファ19は、符号化データを1フレーム分受
信する毎に割込フラグをセットする。ディジタル信号処
理プロセッサ11は、割込フラグのセットを識別すると
、ダイレクトメモリアクセス制御等により、受信バッフ
ァ19から第1又は第2のデータエリア20.21へ符
号化データの転送を行わせる。この場合、符号化処理開
始前に割込フラグがセットされた時は、第1のデータエ
リア20へ転送され、又復号化処理開始前に割込フラグ
がセットされた時は、第1のデータエリア20が未使用
であれば(先に転送された符号化データの復号化処理が
終了して、符号化データが蓄積されていなければ)、こ
の第1のデータエリア20へ転送され、又この第1のデ
ータエリアが未使用でなければ(先に転送された符号化
データの復号化処理が終了していなければ)、第2のデ
ータエリア21へ転送され、それぞれの場合の転送終了
により割込フラグはリセットされる。そして、第2のデ
ータエリア21に転送された符号化データは、第1のデ
ータエリア20に転送された符号化データの復号化処理
が終了すると、第1のデータエリア20へ転送される。
Also, the reception buffer 19 sets an interrupt flag every time it receives one frame of encoded data. When the digital signal processor 11 identifies the setting of the interrupt flag, it causes the encoded data to be transferred from the reception buffer 19 to the first or second data area 20.21 by direct memory access control or the like. In this case, when the interrupt flag is set before the start of the encoding process, the data is transferred to the first data area 20, and when the interrupt flag is set before the start of the decoding process, the first data If the area 20 is unused (if the decoding process of the previously transferred encoded data has been completed and the encoded data has not been accumulated), the data is transferred to this first data area 20, and this If the first data area is not unused (unless the decoding process of the previously transferred encoded data has not been completed), it is transferred to the second data area 21 and allocated upon completion of transfer in each case. The included flag is reset. Then, the encoded data transferred to the second data area 21 is transferred to the first data area 20 when the decoding process of the encoded data transferred to the first data area 20 is completed.

第3図は本発明の実施例のフローチャートであり、フレ
ーム信号の立上りか否かを識別し■、立上りの場合、割
込フラグの判定を行う■。割込フラグがセットされてい
ない場合(L″)、そのまま符号化処理を開始する■。
FIG. 3 is a flowchart of an embodiment of the present invention, in which it is determined whether the frame signal is rising or not, and if it is rising, the interrupt flag is determined (2). If the interrupt flag is not set (L''), start the encoding process as is.

又割込フラグがセットされている場合(“H”)、第1
のデータエリア20へ受信バッファ19から符号化デー
タを転送する■。そして、割込フラグをリセットする■
Also, if the interrupt flag is set (“H”), the first
Transfer the encoded data from the reception buffer 19 to the data area 20 of (2). Then reset the interrupt flag■
.

符号化処理が終了し、フレーム信号が立下ると復号化処
理を開始する。その場合、先ず割込フラグの判定を行う
■。割込フラグがセットされていない場合(L″)、第
1のデータエリア20から符号化データを読出して復号
化処理を行う0゜又割込フラグがセットされている場合
(“H”)、第1のデータエリア20が未使用であるか
否か判定する■。未使用の場合は、第1のデータエリア
20へ受信バッファ19から符号化データを転送して■
、割込フラグをリセットする■。文筆1のデータエリア
20が使用中の場合は、第2のデータエリア21へ受信
バッファ19から符号化データを転送して[相]、割込
フラグをリセットし■、復号化処理を行う@。
When the encoding process ends and the frame signal falls, the decoding process starts. In that case, the interrupt flag is first determined (2). If the interrupt flag is not set (L''), read the encoded data from the first data area 20 and perform decoding processing, or if the interrupt flag is set (``H''), Determine whether or not the first data area 20 is unused. If it is unused, transfer the encoded data from the reception buffer 19 to the first data area 20.
■Reset the interrupt flag. If the data area 20 of the writer 1 is in use, the encoded data is transferred from the reception buffer 19 to the second data area 21 [phase], the interrupt flag is reset, and the decoding process is performed @.

復号化処理の終了後、第2のデータエリア21を使用し
たか否か判定する0゜使用した場合は、第1のデータエ
リア20に符号化データを転送する■。そして、最初の
ステップ■に戻る。
After the decoding process is completed, it is determined whether or not the second data area 21 has been used. If 0° has been used, the encoded data is transferred to the first data area 20. Then, return to the first step ■.

第4図は本発明の実施例の動作説明図であり、fa)は
フレーム信号、(b)は第1のデータエリア20、(C
)は第2のデータエリア21 、(dlは復号化データ
を示す。又1a、2a、6a、7a及び3b。
FIG. 4 is an explanatory diagram of the operation of the embodiment of the present invention, in which fa) is a frame signal, (b) is the first data area 20, (C
) is the second data area 21, (dl indicates decoded data, and 1a, 2a, 6a, 7a, and 3b).

4b、5bは、それぞれ受信符号化データのフレーム番
号1〜7に対応した割込フラグのセット・タイミングの
一例を示し、aはフレーム信号の立下り後、bはフレー
ム信号の立上り後を示す。即ち、受信符号化データのフ
レーム同期の揺らぎがある場合を示す。又(b)、 (
cl、 (d)の1〜7は、それぞれ受信符号化データ
のフレーム番号1〜7に対応する。
4b and 5b show examples of setting timings of interrupt flags corresponding to frame numbers 1 to 7 of received encoded data, respectively, where a shows after the fall of the frame signal and b shows after the rise of the frame signal. That is, this shows a case where there is fluctuation in frame synchronization of received encoded data. Also (b), (
cl, 1 to 7 in (d) correspond to frame numbers 1 to 7 of the received encoded data, respectively.

又フレーム信号と、符号化、復号化処理との関係は、第
5図の(al、 (b)に示すように、フレーム信号の
立上りにより符号化処理が開始され、立下りにより復号
化処理が開始されるものであり、従来例のように、符号
化処理の途中に割込みが行われて、符号化処理が中断さ
れることはなくなる。従って、退避データ用のエリアを
確保しておく必要はなく、ワークエリアを最小限とする
ことができる。
The relationship between the frame signal and the encoding and decoding processes is as shown in (al) and (b) in Figure 5, the encoding process starts when the frame signal rises, and the decoding process starts when the frame signal falls. This means that the encoding process will not be interrupted due to an interrupt occurring during the encoding process as in the conventional example.Therefore, there is no need to reserve an area for the save data. This allows you to minimize the work area.

フレーム番月1の符号化データの受信により、第4図の
(a)に示す1aのタンミングで割込フラグがセットさ
れた場合、フレーム信号の立下りにより復号化処理が開
始された後で、符号化処理の開始前であるから、フレー
ム信号の次の立上り時点で割込フラグの判定が行われる
(第3図のステップ■参照)。従って、この符号化デー
タは第1のデータエリア20に転送され、フレーム信号
の次の立下りにより復号化処理が行われ、フレーム信号
の次の立上りによりフレーム番号lの復号化データは、
(dlに示すように出力される。
When the interrupt flag is set at the timing 1a shown in FIG. 4(a) due to the reception of the encoded data of frame number 1, after the decoding process is started by the fall of the frame signal, Since this is before the start of the encoding process, the interrupt flag is determined at the next rising edge of the frame signal (see step (2) in FIG. 3). Therefore, this encoded data is transferred to the first data area 20 and decoded at the next falling edge of the frame signal, and the decoded data of frame number l is transferred to the next rising edge of the frame signal.
(Output as shown in dl.

又2aのタイミングで割込フラグがセットされた場合も
、符号化処理の開始前であり、このフレーム番号2の符
号化データも第1のデータエリア20に転送され、フレ
ーム信号の次の立下りにより復号化処理が開始され、フ
レーム信号の次の立上りにより、フレーム番号2の復号
化データは(dlに示すようにフレーム番号1の復号化
データの次に出力される。
Also, when the interrupt flag is set at timing 2a, it is before the encoding process starts, and the encoded data of frame number 2 is also transferred to the first data area 20, and the next falling edge of the frame signal The decoding process is started, and at the next rising edge of the frame signal, the decoded data of frame number 2 is outputted next to the decoded data of frame number 1, as shown in (dl).

又フレーム番号3の符号化データのフレーム同期位相が
フレーム番号1.2の符号化データのフレーム同期位相
に比較して進み、3bのタイミングで割込フラグがセッ
トされた場合、復号化処理の開始前にセットされたもの
であるから、第1のデータエリア20が未使用か否か判
定される(第3図のステップ■参照)。この場合、第1
のデータエリア20にフレーム番号2の符号化データが
転送されているので、第2のデータエリア21にフレー
ム番号3の符号化データが転送される。従って、第1及
び第2のデータエリア20.21は、3bのタイミング
後の(b)、 (C)に示すように、フレーム番号2.
3の符号化データが蓄積されていることになる。
Also, if the frame synchronization phase of the encoded data of frame number 3 advances compared to the frame synchronization phase of the encoded data of frame number 1.2, and the interrupt flag is set at timing 3b, the decoding process starts. Since it has been set previously, it is determined whether the first data area 20 is unused (see step 3 in FIG. 3). In this case, the first
Since the encoded data of frame number 2 has been transferred to the second data area 20, the encoded data of frame number 3 is transferred to the second data area 21. Therefore, the first and second data areas 20.21 have frame numbers 2.
This means that 3 encoded data are stored.

そして、フレーム番号2の符号化データの復号化処理が
終了すると、第2のデータエリア21から第1のデータ
エリア20へ、フレーム番号3の符号化データが転送さ
れる。又フレーム番号4の符号化データを受信して、4
bのタイミングで割込フラグがセットされると、復号化
処理の開始前の判定により第2のデータエリア21に符
号化データが転送される。又フレーム番号5の符号化デ
ータを受信した場合も同様に、第2のデータエリア21
へ転送されることになる。
When the decoding process of the encoded data of frame number 2 is completed, the encoded data of frame number 3 is transferred from the second data area 21 to the first data area 20. Also, receiving the encoded data of frame number 4,
When the interrupt flag is set at timing b, the encoded data is transferred to the second data area 21 based on a determination before the start of the decoding process. Similarly, when encoded data of frame number 5 is received, the second data area 21
will be transferred to.

次のフレーム番号6の符号化データのフレーム同期が遅
れて、6aのタイミングで割込フラグがセットされると
、フレーム番号1.2の場合と同様に、第1のデータエ
リア20に符号化データが転送される。そして、フレー
ム信号の立下りにより復号化処理が開始され、次の立上
りにより復号化データが出力されるので、(dlに示す
ように、受信符号化データのフレーム同期の揺らぎが吸
収されで、復号化データは連続性を維持することができ
る。
If the frame synchronization of the encoded data of the next frame number 6 is delayed and the interrupt flag is set at timing 6a, the encoded data will be stored in the first data area 20 as in the case of frame number 1.2. is transferred. Then, the decoding process is started at the falling edge of the frame signal, and the decoded data is output at the next rising edge. As shown in (dl), fluctuations in the frame synchronization of the received encoded data are absorbed and decoding data can maintain continuity.

前述の実施例は、音声信号を高能率符号化する場合につ
いて示すものであるが、画像信号を送受信する為に、高
能率符号化する場合に於いても適用することが可能であ
る。
Although the above-mentioned embodiment shows the case of highly efficient encoding of an audio signal, it can also be applied to the case of highly efficient encoding for transmitting/receiving an image signal.

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

以上説明したように、本発明は、符号化処理と復号化処
理とを一定時間毎に切替えて、1個のディジタル信号処
理プロセッサ1により行うものであり、その場合に、第
1.第2のデータエリア4.5を設け、又受信バッファ
3に1フレーム分の符号化データを受信する毎に割込フ
ラグをセットし、符号化処理開始前に割込フラグがセッ
トされている場合は、受信バッファ3から第1のデータ
エリア4に符号化データを転送し、復号化処理前に割込
フラグがセットされている場合は、第1のデータエリア
4が空きであればそれに符号化データを転送し、空きで
なければ第2のデータエリア5へ転送し、復号化処理終
了により第2のデータエリア5から第1のデータエリア
4へ符号化データを転送するもので、ディジタル信号処
理プロセッサ1による符号化処理の途中に割込みを行う
ものではないので、退避データ用のエリアを確保する必
要がなく、メモリ容量を削減することができる利点があ
る。
As explained above, according to the present invention, encoding processing and decoding processing are switched at regular intervals and performed by one digital signal processing processor 1. In this case, the first . When a second data area 4.5 is provided and an interrupt flag is set each time one frame of encoded data is received in the reception buffer 3, and the interrupt flag is set before the encoding process starts. transfers the encoded data from the reception buffer 3 to the first data area 4, and if the interrupt flag is set before the decoding process, the encoded data is transferred to the first data area 4 if it is empty. Data is transferred, if it is not empty, it is transferred to the second data area 5, and when the decoding process is completed, the encoded data is transferred from the second data area 5 to the first data area 4. Digital signal processing Since no interruption is performed during the encoding process by the processor 1, there is no need to secure an area for save data, and there is an advantage that the memory capacity can be reduced.

又伝送路の状態変化等による受信符号化データのフレー
ム同期の揺らぎは、第1及び第2のデータエリア4,5
により吸収することができるから、ノイズの発生を防止
することができる利点がある。
Also, fluctuations in the frame synchronization of received encoded data due to changes in the state of the transmission path, etc.
This has the advantage of preventing the generation of noise.

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

第1図は本発明の原理説明図、第2図は本発明の実施例
のブロック図、第3図は本発明の実施例のフローチャー
ト、第4図は本発明の実施例の動作説明図、第5図はフ
レーム信号と符号化復号化処理の切替説明図、第6図は
システム構成説明図、第7図は従来例の処理タイミング
説明図、第8図は従来例のフローチャート、第9図は従
来例の同期の揺らぎの影響説明図である。 1はディジタル信号処理プロセッサ、2は送信バッファ
、3は受信バッファ、4,5は第1.第2のデ・−タエ
リアである。
FIG. 1 is an explanatory diagram of the principle of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is a flowchart of an embodiment of the present invention, and FIG. 4 is an explanatory diagram of the operation of an embodiment of the present invention. Fig. 5 is an explanatory diagram of switching between frame signals and encoding/decoding processing, Fig. 6 is an explanatory diagram of the system configuration, Fig. 7 is an explanatory diagram of processing timing of the conventional example, Fig. 8 is a flowchart of the conventional example, and Fig. 9 1 is a diagram illustrating the influence of fluctuations in synchronization in a conventional example. 1 is a digital signal processing processor, 2 is a transmitting buffer, 3 is a receiving buffer, 4 and 5 are first . This is the second data area.

Claims (1)

【特許請求の範囲】 1個のディジタル信号処理プロセッサ(1)と送信バッ
ファ(2)と受信バッファ(3)とを備え、前記ディジ
タル信号処理プロセッサ(1)による符号化と復号化と
の処理を一定時間で切替える符号復号処理制御方式に於
いて、 第1、第2のデータエリア(4、5)を設け、前記受信
バッファ(3)に1フレーム分の符号化データを受信蓄
積する毎に割込フラグをセットし、 前記ディジタル信号処理プロセッサ(1)は、フレーム
信号の立上りにより符号化処理を開始して、符号化デー
タを前記送信バッファ(2)に加え、前記フレーム信号
の立下りにより前記第1のデータエリア(4)から符号
化データを読出して復号化処理を開始し、 前記符号化処理開始前に前記割込フラグがセットされた
時、前記第1のデータエリア(4)に前記受信バッファ
(3)から符号化データを転送して該割込フラグをリセ
ットし、 前記復号化処理開始前に前記割込フラグがセットされた
時、前記第1のデータエリア(4)が未使用状態の場合
は該第1のデータエリア(4)に前記受信バッファ(3
)から符号化データを転送して該割込フラグをリセット
し、前記第1のデータエリア(4)が使用状態の場合は
前記第2のデータエリア(5)に前記受信バッファ(3
)から符号化データを転送して該割込フラグをリセット
し、 復号化処理終了により前記第2のデータエリア(5)か
ら前記第1のデータエリア(4)へ符号化データを転送
する ことを特徴とする符号復号処理制御方式。
[Claims] A digital signal processing processor (1), a transmission buffer (2), and a reception buffer (3) are provided, and the digital signal processing processor (1) performs encoding and decoding processing. In a code/decoding process control method that switches over at a fixed time, first and second data areas (4, 5) are provided, and each time one frame of encoded data is received and stored in the reception buffer (3), the data area is allocated. The digital signal processing processor (1) starts the encoding process at the rising edge of the frame signal, adds the encoded data to the transmission buffer (2), and starts the encoding process at the falling edge of the frame signal. When the encoded data is read from the first data area (4) and the decoding process is started, and the interrupt flag is set before the start of the encoding process, the encoded data is read out from the first data area (4). Transfer encoded data from the reception buffer (3) and reset the interrupt flag, and when the interrupt flag is set before the start of the decoding process, the first data area (4) is unused. state, the reception buffer (3) is stored in the first data area (4).
) to reset the interrupt flag, and if the first data area (4) is in use, the receive buffer (3) is transferred to the second data area (5).
), the interrupt flag is reset, and upon completion of the decoding process, the encoded data is transferred from the second data area (5) to the first data area (4). Characteristic encoding/decoding processing control method.
JP63109892A 1988-05-07 1988-05-07 Coding/decoding processing control system Pending JPH01280936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63109892A JPH01280936A (en) 1988-05-07 1988-05-07 Coding/decoding processing control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63109892A JPH01280936A (en) 1988-05-07 1988-05-07 Coding/decoding processing control system

Publications (1)

Publication Number Publication Date
JPH01280936A true JPH01280936A (en) 1989-11-13

Family

ID=14521803

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63109892A Pending JPH01280936A (en) 1988-05-07 1988-05-07 Coding/decoding processing control system

Country Status (1)

Country Link
JP (1) JPH01280936A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0215725A (en) * 1988-07-01 1990-01-19 Oki Electric Ind Co Ltd Processor for processing voice band signal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0215725A (en) * 1988-07-01 1990-01-19 Oki Electric Ind Co Ltd Processor for processing voice band signal

Similar Documents

Publication Publication Date Title
US5412488A (en) Data processing apparatus dual-bus data processing with reduced cpu and memory requirements
JPS63276967A (en) Transmission control system for digital facsimile equipment
JP3114228B2 (en) Image processing device
JPS63120570A (en) Compressing and decoding device
CN1268826A (en) Device and method for relay waving absorbing
JPS5821459B2 (en) Audio packet transmission method
JP2737690B2 (en) Video communication system
JP3264559B2 (en) Image coding method and apparatus
JPS60224380A (en) Facsimile data converting device
JP2574628B2 (en) Facsimile machine
JP4042178B2 (en) Data transfer control method for image forming apparatus
JPS6053979B2 (en) Multi-stage buffer memory control method
JP2615621B2 (en) Output control device for facsimile terminal
JPS6160071A (en) Facsimile equipment
JPH0810933B2 (en) Image coding transmission method
JPS58219868A (en) Transmitting device of facsimile
JP2671655B2 (en) Communication device
JP2000196634A (en) Image information transmitter
JPH0477055A (en) Still image transmission device
JPH01254085A (en) Picture communication system
JPH0993407A (en) Facsimile controller and facsimile communication system
JPH01320861A (en) Facsimile broadcasting equipment
JPH02182076A (en) fax machine
JPH0152955B2 (en)
JP2002077636A (en) Decoding device, decoding device control method, encoding / decoding device, encoding / decoding device control method, and image processing device