JP3296905B2 - Pattern detection circuit and facsimile machine - Google Patents

Pattern detection circuit and facsimile machine

Info

Publication number
JP3296905B2
JP3296905B2 JP31555293A JP31555293A JP3296905B2 JP 3296905 B2 JP3296905 B2 JP 3296905B2 JP 31555293 A JP31555293 A JP 31555293A JP 31555293 A JP31555293 A JP 31555293A JP 3296905 B2 JP3296905 B2 JP 3296905B2
Authority
JP
Japan
Prior art keywords
pattern
output
detection
signal
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP31555293A
Other languages
Japanese (ja)
Other versions
JPH07170310A (en
Inventor
雅人 大谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP31555293A priority Critical patent/JP3296905B2/en
Publication of JPH07170310A publication Critical patent/JPH07170310A/en
Application granted granted Critical
Publication of JP3296905B2 publication Critical patent/JP3296905B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】この発明はパターン検出回路及び
ファクシミリ装置に関し、特にパラレルインタフェース
とシリアルインタフェースを有するモデムを内蔵した通
信装置のパターン検出回路及びそれを備えたファクシミ
リ装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern detection circuit and a facsimile apparatus, and more particularly to a pattern detection circuit of a communication apparatus having a built-in modem having a parallel interface and a serial interface, and a facsimile apparatus having the same.

【0002】[0002]

【従来の技術】ファクシミリ装置等の通信装置では、例
えば特開平4−267653号公報に見られるように、
モデム(変復調装置)が外部機器(送信機)からのデー
タを受信した時に、送信機とのデータの送受信の動作タ
イミングの違いによって生じる受信データのビットずれ
を補正するために、受信データをパラレルインタフェー
スを介してCPU転送あるいはDMA転送によりパター
ン検出回路に転送し、パターン検出を行なようにしてい
る。
2. Description of the Related Art In a communication apparatus such as a facsimile apparatus, for example, as disclosed in Japanese Patent Application Laid-Open No. 4-267563,
When a modem (modulator / demodulator) receives data from an external device (transmitter), it converts the received data into a parallel interface to correct the bit shift of the received data caused by the difference in the operation timing of data transmission / reception with the transmitter. Is transferred to a pattern detection circuit by CPU transfer or DMA transfer via the CPU to perform pattern detection.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述の
ようなモデムではパラレルデータを一旦シリアルデータ
に変換してからパターンが一致しているか否かを検出す
る必要があったため、パラレルデータからシリアルデー
タへの変換回路を必要とし、コストアップとなってい
た。
However, in the above-described modem, it is necessary to convert the parallel data into serial data once and then detect whether or not the pattern matches. And a cost increase.

【0004】また、モデム自体が高機能化しており、今
日ではモデムにHDLC(ハイレベルデータリンク制御
手順)機能を内蔵したモデムがほとんどであるが、モデ
ム内蔵のHDLC機能を使用した場合、フラグパターン
はモデムによって削除されてしまうため、フラグパター
ンのカウントができないという欠点もあった。
Also, modems themselves have become sophisticated, and most modems today have a built-in HDLC (high-level data link control procedure) function. There is also a drawback that the flag pattern cannot be counted because the is deleted by the modem.

【0005】この発明は上記の点に鑑みてなされたもの
であり、パラレルデータからシリアルデータへの変換回
路を不要にしてコストダウンを図ることと、HDLC機
能を使用した場合でもフラグパターンをカウントできる
ようにすることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described circumstances, and therefore, a cost reduction can be achieved by eliminating the need for a conversion circuit for converting parallel data into serial data, and the flag pattern can be counted even when the HDLC function is used. The purpose is to be.

【0006】[0006]

【課題を解決するための手段】この発明は上記の目的を
達成するため、モデムのシリアルインタフェースに接続
され、モデムのシリアルクロック入力を条件に従って出
力/停止する出力/停止手段と、モデムのシリアルデー
タ入力を上記シリアルクロックの立ち上がりエッジでラ
ッチしてパラレル出力を行なうパラレル出力手段と、該
手段から出力されるパラレル出力と比較するパターンを
設定するパターン設定手段と、パラレル出力手段から出
力されたパラレル出力をパターン設定手段によって設定
されたパターンと比較し、そのパラレル出力がそのパタ
ーンと一致したことを検出した時に対応する信号を出力
するパターン一致検出手段と、該手段から上記信号が出
力された時に制御部へ通知する通知手段と、制御部から
出力されるアドレスをデコードして上記各手段を制御す
るための信号を発生させる制御信号発生手段とを設けた
パターン検出回路を提供する。
According to the present invention, there is provided an output / stop unit connected to a serial interface of a modem for outputting / stopping a serial clock input of the modem in accordance with a condition. Parallel output means for latching an input at the rising edge of the serial clock to perform a parallel output, pattern setting means for setting a pattern to be compared with the parallel output output from the means, and a parallel output output from the parallel output means Is compared with the pattern set by the pattern setting means, and a pattern matching detecting means for outputting a corresponding signal when detecting that the parallel output matches the pattern, and controlling when the signal is output from the means. Notification means for notifying the control unit, and an address output from the control unit. The decoding to provide a pattern detection circuit provided with a control signal generating means for generating a signal for controlling the above means.

【0007】また、上述した上記出力/停止手段,パラ
レル出力手段,パターン設定手段,及びパターン一致検
出手段と、パラレル出力手段によるラッチ回数をカウン
トするラッチ回数カウント手段と、該手段及びパターン
一致検出手段の出力に従って所定の信号を出力する所定
信号出力手段と、該手段による出力数をカウントする出
力数カウント手段と、該手段によってカウントされた出
力数が規定値に到達した時に制御部へ通知する通知手段
と、制御部から出力されるアドレスをデコードして上記
各手段を制御するための信号を発生させる手段とを設け
たパターン検出回路も提供する。
The output / stop means, the parallel output means, the pattern setting means, and the pattern coincidence detecting means described above, the number of latches counting the number of latches by the parallel output means, the means and the pattern coincidence detecting means Predetermined signal output means for outputting a predetermined signal in accordance with the output of the output means, output number counting means for counting the number of outputs by the means, and notification to notify the control unit when the output number counted by the means reaches a specified value. There is also provided a pattern detection circuit provided with means and means for decoding an address output from the control unit and generating a signal for controlling each of the above means.

【0008】さらに、上述した上記出力/停止手段,パ
ラレル出力手段,パターン設定手段,パターン一致検出
手段,ラッチ回数カウント手段,所定信号出力手段,及
び出力数カウント手段と、連続検出個数を設定する連続
検出個数手段と、出力数カウント手段によってカウント
された出力数が連続検出個数設定手段によって設定され
た値に到達した時に制御部へ通知する通知手段と、制御
部から出力されるアドレスをデコードして上記各手段を
制御するための信号を発生させる手段とを設けたパター
ン検出回路も提供する。
Further, the output / stop means, the parallel output means, the pattern setting means, the pattern coincidence detecting means, the number of latch times counting means, the predetermined signal outputting means, and the output number counting means, and the continuous number for setting the number of continuous detections Detecting number means, notifying means for notifying the control unit when the number of outputs counted by the output number counting means reaches the value set by the continuous detection number setting means, and decoding the address output from the control unit. There is also provided a pattern detection circuit provided with means for generating a signal for controlling each of the above means.

【0009】さらにまた、上記いずれかのパターン検出
回路を有するファクシミリ装置も提供する
Further, the present invention provides a facsimile apparatus having any one of the above-described pattern detection circuits.

【0010】[0010]

【作用】請求項1の発明によるパターン検出回路はモデ
ムのシリアルインタフェースに接続され、そのパターン
検出回路内の制御信号発生手段が制御部から出力される
アドレスをデコードして以下の各手段を制御するための
信号を発生させ、出力/停止手段がモデムのシリアルク
ロック入力を条件に従って出力/停止する。
The pattern detecting circuit according to the first aspect of the present invention is connected to a serial interface of a modem, and a control signal generating means in the pattern detecting circuit decodes an address output from the control unit and controls the following means. Output / stop means for outputting / stopping the serial clock input of the modem according to the conditions.

【0011】また、パラレル出力手段がモデムのシリア
ルデータ入力を上記シリアルクロックの立ち上がりエッ
ジでラッチしてパラレル出力を行ない、パターン一致検
出手段がそのパラレル出力をパターン設定手段によって
設定されたパターンと比較し、そのパラレル出力がその
パターンと一致したことを検出した時に対応する信号を
出力し、通知手段がその出力時に制御部へ通知する。し
たがって、パラレルデータからシリアルデータへの変換
回路が不要になると共に、モデムのHDLC機能を使用
した場合でもフラグパターンをカウントすることができ
る。
The parallel output means latches the serial data input of the modem at the rising edge of the serial clock to perform parallel output, and the pattern coincidence detecting means compares the parallel output with the pattern set by the pattern setting means. When it is detected that the parallel output matches the pattern, a corresponding signal is output, and the notifying unit notifies the control unit at the time of the output. Therefore, a conversion circuit from parallel data to serial data is not required, and the flag pattern can be counted even when the HDLC function of the modem is used.

【0012】請求項2の発明によるパターン検出回路も
モデムのシリアルインタフェースに接続され、そのパタ
ーン検出回路内の制御信号発生手段が制御部から出力さ
れるアドレスをデコードして以下の各手段を制御するた
めの信号を発生させ、上記出力/停止手段,パラレル出
力手段,パターン設定手段,及びパターン一致検出手段
がそれぞれ上述と同様な動作を行なう。
The pattern detecting circuit according to the second aspect of the present invention is also connected to the serial interface of the modem, and the control signal generating means in the pattern detecting circuit decodes an address output from the control unit and controls the following means. And the output / stop unit, the parallel output unit, the pattern setting unit, and the pattern coincidence detection unit perform the same operations as described above.

【0013】また、ラッチ回数カウント手段がパラレル
出力手段によるラッチ回数をカウントし、所定信号出力
手段がラッチ回数カウント手段及びパターン一致検出手
段の出力に従って所定の信号を出力し、出力数カウント
手段がその出力数をカウントし、通知手段がその出力数
が規定値に到達した時に制御部へ通知する。したがっ
て、上述と同様な効果を得られ、しかもデータかけした
場合等による誤検出の確率が減少する。
The latch number counting means counts the number of latches by the parallel output means, the predetermined signal output means outputs a predetermined signal in accordance with the outputs of the latch number counting means and the pattern matching detection means, and the output number counting means outputs the predetermined signal. The number of outputs is counted, and the notifying unit notifies the control unit when the number of outputs reaches a specified value. Therefore, the same effect as described above can be obtained, and the probability of erroneous detection due to data application is reduced.

【0014】請求項3の発明によるパターン検出回路も
モデムのシリアルインタフェースに接続され、そのパタ
ーン検出回路内の制御信号発生手段が制御部から出力さ
れるアドレスをデコードして以下の各手段を制御するた
めの信号を発生させ、上記出力/停止手段,パラレル出
力手段,パターン設定手段,パターン一致検出手段,ラ
ッチ回数カウント手段,所定信号出力手段,及び出力数
カウント手段がそれぞれ上述と同様な動作を行ない、通
知手段が出力数カウント手段によってカウントされた出
力数が連続検出個数設定手段によって設定された値に到
達した時に制御部へ通知するので、上述と同様な効果を
得られる。
The pattern detecting circuit according to the third aspect of the present invention is also connected to the serial interface of the modem, and the control signal generating means in the pattern detecting circuit decodes an address output from the control unit and controls the following means. And the output / stop means, the parallel output means, the pattern setting means, the pattern coincidence detection means, the latch count counting means, the predetermined signal output means, and the output number counting means perform the same operations as described above. Since the notification means notifies the control unit when the number of outputs counted by the output number counting means reaches the value set by the continuous detection number setting means, the same effect as described above can be obtained.

【0015】請求項4の発明によるファクシミリ装置に
よれば、上述したいずれかのパターン検出回路を備えて
いるので、HDLCモードにおけるフラグパターンの個
数カウントができないことによる通信不具合がなくな
る。
According to the facsimile apparatus of the present invention, since any one of the above-described pattern detection circuits is provided, a communication failure due to the inability to count the number of flag patterns in the HDLC mode is eliminated.

【0016】[0016]

【実施例】以下、この発明の実施例を図面に基づいて具
体的に説明する。図2は、この発明の一実施例であるフ
ァクシミリ装置の構成例を示すブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be specifically described below with reference to the drawings. FIG. 2 is a block diagram showing a configuration example of a facsimile apparatus according to one embodiment of the present invention.

【0017】このファクシミリ装置は、システム全体の
制御を行なうCPU(中央処理装置)等からなるシステ
ム制御部1と、システム制御に必要な情報を記憶するシ
ステムメモリ部2と、画情報を記憶する画像メモリ部3
と、画情報の符号化及び復号化を行なう符号化・復号化
部4と、紙に画情報を記録する記録部5と、原稿の読み
取りを行なう読み取り部6と、LCD表示器,テンキ
ー,回線選択ボタン等を備える操作部7と、システム制
御部1とのハンドシェイクを行なってモデム部9及びN
CU部10等の通信部分の制御を行なう通信制御部8と
を備えている。
The facsimile apparatus includes a system control unit 1 including a CPU (central processing unit) for controlling the entire system, a system memory unit 2 for storing information necessary for system control, and an image for storing image information. Memory part 3
An encoding / decoding unit 4 for encoding and decoding image information; a recording unit 5 for recording image information on paper; a reading unit 6 for reading an original; an LCD display, a numeric keypad, and a line A handshake is performed between the operation unit 7 having a selection button and the like and the system control unit 1 so that the modem unit 9 and the N
A communication control unit 8 for controlling a communication unit such as the CU unit 10;

【0018】また、プロトコル信号や画情報をV.21
やV.17等の規格に従って変復調するモデム部9と、
回線とのインタフェースであるNCU部10と、モデム
部9のシリアルインタフェース(以下「インタフェー
ス」を「I/F」という)に接続され、HDLCモード
受信時におけるフラグパターンあるいは通常受信時のE
OL(ライン終端符号)/RTC(制御復帰符号)のパ
ターンを検出するパターン検出部(パターン検出回路)
11とを備えている。
Also, the protocol signal and the image information are transmitted to 21
And V. A modem unit 9 for modulating and demodulating according to a standard such as 17;
An NCU unit 10 which is an interface with a line, and a serial interface of the modem unit 9 (hereinafter, "interface" is referred to as "I / F").
Pattern detection unit (pattern detection circuit) for detecting OL (line end code) / RTC (control return code) pattern
11 is provided.

【0019】図1はパターン検出部11の構成例を示す
ブロック図であり、コマンドデコード部12,クロック
ゲート部13,シフトレジスタ部14,パターン一致検
出部15,制御レジスタ部19,割込発生部20,及び
3ステートバッファ部21によって構成されている。
FIG. 1 is a block diagram showing an example of the configuration of the pattern detecting section 11. The command decoding section 12, the clock gate section 13, the shift register section 14, the pattern coincidence detecting section 15, the control register section 19, and the interrupt generating section. 20 and a three-state buffer unit 21.

【0020】コマンドデコード部12は、通信制御部8
によって出力されるアドレスをデコードして制御レジス
タ部19へのセット信号,パターン検出スタート/スト
ップ信号等のCPUコマンド(信号)を発生させる。ク
ロックゲート部13は、パターン検出開始でモデム部9
のシリアルクロック入力(DCLK)をシフトレジスタ
部14へ出力し、各パターンの検出が終了したらモデム
部9のシリアルクロック(DCLK)のシフトレジスタ
部14への出力を停止する。
The command decoding unit 12 includes a communication control unit 8
And decodes the address output to generate a CPU command (signal) such as a set signal to the control register section 19 and a pattern detection start / stop signal. The clock gate unit 13 starts the modem unit 9 when the pattern detection starts.
Is output to the shift register unit 14, and when the detection of each pattern is completed, the output of the serial clock (DCLK) of the modem unit 9 to the shift register unit 14 is stopped.

【0021】シフトレジスタ部14は、モデム部9のシ
リアルデータ入力(RXD)をシリアルクロック(DC
LK)の立ち上がりエッジでラッチして、パラレル出力
を行なう。パターン一致検出部15は、シフトレジスタ
部14のパラレル出力を制御レジスタ部19からのパタ
ーン選択信号により選択設定したパターンと比較し、そ
のパラレル出力がそのパターンと一致したことを検出し
た時に、対応する信号であるフラグ検出信号又はEOL
検出信号を出力(アクティブに)する。
The shift register unit 14 converts a serial data input (RXD) of the modem unit 9 into a serial clock (DC).
LK) is latched at the rising edge to perform parallel output. The pattern match detection section 15 compares the parallel output of the shift register section 14 with the pattern selected and set by the pattern selection signal from the control register section 19, and when it detects that the parallel output matches the pattern, the corresponding pattern is detected. Flag detection signal or EOL signal
Outputs (activates) the detection signal.

