JPH06178129A - Demodulator - Google Patents

Demodulator

Info

Publication number
JPH06178129A
JPH06178129A JP32529692A JP32529692A JPH06178129A JP H06178129 A JPH06178129 A JP H06178129A JP 32529692 A JP32529692 A JP 32529692A JP 32529692 A JP32529692 A JP 32529692A JP H06178129 A JPH06178129 A JP H06178129A
Authority
JP
Japan
Prior art keywords
output
decoding
data
read
eol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP32529692A
Other languages
Japanese (ja)
Other versions
JP3159811B2 (en
Inventor
Hisayoshi Matsui
久義 松井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP32529692A priority Critical patent/JP3159811B2/en
Publication of JPH06178129A publication Critical patent/JPH06178129A/en
Application granted granted Critical
Publication of JP3159811B2 publication Critical patent/JP3159811B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To effectively use a computer for control by making a modulator/ demodulator perform the part of a transmission control and reducing the processing amount of the host MPU, etc., of a facsimile device. CONSTITUTION:The shift clock of a serial parallel modulator 109 is also inputted in a 8-frequency divider 107, the output of the modulator 109 is written in an output register 108 every 8-bit, and at the same time, the output of an FF 106 becomes 1. Thus, a host MPU monitors the output of the. FF 106, and if the data of the output register 108 is read when this output becomes 1, the output of the FF 106 is also reset at the same time and becomes 1. Namely, if the data of the output register 108 is read every time the output of the FF 106 becomes 1, the host MPU is capable of directly obtaining image data. As a result, the processing amount of the host MPU, etc., of a facsimile device can be reduced by making a modulator/demodulator perform the part of a control transmission.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はG3規格のフアクシミリ
通信に用いられる復調装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a demodulator used for G3 standard facsimile communication.

【0002】[0002]

【従来の技術】従来、G3規格のフアクシミリ通信を行
うフアクシミリ装置の通信部分に用いられる変復調装置
においては、CCITT勧告T.4に準拠した伝送量を
圧縮するための符号化及び復号化に関した機能は搭載さ
れていなかつた。ここで、CCITT勧告T.4に準拠
した符号化法について説明する。
2. Description of the Related Art Conventionally, in a modulator / demodulator used in a communication part of a facsimile machine for performing G3 standard facsimile communication, CCITT recommendation T.264 is used. The functions related to encoding and decoding for compressing the transmission amount conforming to No. 4 were not installed. Here, CCITT Recommendation T. An encoding method based on 4 will be described.

【0003】まず、MH符号化方式と呼ばれる1次元符
号化について説明する。画像原稿を伝送する場合、まず
横に1ライン分のデータを読みとる。そして、この1ラ
イン毎に符号化が行われる。なお、ライン間隔は3.8
5ライン/mm又は7.7ライン/mmである。また、1ラ
インの全データはA4原稿の場合、1728画素(白=
0,黒=1のビツト)と定められている。
First, one-dimensional coding called MH coding will be described. When transmitting an image original, first, the data for one line is read horizontally. Then, the encoding is performed for each line. The line spacing is 3.8.
5 lines / mm or 7.7 lines / mm. Further, all data of one line is 1728 pixels (white =
0, black = 1 bit).

【0004】1ラインのデータに着目すると、図5に示
す通り、白のビツト列と黒のビツト列の繰り返しとな
る。この白及び黒のビツト列毎に、それぞれのビツト数
(ランレングスと呼ばれる)を伝送するように符号化す
るのがMH方式である。符号の種類には、白と黒とにつ
いてメイクアツプ符号とターミネイテイング符号があ
る。メイクアツプ符号の例を図6に、メイクアツプ符号
の追加分を図7に、ターミネイテイング符号の例を図8
に示す。
Focusing on the data of one line, as shown in FIG. 5, the white bit sequence and the black bit sequence are repeated. In the MH system, encoding is performed so that the number of bits (called run length) is transmitted for each of the white and black bit strings. There are make-up codes and terminating codes for white and black. An example of makeup code is shown in FIG. 6, an addition of makeup code is shown in FIG. 7, and an example of termination code is shown in FIG.
Shown in.

【0005】64ビツト未満の白又は黒の場合、図8に
示すターミネイテイング符号のみで符号化される。64
ビツト以上のビツト列の場合は、メイクアツプ符号とタ
ーミネイテイング符号の組合わせで符号化される。図5
の場合、各画素の下に示したような符号に変換され伝送
される。すなわち、1728画素が31ビツトに圧縮さ
れたことになる。
In the case of white or black of less than 64 bits, only the terminating code shown in FIG. 8 is coded. 64
In the case of a bit string of more than bits, it is encoded by a combination of make-up code and terminating code. Figure 5
In the case of, each pixel is converted into a code as shown below and transmitted. That is, 1728 pixels are compressed to 31 bits.

【0006】以上のように符号化を行なつたデータは、
図3に示すように、1ライン毎にEOL(End Of Line:0
00000000001)毎の12ビツトが付加され、1ページの画
像信号の最後にRTCというEOLの連続6個の信号が
付加される。次に、MR符号化と呼ばれる1次元符号化
+2次元復号化について説明する。MH符号化に対し、
EOLの次にTagビツトが1ビツト付加される。Ta
gビツトが1の時は、その後の1ライン分のデータは1
次元符号化であることを示し、前に述べたように符号化
される。
The data encoded as described above is
As shown in FIG. 3, EOL (End Of Line: 0
12 bits for each 00000000001) and 6 consecutive signals of EOL called RTC are added at the end of the image signal of one page. Next, one-dimensional encoding + two-dimensional decoding called MR encoding will be described. For MH encoding,
After EOL, one Tag bit is added. Ta
When g bit is 1, the data for one line after that is 1.
Indicates dimensional coding and is coded as previously described.

【0007】Tagビツトが0の時は、次の1ライン分
のデータは2次元符号化を表し、直前の1ライン分のデ
ータを参照データとして、その画素からの相対値(変化
分)で符号化することにより、更にデータを圧縮する。
1次元符号化の割合は、2ライン中1ライン、又は4ラ
イン中1ラインである。従来、フアクシミリ装置は、図
9に示す構成を備えている。図9において、回線インタ
ーフエース部95から入力されたアナログ信号は、変復
調回路94で復調されてデイジタル信号に変換される。
この変復調回路94は、純粋に受信データの復調処理及
び送信データの変調処理を行うのみの構成であり、例え
ば復調データをそのままホストのMPU91に出力する
のみであつた。なお、92はMPU91の動作制御手順
等を記憶するROM、93はRAM、96は画像情報を
読み取るリーダ、画像情報等を出力するプリンタ及び操
作部等のI/Oである。
When the Tag bit is 0, the data for the next one line represents two-dimensional coding, and the data for the immediately preceding one line is used as reference data and is coded with a relative value (change) from the pixel. By further converting the data, the data is further compressed.
The ratio of one-dimensional encoding is 1 line out of 2 lines or 1 line out of 4 lines. Conventionally, the facsimile machine has the configuration shown in FIG. In FIG. 9, the analog signal input from the line interface unit 95 is demodulated by the modulation / demodulation circuit 94 and converted into a digital signal.
The modulation / demodulation circuit 94 is purely configured to perform demodulation processing of received data and modulation processing of transmission data, and, for example, only outputs demodulated data as it is to the MPU 91 of the host. Reference numeral 92 is a ROM that stores the operation control procedure of the MPU 91, 93 is a RAM, and 96 is an I / O such as a reader that reads image information, a printer that outputs image information, and an operation unit.

【0008】従つて、受信データから画像データを取り
出し、各符号をデコードして白又は黒のランレングスを
復号する作業、及びそのラインの受信データがエラーの
ないデータがどうかのチエツクは、すべてホストMPU
91により処理されていた。
Therefore, the work of extracting the image data from the received data, decoding each code to decode the white or black run length, and checking whether the received data of the line is error-free data are all performed by the host. MPU
It was processed by 91.

【0009】[0009]

【発明が解決しようとする課題】従つて、通信中のデー
タ処理には、多くのMPU91の処理時間を必要として
いた。また上記従来例では、ホストMPUは91は、画
像データの受信中に各ライン毎に符号化されたデータを
復号化し、白又は黒のランレングスに直して画像データ
に展開し、印字あるいはメモリに蓄積する等の処理を行
いながら、その画像データに受信誤りがないかどうかチ
エツクを行なう必要があつた。このため、復号したラン
レングスデータを1ライン毎にすべて加算し、その画像
原稿に対応した画素数と比較し、等しければエラーな
し、等しくなければエラーであるという処理を施す必要
があつた。従つて、処理速度の高い高性能のMPUが必
要となり、安価なMPUが使用できないという欠点があ
つた。
Therefore, the processing of data during communication requires a lot of processing time of the MPU 91. Further, in the above-mentioned conventional example, the host MPU 91 decodes the data encoded for each line during the reception of the image data, converts the data into white or black run lengths, expands the image data, and prints or stores the data in the memory. It is necessary to check whether the image data has a reception error while performing processing such as storing. For this reason, it is necessary to add all the decoded run-length data line by line and compare the number with the number of pixels corresponding to the image original. If they are equal, there is no error, and if they are not equal, there is an error. Therefore, a high-performance MPU having a high processing speed is required, and an inexpensive MPU cannot be used.

【0010】[0010]

【課題を解決するための手段】本発明は上述の課題を解
決することを目的として成されたもので、上述の課題を
解決する一手段として以下の構成を備える。即ち、G3
規格のフアクシミリ通信における受信画像信号を復調
し、該復調した画像データに含まれる1次元符号化され
たコードを白又は黒のランレングスにデコードするデコ
ード手段と、復調した画像データ中のEOLコードを検
出する検出手段と、EOLコードと次のEOLコードと
の間でデコード手段によりデコードされたランレングス
の合計を求める演算手段と、外部から任意の値を設定可
能な設定手段と、該設定手段に設定された値と前記演算
手段で求められたランレングスの合計値を比較する比較
手段と、該比較手段での比較結果を記憶する記憶手段
と、該記憶手段での記憶結果を外部より読み出し可能に
構成した読み出し手段とを備える。
The present invention has been made for the purpose of solving the above-mentioned problems, and has the following structure as one means for solving the above-mentioned problems. That is, G3
Decoding means for demodulating a received image signal in standard facsimile communication and decoding a one-dimensional encoded code included in the demodulated image data into a white or black run length, and an EOL code in the demodulated image data. The detecting means for detecting, the calculating means for obtaining the sum of the run lengths decoded by the decoding means between the EOL code and the next EOL code, the setting means for setting an arbitrary value from the outside, and the setting means Comparing means for comparing the set value with the total value of run lengths calculated by the computing means, storage means for storing the comparison result by the comparing means, and the storage result for the storage means can be read out from the outside. And a reading means configured as described above.

【0011】あるいは、G3規格のフアクシミリ通信に
おける受信画像信号を復調し、復調した画像データに含
まれる1次元符号化されたコードを白又は黒のランレン
グスにデコードするデコード手段と、該デコード手段で
デコードされたランレングスの値に比例したビツト数の
0又は1のビツト列を生成する生成手段と、該生成手段
で生成されたビツト列を外部より読み出し可能に構成し
た読み出し手段とを備える。
Alternatively, a decoding means for demodulating a received image signal in facsimile communication of G3 standard and decoding a one-dimensional encoded code included in the demodulated image data into a white or black run length, and the decoding means It comprises a generating means for generating a bit string of 0 or 1 having a bit number proportional to the decoded run length value, and a reading means for reading out the bit string generated by the generating means from the outside.

【0012】あるいは、G3規格のフアクシミリ通信に
おける受信画像信号を復調し、復調した画像データに含
まれる1次元符号化されたコードを白又は黒のランレン
グスにデコードするデコード手段と、該デコード手段で
デコードされた白又は黒のランレングスの値を記憶する
記憶手段と、該記憶手段に記憶された値を外部より読み
出し可能に構成した読み出し手段とを備える。
Alternatively, a decoding means for demodulating a received image signal in facsimile communication of G3 standard and decoding a one-dimensional code included in the demodulated image data into a white or black run length, and the decoding means A storage unit for storing the decoded white or black run length value and a reading unit configured to be able to read the value stored in the storage unit from the outside are provided.

【0013】あるいは、G3規格のフアクシミリ伝送に
おける受信画像信号を復調する変復調装置であつて、受
信情報中のEOLコードを検出する検出手段と、該検出
手段によるEOLコード検出が所定数連続して受信され
たことを記憶する記憶手段と、該記憶手段に記憶したデ
ータを外部から読み出し可能に構成した読み出し手段と
を備える。
Alternatively, in a modulator / demodulator for demodulating a received image signal in G3 standard facsimile transmission, a detection means for detecting an EOL code in received information and a predetermined number of EOL code detections by the detection means are continuously received. The storage means stores the information that has been stored, and the reading means configured to read the data stored in the storage means from the outside.

【0014】[0014]

【作用】以上の構成において、フアクシミリ装置のホス
トMPUは画像受信時のソフトウエア処理が非常に少な
くて済むため、安価なMPUの使用を可能にしたもので
ある。
With the above-mentioned structure, the host MPU of the facsimile machine requires very little software processing at the time of image reception, so that an inexpensive MPU can be used.

【0015】[0015]

【実施例】以下、図面を参照して本発明に係る一実施例
を詳説する。図1は本発明に係る一実施例のフアクシミ
リ装置における復調部の特徴を最もよく表わす図面であ
る。図1に示す部分は上述した図9における変復調回路
94に相当する部分の一部に対応する部分であり、フア
クシミリ装置における他の部分は公知な構成を利用出来
るため、詳細説明を省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described below in detail with reference to the drawings. FIG. 1 is a drawing best showing the characteristics of the demodulation unit in the facsimile apparatus of one embodiment according to the present invention. The part shown in FIG. 1 corresponds to a part of the part corresponding to the modulation / demodulation circuit 94 in FIG. 9 described above, and the other parts of the facsimile apparatus can use a well-known structure, and therefore detailed description thereof is omitted.

【0016】図1において、101はG3規格でのフア
クシミリ通信時の符号化方式を選択するためのMH/M
R選択レジスタ、102は画像1ラインのデータビツト
数を設定するためのラインビツト設定レジスタ、103
は受信した画像データのエラーの有無を記憶するエラー
レジスタ、104はEOL検出器117がEOLコード
を検出した時にアキユムレータ105とラインビツト設
定レジスタ102の出力を比較するコンパレータであ
り、2つのデータが異つていた場合に、エラーレジスタ
103にエラー情報1を出力する。
In FIG. 1, reference numeral 101 denotes an MH / M for selecting an encoding method for facsimile communication in the G3 standard.
An R selection register 102 is a line bit setting register for setting the number of data bits of one image line, 103
Is an error register that stores the presence or absence of an error in the received image data, and 104 is a comparator that compares the outputs of the accumulator 105 and the line bit setting register 102 when the EOL detector 117 detects an EOL code. If so, the error information 1 is output to the error register 103.

【0017】105はアキユムレータ、111はAND
ゲート、112はORゲート、113はプリセツト入力
付のダウンカウンタ、116はMH符号のランレングス
及び白,黒をデコードするためのMHデコーダ、114
は発振器、110はANDゲート、108は8分周器、
106はセツトリセツトフリツプフロツプ、109は8
ビツトのシリアル−パラレル変換器、108は8ビツト
の出力レジスタである。
105 is an accumulator, 111 is an AND
A gate, 112 is an OR gate, 113 is a down counter with preset input, 116 is an MH decoder for decoding the run length of MH code and white and black, 114
Is an oscillator, 110 is an AND gate, 108 is an 8 frequency divider,
106 is a set-up flip-flop, 109 is 8
A bit serial-to-parallel converter, and 108 is an 8-bit output register.

【0018】115はMHデコーダ116によつてデコ
ードされたランレングスデータを記憶し、出力するため
のランレングスレジスタ、124はセツトリセツトフリ
ツプフロツプ、118は116によつてデコードされた
ランレングスが白か黒かを記憶し、出力するためのW/
Bレジスタ、119はシフトレジスタ、120はCCI
TT勧告V.29、及びCCITT勧告V.27ter
の変調波を復調するための復調部、121はシフトレジ
スタ119のパラレル出力を8ビツト毎に記憶し、出力
するための出力レジスタ、122は復調部120から出
力されるデータクロツクを分周するための8分周器、1
23〜125はセツトリセツトフリツプフロツプであ
る。
Reference numeral 115 is a run length register for storing and outputting the run length data decoded by the MH decoder 116, 124 is a set reset flip-flop, and 118 is a run length data decoded by 116. W / to memorize and output white or black
B register, 119 is shift register, 120 is CCI
TT Recommendation V. 29, and CCITT Recommendation V.29. 27ter
A demodulation section for demodulating the modulated wave of the signal, 121 is an output register for storing and outputting the parallel output of the shift register 119 every 8 bits, and 122 is a frequency divider for dividing the data clock output from the demodulation section 120. 8 divider for 1
23 to 125 are settling flip flops.

【0019】以上の構成を備える本実施例における画像
信号送受信時の動作を以下説明する。まず、CCITT
勧告T.30に準拠した画像信号の送受信の一連の動作
例を図2を参照して説明する。図2は本実施例における
CCITT勧告T.30に準拠した画像信号の送受信の
一連の伝送制御手順を示す図である。
The operation at the time of transmitting / receiving an image signal in this embodiment having the above configuration will be described below. First, CCITT
Recommendation T. A series of operation examples of transmitting and receiving image signals conforming to H.30 will be described with reference to FIG. FIG. 2 shows the CCITT recommendation T.264 in this embodiment. It is a figure which shows a series of transmission control procedures of transmission and reception of the image signal based on 30.

【0020】図2において、まず送信側が受信側を発呼
する。この被呼を検出した受信側は、自動着信後にCE
D信号(2100Hz)を送出し、DIS信号を出力す
る。DIS信号の中には受信側フアクシミリの能力に関
する情報(通信可能ビツトレート,記録幅能力等)が含
まれているが、受信側の符号化能力に関する情報も同時
に伝送される。
In FIG. 2, the transmitting side first calls the receiving side. The receiving side that has detected this called is CE
The D signal (2100 Hz) is transmitted and the DIS signal is output. The DIS signal includes information on the capability of the reception side facsimile (communicable bit rate, recording width capability, etc.), but information about the coding capability of the receiving side is also transmitted at the same time.

【0021】このDISを受信した送信側は、通信ビツ
トレート,記録幅,符号化方式等を決定し、DCS信号
として送出する。その後に、決定された通信速度のトレ
ーニング信号を送出し、引き続き、0の連続データであ
るTCF信号を送出する。受信側ではTCF信号をチエ
ツクしてエラー(1)の数がある程度より少なければ通
信可能と判断してCFR信号を出力する。
The transmitting side, which has received this DIS, determines the communication bit rate, recording width, coding method, etc., and sends it out as a DCS signal. After that, the training signal of the determined communication speed is transmitted, and subsequently, the TCF signal which is continuous data of 0 is transmitted. On the receiving side, the TCF signal is checked, and if the number of errors (1) is less than a certain amount, it is determined that communication is possible and the CFR signal is output.

【0022】CFRを受信した送信側は、続いて送信す
べき画像信号を出力する。画像信号の送信フオーマツト
の例を図3に示す。画像信号の送信フオーマツトには、
メツセージとして、1次元符号化のみ(MH)の場合
と、1次元符号化+2次元符号化(MR)の場合の2通
りがある。まず、DCS信号によつてMH符号化が選択
された場合の本実施例の画像データの受信動作を説明す
る。
The transmitting side which has received the CFR outputs the image signal to be transmitted subsequently. An example of the image signal transmission format is shown in FIG. Image signal transmission format,
There are two types of messages, one-dimensional coding only (MH) and one-dimensional coding + two-dimensional coding (MR). First, the image data receiving operation of this embodiment when MH coding is selected by the DCS signal will be described.

【0023】ホストMPUは、DCS信号を読みとり、
MH符号化を認識すると、図1のMH/MR選択レジス
タ101に1を書き込む。すると、MH/MR選択レジ
スタ101の出力はORゲート112の一方の出力に接
続されているため、112の出力は1に固定となる。ま
た、ホストMPUはラインビツト設定レジスタ102に
0を書き込む。
The host MPU reads the DCS signal,
When MH coding is recognized, 1 is written in the MH / MR selection register 101 of FIG. Then, since the output of the MH / MR selection register 101 is connected to one output of the OR gate 112, the output of 112 is fixed to 1. Further, the host MPU writes 0 in the line bit setting register 102.

【0024】ここで、EOL検出部117及びシフトレ
ジスタ119の詳細図を図4に示す。シフトレジスタ1
19は13ビツトであり、左側12ビツトがEOL検出
器17に接続され、000000000001(EOL
コード)が検出された時に出力が1となる。図3に示す
画像データの最初のEOLが復調部120で復調されて
シフトレジスタ119に入力されると、EOL検出器1
17の出力が1となる。ORゲート112の出力は1の
ため、ANDゲート111の出力が1となり、アキユム
レータのリセツト入力が1となる。このため、アキユム
レータ105はリセツトされる。
Here, a detailed view of the EOL detector 117 and the shift register 119 is shown in FIG. Shift register 1
19 is 13 bits, 12 bits on the left side are connected to the EOL detector 17, and 000000000001 (EOL
When the code) is detected, the output becomes 1. When the first EOL of the image data shown in FIG. 3 is demodulated by the demodulation unit 120 and input to the shift register 119, the EOL detector 1
The output of 17 becomes 1. Since the output of the OR gate 112 is 1, the output of the AND gate 111 is 1, and the reset input of the accumulator is 1. Therefore, the accumulator 105 is reset.

【0025】同時に、コンパレータ104は、ラインビ
ツト設定レジスタ102のデータとアキユムレータ10
5の出力を比較する。ここで、ラインビツト設定レジス
タ102には、最初0が書き込まれているので比較結果
は等しくなり、出力も0となる。従つて、エラーレジス
タ103にも0が格納される。セツトリセツトフリツプ
フロツプ125は、EOL検出器117の出力が1にな
つた時にセツトされる。このため、ホストMPUはセツ
トリセツトフリツプフロツプ125の出力を監視してい
れば、EOLが検出されたことがわかる。ホストMPU
は、セツトリセツトフリツプフロツプ125の出力が最
初に1になつた後に、ラインビツト設定レジスタ102
にDCS信号によつて指示された1ラインについてのデ
ータビツト数をセツトする。例えば、A4の用紙の場
合、1,728である。
At the same time, the comparator 104 outputs the data of the line bit setting register 102 and the accumulator 10 to each other.
Compare the outputs of 5. Here, since 0 is initially written in the line bit setting register 102, the comparison results are equal and the output is also 0. Therefore, 0 is also stored in the error register 103. The set-set flip-flop 125 is set when the output of the EOL detector 117 goes to one. Therefore, if the host MPU monitors the output of the set reset flip-flop 125, it can be seen that the EOL has been detected. Host MPU
Is set after the output of the set reset flip-flop 125 first becomes 1.
Then, the number of data bits for one line designated by the DCS signal is set. For example, in the case of A4 size paper, it is 1,728.

【0026】最初のEOL受信の後は、MH符号化され
た受信データがシフトレジスタ119に入力される。シ
フトレジスタ119のパラレル出力に接続されたMHデ
コーダ116によつて白及び黒のランレングスがデコー
ドされる。ランレングスの値がデコードされる毎に、M
Hデコーダ116のdec出力が立上り、W/B出力レ
ジスタ118には白のとき0、黒のとき1のデータが書
き込まれる。
After the first EOL reception, the MH-coded received data is input to the shift register 119. The MH decoder 116 connected to the parallel output of the shift register 119 decodes the white and black run lengths. Each time the run length value is decoded, M
The dec output of the H decoder 116 rises, and the W / B output register 118 is written with data of 0 for white and 1 for black.

【0027】同時に、ランレングスレジスタ115には
デコードした結果のランレングスが書き込まれ、ダウン
カウンタ113にはデコード結果のランレングスがプリ
セツト値として書込まれる。また、MHデコーダ116
の出力は、アキユムレータ105にも入力されており、
ランレングスがデコードされる毎にアキユムレータ10
5に加算される。
At the same time, the run length of the decoded result is written in the run length register 115, and the run length of the decoded result is written in the down counter 113 as a preset value. In addition, the MH decoder 116
The output of is also input to the accumulator 105,
Each time the run length is decoded, the accumulator 10
Added to 5.

【0028】ホストMPUは、フリツプフロツプ124
の出力を監視して、その出力が1となつた時に、W/B
出力レジスタ118とランレングスレジスタ115の値
を読み出せば、白及び黒のランレングスを直接取り出す
ことができる。また、ダウンカウンタ113はデコード
されたプリセツト値がセツトされると、発振器114に
よつて発振されたクロツクをダウンカウントし、0にな
るまで1を出力するものとする。
The host MPU has a flip-flop 124.
Of the output of W / B
By reading the values of the output register 118 and the run length register 115, the white and black run lengths can be directly extracted. Further, the down counter 113, when the decoded preset value is set, counts down the clock oscillated by the oscillator 114 and outputs 1 until 0.

【0029】このように構成することにより、ANDゲ
ート110よりプリセツト値の個数分のクロツクが出力
される。そのクロツクは、シリアルパラレル変換器10
9のシフトクロツクに入力される。このため、シリアル
パラレル変換器109のデータは、プリセツトの値、す
なわち、ランレングスの値だけシフトされる。そのと
き、シリアルパラレル変換器109の入力には、W/B
レジスタ118の出力(白のとき0、黒のとき1)が接
続されており、シリアルパラレル変換器109には最終
的な画像データが再現されることになる。
With this configuration, the AND gate 110 outputs clocks corresponding to the number of preset values. The clock is serial-parallel converter 10.
9 shift clock input. Therefore, the data of the serial / parallel converter 109 is shifted by the preset value, that is, the run length value. At that time, W / B is input to the input of the serial-parallel converter 109.
The output of the register 118 (0 for white, 1 for black) is connected, and the final image data is reproduced in the serial-parallel converter 109.

【0030】シリアルパラレル変換器109のシフトク
ロツクは、また8分周器107にも入力されており、8
ビツト毎にシリアルパラレル変換器109の出力は出力
レジスタ108に書き込まれ、同時にフリツプフロツプ
106の出力が1となる。従つて、ホストMPUはフリ
ツプフロツプ106の出力を監視し、この出力が1にな
つた時に出力レジスタ108のデータを読み出せば、同
時にフリツプフロツプ106の出力もリセツトされ0と
なる。すなわち、フリツプフロツプ106の出力が1に
なる毎に108のデータを読み出せば、ホストMPUは
画像データを直接得ることができる。
The shift clock of the serial / parallel converter 109 is also input to the divide-by-eight frequency divider 107.
The output of the serial / parallel converter 109 is written in the output register 108 for each bit, and at the same time, the output of the flip-flop 106 becomes 1. Therefore, the host MPU monitors the output of the flip-flop 106, and if the data of the output register 108 is read when this output becomes 1, the output of the flip-flop 106 is reset and becomes 0 at the same time. That is, the host MPU can directly obtain the image data by reading the data 108 every time the output of the flip-flop 106 becomes 1.

【0031】このように、1ラインのMH符号化された
データは順次デコードされ、ホストMPUに出力される
が、その間アキユムレータ105ではランレングスが全
て加算されている。そして、1ラインの最後にEOLが
受信されると、EOL検出器117の出力が立上る。従
つて、コンパレータ104はラインビツト設定レジスタ
102に設定された値と、アキユムレータ105により
前のEOLの後から加算してきたランレングスの合計を
比較する。そして、比較結果が等しい時には、受信デー
タにはエラーはないことになり、コンパレータ104の
出力は0となり、エラーレジスタ103には0がセツト
される。
As described above, the MH-encoded data of one line is sequentially decoded and output to the host MPU, while the accumulator 105 adds all the run lengths. When the EOL is received at the end of one line, the output of the EOL detector 117 rises. Accordingly, the comparator 104 compares the value set in the line bit setting register 102 with the sum of the run lengths added by the accumulator 105 after the previous EOL. When the comparison results are equal, there is no error in the received data, the output of the comparator 104 becomes 0, and 0 is set in the error register 103.

【0032】もしも、アキユムレータ105の加算結果
がラインビツト設定レジスタ102の設定値と等しくな
い時は受信データにエラーがあつたことになる。その
時、コンパレータ104の出力は1となり、エラーレジ
スタ103には1がセツトされる。また、EOL検出器
117によりEOLが検出された時には、セツトリセツ
トフリツプフロツプ125も1にセツトされる。このた
め、ホストMPUは、セツトリセツトフリツプフロツプ
125の出力を監視しているのみでEOLの受信を知る
ことができる。
If the addition result of the accumulator 105 is not equal to the set value of the line bit setting register 102, it means that the received data has an error. At that time, the output of the comparator 104 becomes 1, and 1 is set in the error register 103. Also, when EOL is detected by the EOL detector 117, the set-set flip-flop 125 is also set to 1. Therefore, the host MPU can know the reception of the EOL only by monitoring the output of the set reset flip-flop 125.

【0033】その時、エラービツトを読み出して、0で
あれば受信データはエラーなく正常に受信されたことが
わかる。このため、エラービツトが0の時には画像デー
タを正常に処理する。一方、エラービツトが1であつた
場合は、その1ラインの画像データに対応する受信デー
タに誤りが検出されたことになり、データ伝送途中に誤
りが生じたことになり、受信した画像データは使用せず
に前の1ラインをコピーする。あるいはそのラインはス
キツプする等の処理を行なえばよい。
At that time, the error bit is read out, and if it is 0, it can be seen that the received data is normally received without any error. Therefore, when the error bit is 0, the image data is processed normally. On the other hand, if the error bit is 1, it means that an error has been detected in the received data corresponding to the image data of the one line, an error has occurred during data transmission, and the received image data is used. Copy the previous line without doing. Alternatively, the line may be subjected to processing such as skipping.

【0034】以上説明したように本実施例によれば、ホ
ストMPUは、MH符号化された受信画像データについ
ては、特別の制御なしに直接画像データを得ることがで
き、1ライン毎の受信データエラーも確認することが可
能である。また、画像データの最後には、図3に示す通
り、EOLが6個連続したRTCと呼ばれるデータが送
出される。しかしながら本実施例においては、このRT
CデータにおけるRTCの検出も可能である。
As described above, according to this embodiment, the host MPU can directly obtain the image data of the MH-encoded received image data without special control, and the received data of each line can be obtained. You can also check the error. Further, at the end of the image data, as shown in FIG. 3, data called RTC in which six EOLs are continuous is transmitted. However, in this embodiment, this RT
RTC detection in C data is also possible.

【0035】図1のカウンタ126はクロツクが6個入
力されると、1を出力するカウンタである。このため、
EOL検出器117によりEOLが検出され、アキユム
レータがリセツトされると同時に、カウンタ126にも
クロツクが入力される。通常の場合、次のEOLが検出
される前にMHデコーダ116によつてあるランレング
スがデコードされ、ダウンカウンタ113から出力され
る。
The counter 126 of FIG. 1 is a counter which outputs 1 when 6 clocks are input. For this reason,
The EOL is detected by the EOL detector 117, the accumulator is reset, and at the same time, the clock is also input to the counter 126. In the normal case, before the next EOL is detected, a certain run length is decoded by the MH decoder 116 and output from the down counter 113.

【0036】このため、カウンタ126はリセツトさ
れ、ランレングスが検出されずに、EOLが6回連続す
ると、カウンタ126は1を出力することになる。従つ
て、ホストMPUはこの出力を監視するのみで、画像デ
ータの終了を知ることができる。次に、MR符号化(1
次元符号化+2次元符号化)の場合の受信動作を説明す
る。
Therefore, the counter 126 is reset, and if the run length is not detected and the EOL is repeated 6 times, the counter 126 outputs 1. Therefore, the host MPU can know the end of the image data only by monitoring this output. Next, MR encoding (1
The receiving operation in the case of (dimensional coding + two-dimensional coding) will be described.

【0037】図2に示す伝送制御手順において、MR符
号化が指示された場合は、受信側ホストMPUはMH/
MR選択レジスタ101に0を書き込んでおく。する
と、ORゲート112の一方の入力は0であるため、他
方の入力端子が1のとき、すなわち図4に示すシフトレ
ジスタ119の右端のビツトが1のときのみ112の出
力は1となる。
In the transmission control procedure shown in FIG. 2, when MR encoding is instructed, the receiving-side host MPU sets MH /
0 is written in the MR selection register 101. Then, since one input of the OR gate 112 is 0, the output of 112 becomes 1 only when the other input terminal is 1, that is, when the bit at the right end of the shift register 119 shown in FIG. 4 is 1.

【0038】従つて、ANDゲート111の出力は、E
OLが検出され、次のビツトが1のとき、すなわち1次
元符号化のラインの前のEOLが検出された時に1とな
り、アキユムレータの内容がリセツトされる。次のEO
Lが検出された時には、MH符号化の場合と同様に、受
信データのエラーの有無に応じてコンパレータ104に
よりエラービツト103に1又は0がセツトされる。
Therefore, the output of the AND gate 111 is E
When the OL is detected and the next bit is 1, that is, when the EOL before the line of the one-dimensional encoding is detected, the value becomes 1 and the contents of the accumulator are reset. Next EO
When L is detected, the error bit 103 is set to 1 or 0 by the comparator 104 according to the presence or absence of an error in the received data, as in the case of MH encoding.

【0039】その後は2次元符号化となるので、ホスト
MPUは従来通りの復号を行なう。そのためには復調部
120で復調された受信データを直接読み採る必要があ
る。その際には、シフトレジスタ119のシリアル出力
を復調部120からのデータクロツクで直接読み込むか
又はシフトレジスタ119から8ビツト毎に書き込まれ
る出力レジスタ121の値をセツトリセツトフリツプフ
ロツプ123の出力が1になる毎に読み出せばよい。
After that, since the two-dimensional coding is performed, the host MPU performs the conventional decoding. For that purpose, it is necessary to directly read the reception data demodulated by the demodulation unit 120. At that time, the serial output of the shift register 119 is directly read by the data clock from the demodulation unit 120, or the value of the output register 121 written from the shift register 119 every 8 bits is output to the set-set flip-flop 123. It suffices to read each time when becomes 1.

【0040】すなわち、本実施例によれば、MR符号化
である場合においても、一次元符号化部分についてラン
レングスのデコード及び画像データの復号、ライン毎の
エラーの有無のチエツクを行うことができる。また、R
TCについても、EOL+1が6回連続して受信される
ため、カウンタ126が1となり、上述同様に本実施例
で検出が可能である。
That is, according to the present embodiment, even in the case of the MR coding, it is possible to perform the run-length decoding, the image data decoding, and the check for the presence or absence of an error for each line for the one-dimensional coding portion. . Also, R
Also for TC, since EOL + 1 is received 6 times in succession, the counter 126 becomes 1 and can be detected in this embodiment as described above.

【0041】また、以上の説明においては、出力レジス
タ108や出力レジスタ121を8ビツト構成とした例
について説明したが、以上の例に限定されるものでは無
く、任意のビツト数でよい。その際、分周器107及び
分周器122の分周比及びシリアルパラレル変換器のビ
ツト数をそのビツト数に合わせて変更すればよい。ま
た、図3に示す1ライン中のフイルビツトは、1ライン
の最小伝送時間を保証するための0のビツト列であるた
め、MHデコーダ116によりデコードされるデータは
なく、影響はない。
In the above description, an example in which the output register 108 and the output register 121 have an 8-bit configuration has been described, but the present invention is not limited to the above example, and any number of bits may be used. At that time, the frequency division ratios of the frequency divider 107 and the frequency divider 122 and the number of bits of the serial-parallel converter may be changed according to the number of bits. Further, since the file bit in one line shown in FIG. 3 is a bit string of 0 for guaranteeing the minimum transmission time of one line, there is no data decoded by the MH decoder 116 and there is no influence.

【0042】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置にプログ
ラムを供給することによつて達成される場合にも適用で
きることは言うまでもない。以上説明したように本実施
例によれば、上述した変復調装置を用いてフアクシミリ
装置を構成することにより、1次元復号化された画像デ
ータ受信時に、ホストMPUは白及び黒のランレングス
の値を読み取ることが可能となる。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus. As described above, according to the present embodiment, the host MPU sets the white and black run length values at the time of receiving one-dimensionally decoded image data by configuring the facsimile device using the above-described modulation / demodulation device. It becomes possible to read.

【0043】また、白及び黒の画像データのビツト列と
して直接読み込むことも可能となる。更に1ライン毎の
受信データエラーについてもEOLが検出されたことを
示すあるビツトを監視して、EOLが検出される毎にエ
ラーを示すビツトをチエツクするだけで、確認が可能と
なる。更にまた、RTCの検出についてもそれを示すビ
ツトを監視するだけでよい。
Further, it is possible to directly read in as a bit string of white and black image data. Further, the reception data error for each line can be confirmed only by monitoring a bit indicating that the EOL has been detected and checking the bit indicating the error each time the EOL is detected. Furthermore, for RTC detection, it is only necessary to monitor the bit indicating it.

【0044】以上のように、画像データ受信時にホスト
MPUのソフトウエア処理の負担が大幅に軽減されるた
め、他の処理を並列に行なつたり、より安価なMPUに
よつてフアクシミリ装置を構成できる効果がある。
As described above, since the load of the software processing of the host MPU is greatly reduced at the time of receiving the image data, other processing can be performed in parallel, or the facsimile apparatus can be configured by a cheaper MPU. effective.

【0045】[0045]

【発明の効果】以上説明したように本発明によれば、復
調装置において種々の制御を代用することが出来、フア
クシミリ装置の全体制御を司る制御用コンピユータの負
担が大幅に軽減されるため、制御用コンピユータに高性
能のものを使用する必要が無くなり、フアクシミリ装置
を廉価に構成することが出来る。
As described above, according to the present invention, various controls can be substituted in the demodulator, and the load on the control computer, which controls the overall control of the facsimile machine, is greatly reduced. It is no longer necessary to use a high-performance computer as a computer, and the facsimile machine can be constructed at low cost.

【0046】更に、全体制御を司る制御用コンピユータ
の負担が大幅に軽減されることにより、他の処理を行う
こともでき、性能の良いフアクシミリ装置を提供するこ
とのできる復調装置とすることが出来る。
Further, by significantly reducing the load on the control computer that controls the overall control, other processing can be performed, and a demodulation device that can provide a high performance facsimile apparatus can be provided. .

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

【図1】本発明に係る一実施例の構成を示す図である。FIG. 1 is a diagram showing a configuration of an embodiment according to the present invention.

【図2】本実施例におけるフアクシミリ通信における伝
送制御手順を示す図である。
FIG. 2 is a diagram showing a transmission control procedure in facsimile communication in the present embodiment.

【図3】本実施例の通信における画像信号の詳細構成を
示す図である。
FIG. 3 is a diagram showing a detailed configuration of an image signal in communication of the present embodiment.

【図4】図1に示すシフトレジスタSRの詳細構成を示
す図である。
FIG. 4 is a diagram showing a detailed configuration of a shift register SR shown in FIG.

【図5】1ラインの画素構成例を示す図である。FIG. 5 is a diagram showing a pixel configuration example of one line.

【図6】メイクアツプ符号を示す図である。FIG. 6 is a diagram showing a make-up code.

【図7】メイクアツプ符号(追加)を示す図である。FIG. 7 is a diagram showing a make-up code (addition).

【図8】ターミネイテイング符号を示す図である。FIG. 8 is a diagram showing a termination code.

【図9】一般的なフアクシミリ装置の構成例を示す図で
ある。
FIG. 9 is a diagram showing a configuration example of a general facsimile machine.

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

101 MH/MR選択レジスタ 102 ラインビツト設定レジスタ 103 エラーレジスタ 104 コンパレータ 105 アキユムレータ 108,121 出力レジスタ 109 シリアル−パラレル変換器 113 ダウンカウンタ 114 発振器 115 ランレングスレジスタ 116 MHデコーダ 117 EOL検出器 118 W/Bレジスタ 119 シフトレジスタ 120 復調部 122 分周器 126 カウンタ 101 MH / MR selection register 102 line bit setting register 103 error register 104 comparator 105 accumulator 108, 121 output register 109 serial-parallel converter 113 down counter 114 oscillator 115 run length register 116 MH decoder 117 EOL detector 118 W / B register 119 Shift register 120 demodulator 122 frequency divider 126 counter

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 G3規格のフアクシミリ通信における受
信画像信号を復調し、該復調した画像データに含まれる
1次元符号化されたコードを白又は黒のランレングスに
デコードするデコード手段と、 前記復調した画像データ中のEOLコードを検出する検
出手段と、 前記EOLコードと次のEOLコードとの間で前記デコ
ード手段によりデコードされたランレングスの合計を求
める演算手段と、 外部から任意の値を設定可能な設定手段と、 該設定手段に設定された値と前記演算手段で求められた
ランレングスの合計値を比較する比較手段と、 該比較手段での比較結果を記憶する記憶手段と、 該記憶手段での記憶結果を外部より読み出し可能に構成
した読み出し手段とを備えることを特徴とする復調装
置。
1. Decoding means for demodulating a received image signal in G3 standard facsimile communication, and decoding a one-dimensionally encoded code included in the demodulated image data into a white or black run length, and the demodulating means. Detection means for detecting the EOL code in the image data, operation means for obtaining the sum of the run lengths decoded by the decoding means between the EOL code and the next EOL code, and an arbitrary value can be set externally Setting means, comparing means for comparing the value set in the setting means with the sum of the run lengths calculated by the calculating means, storage means for storing the comparison result by the comparing means, and the storage means And a reading unit configured to be able to externally read the storage result of the demodulation device.
【請求項2】 G3規格のフアクシミリ通信における受
信画像信号を復調し、復調した画像データに含まれる1
次元符号化されたコードを白又は黒のランレングスにデ
コードするデコード手段と、 該デコード手段でデコードされたランレングスの値に比
例したビツト数の0又は1のビツト列を生成する生成手
段と、 該生成手段で生成されたビツト列を外部より読み出し可
能に構成した読み出し手段とを備えることを特徴とする
復調装置。
2. A received image signal in G3 standard facsimile communication is demodulated and included in the demodulated image data.
Decoding means for decoding the dimensionally encoded code into a white or black run length, and generating means for generating a bit sequence of 0 or 1 having a bit number proportional to the value of the run length decoded by the decoding means, A demodulation device comprising: a reading unit configured to read the bit string generated by the generating unit from the outside.
【請求項3】 G3規格のフアクシミリ通信における受
信画像信号を復調し、復調した画像データに含まれる1
次元符号化されたコードを白又は黒のランレングスにデ
コードするデコード手段と、 該デコード手段でデコードされた白又は黒のランレング
スの値を記憶する記憶手段と、 該記憶手段に記憶された値を外部より読み出し可能に構
成した読み出し手段とを備えることを特徴とする復調装
置。
3. A demodulated image signal received in G3 standard facsimile communication, and 1 included in the demodulated image data.
Decoding means for decoding the dimensionally encoded code into white or black run lengths, storage means for storing the white or black run length values decoded by the decoding means, and values stored in the storage means And a reading unit configured to be able to read from the outside.
【請求項4】 G3規格のフアクシミリ伝送における受
信画像信号を復調する復調装置であつて、 受信情報中のEOLコードを検出する検出手段と、 該検出手段によるEOLコード検出が所定数連続して受
信されたことを記憶する記憶手段と、 該記憶手段に記憶したデータを外部から読み出し可能に
構成した読み出し手段とを備えることを特徴とする復調
装置。
4. A demodulating device for demodulating a received image signal in G3 standard facsimile transmission, wherein a detecting means for detecting an EOL code in received information and a predetermined number of EOL code detections by the detecting means are continuously received. A demodulation device comprising: a storage unit that stores the information stored therein; and a read unit configured to read the data stored in the storage unit from the outside.
JP32529692A 1992-12-04 1992-12-04 Demodulator Expired - Fee Related JP3159811B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32529692A JP3159811B2 (en) 1992-12-04 1992-12-04 Demodulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32529692A JP3159811B2 (en) 1992-12-04 1992-12-04 Demodulator

Publications (2)

Publication Number Publication Date
JPH06178129A true JPH06178129A (en) 1994-06-24
JP3159811B2 JP3159811B2 (en) 2001-04-23

Family

ID=18175235

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32529692A Expired - Fee Related JP3159811B2 (en) 1992-12-04 1992-12-04 Demodulator

Country Status (1)

Country Link
JP (1) JP3159811B2 (en)

Also Published As

Publication number Publication date
JP3159811B2 (en) 2001-04-23

Similar Documents

Publication Publication Date Title
US4677649A (en) Data receiving apparatus
EP0504903A2 (en) Apparatus for and method of preprocessing binary picture data prior to run-length encoding
US4688100A (en) Video data encoding/decoding apparatus
US4156880A (en) Method for transmitting a facsimile signal by sequential edge differential coding
US4543612A (en) Facsimile system
US4096527A (en) Run length encoding and decoding methods and means
JPH07264417A (en) Image coding method
JP3159811B2 (en) Demodulator
US5311326A (en) Image-information transmission method and its control circuit
JPH04270569A (en) Data compression system for picture processor
JPH06178076A (en) Radio facsimile communication equipment
JP3295567B2 (en) Image data compressor
JP2995740B2 (en) Facsimile image density converter
JPH06197189A (en) Facsimile equipment
KR0128667B1 (en) Mh code decoding device
JPS61240776A (en) Facsimile equipment
JP2819912B2 (en) Image data storage method determination method
JPH0144067B2 (en)
JPH06292029A (en) Decoding processing circuit
JPH08307701A (en) Runlength encoding and decoding method
JPH05244431A (en) Facsimile equipment
JPH0927913A (en) Coder and facsimile equipment provided with it
JPH07177358A (en) Image processor and its method
JPH05161019A (en) Picture data processing system
JPH06245084A (en) Processor for picture data

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: 20010115

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

Free format text: PAYMENT UNTIL: 20080216

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090216

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees