JPS6256041A - Clock matching circuit - Google Patents

Clock matching circuit

Info

Publication number
JPS6256041A
JPS6256041A JP60196232A JP19623285A JPS6256041A JP S6256041 A JPS6256041 A JP S6256041A JP 60196232 A JP60196232 A JP 60196232A JP 19623285 A JP19623285 A JP 19623285A JP S6256041 A JPS6256041 A JP S6256041A
Authority
JP
Japan
Prior art keywords
clock
data
circuit
matching circuit
flip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60196232A
Other languages
Japanese (ja)
Inventor
Yukio Ito
幸雄 伊藤
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP60196232A priority Critical patent/JPS6256041A/en
Publication of JPS6256041A publication Critical patent/JPS6256041A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To simplify the circuit constitution by selecting any one clock out of clocks outputted from a frequency division circuit depending on the software control and outputting it as a data latch clock to a data processing circuit. CONSTITUTION:The frequency division circuit 10 makes reception clock from an oscillator 7 4 layers in clock. The selector 4 selects any one of the clocks subject to 4-layer based on the software control and gives it to a FF 3 and a data processing circuit 5 as a data latch clock. The FF 3 uses the data latch clock to latch the data transferred from he data transmitter 1. The data processing circuit 5 applies the bit synchronization and data processing by using the data from the FF 3 and the data latch clock from the selector 4. Thus, a simple clock matching circuit is constituted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ転送装置におけるデータ受信系のクロッ
ク整合回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a clock matching circuit for a data receiving system in a data transfer device.

〔従来の技術〕[Conventional technology]

従来、この種のクロック整合回路は、対向装置と自装置
のクロックの位相差を考慮し、多段のフリップフロップ
回路あるいは書込みと読出しが非同期で行なえるメモリ
回路等を備えでいた。
Conventionally, this type of clock matching circuit has been equipped with a multi-stage flip-flop circuit or a memory circuit that can perform writing and reading asynchronously, taking into account the phase difference between the clocks of the opposing device and its own device.

第4図は伝送手順をビット同期型手順でデータ伝送を行
なうデータ転送装置に用いられるクロック整合回路の従
来例のブロック図である。
FIG. 4 is a block diagram of a conventional example of a clock matching circuit used in a data transfer device that performs data transmission using a bit-synchronized transmission procedure.

データ転送装置1よつ送信されたデータおよび、このデ
ータに同期したクロックはレシーバ−2を介しで自装ゴ
内に取り込まれる。次に伝送路の長さおよび送受信素子
によりクロックのデユーティ−サイクルがデータ転送装
M1で送信したものと異なるのか通例であるため、デユ
ーティサイクル補正回路3により受信データを確実に次
段の書込み・読出し非同期型メモリ4に1込めるように
クロックのデユーティサイクルが補正される。
Data transmitted by the data transfer device 1 and a clock synchronized with this data are taken into the self-equipped Go via the receiver 2. Next, since the duty cycle of the clock is usually different from that transmitted by the data transfer device M1 depending on the length of the transmission path and the transmitting/receiving element, the duty cycle correction circuit 3 ensures that the received data is written to the next stage. The duty cycle of the clock is corrected so that 1 can be stored in the read asynchronous memory 4.

オシレータ7より発撮されたクロックあるいは分周回路
でカウントダウンされたり0ツウは受信クロックと同一
周波数のもので、このクロック(こよつ、メモ()4に
1込まれた受信データが読出されるとともにデータ処理
回路5に引き渡される。
The clock emitted from the oscillator 7 or counted down by the frequency dividing circuit has the same frequency as the received clock, and the received data stored in the memo () 4 is read out. The data is passed to the data processing circuit 5.

チェック回路6は受信クロックが断じたことを検出する
とCPU8へ報告する。CPU8はチェック回路6の内
容によりメモリ4もしくはデータ処理回路5に受信デー
タの処理を停止することを制御可能である。
When the check circuit 6 detects that the reception clock is cut off, it reports this to the CPU 8. The CPU 8 can control the memory 4 or the data processing circuit 5 to stop processing the received data depending on the contents of the check circuit 6.

第5図はワード同期型、即ち数ビット数バイト単位に意
味を持たせ1こ情報のデータ転送装置に用いられるクロ
・ンク整合回路のブロック図である。
FIG. 5 is a block diagram of a clock matching circuit used in a data transfer device of the word synchronous type, that is, a data transfer device that assigns meaning to several bits and several bytes.

第4図のクロック整合回路との差異は情報の先頭を示す
同期パルスが付加されていることおよび情報の単位毎に
メモリ4に1込むために必要なタイミング生成に必要な
タイミング回路10と、同様にメモリ4より単位情報を
読出すために必要なタイミング回路11か付加されてい
ることである。
The difference from the clock matching circuit shown in FIG. 4 is that a synchronization pulse indicating the beginning of information is added, and the timing circuit 10 necessary for generating the timing required to store 1 into the memory 4 for each unit of information is similar to that of the clock matching circuit shown in FIG. A timing circuit 11 necessary for reading unit information from the memory 4 is added to the memory 4.

〔発明が解決しようとする問題点〕 上述した従来のクロ・ンク整合回路は、ハードウェア論
理のみで整合制御を行なっているため、対向するデータ
転送装置より送信されてくるデータをバッファするため
のメモリ回路の周辺ハードウェアが大きく、またメモリ
を使用せずに多段のフリップフロップにより整合をとる
場合に1さ、非常に複雑なハードウェアと必要とすると
いう欠点がある。
[Problems to be Solved by the Invention] The conventional clock matching circuit described above performs matching control using only hardware logic. The disadvantage is that the peripheral hardware of the memory circuit is large, and that very complicated hardware is required when matching is achieved using multi-stage flip-flops without using memory.

c問題点を解決するための手段) 本発明のクロック整合回路は、データ受信用クロックを
分周し、互いに位相の異なる複数のクロックを出力する
分周回路と、受信データをラッチするフリップフロップ
と、分周回路から出力されたクロックのいずれか1つを
ソフトウェア制御により選択し、フリップフロップおよ
び該フリップフロップのラッチデータを処理するデータ
処理回路へデータラッチ用クロックとして出力する手段
を有する。
c) Means for Solving Problems) The clock matching circuit of the present invention includes a frequency dividing circuit that divides a data reception clock and outputs a plurality of clocks having mutually different phases, and a flip-flop that latches received data. , has means for selecting one of the clocks output from the frequency dividing circuit under software control and outputting it as a data latch clock to a flip-flop and a data processing circuit that processes latch data of the flip-flop.

このように、データ受信用クロックを分周して互いに位
相の異なるクロックを得、これらクロックのうちいずれ
か1つをソフトウェア制御により選択することにより、
フリップフロップの数が高)?2個で済み、かつメモリ
を使用した場合よりも回路構成が簡素化される。
In this way, by dividing the data reception clock to obtain clocks with mutually different phases, and selecting one of these clocks under software control,
high number of flip-flops)? Only two pieces are required, and the circuit configuration is simpler than when using memory.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のクロック整合回路の一実施例を有する
ビット同期型のデータ転送装置のプロツウ図である。
FIG. 1 is a diagram of a bit-synchronized data transfer device having an embodiment of the clock matching circuit of the present invention.

分周回路10はオシレータ7からのデータ受信用クロッ
クを4層化する(分周し、互いに位相の異なる4個のク
ロッP)ヲ得る)。セレクタ4はcrt+sによるソフ
トウェア制御により、これら4層化されたクロックのい
ずれか1つを選択し、データ用ラッチクロックとして、
フリップフロップ3およびデータ処理回路5に供給する
。フッツブフロップ3はデータ用ラッチクロックにより
、データ転送装置1から転送されてきたデータをラッチ
する。データ処理回路5はフリップフロップ3よりデー
タを、セレクタ4からのデータラッチ用クロックによつ
ビット同期およびデータ処理を行なう、データ処理回路
5はざらに同期が正常か否かあるいはエラー率がどの程
度発生しでいるかを判別する回路を備えでいる。cpu
sは該情報を読取り可能で、該情報を読取ることにより
データラッチ用フIノツプフロップ3に供給しでいるク
ロックが適切か判断可能であり、ラッチ用クロックを適
宜セレクタ4を介しで切替えることにより最も安定しで
動作するクロックを抽出することができる。
The frequency dividing circuit 10 divides the data reception clock from the oscillator 7 into four layers (divides the frequency to obtain four clocks P having mutually different phases). The selector 4 selects one of these four layered clocks under software control using crt+s, and uses it as the data latch clock.
It is supplied to the flip-flop 3 and the data processing circuit 5. The foot flop 3 latches the data transferred from the data transfer device 1 using the data latch clock. The data processing circuit 5 performs bit synchronization and data processing using the data from the flip-flop 3 and the data latch clock from the selector 4. It is equipped with a circuit that determines whether or not it has occurred. cpu
s can read this information, and by reading this information, it can be determined whether the clock that has been supplied to the data latch flip-flop 3 is appropriate, and by appropriately switching the latch clock via the selector 4, It is possible to extract a clock that operates stably.

第2図はワード同期型のデータ転送装置に本発明が適用
された実施例のブロック図である。第1図と同様である
が対向データ転送装置より送信されるクロックは使用し
ない、第1図との差異は対向データ転送装置よりデータ
の先頭を示す同期パルスが送信されでくる点であり、こ
の同期パルスにで分周回路10で4層化したクロックを
フリップフロップ)でラッチし、その結果をCPU8に
より読取りソフトウェアにより4層化されたいずれかの
クロックを選定するかを判断しセレクタ4を制御するも
のである。
FIG. 2 is a block diagram of an embodiment in which the present invention is applied to a word synchronous type data transfer device. This is similar to Figure 1, but the clock transmitted from the opposing data transfer device is not used.The difference with Figure 1 is that the opposing data transfer device sends a synchronization pulse indicating the beginning of the data. The clock layered into four layers by the frequency divider circuit 10 is latched by a synchronous pulse using a flip-flop), the result is read by the CPU 8, and the software determines which of the four layered clocks should be selected and controls the selector 4. It is something to do.

第3図は第2図の実施例のタイムチャートである。オシ
レータ7より発振され1こクロ・ンクを元に分周回路1
0により4層化されたクロック5irS7 、S3 r
 S4が出力される。該出力はフリップフロップ11に
入力し、同期パルスにでラッチされる。CP 118は
フリップフロップ11の出力を読取ると“1000”と
いうデータに読取れ、これを変換しセレクタ4にていず
れの層のクロックを受信データラ・ソチ用に使用するか
決定する。この場合クロックS3が選択され、フリップ
フロップ3およびデータ処理回路5に入力している。
FIG. 3 is a time chart of the embodiment shown in FIG. Oscillator 7 oscillates and frequency divider circuit 1 is based on 1 clock.
0 four-layer clock 5irS7, S3r
S4 is output. The output is input to flip-flop 11 and latched by the synchronization pulse. When the CP 118 reads the output of the flip-flop 11, it reads the data "1000", converts this, and uses the selector 4 to determine which layer's clock is to be used for the received data. In this case, clock S3 is selected and input to flip-flop 3 and data processing circuit 5.

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

以上説明したように本発明は、データ受信用クロックを
分周して互いに位相の異なる槽数のクロックを得、これ
らクロックのいずれ1つのクロツウをソフトウェア制御
にて選択することによつ、非常に簡素なりロック整合回
路を構成することができ、安価石高品賞なりロック整合
が可能であり、データ転送遅延も受信クロツウ1ウロツ
ウ以内におさめることができる効果かある。
As explained above, the present invention divides the data reception clock to obtain clocks having a number of different phases from each other, and selects any one of these clocks under software control. A simple lock matching circuit can be constructed, lock matching can be performed at low cost, and high quality, and data transfer delay can be kept within one reception delay.

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

第1図は本発明のクロック整合回路の一実施例を含むデ
ータ通信装置(ビット同期型データ転送回路への適用例
)のブロック図、第2図は本発明のクロック整合回路の
一実施例を含むデータ通信装置(ワード同期型データ転
送回路への適用例)のブロック図、第3図は第2図の動
作を示すタイムチャート、第4図、第5図は従来例のク
ロック整合回路を含むデータ転送装置例であり、第4図
はビット同期型、第5図はワード同期型を示す。 1・・・データ転送装置、 2・・・レシーバ−5 3,11・・・フリップフロップ、 4・・・セレクタ、 5・・・データ処理回路、 6・・・チェック回路、 7・・・オシレータ、 8・・・CPU、 9・・・メモリ、 10・・・分周回路。
FIG. 1 is a block diagram of a data communication device (an example of application to a bit-synchronized data transfer circuit) including an embodiment of the clock matching circuit of the present invention, and FIG. 2 shows an embodiment of the clock matching circuit of the present invention. 3 is a time chart showing the operation of FIG. 2, and FIGS. 4 and 5 include a conventional clock matching circuit. FIG. 4 shows an example of a data transfer device, and FIG. 4 shows a bit synchronous type, and FIG. 5 shows a word synchronous type. DESCRIPTION OF SYMBOLS 1... Data transfer device, 2... Receiver-5 3, 11... Flip-flop, 4... Selector, 5... Data processing circuit, 6... Check circuit, 7... Oscillator , 8... CPU, 9... Memory, 10... Frequency dividing circuit.

Claims (1)