【0022】制御レジスタ部19は、コマンドデコード
部12からのセット信号によりデータバスを通じて検出
モードを設定し、対応するパターン選択信号を出力す
る。割込発生部20は、パターン一致検出部15からフ
ラグ検出信号を入力した時にはフラグ検出割込信号を、
EOL検出信号を入力した時にはEOL検出割込信号を
それぞれ出力する。3ステートバッファ部21は、通常
はハイインピーダンス状態でステータスを読み出す場合
にのみデータバスへデータの出力を行なう。
The control register section 19 sets a detection mode via a data bus in accordance with a set signal from the command decode section 12, and outputs a corresponding pattern selection signal. When a flag detection signal is input from the pattern matching detection unit 15, the interrupt generation unit 20 generates a flag detection interrupt signal.
When an EOL detection signal is input, an EOL detection interrupt signal is output. The three-state buffer unit 21 normally outputs data to the data bus only when reading the status in the high impedance state.

【0023】図3はパターン検出部11の他の構成例を
示すブロック図であり、図1と対応する部分には同一符
号を付している。このパターン検出部11は、コマンド
デコード部12,クロックゲート部13,シフトレジス
タ部14,パターン一致検出部15,シフトカウンタ部
16,検出タイミング制御部17,パターンカウンタ部
18,制御レジスタ部19,割込発生部20,及び3ス
テートバッファ部21によって構成されている。
FIG. 3 is a block diagram showing another example of the configuration of the pattern detecting section 11, and portions corresponding to FIG. 1 are denoted by the same reference numerals. The pattern detection unit 11 includes a command decoding unit 12, a clock gate unit 13, a shift register unit 14, a pattern match detection unit 15, a shift counter unit 16, a detection timing control unit 17, a pattern counter unit 18, a control register unit 19, And a three-state buffer unit 21.

【0024】クロックゲート部13は、パターン検出開
始でモデム部9のシリアルクロック入力(DCLK)を
シフトレジスタ部14,シフトカウンタ部16へ出力
し、各パターンの検出が終了したらモデム部9のシリア
ルクロック(DCLK)のシフトレジスタ部14,シフ
トカウンタ部16への出力を停止する。
The clock gate unit 13 outputs the serial clock input (DCLK) of the modem unit 9 to the shift register unit 14 and the shift counter unit 16 at the start of pattern detection, and when the detection of each pattern is completed, the serial clock of the modem unit 9 The output of (DCLK) to the shift register unit 14 and the shift counter unit 16 is stopped.

【0025】パターン一致検出部15は、シフトレジス
タ部14のパラレル出力を制御レジスタ部19からのパ
ターン選択信号又はTAG(付加ビット)により選択設
定したパターンと比較し、そのパラレル出力がそのパタ
ーンと一致したことを検出した時に対応する信号である
フラグ検出信号,EOL検出信号,又はEOL+TAG
検出信号を出力する。
The pattern match detecting section 15 compares the parallel output of the shift register section 14 with a pattern selected and set by a pattern selection signal from the control register section 19 or a TAG (additional bit), and the parallel output matches the pattern. Flag detection signal, EOL detection signal, or EOL + TAG, which is a signal corresponding to the detection of
Outputs a detection signal.

