JPH0358538A - Synchronism detecting circuit - Google Patents
Synchronism detecting circuitInfo
- Publication number
- JPH0358538A JPH0358538A JP1194933A JP19493389A JPH0358538A JP H0358538 A JPH0358538 A JP H0358538A JP 1194933 A JP1194933 A JP 1194933A JP 19493389 A JP19493389 A JP 19493389A JP H0358538 A JPH0358538 A JP H0358538A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- synchronization
- synchronism
- detection
- counter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 claims abstract description 86
- 230000001360 synchronised effect Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は同期検出回路に係り、特にシリアルデータ伝送
のキャラクタ同期確立方式において、同期検出用受信キ
ャラクタに対する同期確立信号発生回路のHDLC,S
DLCのフラグ同期確立回路に関する。Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a synchronization detection circuit, and in particular, in a character synchronization establishment method for serial data transmission, HDLC, S of a synchronization establishment signal generation circuit for a received character for synchronization detection is used.
This invention relates to a DLC flag synchronization establishment circuit.
従来、HDLC (high level data
linkcontrol procedures)、S
DLCプロトコルによるフラグ同期は、受信動作開始時
に、1つの正常なフラグパターンがあれば同期確立を生
じ、それ以降は、フラグパターン以外のキャラクタが受
信出来る様になっていた.また、受信動作開始後、一旦
フラグパターンの同期確立が或立後、再度同期確立を取
るためには、受信動作を停止させるか、またはフラグパ
ターンによる同期確立をさせるための制御信号によるコ
ントロールが必要となっていた.
第2図は従来の同期検出回路を示すブロック図である。Conventionally, HDLC (high level data
link control procedures), S
Flag synchronization using the DLC protocol establishes synchronization if there is one normal flag pattern at the start of the reception operation, and after that, characters other than the flag pattern can be received. In addition, once the synchronization of the flag pattern has been established after the start of the reception operation, in order to establish synchronization again, it is necessary to stop the reception operation or use a control signal to establish synchronization using the flag pattern. It became. FIG. 2 is a block diagram showing a conventional synchronization detection circuit.
第2図において、従来の同期検出回路は、受信データ・
シフトレジスタ2と同期信号検出用比較器3とを備えて
いる。同期検出信号(■)9は、受信データシフトレジ
スタ2により受信したシリアルデータより、同期信号検
出用比較器3において、検出された同期一致信号を出力
する。この同期一致信号は、一旦同期が取れた後、受信
開始信号8、または同期検出開始信号10が入力されな
い限り、同期信号検出比較器3による同期信号一致が生
じた場合でも、同期検出信号(I)7や、同期検出信号
(■)9を出力しない機能を持つ。In Figure 2, the conventional synchronization detection circuit
It includes a shift register 2 and a comparator 3 for detecting a synchronizing signal. The synchronization detection signal (■) 9 outputs a synchronization coincidence signal detected by the synchronization signal detection comparator 3 from the serial data received by the reception data shift register 2. This synchronization match signal is used as a synchronization detection signal (I ) 7 and synchronization detection signal (■) 9 are not output.
同期検出開始信号10は、受信開始信号8により受信動
作を開始した受信データシフトレジスタ2により受信し
たシリアルデータが、一旦同期信号検出用比較器3によ
り同期信号を検出した後、再度シリアルデータより同期
信号を検出させるための信号端子である。従来では、受
信開始信号8により受信データシフトレジスタ2の動作
が開始すると、受信データ入力端子1よりシリアルデー
タの受信を開始する。受信データシフトレジスタ2によ
り受信したシリアルデータは、まず同期信号の検出を開
始する。受信データシフトレジスタ2では、シリアルデ
ータな決められたビットパターンによりシリアルからパ
ラレルに変換する。The synchronization detection start signal 10 indicates that the serial data received by the reception data shift register 2 which started receiving operation in response to the reception start signal 8 is synchronized again from the serial data after the synchronization signal detection comparator 3 detects the synchronization signal. This is a signal terminal for detecting a signal. Conventionally, when the reception data shift register 2 starts operating in response to the reception start signal 8, the reception of serial data from the reception data input terminal 1 is started. The serial data received by the reception data shift register 2 first starts detecting a synchronization signal. The reception data shift register 2 converts serial data from serial to parallel data according to a determined bit pattern.
ここで、シリアルからパラレルに変換した受信データを
、同期信号検出用比較器3により、同期信号を検出する
。受信データシフトレジスタ2より受信したシリアルデ
ータ中に同期信号が検出されると、同期検出信号(■)
9が出力され、同期検出が終了する。受信開始信号8に
より、受信データシフトレジスタ2が動作中に同期信号
を検出する手段は、同期検出開始信号lOにより、同期
信号を検出する。Here, a synchronization signal is detected from the received data converted from serial to parallel by a synchronization signal detection comparator 3. When a synchronization signal is detected in the serial data received from receive data shift register 2, a synchronization detection signal (■)
9 is output, and the synchronization detection ends. The means for detecting a synchronization signal while the reception data shift register 2 is in operation using the reception start signal 8 detects the synchronization signal using the synchronization detection start signal lO.
前述した従来のHDLC,SDLCのフラグパターンに
よる同期確立は、1つのフラグパターンのみで行なわれ
ていたため、一旦同期確立した後は、データ受信状態と
なってしまうから、伝送ライン等のノイズによるフラグ
パターンの不正データ等を受信してしまう欠点がある。The establishment of synchronization using flag patterns in the conventional HDLC and SDLC described above was performed using only one flag pattern, and once synchronization was established, data reception status was established. There is a drawback that incorrect data etc. may be received.
また。受信動作開始後に、フラグ同期を取るためには、
同期確立用制御信号によるコントロールをしなければな
らない欠点もある。Also. In order to synchronize the flags after starting the reception operation,
There is also the drawback that control must be performed using a control signal for establishing synchronization.
本発明の目的は、前記欠点が解決され、不正データ等を
受信する心配がなく、また容易にフラグ同期が取れるよ
うにした同期検出回路を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a synchronization detection circuit which solves the above-mentioned drawbacks, eliminates the risk of receiving invalid data, and allows flag synchronization to be easily achieved.
本発明の同期検出回路の構成は、フラグパターン受信時
のフラグ検出信号をカウントするカウンターと、前記カ
ウンターの検出カウント数を設定しておく設定レジスタ
と、前記カウンターのカウンター値と前記レジスタの設
定値とを比較する比較器とを備えたことを特徴とする。The configuration of the synchronization detection circuit of the present invention includes a counter that counts flag detection signals when receiving a flag pattern, a setting register that sets the detection count number of the counter, a counter value of the counter, and a set value of the register. and a comparator for comparing the.
ブロック図である。 It is a block diagram.
第1図において、本実施例の同期検出回路は、受信デー
タ・シフトレジスタ2と、同期信号検出用比較器3と、
同期検出信号カウンター4と、同期検出回数設定レジス
タ6と、同期検出信号比較器5とを含み構或される。受
信データ入力端子1は、データ伝送ラインからのシリア
ルデータの入力端子である。受信データシフトレジスタ
2は、受信データ入力端子1から入力したシリアルデー
タを受信し、クロックを基準に受信動作を行うと共に、
受信動作によりシリアルデータなパラレルデータに変換
する機能を有する。同期信号検出用比較器3は、受信デ
ータシフトレジスタ2により、シリアルデータからパラ
レルデータに変換された受信データの中から同期を取る
ことを目的としたデータを検出する機能を有する。In FIG. 1, the synchronization detection circuit of this embodiment includes a reception data shift register 2, a synchronization signal detection comparator 3,
It includes a synchronization detection signal counter 4, a synchronization detection number setting register 6, and a synchronization detection signal comparator 5. Reception data input terminal 1 is an input terminal for serial data from a data transmission line. The reception data shift register 2 receives serial data input from the reception data input terminal 1, performs reception operation based on the clock, and
It has a function of converting serial data to parallel data by receiving operation. The synchronization signal detection comparator 3 has a function of detecting data intended for synchronization from among the received data converted from serial data to parallel data by the received data shift register 2.
同期検出信号カウンター4は、同期信号検出用比較器3
により同期信号を検出した数をカウントする機能を有す
る。同期検出信号比較器5は、同期検出信号カウンター
4と同期検出回数設定レジスタ6により設窟された検出
回数とを比較し、両者の値が一致したときに、同期検出
信号7を出力する機能を有する。The synchronization detection signal counter 4 includes a synchronization signal detection comparator 3
It has a function to count the number of synchronization signals detected. The synchronization detection signal comparator 5 has a function of comparing the synchronization detection signal counter 4 and the number of detections set by the synchronization detection frequency setting register 6, and outputting the synchronization detection signal 7 when the two values match. have
同期検出回数設定レジスタ6は、同期検出回数を設定す
るためのレジスタで、このレジスタの値により同期検出
の数が決まる。また、同期検出回数設定レジスタ6の設
定値は、任意な値の設定が可能な機能を有す。同期検出
信−号(I)7は、同期検出信号カウンター4での同期
信号の検出回数と、同期検出回数設定レジスタ6の設定
値とが、同期検出信号比較器5において同値となったと
きに、一致信号を出力する。The synchronization detection number setting register 6 is a register for setting the number of synchronization detections, and the value of this register determines the number of synchronization detections. Further, the setting value of the synchronization detection number setting register 6 has a function that allows setting an arbitrary value. The synchronization detection signal (I) 7 is generated when the number of times the synchronization signal is detected by the synchronization detection signal counter 4 and the setting value of the synchronization detection number setting register 6 become the same value in the synchronization detection signal comparator 5. , outputs a match signal.
受信開始信号8は、受信データシフトレジスタ2に受信
データ入力端子1よりシリアルデータの受信を開始/停
止を行なうための信号である。受信開始信号8により、
受信データシフトレジスタ2の受信動作から同期検出用
比較器3による同期信号検出は、第2図の従来と同じで
ある。The reception start signal 8 is a signal for starting/stopping the reception of serial data from the reception data input terminal 1 to the reception data shift register 2. Due to the reception start signal 8,
The synchronization signal detection by the synchronization detection comparator 3 from the reception operation of the reception data shift register 2 is the same as the conventional one shown in FIG.
本実施例は、同期信号検出用比較器3により検出した同
期一致信号を同期検出信号カウンター4によりカウント
する。この同期検出信号カウンター4は、受信データシ
フトレジスタ゜2により受信したシリアルデータ中に同
期信号が連続して入力されている状態で同期検出用比較
器3により同期信号が検出される毎にカウントする。In this embodiment, a synchronization detection signal counter 4 counts the synchronization coincidence signal detected by the synchronization signal detection comparator 3. The synchronization detection signal counter 4 counts each time a synchronization signal is detected by the synchronization detection comparator 3 while the synchronization signal is continuously input into the serial data received by the reception data shift register 2.
この同期検出力ウンター4でのカウントは、同期検出回
数設定レジスタ6により設定された値を同期検出信号比
較器5で比較し、同期検出力ウンター4のカウント値と
同期検出回数設定レジスタ6の値とが一致したとき、同
期検出信号(I)7が出力される。ここで、受信データ
シフトレジスタ2での受信シリアルデータ中の同期信号
の数と、同期検出回数設定レジスタ6での設定数が一致
しない場合は、同期信号の数が設定数となるまで、同期
信号検出が行なわれる。The count by the synchronization detection power counter 4 is determined by comparing the value set by the synchronization detection number setting register 6 with the synchronization detection signal comparator 5, and then comparing the count value of the synchronization detection power counter 4 with the value of the synchronization detection number setting register 6. When they match, a synchronization detection signal (I) 7 is output. Here, if the number of synchronization signals in the received serial data in the reception data shift register 2 does not match the number set in the synchronization detection count setting register 6, the number of synchronization signals is changed until the number of synchronization signals reaches the set number. Detection is performed.
一旦、同期一致が、同期検出信号比較器5より、同期検
出信号(l)7として出力されると、それ以降の同期検
出は、同期検出開始信号10による受信データシフトレ
ジスタ2,同期検出信号カウンター4のリセット、また
は受信開始信号8による受信データシフトレジスタ2の
停止後、再度受信開始信号8による受信データシフトレ
ジスタ2の動作の開始により可能となる.
前述した従来のHDLC,SDLCの受信フラグ同期確
立回路に対して、本実施例は、フラグパターンによる同
期確立の生じた回数をカウントし、そのカウント値とカ
ウンタレジスタの設定値とにより、同期確立を生じさせ
る。Once a synchronization match is output from the synchronization detection signal comparator 5 as the synchronization detection signal (l) 7, subsequent synchronization detection is performed by the reception data shift register 2 and the synchronization detection signal counter according to the synchronization detection start signal 10. 4 or after the reception data shift register 2 is stopped by the reception start signal 8, this becomes possible by starting the operation of the reception data shift register 2 again by the reception start signal 8. In contrast to the conventional HDLC and SDLC reception flag synchronization establishment circuits described above, this embodiment counts the number of times synchronization has been established based on the flag pattern, and establishes synchronization based on the count value and the setting value of the counter register. bring about
以上説明したように、本発明は、同期信号検出比較器に
より検出した同期信号を同期検出信号力.ウンターを用
いカウントすると共に、カウント値を同期検出回数設定
レジスタでの任意の設定値と比較し、同期信号の検出を
行うことにより、受信動作開始後の同期信号検出数が増
加し、同期確立の精度が向上すると共に、受信動作開始
直後に伝送ラインのノイズ等による同期信号の不正デー
タ化に伴う受信動作をマスク出来る効果がある。また本
発明は、同期検出回数設定レジスタを設けることにより
、個々の装置に対した同期検出数が任意に出来る効果が
ある。As explained above, the present invention detects a synchronization signal detected by a synchronization signal detection comparator as a synchronization detection signal power. By counting using a counter and detecting a synchronization signal by comparing the count value with the arbitrary setting value in the synchronization detection count setting register, the number of synchronization signals detected after the reception operation starts increases and it becomes easier to establish synchronization. In addition to improving accuracy, this has the effect of masking the reception operation caused by the conversion of the synchronization signal into invalid data due to transmission line noise or the like immediately after the start of the reception operation. Further, the present invention has the effect that the number of synchronization detections can be set arbitrarily for each device by providing a register for setting the number of synchronization detections.
第1図は本発明の一実施例の同期検出回路を示すブロッ
ク図、第2図は従来の同期検出回路を示すブロック図で
ある。
1・・・・・・受信データ入力端子、2・・・・・・受
信データシフトレジスタ、3・・・・・・同期信号検出
用比較器、4・・・・・・同期検出信号カウンター 5
・・・・・・同期検出信号比較器、6・・・・・・同期
検出回数設定レジスタ、7・・・・・・同期検出信号(
I)、8・・・・・・受信開始信号、9・・・・・・同
期検出信号(II)、10・・・・・・同期検出開始信
号。FIG. 1 is a block diagram showing a synchronization detection circuit according to an embodiment of the present invention, and FIG. 2 is a block diagram showing a conventional synchronization detection circuit. 1...Reception data input terminal, 2...Reception data shift register, 3...Comparator for synchronization signal detection, 4...Synchronization detection signal counter 5
... Synchronization detection signal comparator, 6 ... Synchronization detection number setting register, 7 ... Synchronization detection signal (
I), 8... Reception start signal, 9... Synchronization detection signal (II), 10... Synchronization detection start signal.
Claims (1)
カウンターと、前記カウンターの検出カウント数を設定
しておく設定レジスタと、前記カウンターのカウンター
値と前記レジスタの設定値とを比較する比較器とを備え
たことを特徴とする同期検出回路。A counter that counts flag detection signals when a flag pattern is received, a setting register that sets a detection count number of the counter, and a comparator that compares the counter value of the counter and the set value of the register. A synchronization detection circuit characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1194933A JPH0358538A (en) | 1989-07-26 | 1989-07-26 | Synchronism detecting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1194933A JPH0358538A (en) | 1989-07-26 | 1989-07-26 | Synchronism detecting circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0358538A true JPH0358538A (en) | 1991-03-13 |
Family
ID=16332757
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1194933A Pending JPH0358538A (en) | 1989-07-26 | 1989-07-26 | Synchronism detecting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0358538A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5799838A (en) * | 1980-12-13 | 1982-06-21 | Nippon Telegr & Teleph Corp <Ntt> | One-way communication system |
| JPS61224756A (en) * | 1985-03-29 | 1986-10-06 | Toshiba Corp | Transmission system by flag synchronous means |
| JPS61270999A (en) * | 1985-05-27 | 1986-12-01 | Nec Corp | Frame synchronous circuit |
| JPS62245833A (en) * | 1986-04-18 | 1987-10-27 | Nec Corp | Protecting stage number switching circuit |
| JPS63313940A (en) * | 1987-06-17 | 1988-12-22 | Hitachi Ltd | Communication control device |
-
1989
- 1989-07-26 JP JP1194933A patent/JPH0358538A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5799838A (en) * | 1980-12-13 | 1982-06-21 | Nippon Telegr & Teleph Corp <Ntt> | One-way communication system |
| JPS61224756A (en) * | 1985-03-29 | 1986-10-06 | Toshiba Corp | Transmission system by flag synchronous means |
| JPS61270999A (en) * | 1985-05-27 | 1986-12-01 | Nec Corp | Frame synchronous circuit |
| JPS62245833A (en) * | 1986-04-18 | 1987-10-27 | Nec Corp | Protecting stage number switching circuit |
| JPS63313940A (en) * | 1987-06-17 | 1988-12-22 | Hitachi Ltd | Communication control device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2001094542A (en) | Frame synchronization circuit | |
| JP2982731B2 (en) | Synchronous signal detection method | |
| JPH0832564A (en) | Synchronization detection circuit | |
| JPH0358538A (en) | Synchronism detecting circuit | |
| JP3085448B2 (en) | Communications system | |
| JP2001127744A (en) | Device and method for start-stop synchronous data communication | |
| JPH03192855A (en) | Synchronizing data reception circuit | |
| JPH01265740A (en) | Bit synchronization method | |
| JPH01228337A (en) | Frame synchronization protection circuit | |
| JPS59228443A (en) | Synchronizing device | |
| JPS62176234A (en) | Frame synchronization protecting system | |
| JPS6367839A (en) | Frame synchronizing circuit | |
| JPH08163109A (en) | Data input disconnection detection circuit | |
| JPH04104615A (en) | Clock interruption detection circuit | |
| JPS62226747A (en) | Serial data detecting device | |
| JP3411197B2 (en) | Line termination equipment | |
| JPS5816661B2 (en) | data receiving device | |
| JPH05167573A (en) | Out of sync detector | |
| JPH0487432A (en) | Synchronization protecting circuit | |
| JPS6198038A (en) | Synchronous detection system | |
| JPH088546B2 (en) | Frame synchronization detection method for digital transmission circuits | |
| JPH0583094A (en) | Filter circuit | |
| JP2003179587A (en) | Data input equipment | |
| JPS62266925A (en) | Serial/parallel conversion circuit | |
| JPS59219049A (en) | Frame synchronization system |