【特許請求の範囲】 対向データ転送装置から同一クロックレートにて転送さ
れてきた受信データを自データ転送装置内のデータ処理
回路に取込むためのクロック整合回路であつて、 データ受信用クロックを分周し、互いに位相の異なる複
数のクロックを出力する分周回路と、受信データをラッ
チするフリップフロップと、分周回路から出力されたク
ロックのいずれか1つをソフトウェア制御により選択し
、フリップフロップおよびデータラッチ回路へデータラ
ッチ用クロックとして出力する手段を有するクロック整
合回路。
[Claims] A clock matching circuit for inputting received data transferred from an opposing data transfer device at the same clock rate into a data processing circuit within its own data transfer device, which separates the clock for data reception. A frequency divider circuit that outputs multiple clocks with different phases, a flip-flop that latches received data, and one of the clocks output from the frequency divider circuit is selected by software control, and the flip-flop and A clock matching circuit having means for outputting a data latch clock to a data latch circuit.
JP60196232A 1985-09-04 1985-09-04 Clock matching circuit Pending JPS6256041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60196232A JPS6256041A (en) 1985-09-04 1985-09-04 Clock matching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60196232A JPS6256041A (en) 1985-09-04 1985-09-04 Clock matching circuit

Publications (1)

Publication Number Publication Date
JPS6256041A true JPS6256041A (en) 1987-03-11

Family

ID=16354395

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60196232A Pending JPS6256041A (en) 1985-09-04 1985-09-04 Clock matching circuit

Country Status (1)

Country Link
JP (1) JPS6256041A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02281837A (en) * 1989-04-24 1990-11-19 Anritsu Corp High speed frame synchronizing circuit
JPH037110U (en) * 1989-06-09 1991-01-23
JPH04312039A (en) * 1991-01-29 1992-11-04 Samsung Electron Co Ltd Message-fluctuation preventing circuit of automobile tracking apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58184886A (en) * 1982-04-22 1983-10-28 Nippon Hoso Kyokai <Nhk> Clock reproduction system
JPS5961246A (en) * 1982-09-30 1984-04-07 Fuji Xerox Co Ltd Reading method of asynchronous data
JPS60135A (en) * 1983-06-16 1985-01-05 Toshiba Corp Sampling pulse generating circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58184886A (en) * 1982-04-22 1983-10-28 Nippon Hoso Kyokai <Nhk> Clock reproduction system
JPS5961246A (en) * 1982-09-30 1984-04-07 Fuji Xerox Co Ltd Reading method of asynchronous data
JPS60135A (en) * 1983-06-16 1985-01-05 Toshiba Corp Sampling pulse generating circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02281837A (en) * 1989-04-24 1990-11-19 Anritsu Corp High speed frame synchronizing circuit
JPH037110U (en) * 1989-06-09 1991-01-23
JPH04312039A (en) * 1991-01-29 1992-11-04 Samsung Electron Co Ltd Message-fluctuation preventing circuit of automobile tracking apparatus

Similar Documents

Publication Publication Date Title
US5459855A (en) Frequency ratio detector for determining fixed frequency ratios in a computer system
US5361290A (en) Clock generating circuit for use in single chip microcomputer
JP3156813B2 (en) Buffer control circuit
JPS58500428A (en) signal synchronization system
US6741193B2 (en) Parallel in serial out circuit having flip-flop latching at multiple clock rates
US5502409A (en) Clock switcher circuit
JPH0417496A (en) Telephone exchange
JP2803611B2 (en) Device for serializing high-speed flow of binary data
JPS6256041A (en) Clock matching circuit
US5200647A (en) High-speed signal multiplexing circuit for multiplexing high-speed signals
US7185218B2 (en) Synchronous controlling unit and synchronous control method
JP2967748B2 (en) ATM cell synchronization circuit
JPS6386630A (en) Frame synchronization system in parallel transmission line
JP3485449B2 (en) Clock division switching circuit
JPH1168690A (en) Frame synchronization circuit
JP3471275B2 (en) Synchronization circuit
JPS61140221A (en) Timing generating circuit
JPH0276332A (en) Bit phase synchronizing circuit
JP2621205B2 (en) Divider circuit
JP2876747B2 (en) Frame synchronization circuit
US5083291A (en) Transceiving process for a digital telephone line
JPH0246034A (en) Data multiplexer
JPH08204524A (en) Clock phase control circuit and digital signal processing circuit using the circuit
JPS63169128A (en) Parallel/serial conversion circuit
JPH02312419A (en) Phase synchronizing circuit