【0026】シフトカウンタ部16は、シフトレジスタ
部14によってシフトされたビット数(ラッチ回数)を
カウントし、パターンが検出されるたびにリセットされ
る。検出タイミング制御部17は、各々の設定条件,シ
フトカウンタ部16,パターンカウンタ部18,パター
ン一致検出部15の出力からシフトカウンタ部16のリ
セット,パターンカウンタ部18のインクリメント(+
1)及びリセット,EOL検出信号発生のタイミングを
生成して出力する。
The shift counter 16 counts the number of bits (the number of latches) shifted by the shift register 14, and is reset each time a pattern is detected. The detection timing control unit 17 resets the shift counter unit 16 based on the respective setting conditions, the outputs of the shift counter unit 16, the pattern counter unit 18, and the pattern match detection unit 15, and increments the pattern counter unit 18 (+
1) and generates and outputs reset and EOL detection signal generation timings.

【0027】パターンカウンタ部18は、検出された各
パターンの個数に相当する検出タイミング制御部17の
出力数をカウントする。制御レジスタ部19は、コマン
ドデコード部12からのリセット信号によりデータバス
を通じて検出モード又は検出パターンを設定し、対応す
るパターン選択信号又はTAGを出力する。
The pattern counter 18 counts the number of outputs of the detection timing controller 17 corresponding to the number of detected patterns. The control register unit 19 sets a detection mode or a detection pattern via a data bus in response to a reset signal from the command decode unit 12, and outputs a corresponding pattern selection signal or TAG.

【0028】割込発生部20は、パターンカウンタ部1
8のカウント値(各パターンの連続検出数)が規定値に
達した時に、フラグ検出割込信号,EOL検出割込信
号,又はRTC検出割込信号を出力する。
The interrupt generation unit 20 includes the pattern counter unit 1
When the count value of 8 (the number of consecutive detections of each pattern) reaches a specified value, a flag detection interrupt signal, an EOL detection interrupt signal, or an RTC detection interrupt signal is output.

【0029】図4はパターン検出部11のさらに他の構
成例を示すブロック図であり、図3と同様にコマンドデ
コード部12,クロックゲート部13,シフトレジスタ
部14,パターン一致検出部15,シフトカウンタ部1
6,検出タイミング制御部17,パターンカウンタ部1
8,制御レジスタ部19,割込発生部20,及び3ステ
ートバッファ部21によって構成されている。
FIG. 4 is a block diagram showing still another example of the configuration of the pattern detecting section 11. As in FIG. 3, a command decoding section 12, a clock gate section 13, a shift register section 14, a pattern matching detecting section 15, a shift Counter part 1
6, detection timing control unit 17, pattern counter unit 1
8, a control register section 19, an interrupt generation section 20, and a 3-state buffer section 21.

【0030】制御レジスタ部19は、コマンドデコード
部12からのリセット信号によりデータバスを通じて検
出モード,検出パターン,又はパターンの連続検出個数
を設定し、対応するパターン選択信号,TAG,又は連
続検出個数信号を出力する。割込発生部20は、パター
ンカウンタ部18のカウント値(各パターンの連続検出
数)が設定値に達した時にフラグ検出割込信号,EOL
検出割込信号,又はRTC検出割込信号を出力する。
The control register unit 19 sets a detection mode, a detection pattern, or the number of continuous detections of a pattern through a data bus in response to a reset signal from the command decoding unit 12, and sets a corresponding pattern selection signal, TAG, or continuous detection number signal. Is output. When the count value of the pattern counter section 18 (the number of consecutive detections of each pattern) reaches a set value, the interrupt generation section 20 outputs a flag detection interrupt signal, EOL.
It outputs a detection interrupt signal or an RTC detection interrupt signal.

【0031】次に、図1に示したパターン検出部11を
有するファクシミリ装置における請求項1の発明に係わ
る動作について説明する。いま、図2の通信制御部8に
よってアドレス,チップセレクト信号,データ,ライト
パルスが出力されると、コマンドデコード部12はその
うちのアドレス,チップセレクト信号,ライトパルスを
入力する。
Next, the operation of the facsimile apparatus having the pattern detector 11 shown in FIG. 1 according to the first aspect of the present invention will be described. Now, when an address, a chip select signal, data, and a write pulse are output by the communication control unit 8 of FIG. 2, the command decode unit 12 inputs the address, the chip select signal, and the write pulse.

【0032】そして、そのうちのアドレスをデコードし
てCPUコマンドを発生させるが、そのCPUコマンド
が制御レジスタ部19へのセット信号であれば、制御レ
ジスタ部19がセット信号を入力してデータバス上のデ
ータである検出モードを設定する。なお、検出モードの
設定は制御レジスタ部19の対応するビットのON/O
FFによって選択可能である。
When the CPU command is generated by decoding the address, the CPU command is a set signal to the control register unit 19, the control register unit 19 inputs the set signal and outputs the set signal to the data bus. Set the detection mode that is data. The detection mode is set by setting ON / O of the corresponding bit of the control register unit 19.
It can be selected by FF.

【0033】ここで、検出モードにはHDLCモードと
NON_HDLCモードがあり、このパターン検出部1
1はHDLCモードの場合にはフラグパターン(011
11110)を検出した時にフラグ検出として通信制御
部8に通知し、NON_HDLCモードの場合にはEO
Lパターン(000000000001)を検出した時
にEOL検出として通信制御部8に通知する。
The detection modes include an HDLC mode and a NON_HDLC mode.
1 is a flag pattern (011) in the HDLC mode.
11110) is notified to the communication control unit 8 as flag detection as a flag detection.
When the L pattern (0000000000001) is detected, the communication control unit 8 is notified as EOL detection.

【0034】次に、コマンドデコード部12からパター
ン検出スタート信号が発行されると、クロックゲート部
13がそれを入力してシフトレジスタ部14へのモデム
部9のシリアルクロック(DCLK)及びシリアルデー
タ(RXD)の出力を開始し、シフトレジスタ部14が
シリアルデータ入力(RXD)をシリアルクロック(D
CLK)の立ち上がりエッジでラッチしてパラレル出力
を行なう。
Next, when a pattern detection start signal is issued from the command decoding unit 12, the clock gate unit 13 receives the signal and inputs it to the serial clock (DCLK) and serial data (DCLK) of the modem unit 9 to the shift register unit 14. RXD), and the shift register unit 14 outputs the serial data input (RXD) to the serial clock (D
CLK) is latched at the rising edge to perform parallel output.

【0035】そして、パターン一致検出部15がシフト
レジスタ部14のパラレル出力を制御レジスタ部19か
らのパターン選択信号(検出モード)により選択設定し
たパターンと比較し、両者が一致したことを検出した時
に対応する信号を出力する。つまり、検出モードがHD
LCモードであればフラグ検出信号を、NON_HDL
CモードであればEOL検出信号をそれぞれ出力(アク
ティブに)する。
Then, the pattern coincidence detecting section 15 compares the parallel output of the shift register section 14 with the pattern selected and set by the pattern selection signal (detection mode) from the control register section 19, and when it is detected that both coincide with each other. Output the corresponding signal. That is, if the detection mode is HD
In the LC mode, the flag detection signal is set to NON_HDL
In the C mode, an EOL detection signal is output (activated).

【0036】割込発生部20は、パターン一致検出部1
5からのフラグ検出信号がアクティブになった時には通
信制御部8へのフラグ検出割込信号及び3ステートバッ
ファ部21へのフラグ検出ステータスビット信号を、E
OL検出信号が出力された時には通信制御部8へのEO
L検出割込信号及び3ステートバッファ部21へのEO
L検出ステータスビット信号をそれぞれアクティブにす
る。
The interrupt generation unit 20 includes the pattern match detection unit 1
5 when a flag detection signal from the communication control unit 8 and a flag detection status bit signal to the three-state buffer unit 21
When the OL detection signal is output, the EO to the communication control unit 8 is output.
L detection interrupt signal and EO to the 3-state buffer unit 21
The L detection status bit signals are activated.

【0037】割込信号は、シフトレジスタ部14への次
のシリアルクロック(DCLK)の入力によってデータ
のシフトが行なわれ、パターンが一致しなくなった時に
リセットされるが、ステータスビット信号は保持され、
コマンドデコード部12から発行されるステータスリー
ド信号によって3ステートバッファ部21からデータバ
ス上にステータスビット信号が出力された後にリセット
される。
The interrupt signal is reset when the data is shifted by the input of the next serial clock (DCLK) to the shift register section 14 and the pattern does not match, but the status bit signal is held.
After the status bit signal is output from the three-state buffer unit 21 onto the data bus by the status read signal issued from the command decode unit 12, the reset is performed.

【0038】パターンの検出動作は、パターン検出スト
ップ信号の発行が行なわれるまで連続して行われる。コ
マンドデコード部12からパターン検出ストップ信号が
発行されると、クロックゲート部13はシリアルクロッ
ク(DCLK),シリアルデータ(RXD)の出力を停
止し、それによって割込信号及びステータスビット信号
もリセットされる。
The pattern detection operation is continuously performed until a pattern detection stop signal is issued. When a pattern detection stop signal is issued from the command decode unit 12, the clock gate unit 13 stops outputting the serial clock (DCLK) and serial data (RXD), whereby the interrupt signal and the status bit signal are also reset. .

【0039】このパターン検出部11を有するファクシ
ミリ装置によれば、パターン検出部11をモデム部9の
シリアルI/Fに接続しているので、パラレルデータか
らシリアルデータへの変換回路が不要となり、ハードウ
ェアの削減によりコストダウンを実現できる。また、モ
デム部9のHDLC機能を使用した場合でもフラグパタ
ーンを検出できる。さらに、通信制御部8によってEO
Lパターンの検出を行なう必要もなくなり、通信制御部
8の負荷が減少するので高速化に対応可能となる。さら
にまた、HDLCモードにおけるフラグパターンの個数
カウントができないことによる通信不具合もなくなる。
According to the facsimile apparatus having the pattern detecting section 11, since the pattern detecting section 11 is connected to the serial I / F of the modem section 9, a conversion circuit for converting parallel data into serial data is not required. Cost reduction can be realized by reducing the amount of hardware. Further, even when the HDLC function of the modem unit 9 is used, the flag pattern can be detected. Further, EO is performed by the communication control unit 8.
There is no need to detect the L pattern, and the load on the communication control unit 8 is reduced. Furthermore, there is no communication failure due to the inability to count the number of flag patterns in the HDLC mode.

【0040】次に、図3に示したパターン検出部11を
有するファクシミリ装置における請求項2の発明に係わ
る動作について説明する。いま、図2の通信制御部8に
よってアドレス,チップセレクト信号,データ,ライト
パルスが出力されると、前述と同様にコマンドデコード
部12はそのうちのアドレス,チップセレクト信号,ラ
イトパルスを入力する。
Next, the operation of the facsimile apparatus having the pattern detecting section 11 shown in FIG. 3 according to the second aspect of the present invention will be described. Now, when an address, a chip select signal, data, and a write pulse are output by the communication control unit 8 in FIG. 2, the command decode unit 12 inputs the address, the chip select signal, and the write pulse as described above.

【0041】そして、そのうちのアドレスをデコードし
てCPUコマンドを発生させるが、そのCPUコマンド
が制御レジスタ部19へのセット信号であれば、制御レ
ジスタ部19がセット信号を入力してデータバス上のデ
ータである検出モード及び検出パターンをセットする。
なお、検出モード及び検出パターンの設定は制御レジス
タ部19の対応するビットのON/OFFによって選択
可能である。
The CPU command is generated by decoding the address. If the CPU command is a set signal to the control register section 19, the control register section 19 inputs the set signal and outputs the set signal to the data bus. The detection mode and the detection pattern which are data are set.
The setting of the detection mode and the detection pattern can be selected by ON / OFF of the corresponding bit of the control register unit 19.

【0042】ここで、検出モードにはHDLCモードと
NON_HDLCモードがあり、このパターン検出部1
1はHDLCモードの場合にはフラグパターン(011
11110)を規定回数連続で検出した時にフラグ検出
として通信制御部8に通知し、NON_HDLCモード
の場合にはEOLパターン(00000000000
1)を検出した時にEOL検出として通信制御部8に通
知し、EOLパターン(000000000001)ま
たはEOLパターン+TAGパターン(0000000
000011)を規定回数連続で検出した時にRTC検
出として通知する。なお、RTC検出における検出パタ
ーン(EOL/EOL+TAG)は選択が可能である。
The detection modes include an HDLC mode and a NON_HDLC mode.
1 is a flag pattern (011) in the HDLC mode.
11110) is notified to the communication control unit 8 as a flag detection when it is detected a specified number of times in succession. In the case of the NON_HDLC mode, the EOL pattern (000000000000)
When 1) is detected, it is notified to the communication control unit 8 as EOL detection, and the EOL pattern (0000000000001) or the EOL pattern + TAG pattern (00000000) is detected.
0010011) is notified as RTC detection when it is detected a specified number of times in a row. The detection pattern (EOL / EOL + TAG) in the RTC detection can be selected.

【0043】次に、コマンドデコード部12からパター
ン検出スタート信号が発行されると、前述と同様にクロ
ックゲート部13がそれを入力してシフトレジスタ部1
4へのモデム部9のシリアルクロック(DCLK)及び
シリアルデータ(RXD)の出力と、シフトカウンタ部
16へのシリアルクロック(DCLK)の出力を開始す
る。
Next, when a pattern detection start signal is issued from the command decode unit 12, the clock gate unit 13 receives the signal and inputs the same to the shift register unit 1 as described above.
The output of the serial clock (DCLK) and serial data (RXD) of the modem unit 9 to the modem 4 and the output of the serial clock (DCLK) to the shift counter 16 are started.

【0044】そして、シフトカウンタ部16がクロック
ゲート部13からのシリアルクロック(DCLK)をカ
ウントし、検出タイミング制御部17からリセット信号
を入力した時にリセットを行ない、シフトレジスタ部1
4がクロックゲート部13からのシリアルデータ入力
(RXD)をシリアルクロック(DCLK)の立ち上が
りエッジでラッチしてパラレル出力を行なう。
Then, the shift counter section 16 counts the serial clock (DCLK) from the clock gate section 13 and performs a reset when a reset signal is input from the detection timing control section 17.
4 latches the serial data input (RXD) from the clock gate unit 13 at the rising edge of the serial clock (DCLK) and performs parallel output.

【0045】そして、パターン一致検出部15がシフト
レジスタ部14のパラレル出力を制御レジスタ部19か
らのパターン選択信号(検出モード)とTAG(検出パ
ターン)とによって選択設定したパターンと比較し、そ
のパラレル出力がそのパターンと一致したことを検出し
た時に対応する信号をアクティブにし、検出タイミング
制御部17へと出力する。
Then, the pattern coincidence detecting section 15 compares the parallel output of the shift register section 14 with the pattern selected and set by the pattern selection signal (detection mode) from the control register section 19 and the TAG (detection pattern). When it detects that the output matches the pattern, it activates the corresponding signal and outputs it to the detection timing control unit 17.

【0046】以下、設定された検出モード別に説明す
る。 (1)HDLCモードの場合 検出タイミング制御部17は、パターン検出スタート信
号の発行後、シフトカウンタ部16のカウント値が「1
3」を越えてからパターン一致検出部15からのフラグ
検出信号がアクティブになった時に対応する信号を出力
し、それをパターンカウンタ部18へはインクリメント
信号として、シフトカウンタ部16へはリセット信号と
してそれぞれ入力させる。
The following is a description of each of the set detection modes. (1) In case of HDLC mode After issuing the pattern detection start signal, the detection timing control section 17 sets the count value of the shift counter section 16 to “1”.
When the flag detection signal from the pattern coincidence detection section 15 becomes active after exceeding "3", a corresponding signal is output, and the corresponding signal is output to the pattern counter section 18 as an increment signal and to the shift counter section 16 as a reset signal. Enter each.

【0047】それによって、パターンカウンタ部18が
検出タイミング制御部17からのインクリメント信号の
入力に同期してインクリメント(カウントアップ)を行
ない、シフトカウンタ部16がリセット信号の入力によ
ってカウント値を「0」にリセットする。
As a result, the pattern counter 18 increments (counts up) in synchronization with the input of the increment signal from the detection timing controller 17, and the shift counter 16 sets the count value to "0" by the input of the reset signal. Reset to.

【0048】さらに、シフトレジスタ14によるデータ
のシフトが進み、シフトカウンタ部16でカウントアッ
プが行なわれ、パターン一致検出部15からのフラグ検
出信号が再度アクティブになり、シフトカウンタ部16
のカウンタ値が「7」または「8」であった場合には、
上述と同様に検出タイミング制御部17によってパター
ンカウンタ部18へのインクリメント信号の出力とシフ
トカウンタ部16へのリセット信号の出力が行なわれ
る。
Further, the shift of the data by the shift register 14 proceeds, the count is incremented by the shift counter 16, the flag detection signal from the pattern match detector 15 becomes active again, and the shift counter 16
Is "7" or "8",
As described above, the detection timing control unit 17 outputs an increment signal to the pattern counter unit 18 and outputs a reset signal to the shift counter unit 16.

【0049】割込発生部20は、パターンカウンタ部1
6の出力(カウント値)と規定値とを比較して、そのカ
ウント値が規定値に到達した時にフラグ検出割込信号及
びフラグ検出ステータスビット信号をアクティブにする
と共に、クロックゲート部13へのフラグ/RTC検出
信号をリセットして、クロックゲート部13によるシリ
アルクロック(DCLK),シリアルデータ(RXD)
の出力を停止させ、フラグ検出をストップする。
The interrupt generation unit 20 includes the pattern counter unit 1
6 is compared with the specified value, and when the count value reaches the specified value, the flag detection interrupt signal and the flag detection status bit signal are activated, and the flag to the clock gate unit 13 is set. / RTC detection signal is reset, and serial clock (DCLK) and serial data (RXD) by clock gate unit 13 are reset.
Is stopped and flag detection is stopped.

【0050】このとき、フラグ検出割込信号及びフラグ
検出ステータスビット信号は保持されたままであり、そ
の各信号のリセットはコマンドデコード部12からのパ
ターン検出ストップ信号の発行による。パターン検出ス
トップ信号が発行された場合には、クロックゲート部1
3によるシリアルクロック(DCLK),シリアルデー
タ(RXD)の出力が停止され、フラグ検出割込信号及
びフラグ検出ステータスビット信号もリセットされる。
At this time, the flag detection interrupt signal and the flag detection status bit signal are kept held, and the resetting of each signal is performed by issuing a pattern detection stop signal from the command decoding unit 12. When the pattern detection stop signal is issued, the clock gate unit 1
3, the output of the serial clock (DCLK) and the serial data (RXD) is stopped, and the flag detection interrupt signal and the flag detection status bit signal are also reset.

【0051】パターンカウンタ部18のカウンタ値が
「0」でない場合にパターン一致検出部15からフラグ
検出信号が出力され(アクティブになり)、シフトカウ
ンタ部16のカウンタ値が「7」または「8」でなかっ
た場合には、検出タイミング制御部17がパターンカウ
ンタ部18へリセット信号を出力し、パターンカウンタ
部18がその信号の入力によってカウンタ値を「0」に
リセットした後、次のインクリメント信号(フラグ検出
信号)の入力によってカウントアップを行なう。
When the counter value of the pattern counter section 18 is not "0", a flag detection signal is output from the pattern match detection section 15 (activated), and the counter value of the shift counter section 16 becomes "7" or "8". Otherwise, the detection timing control unit 17 outputs a reset signal to the pattern counter unit 18, and the pattern counter unit 18 resets the counter value to “0” by the input of the signal, and then outputs the next increment signal ( The count-up is performed by the input of the flag detection signal).

【0052】このとき、シフトカウンタ部16のカウン
ト値は参照されず、カウントアップとシフトカウンタ部
16のリセットが行なわれる。以後、上述の動作をフラ
グ検出条件に到達するかコマンドデコード部12からパ
ターン検出ストップ信号が発行されるまで繰り返す。
At this time, the count value of the shift counter 16 is not referred to, and the count-up and the reset of the shift counter 16 are performed. Thereafter, the above operation is repeated until the flag detection condition is reached or the pattern detection stop signal is issued from the command decoding unit 12.

【0053】(2)NON_HDLCモードの場合 検出タイミング制御部17は、パターン検出スタート信
号の発行後、シフトカウンタ部16のカウンタ値が「1
3」を越えてからパターン一致検出部15からの検出信
号がアクティブとなった場合に有効となる。アクティブ
となった検出信号がEOL検出信号の場合には、検出タ
イミング制御部17はその検出信号を割込信号発生部2
0へ出力し、EOL検出割込信号及びEOL検出ステー
タスビット信号をアクティブにさせる。
(2) In the case of the NON_HDLC mode After the issuance of the pattern detection start signal, the detection timing control unit 17 sets the counter value of the shift counter unit 16 to “1”.
It becomes effective when the detection signal from the pattern matching detection section 15 becomes active after exceeding "3". If the activated detection signal is an EOL detection signal, the detection timing control unit 17 outputs the detection signal to the interrupt signal generation unit 2
0 to make the EOL detection interrupt signal and the EOL detection status bit signal active.

【0054】EOL検出割込信号は、シフトレジスタ部
14への次のシリアルクロック(DCLK)入力によっ
てデータのシフトが行なわれてパターンが一致しなくな
るとリセットされるが、EOL検出ステータスビット信
号は保持される。EOLステータスビット信号のリセッ
トは、コマンドデコード部12から発行されるステータ
スリード信号によって3ステートバッファ部21からデ
ータバス上にステータスビットデータ信号が出力された
後にリセットされる。
The EOL detection interrupt signal is reset when the data is shifted by the next serial clock (DCLK) input to the shift register section 14 and the pattern does not match, but the EOL detection status bit signal is retained. Is done. The EOL status bit signal is reset after the status bit data signal is output from the three-state buffer unit 21 onto the data bus by the status read signal issued from the command decode unit 12.

【0055】アクティブとなった検出信号がRTC検出
信号の場合には、検出タイミング制御部17はその信号
に対応する信号を出力し、それをパターンカウンタ部1
8へはインクリメント信号として、シフトカウント部1
6へはリセット信号としてそれぞれ入力させる。それに
よって、パターンカウンタ部18がそのインクリメント
信号の入力に同期してカウントアップを行ない、シフト
カウンタ部16がリセット信号の入力によってカウンタ
値を「0」にリセットする。
When the activated detection signal is an RTC detection signal, the detection timing control section 17 outputs a signal corresponding to the signal, and outputs the signal to the pattern counter section 1.
8 is used as an increment signal as the shift count unit 1
6 is input as a reset signal. Thereby, the pattern counter section 18 counts up in synchronization with the input of the increment signal, and the shift counter section 16 resets the counter value to “0” by the input of the reset signal.

【0056】ここで、RTC検出パターンとしてEOL
パターンが選択されていた場合には、さらにシフトレジ
スタ部14によるデータのシフトが進み、シフトカウン
タ部16でカウントアップが行なわれ、パターン一致検
出部15からのEOL検出信号が再度アクティブとな
り、シフトカウンタ部16のカウンタ値が「12」であ
った場合には、上述と同様に検出タイミング制御部17
によってパターンカウンタ部18へのインクリメント信
号の出力とシフトカウンタ部16へのリセット信号の出
力が行なわれる。
Here, EOL is used as the RTC detection pattern.
If the pattern has been selected, the shift of the data by the shift register section 14 further proceeds, the count is performed by the shift counter section 16, the EOL detection signal from the pattern matching detection section 15 becomes active again, and the shift counter When the counter value of the unit 16 is “12”, the detection timing control unit 17
Thus, the output of the increment signal to the pattern counter section 18 and the output of the reset signal to the shift counter section 16 are performed.

【0057】また、RTC検出パターンとしてEOLパ
ターン+TAGパターンが選択されていた場合には、パ
ターン一致検出部15からのEOL+TAG検出信号が
再度アクティブとなり、シフトカウンタ部16のカウン
タ値が「13」であった場合には、上述と同様に検出タ
イミング制御部17によってパターンカウンタ部18へ
のインクリメント信号の出力とシフトカウンタ部16へ
のリセット信号の出力が行なわれる。このとき、パター
ンカウンタ部18のカウント値が「0」でない場合には
EOL検出割込信号のアクティブ出力はマスクされる。
When the EOL pattern + TAG pattern is selected as the RTC detection pattern, the EOL + TAG detection signal from the pattern coincidence detection section 15 becomes active again, and the counter value of the shift counter section 16 is "13". In this case, the detection timing control unit 17 outputs an increment signal to the pattern counter unit 18 and a reset signal to the shift counter unit 16 as described above. At this time, if the count value of the pattern counter unit 18 is not “0”, the active output of the EOL detection interrupt signal is masked.

【0058】割込発生部20は、パターンカウンタ部1
8の出力(カウント値)と規定値とを比較して、そのカ
ウント値が規定値に到達した時にRTC検出割込信号及
びRTC検出ステータスビット信号をアクティブにする
と共に、フラグ/RTC検出信号をリセットしてクロッ
クゲート部13によるシリアルクロック(DCLK),
シリアルデータ(RXD)の出力を停止させ、フラグ検
出をストップする。
The interrupt generation unit 20 includes the pattern counter unit 1
8 (count value) and a specified value, and when the count value reaches the specified value, activates the RTC detection interrupt signal and the RTC detection status bit signal and resets the flag / RTC detection signal. And the serial clock (DCLK) by the clock gate unit 13,
The output of the serial data (RXD) is stopped, and the flag detection is stopped.

【0059】このとき、RTC検出割込信号及びRTC
検出ステータスビット信号は保持されたままであり、そ
の各信号のリセットはコマンドデコード部12からのパ
ターン検出ストップ信号のコマンド発行による。パター
ン検出ストップ信号が発行された場合には、クロックゲ
ート部13によるシリアルクロック(DCLK),シリ
アルデータ(RXD)の出力が停止され、RTC検出割
込信号及びRTC検出ステータスビット信号もリセット
される。
At this time, the RTC detection interrupt signal and the RTC
The detection status bit signal remains held, and each signal is reset by issuing a command of the pattern detection stop signal from the command decoding unit 12. When the pattern detection stop signal is issued, the output of the serial clock (DCLK) and the serial data (RXD) by the clock gate unit 13 is stopped, and the RTC detection interrupt signal and the RTC detection status bit signal are also reset.

【0060】パターンカウンタ部18のカウンタ値が
「0」でない場合にパターン一致検出部15からEOL
検出信号あるいはEOLパターン+TAG検出信号が出
力され(アクティブになり)、シフトカウンタ部16の
カウンタ値が上記の値(12/13)でなかった場合に
は、検出タイミング制御部17がパターンカウンタ部1
8へリセット信号を出力し、パターンカウンタ部18が
その信号の入力によってカウンタ値を「0」にリセット
した後、次のインクリメント信号(EOL検出信号又は
EOLパターン+TAG検出信号)の入力によってカウ
ントアップを行なう。
When the counter value of the pattern counter unit 18 is not "0", the pattern match detection unit 15
When the detection signal or the EOL pattern + TAG detection signal is output (becomes active) and the counter value of the shift counter unit 16 is not the above value (12/13), the detection timing control unit 17 sets the pattern counter unit 1
8, the pattern counter 18 resets the counter value to “0” by the input of the signal, and then counts up by the input of the next increment signal (EOL detection signal or EOL pattern + TAG detection signal). Do.

【0061】このとき、シフトカウンタ部16のカウン
ト値は参照されず、カウントアップとシフトカウント部
16のリセットが行なわれる。以後、上述の動作をRT
C検出条件に到達するかコマンドデコード部12からパ
ターン検出ストップ信号が発行されるまで繰り返す。
At this time, the count value of the shift counter 16 is not referred to, and the count-up and the reset of the shift counter 16 are performed. Thereafter, the above operation is performed at RT
This is repeated until the C detection condition is reached or a pattern detection stop signal is issued from the command decoding unit 12.

【0062】このパターン検出部11を有するファクシ
ミリ装置によれば、前述したファクシミリ装置と同様な
効果を得ることができる。また、パターン検出部11が
フラグ/EOL(+TAG)のパターンを連続規定回数
検出した場合にフラグ/RTC検出を通知するので、デ
ータかけした場合等による誤検出の確率が減少する。さ
らに、EOL検出とRTC検出を別々に通知するので、
ラインの終了と1ページの終了を明確に知ることができ
る。さらにまた、通信制御部8によってEOL/RTC
検出を行なう必要がなくなり、通信制御部8の負荷が減
少するため高速化に対応可能となる。また、フラグ/R
TCの誤検出による通信不具合がなくなる。
According to the facsimile apparatus having the pattern detecting section 11, the same effects as those of the above-described facsimile apparatus can be obtained. Further, when the pattern detection unit 11 detects the flag / EOL (+ TAG) pattern for the specified number of consecutive times, the flag / RTC detection is notified, so that the probability of erroneous detection due to data application or the like is reduced. Furthermore, since the EOL detection and the RTC detection are notified separately,
The end of the line and the end of one page can be clearly known. Furthermore, EOL / RTC
There is no need to perform detection, and the load on the communication control unit 8 is reduced, so that high-speed operation can be supported. Also, the flag / R
Communication problems due to erroneous TC detection are eliminated.

【0063】次に、図4に示したパターン検出部11を
有するファクシミリ装置における請求項3の発明に係わ
る動作について説明する。いま、図2の通信制御部8に
よってアドレス,チップセレクト信号,データ,ライト
パルスが出力されると、前述と同様にコマンドデコード
部12はそのうちのアドレス,チップセレクト信号,ラ
イトパルスを入力する。
Next, the operation of the facsimile apparatus having the pattern detector 11 shown in FIG. 4 according to the third aspect of the present invention will be described. Now, when an address, a chip select signal, data, and a write pulse are output by the communication control unit 8 in FIG. 2, the command decode unit 12 inputs the address, the chip select signal, and the write pulse as described above.

【0064】そして、そのうちのアドレスをデコードし
てCPUコマンドを発生させるが、そのCPUコマンド
が制御レジスタ部19へのセット信号であれば、制御レ
ジスタ部19がセット信号を入力してデータバス上のデ
ータである検出モード,検出パターン,及び連続検出個
数(連続検出回数)をセットする。なお、検出モード,
検出パターン,及び連続検出個数の設定は制御レジスタ
部19の対応するビットのON/OFFによって選択可
能である。
The CPU command is generated by decoding the address. If the CPU command is a set signal to the control register unit 19, the control register unit 19 inputs the set signal and outputs the set signal to the data bus. The detection mode, the detection pattern, and the number of continuous detections (the number of continuous detections) that are data are set. The detection mode,
The setting of the detection pattern and the number of continuous detections can be selected by ON / OFF of the corresponding bit of the control register unit 19.

【0065】ここで、検出モードにはHDLCモードと
NON_HDLCモードがあり、このパターン検出部1
1はHDLCモードの場合にはフラグパターン(011
11110)を設定回数連続で検出した時にフラグ検出
として通信制御部8に通知し、NON_HDLCモード
の場合にはEOLパターン(00000000000
1)を検出した時にEOL検出として通信制御部8に通
知し、EOLパターン(000000000001)ま
たはEOLパターン+TAGパターン(0000000
000011)を設定回数連続で検出した時にRTC検
出として通知する。なお、RTC検出における検出パタ
ーン(EOL/EOL+TAG)は選択が可能である。
Here, the detection modes include an HDLC mode and a NON_HDLC mode.
1 is a flag pattern (011) in the HDLC mode.
11110) is notified to the communication control unit 8 as a flag detection when it is detected continuously for the set number of times. In the case of the NON_HDLC mode, the EOL pattern (000000000000)
When 1) is detected, it is notified to the communication control unit 8 as EOL detection, and the EOL pattern (0000000000001) or the EOL pattern + TAG pattern (00000000) is detected.
0010011) is notified as RTC detection when it is detected for the set number of times in a row. The detection pattern (EOL / EOL + TAG) in the RTC detection can be selected.

【0066】次に、コマンドデコード部12からパター
ン検出スタート信号が発行されると、前述と同様にクロ
ックゲート部13がそれを入力してシフトレジスタ部1
4へのモデム部9のシリアルクロック(DCLK)及び
シリアルデータ(RXD)の出力と、シフトカウンタ部
16へのシリアルクロック(DCLK)の出力を開始す
る。
Next, when a pattern detection start signal is issued from the command decode unit 12, the clock gate unit 13 receives the signal and inputs the same to the shift register unit 1 as described above.
The output of the serial clock (DCLK) and serial data (RXD) of the modem unit 9 to the modem 4 and the output of the serial clock (DCLK) to the shift counter 16 are started.

【0067】そして、シフトカウンタ部16がクロック
ゲート部13からのシリアルクロック(DCLK)をカ
ウントし、検出タイミング制御部17からリセット信号
を入力した時にリセットを行ない、シフトレジスタ部1
4がクロックゲート部13からのシリアルデータ入力
(RXD)をシリアルクロック(DCLK)の立ち上が
りエッジでラッチしてパラレル出力を行なう。
Then, the shift counter section 16 counts the serial clock (DCLK) from the clock gate section 13 and performs a reset when a reset signal is input from the detection timing control section 17.
4 latches the serial data input (RXD) from the clock gate unit 13 at the rising edge of the serial clock (DCLK) and performs parallel output.

【0068】そして、パターン一致検出部15がシフト
レジスタ部14のパラレル出力を制御レジスタ部19か
らのパターン選択信号(検出モード)とTAG(検出パ
ターン)とによって選択設定したパターンと比較し、そ
のパラレル出力がそのパターンと一致したことを検出し
た時に対応する信号をアクティブにし、検出タイミング
制御部17へと出力する。
Then, the pattern coincidence detecting section 15 compares the parallel output of the shift register section 14 with the pattern selected and set by the pattern selection signal (detection mode) from the control register section 19 and the TAG (detection pattern). When it detects that the output matches the pattern, it activates the corresponding signal and outputs it to the detection timing control unit 17.

【0069】以下、設定された検出モード別に説明す
る。 (1)HDLCモードの場合 検出タイミング制御部17は、パターン検出スタート信
号の発行後、シフトカウンタ部16のカウント値が「1
3」を越えてからパターン一致検出部15からのフラグ
検出信号がアクティブになった時に対応する信号を出力
し、それをパターンカウンタ部18へはインクリメント
信号として、シフトカウンタ部16へはリセット信号と
してそれぞれ入力させる。
A description will be given below for each set detection mode. (1) In case of HDLC mode After issuing the pattern detection start signal, the detection timing control section 17 sets the count value of the shift counter section 16 to “1”.
When the flag detection signal from the pattern coincidence detection section 15 becomes active after exceeding "3", a corresponding signal is output, and the corresponding signal is output to the pattern counter section 18 as an increment signal and to the shift counter section 16 as a reset signal. Enter each.

【0070】それによって、パターンカウンタ部18が
検出タイミング制御部17からのインクリメント信号の
入力に同期してインクリメント(カウントアップ)を行
ない、シフトカウンタ部16がリセット信号の入力によ
ってカウント値を「0」にリセットする。
As a result, the pattern counter section 18 increments (counts up) in synchronization with the input of the increment signal from the detection timing control section 17, and the shift counter section 16 sets the count value to "0" by the input of the reset signal. Reset to.

【0071】さらに、シフトレジスタ14によるデータ
のシフトが進み、シフトカウンタ部16でカウントアッ
プが行なわれ、パターン一致検出部15からのフラグ検
出信号が再度アクティブになり、シフトカウンタ部16
のカウンタ値が「7」または「8」であった場合には、
上述と同様に検出タイミング制御部17によってパター
ンカウンタ部18へのインクリメント信号の出力とシフ
トカウンタ部16へのリセット信号の出力が行なわれ
る。
Further, the shift of the data by the shift register 14 proceeds, and the shift counter 16 counts up. The flag detection signal from the pattern match detector 15 becomes active again, and the shift counter 16
Is "7" or "8",
As described above, the detection timing control unit 17 outputs an increment signal to the pattern counter unit 18 and outputs a reset signal to the shift counter unit 16.

【0072】割込発生部20は、パターンカウンタ部1
6の出力(カウント値)と制御レジスタ部19の出力
(設定連続検出個数)とを比較して、そのカウント値が
設定連続検出個数に到達した時にフラグ検出割込信号及
びフラグ検出ステータスビット信号をアクティブにする
と共に、クロックゲート部13へのフラグ/RTC検出
信号をリセットして、クロックゲート部13によるシリ
アルクロック(DCLK),シリアルデータ(RXD)
の出力を停止させ、フラグ検出をストップする。
The interrupt generation unit 20 includes the pattern counter unit 1
6 (the count value) and the output of the control register unit 19 (the number of consecutive detections), and when the count value reaches the number of consecutive detections, a flag detection interrupt signal and a flag detection status bit signal are output. At the same time, the flag / RTC detection signal to the clock gate unit 13 is reset and the serial clock (DCLK) and serial data (RXD) by the clock gate unit 13 are reset.
Is stopped and flag detection is stopped.

【0073】このとき、フラグ検出割込信号及びフラグ
検出ステータスビット信号は保持されたままであり、そ
の各信号のリセットはコマンドデコード部12からのパ
ターン検出ストップ信号の発行による。パターン検出ス
トップ信号が発行された場合には、クロックゲート部1
3によるシリアルクロック(DCLK),シリアルデー
タ(RXD)の出力が停止され、フラグ検出割込信号及
びフラグ検出ステータスビット信号もリセットされる。
At this time, the flag detection interrupt signal and the flag detection status bit signal are kept held, and the resetting of each signal is performed by issuing a pattern detection stop signal from the command decoding unit 12. When the pattern detection stop signal is issued, the clock gate unit 1
3, the output of the serial clock (DCLK) and the serial data (RXD) is stopped, and the flag detection interrupt signal and the flag detection status bit signal are also reset.

【0074】パターンカウンタ部18のカウンタ値が
「0」でない場合にパターン一致検出部15からのフラ
グ検出信号が出力され(アクティブになり)、シフトカ
ウンタ部16のカウンタ値が「7」または「8」でなか
った場合には、検出タイミング制御部17がパターンカ
ウンタ部18へリセット信号を出力し、パターンカウン
タ部18がその信号の入力によってカウンタ値を「0」
にリセットした後、次のインクリメント信号(フラグ検
出信号)の入力によりカウントアップを行なう。
When the counter value of the pattern counter section 18 is not "0", a flag detection signal is output from the pattern match detection section 15 (activated), and the counter value of the shift counter section 16 becomes "7" or "8". If not, the detection timing control unit 17 outputs a reset signal to the pattern counter unit 18, and the pattern counter unit 18 sets the counter value to “0” by the input of the signal.
After the reset, the count is incremented by the input of the next increment signal (flag detection signal).

【0075】このとき、シフトカウンタ部16のカウン
ト値は参照されず、カウントアップとシフトカウンタ部
16のリセットが行なわれる。以後、上述の動作をフラ
グ検出条件に到達するかコマンドデコード部12からパ
ターン検出ストップ信号が発行されるまで繰り返す。
At this time, the count value of the shift counter unit 16 is not referred to, and the count up and the reset of the shift counter unit 16 are performed. Thereafter, the above operation is repeated until the flag detection condition is reached or the pattern detection stop signal is issued from the command decoding unit 12.

【0076】(2)NON_HDLCモードの場合 検出タイミング制御部17は、パターン検出スタート信
号の発行後、シフトカウンタ部16のカウンタ値が「1
3」を越えてからパターン一致検出部15からの検出信
号がアクティブとなった場合に有効となる。アクティブ
となった検出信号がEOL検出信号の場合には、検出タ
イミング制御部17はその検出信号を割込信号発生部2
0へ出力し、EOL検出割込信号及びEOL検出ステー
タスビット信号をアクティブにさせる。
(2) In the case of the NON_HDLC mode After the issuance of the pattern detection start signal, the detection timing control section 17 sets the counter value of the shift counter section 16 to “1”.
It becomes effective when the detection signal from the pattern matching detection section 15 becomes active after exceeding "3". If the activated detection signal is an EOL detection signal, the detection timing control unit 17 outputs the detection signal to the interrupt signal generation unit 2
0 to make the EOL detection interrupt signal and the EOL detection status bit signal active.

【0077】EOL検出割込信号は、シフトレジスタ部
14への次のシリアルクロック(DCLK)入力によっ
てデータのシフトが行なわれてパターンが一致しなくな
るとリセットされるが、EOL検出ステータスビット信
号は保持される。EOLステータスビット信号のリセッ
トは、コマンドデコード部12から発行されるステータ
スリード信号によって3ステートバッファ部21からデ
ータバス上にステータスビットデータ信号が出力された
後にリセットされる。
The EOL detection interrupt signal is reset when the data is shifted by the next serial clock (DCLK) input to the shift register unit 14 and the pattern does not match, but the EOL detection status bit signal is retained. Is done. The EOL status bit signal is reset after the status bit data signal is output from the three-state buffer unit 21 onto the data bus by the status read signal issued from the command decode unit 12.

【0078】アクティブとなった検出信号がRTC検出
信号の場合には、検出タイミング制御部17はその信号
に対応する信号を出力し、それをパターンカウンタ部1
8へはインクリメント信号として、シフトカウント部1
6へはリセット信号としてそれぞれ入力させる。それに
よって、パターンカウンタ部18がそのインクリメント
信号の入力に同期してカウントアップを行ない、シフト
カウンタ部16がリセット信号の入力によってカウンタ
値を「0」にリセットする。
If the activated detection signal is an RTC detection signal, the detection timing control section 17 outputs a signal corresponding to the signal, and outputs the signal to the pattern counter section 1.
8 is used as an increment signal as the shift count unit 1
6 is input as a reset signal. Thereby, the pattern counter section 18 counts up in synchronization with the input of the increment signal, and the shift counter section 16 resets the counter value to “0” by the input of the reset signal.

【0079】ここで、RTC検出パターンとしてEOL
パターンが選択されていた場合には、さらにシフトレジ
スタ部14によるデータのシフトが進み、シフトカウン
タ部16でカウントアップが行なわれ、パターン一致検
出部15からのEOL検出信号が再度アクティブとな
り、シフトカウンタ部16のカウンタ値が「12」であ
った場合には、上述と同様に検出タイミング制御部17
によってパターンカウンタ部18へのインクリメント信
号の出力とシフトカウンタ部16へのリセット信号の出
力が行なわれる。
Here, EOL is used as the RTC detection pattern.
If the pattern has been selected, the shift of the data by the shift register section 14 further proceeds, the count is performed by the shift counter section 16, the EOL detection signal from the pattern matching detection section 15 becomes active again, and the shift counter When the counter value of the unit 16 is “12”, the detection timing control unit 17
Thus, the output of the increment signal to the pattern counter section 18 and the output of the reset signal to the shift counter section 16 are performed.

【0080】また、RTC検出パターンとしてEOLパ
ターン+TAGパターンが選択されていた場合には、パ
ターン一致検出部15からのEOL+TAG検出信号が
再度アクティブとなり、シフトカウンタ部16のカウン
タ値が「13」であった場合には、上述と同様に検出タ
イミング制御部17によってパターンカウンタ部18へ
のインクリメント信号の出力とシフトカウンタ部16へ
のリセット信号の出力が行なわれる。このとき、パター
ンカウンタ部18のカウント値が「0」でない場合には
EOL検出割込信号のアクティブ出力はマスクされる。
When the EOL pattern + TAG pattern is selected as the RTC detection pattern, the EOL + TAG detection signal from the pattern coincidence detection section 15 becomes active again, and the counter value of the shift counter section 16 is "13". In this case, the detection timing control unit 17 outputs an increment signal to the pattern counter unit 18 and a reset signal to the shift counter unit 16 as described above. At this time, if the count value of the pattern counter unit 18 is not “0”, the active output of the EOL detection interrupt signal is masked.

【0081】割込発生部20は、パターンカウンタ部1
8の出力(カウント値)と制御レジスタ部19の出力
(設定連続検出個数)とを比較して、そのカウント値が
設定連続検出個数に到達した時にRTC検出割込信号及
びRTC検出ステータスビット信号をアクティブにする
と共に、フラグ/RTC検出信号をリセットしてクロッ
クゲート部13によるシリアルクロック(DCLK),
シリアルデータ(RXD)の出力を停止させ、フラグ検
出をストップする。
The interrupt generation unit 20 includes the pattern counter unit 1
8 (count value) and the output of the control register unit 19 (the number of continuous detections), and when the count value reaches the set number of continuous detections, the RTC detection interrupt signal and the RTC detection status bit signal are output. Activate and reset the flag / RTC detection signal to reset the serial clock (DCLK),
The output of the serial data (RXD) is stopped, and the flag detection is stopped.

【0082】このとき、RTC検出割込信号及びRTC
検出ステータスビット信号は保持されたままであり、そ
の各信号のリセットはコマンドデコード部12からのパ
ターン検出ストップ信号のコマンド発行による。パター
ン検出ストップ信号が発行された場合には、クロックゲ
ート部13によるシリアルクロック(DCLK),シリ
アルデータ(RXD)の出力が停止され、RTC検出割
込信号及びRTC検出ステータスビット信号もリセット
される。
At this time, the RTC detection interrupt signal and the RTC
The detection status bit signal remains held, and each signal is reset by issuing a command of the pattern detection stop signal from the command decoding unit 12. When the pattern detection stop signal is issued, the output of the serial clock (DCLK) and the serial data (RXD) by the clock gate unit 13 is stopped, and the RTC detection interrupt signal and the RTC detection status bit signal are also reset.

【0083】パターンカウンタ部18のカウンタ値が
「0」でない場合にパターン一致検出部15からEOL
検出信号あるいはEOLパターン+TAG検出信号が出
力され(アクティブになり)、シフトカウンタ部16の
カウント値が上記の値(12/13)でなかった場合に
は、検出タイミング制御部17がパターンカウンタ部1
8へリセット信号を出力し、パターンカウンタ部18が
その信号の入力によってカウンタ値を「0」にリセット
した後、次のインクリメント信号(EOL検出信号又は
EOLパターン+TAG検出信号)の入力によってカウ
ントアップを行なう。
When the counter value of the pattern counter 18 is not "0", the pattern match detector 15
If the detection signal or the EOL pattern + TAG detection signal is output (becomes active) and the count value of the shift counter unit 16 is not the above value (12/13), the detection timing control unit 17 sets the pattern counter unit 1
8, the pattern counter 18 resets the counter value to “0” by the input of the signal, and then counts up by the input of the next increment signal (EOL detection signal or EOL pattern + TAG detection signal). Do.

【0084】このとき、シフトカウンタ部16のカウン
ト値は参照されず、カウントアップとシフトカウント部
16のリセットが行なわれる。以後、上述の動作をRT
C検出条件に到達するかコマンドデコード部12からパ
ターン検出ストップ信号が発行されるまで繰り返す。
At this time, the count value of the shift counter 16 is not referred to, and the count-up and the reset of the shift counter 16 are performed. Thereafter, the above operation is performed at RT
This is repeated until the C detection condition is reached or a pattern detection stop signal is issued from the command decoding unit 12.

【0085】このパターン検出部11を有するファクシ
ミリ装置によれば、図1のパターン検出部11を有する
ファクシミリ装置と同様な効果を得ることができる。ま
た、パターン検出部11がフラグ/EOL(+TAG)
のパターンを連続設定回数検出した場合にフラグ/RT
C検出を通知するので、データかけした場合による誤検
出の確率を減少させることと、フラグ/RTC検出を
(誤検出よりも)優先的に行なうことを通信制御部8
(ユーザ)が選択することが可能になる。
According to the facsimile apparatus having the pattern detecting section 11, the same effects as those of the facsimile apparatus having the pattern detecting section 11 shown in FIG. 1 can be obtained. Further, the pattern detection unit 11 sets the flag / EOL (+ TAG)
Flag is detected when the pattern is detected continuously for the set number of times.
Since the C detection is notified, the communication control unit 8 reduces the probability of erroneous detection due to data application and preferentially performs flag / RTC detection (over erroneous detection).
(User) can be selected.

【0086】さらに、前述したファクシミリ装置と同様
に実施例パターン検出部11がEOL検出とRTC検出
を別々に通知するので、ラインの終了と1ページの終了
を明確に知ることができる。さらにまた、通信制御部8
によってEOL/RTC検出を行なう必要がなくなり、
通信制御部8の負荷が減少するため高速化に対応可能と
なる。また、フラグ/RTCの誤検出による通信不具合
がなくなる。したがって、ユーザの設計思想を生かすフ
ァクシミリ装置を設計することが可能となる。
Further, similarly to the facsimile machine described above, the pattern detecting section 11 of the embodiment separately notifies the EOL detection and the RTC detection, so that the end of the line and the end of one page can be clearly known. Furthermore, the communication control unit 8
Eliminates the need to perform EOL / RTC detection,
Since the load on the communication control unit 8 is reduced, it is possible to cope with high speed. In addition, communication failure due to erroneous detection of the flag / RTC is eliminated. Therefore, it is possible to design a facsimile apparatus that utilizes the design concept of the user.

【0087】なお、モデム部9の受信状態が良い場合に
は、パターン検出の確率を上げるために設定値を少なめ
にするとよい。また、プロトコルの場合には確実性重視
で最低でもパターン検出を2回行なうように設定すると
よい。以上、この発明をファクシミリ装置に適用した実
施例について説明したが、この発明はこれに限らず、デ
ジタル複写機等の通信装置を搭載した各種電子装置に適
用し得るものである。
When the reception state of the modem unit 9 is good, the set value may be reduced to increase the probability of pattern detection. Further, in the case of the protocol, it is preferable to set the pattern detection to be performed at least twice with emphasis on certainty. The embodiment in which the present invention is applied to a facsimile apparatus has been described above. However, the present invention is not limited to this, and can be applied to various electronic apparatuses equipped with a communication device such as a digital copying machine.

【0088】[0088]

【発明の効果】以上説明してきたように、この発明によ
れば、パラレルデータからシリアルデータへの変換回路
を不要にしてコストダウンを図ることができる。また、
HDLC機能を使用した場合でもフラグパターンをカウ
ントすることができる。
As described above, according to the present invention, a conversion circuit for converting parallel data into serial data is not required, and the cost can be reduced. Also,
Even when the HDLC function is used, the flag pattern can be counted.

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

【図1】図2のパターン検出部11の構成例を示すブロ
ック図である。
FIG. 1 is a block diagram illustrating a configuration example of a pattern detection unit 11 of FIG.

【図2】この発明の一実施例であるファクシミリ装置の
構成例を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration example of a facsimile apparatus according to an embodiment of the present invention.

【図3】図2のパターン検出部11の他の構成例を示す
ブロック図である。
FIG. 3 is a block diagram illustrating another configuration example of the pattern detection unit 11 of FIG. 2;

【図4】同じくパターン検出部11のさらに他の構成例
を示すブロック図である。
FIG. 4 is a block diagram showing still another configuration example of the pattern detection unit 11;

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

1:システム制御部 2:システムメモリ部 3:画像メモリ部 4:符号化・復号化部 5:記録部 6:読み取り部 7:操作部 8:通信制御部 9:モデム部 10:NCU部 11:パターン検出部 12:コマンドデコード部 13:クロックゲート部 14:シフトレジスタ部 15:パターン一致検出部 16:シフトカウンタ部 17:検出タイミング制御部 18:パターンカウンタ部 19:制御レジスタ部 20割込発生部 21:3ステートバッファ部 1: System control unit 2: System memory unit 3: Image memory unit 4: Encoding / decoding unit 5: Recording unit 6: Reading unit 7: Operation unit 8: Communication control unit 9: Modem unit 10: NCU unit 11: Pattern detection unit 12: Command decoding unit 13: Clock gate unit 14: Shift register unit 15: Pattern match detection unit 16: Shift counter unit 17: Detection timing control unit 18: Pattern counter unit 19: Control register unit 20 Interrupt generation unit 21: 3 state buffer section

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04L 29/10 H04L 7/08 H04N 1/32 H04N 1/36 Continued on the front page (58) Fields surveyed (Int.Cl. 7 , DB name) H04L 29/10 H04L 7/08 H04N 1/32 H04N 1/36

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 モデムのシリアルインタフェースに接続
され、前記モデムのシリアルクロック入力を条件に従っ
て出力/停止する出力/停止手段と、前記モデムのシリ
アルデータ入力を前記シリアルクロックの立ち上がりエ
ッジでラッチしてパラレル出力を行なうパラレル出力手
段と、該手段から出力されるパラレル出力と比較するパ
ターンを設定するパターン設定手段と、前記パラレル出
力手段から出力されたパラレル出力を前記パターン設定
手段によって設定されたパターンと比較し、そのパラレ
ル出力がそのパターンと一致したことを検出した時に対
応する信号を出力するパターン一致検出手段と、該手段
から前記信号が出力された時に制御部へ通知する通知手
段と、前記制御部から出力されるアドレスをデコードし
て前記各手段を制御するための信号を発生させる制御信
号発生手段とを設けたことを特徴とするパターン検出回
路。
An output / stop means connected to a serial interface of a modem for outputting / stopping a serial clock input of the modem according to a condition; and a serial data input of the modem latched at a rising edge of the serial clock to be parallelized. Parallel output means for outputting, pattern setting means for setting a pattern to be compared with the parallel output output from the means, and comparison of the parallel output output from the parallel output means with the pattern set by the pattern setting means Pattern matching detecting means for outputting a corresponding signal when the parallel output matches the pattern, notifying means for notifying a control unit when the signal is output from the means, Decodes the address output from and controls each of the above means And a control signal generating means for generating a signal for generating a pattern.
【請求項2】 モデムのシリアルインタフェースに接続
され、前記モデムのシリアルクロック入力を条件に従っ
て出力/停止する出力/停止手段と、前記モデムのシリ
アルデータ入力を前記シリアルクロックの立ち上がりエ
ッジでラッチしてパラレル出力を行なうパラレル出力手
段と、該手段から出力されるパラレル出力と比較するパ
ターンを設定するパターン設定手段と、前記パラレル出
力手段から出力されたパラレル出力を前記パターン設定
手段によって設定されたパターンと比較し、そのパラレ
ル出力がそのパターンと一致したことを検出した時に対
応する信号を出力するパターン一致検出手段と、前記パ
ラレル出力手段によるラッチ回数をカウントするラッチ
回数カウント手段と、該手段及び前記パターン一致検出
手段の出力に従って所定の信号を出力する所定信号出力
手段と、該手段による出力数をカウントする出力数カウ
ント手段と、該手段によってカウントされた出力数が規
定値に到達した時に制御部へ通知する通知手段と、前記
制御部から出力されるアドレスをデコードして前記各手
段を制御するための信号を発生させる制御信号発生手段
とを設けたことを特徴とするパターン検出回路。
2. An output / stop means connected to a serial interface of a modem for outputting / stopping a serial clock input of the modem in accordance with a condition, and latching a serial data input of the modem at a rising edge of the serial clock for parallel operation. Parallel output means for outputting, pattern setting means for setting a pattern to be compared with the parallel output output from the means, and comparison of the parallel output output from the parallel output means with the pattern set by the pattern setting means Pattern matching detecting means for outputting a signal corresponding to the detection that the parallel output matches the pattern; latch number counting means for counting the number of latches by the parallel output means; According to the output of the detection means A predetermined signal output unit that outputs a predetermined signal, an output number counting unit that counts the number of outputs by the unit, a notification unit that notifies a control unit when the output number counted by the unit reaches a specified value, And a control signal generating means for decoding an address output from said control section and generating a signal for controlling each of said means.
【請求項3】 モデムのシリアルインタフェースに接続
され、前記モデムのシリアルクロック入力を条件に従っ
て出力/停止する出力/停止手段と、前記モデムのシリ
アルデータ入力を前記シリアルクロックの立ち上がりエ
ッジでラッチしてパラレル出力を行なうパラレル出力手
段と、該手段から出力されるパラレル出力と比較するパ
ターンを設定するパターン設定手段と、前記パラレル出
力手段から出力されたパラレル出力を前記パターン設定
手段によって設定されたパターンと比較し、そのパラレ
ル出力がそのパターンと一致したことを検出した時に対
応する信号を出力するパターン一致検出手段と、前記パ
ラレル出力手段によるラッチ回数をカウントするラッチ
回数カウント手段と、該手段及び前記パターン一致検出
手段の出力に従って所定の信号を出力する所定信号出力
手段と、該手段による出力数をカウントする出力数カウ
ント手段と、連続検出個数を設定する連続検出個数手段
と、前記出力数カウント手段によってカウントされた出
力数が前記連続検出個数設定手段によって設定された値
に到達した時に制御部へ通知する通知手段と、前記制御
部から出力されるアドレスをデコードして前記各手段を
制御するための信号を発生させる制御信号発生手段とを
設けたことを特徴とするパターン検出回路。
3. An output / stop means connected to a serial interface of a modem for outputting / stopping a serial clock input of the modem in accordance with a condition, and latching a serial data input of the modem at a rising edge of the serial clock for parallel processing. Parallel output means for outputting, pattern setting means for setting a pattern to be compared with the parallel output output from the means, and comparison of the parallel output output from the parallel output means with the pattern set by the pattern setting means Pattern matching detecting means for outputting a signal corresponding to the detection that the parallel output matches the pattern; latch number counting means for counting the number of latches by the parallel output means; According to the output of the detection means Predetermined signal output means for outputting a predetermined signal; output number counting means for counting the number of outputs by the means; continuous detection number means for setting a continuous detection number; and the number of outputs counted by the output number counting means. Notification means for notifying the control unit when the value set by the continuous detection number setting means is reached, and a control signal for decoding an address output from the control unit and generating a signal for controlling the respective means A pattern detection circuit comprising a generation unit.
【請求項4】 請求項1乃至3のいずれか一項に記載の
パターン検出回路を有することを特徴とするファクシミ
リ装置。
4. A facsimile apparatus comprising the pattern detection circuit according to claim 1.
JP31555293A 1993-12-15 1993-12-15 Pattern detection circuit and facsimile machine Expired - Fee Related JP3296905B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31555293A JP3296905B2 (en) 1993-12-15 1993-12-15 Pattern detection circuit and facsimile machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31555293A JP3296905B2 (en) 1993-12-15 1993-12-15 Pattern detection circuit and facsimile machine

Publications (2)

Publication Number Publication Date
JPH07170310A JPH07170310A (en) 1995-07-04
JP3296905B2 true JP3296905B2 (en) 2002-07-02

Family

ID=18066723

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31555293A Expired - Fee Related JP3296905B2 (en) 1993-12-15 1993-12-15 Pattern detection circuit and facsimile machine

Country Status (1)

Country Link
JP (1) JP3296905B2 (en)

Also Published As

Publication number Publication date
JPH07170310A (en) 1995-07-04

Similar Documents

Publication Publication Date Title
US4710871A (en) Data transmitting and receiving apparatus
US6260152B1 (en) Method and apparatus for synchronizing data transfers in a logic circuit having plural clock domains
US5461701A (en) System and method for peripheral data transfer
TW569087B (en) Efficient clock start and stop apparatus for clock forwarded system I/O
EP0564118B1 (en) Serial data transfer apparatus
US5737633A (en) Serial data receiving device having a memory for storing a reception permit signal which enable or disable the device from hand-shaking with the transmitting device
US5128677A (en) Apparatus and method for transferring data along a serial data bus
JP3296905B2 (en) Pattern detection circuit and facsimile machine
US6907541B1 (en) System for recovering received data with a reliable gapped clock signal after reading the data from memory using enable and local clock signals
US5430554A (en) Video interface system sending image data together with clock signal received from image forming apparatus
US5617433A (en) Serial data transfer apparatus
JPS5942507B2 (en) Communication method
JP3019740B2 (en) Serial interface and serial data transfer system
Cook IEEE 1355 data-strobe links: ATM speed at RS232 cost
US6885217B2 (en) Data transfer control circuitry including FIFO buffers
US6850561B1 (en) Predictable updating of a baud divisor of an asynchronous serial port during data reception
US5422727A (en) Facsimile apparatus having magnetic tape recording apparatus for data storage
US5539887A (en) Input buffer circuit for a microprocessor which prevents improper data input
JP3451631B2 (en) Handshake type data processing circuit
US4168487A (en) Code detection circuit
KR100207482B1 (en) Parity checking device for smart card
KR910004692Y1 (en) Circuit for interupting and polling end of line in datafile transmission system
US5870437A (en) Apparatus and method for detecting end of serial bit stream
KR0183777B1 (en) Detection apparatus of color burst phase twist
JP3116920B2 (en) Received symbol error detection circuit and error detection method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080412

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080412

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090412

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090412

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100412

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100412

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110412

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120412

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130412

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees