JPH0423637A - Data receiver - Google Patents

Data receiver

Info

Publication number
JPH0423637A
JPH0423637A JP2128842A JP12884290A JPH0423637A JP H0423637 A JPH0423637 A JP H0423637A JP 2128842 A JP2128842 A JP 2128842A JP 12884290 A JP12884290 A JP 12884290A JP H0423637 A JPH0423637 A JP H0423637A
Authority
JP
Japan
Prior art keywords
clock
data
conflict
signal
read
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
JP2128842A
Other languages
Japanese (ja)
Inventor
Hideji Ishihara
秀二 石原
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 IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP2128842A priority Critical patent/JPH0423637A/en
Publication of JPH0423637A publication Critical patent/JPH0423637A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To eliminate the need for troublesome phase adjustment between data clocks by using a clock resulting from delaying a regular clock for a prescribed time as a data read clock when a data and a data and clock are in contention. CONSTITUTION:Suppose that a shift register 4 reads a data in a rising timing of a clock CL, when a clock CL rises for a 1st pulse period, the both are in contention and the possibility of occurrence of a read error exists. Then a clock resulting from delaying a regular clock for a prescribed time is used as a data read clock. Moreover, when the clock CL rises for a 2nd pulse period, since no contention takes place, the clock CL is used as the read clock as it is.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はデータの受信装置に関し、特に、シリアルデー
タの受信装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data receiving device, and particularly to a serial data receiving device.

[従来の技術] 第3図乃至第5図は、この種データ受信装置の従来例を
示すブロック図である。
[Prior Art] FIGS. 3 to 5 are block diagrams showing conventional examples of this type of data receiving apparatus.

第3図は、2線式の場合であって、ケーブル31により
伝送されてきたデータDとクロックCLはシフトレジス
タ33に入力され、例えば、クロックCLの立ち上がり
タイミングにおいて、データDはシフトレジスタ33に
読み取られる。この場合、クロックラインに位相調整器
32を挿入しオシロスコープ等で観察しながら、データ
とクロックとが最適の位相関係を保つようにクロックの
位相を調整しなければならない。
FIG. 3 shows the case of a two-wire system, in which data D and clock CL transmitted via cable 31 are input to shift register 33. For example, at the rising timing of clock CL, data D is input to shift register 33. be read. In this case, it is necessary to insert a phase adjuster 32 into the clock line and adjust the phase of the clock while observing it with an oscilloscope or the like so that the optimal phase relationship between the data and the clock is maintained.

第4図は、ケーブル31aがデータのみを伝送する1線
式の例であるが、この例ではデータの変化点を基準とし
てP L L (Phase 1ocked 1oop
 )方式クロック発生器34により読み取りクロックを
発生させている。この場合には、定常位相誤差調整器3
5によりクロック発生器34の定常位相誤差を調整し、
データとクロックの位相を最適に設定する必要がある。
FIG. 4 shows an example of a one-wire system in which the cable 31a transmits only data. In this example, PLL (Phase 1ocked 1oop
) type clock generator 34 generates a read clock. In this case, the steady phase error adjuster 3
5 to adjust the steady phase error of the clock generator 34,
It is necessary to optimally set the data and clock phases.

また、この装置ではデータの切り換わり頻度により位相
変動が生じるため過渡応答性のよいPLL回路が必要と
される。
Further, in this device, phase fluctuation occurs depending on the frequency of data switching, so a PLL circuit with good transient response is required.

第5図は、第4図と同様の1線式でPLL方式クロック
発生器34により読み取りクロックを発生させる例を示
しているが、この例ではPLLが位相変動に追従出来な
い場合に備えてエラー訂正回路36を併用している。
FIG. 5 shows an example in which the read clock is generated by the PLL clock generator 34 in a one-wire system similar to that in FIG. A correction circuit 36 is also used.

[発明が解決しようとする課題] 第3図に示した従来の技術では、オシロスコープを観察
しながらデータと読み取りクロックとの位相関係を最適
にするための調整を行う必要があり、工数を要した。ま
た、1線式の場合には手動による調整が必要である外、
応答性のよいPLL方式クロック発生器が必要とされる
ため、装置が高価なものとなり、さらに高精度のエラー
訂正回路も必要となるなめコスト高となっていた。
[Problems to be Solved by the Invention] With the conventional technology shown in Figure 3, it was necessary to make adjustments to optimize the phase relationship between the data and the read clock while observing the oscilloscope, which required a lot of man-hours. . In addition, in the case of a one-wire system, manual adjustment is required, and
Since a PLL type clock generator with good responsiveness is required, the device becomes expensive, and a highly accurate error correction circuit is also required, resulting in high costs.

[課題を解決するための手段] 本発明によるデータ受信装置は、データの変化時点とデ
ータを読み取るためのクロックの読み取りエツジとが競
合関係にあるか否かを自動的に検出し、競合関係にある
ときには正規のクロックを一定時間遅らせたものをデー
タ読み取りクロックとし、そうでないときには正規のク
ロックをそのままデータ読み取りクロックとして用いる
ものである。
[Means for Solving the Problems] A data receiving device according to the present invention automatically detects whether or not there is a competitive relationship between a data change point and a reading edge of a clock for reading data, and detects whether or not there is a competitive relationship between a data change point and a reading edge of a clock for reading data. In some cases, the regular clock delayed by a certain period of time is used as the data reading clock, and in other cases, the regular clock is used as it is as the data reading clock.

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

第1図は、本発明の一実施例を示す回路図であり、第2
図は、その動作状態を示すタイミングチャートである。
FIG. 1 is a circuit diagram showing one embodiment of the present invention, and FIG.
The figure is a timing chart showing its operating state.

第1図に示すように、本実施例の受信装置は、遅延素子
5.6.7、EXORゲート8.10、EXNORゲー
ト9、ANDゲート11.14.15、ORゲート12
、インバータ13、NORゲート16およびDタイプフ
リップフロップ17により構成される競合検出回路1、
遅延素子18.19により構成され、クロックCLを一
定時間遅延した遅延クロックDCLとするクロック遅延
回路2、インバータ20.ANDゲート21.22およ
びORゲート23により構成され、競合検出回路1のク
ロック切換え信号S5によりクロックCLと遅延クロッ
クDCLとを切換えるクロック切換え回路3と、クロッ
ク切換え回路3からの出力クロックOCLを読み4つク
ロックとしてデータDを読み取るシフトレジスタ4と、
を具備している。
As shown in FIG. 1, the receiving device of this embodiment includes delay elements 5.6.7, EXOR gates 8.10, EXNOR gates 9, AND gates 11.14.15, and OR gates 12.
, a conflict detection circuit 1 composed of an inverter 13, a NOR gate 16, and a D-type flip-flop 17;
A clock delay circuit 2 composed of delay elements 18, 19, and an inverter 20. A clock switching circuit 3 consists of an AND gate 21, 22 and an OR gate 23, and switches between a clock CL and a delayed clock DCL based on a clock switching signal S5 of the conflict detection circuit 1, and a clock switching circuit 3 reads the output clock OCL from the clock switching circuit 3. a shift register 4 that reads data D as a clock;
Equipped with:

なお、本実施例は、1線式、2線式いずれのシステムに
も適用しうるものである。したがって、1線式の場合に
はクロックはクロック発生器により与えられるものであ
る。
Note that this embodiment can be applied to either a one-wire system or a two-wire system. Therefore, in the case of a one-wire system, the clock is provided by a clock generator.

次に、第2図のタイミングチャートを参照して本実施例
の動作について説明する。
Next, the operation of this embodiment will be explained with reference to the timing chart of FIG.

競合検出回路1において、データDは遅延素子5.6.
7により3段階に遅延される。各遅延信号とデータDと
をEXORゲート8、EXNORゲート9およびEXO
Rゲート10を通すことにより、それぞれのゲートから
信号S1、S2、S3を得る。これらの信号は、AND
ゲート11、ORゲート12により信号S4に合成され
る。信号S4はデータDの変化点から2つの連続パルス
となるが、第1のパルスはクロックとデータの競合の可
能性のある区間を、また、第2のパルスは競合の心配の
ない安全区間を占めている。
In the conflict detection circuit 1, data D is transmitted through delay elements 5, 6, .
7, it is delayed by three stages. Each delay signal and data D are connected to EXOR gate 8, EXNOR gate 9 and EXO
By passing through the R gate 10, signals S1, S2, and S3 are obtained from each gate. These signals are AND
The gate 11 and the OR gate 12 synthesize the signal S4. Signal S4 becomes two consecutive pulses from the change point of data D, the first pulse represents an interval where there is a possibility of conflict between the clock and data, and the second pulse represents a safe interval where there is no risk of conflict. is occupying.

シフトレジスタ4がクロックCLの立ち上がりタイミン
グでデータを読み取るとすると、第1のパルス期間にク
ロックCLが立ち上がると両者が競合していることにな
り、読み取りエラーの発生する可能性がある。そこで、
本実施例ではクロ・ンクCLを一定時間遅延させたクロ
ックを読み取りクロックとして使用する。また、第2の
パルス期間にクロックCLが立ち上がる場合には、競合
の心配がないので、クロックCLをそのまま読み取りク
ロックとして使用する。2つのパルス期間以外の区間で
は競合の可能性はないがデータDとクロックCLのジッ
タによりクロックCLと遅延クロックDCLが頻繁に切
り変わるのを防止するためにクロックCLの切換えを禁
止とする不感区間とする。
If the shift register 4 reads data at the rising timing of the clock CL, when the clock CL rises during the first pulse period, there is a conflict between the two, and a read error may occur. Therefore,
In this embodiment, a clock obtained by delaying the clock CL by a certain period of time is used as the reading clock. Further, when the clock CL rises during the second pulse period, there is no fear of conflict, so the clock CL is used as it is as the reading clock. In sections other than the two pulse periods, there is no possibility of conflict, but in order to prevent clock CL and delayed clock DCL from frequently switching due to jitter between data D and clock CL, switching of clock CL is prohibited. shall be.

信号S1.4およびクロックCLから、以上の動作を行
わせるに必要なりロック切換え信号S5を発生するのが
、インバータ13、ANDゲート14.15、NORゲ
ート16、Dタイプフリップフロップ17からなる回路
である。
A circuit consisting of an inverter 13, an AND gate 14, 15, a NOR gate 16, and a D-type flip-flop 17 generates a lock switching signal S5 from the signal S1.4 and the clock CL, which is necessary for performing the above operations. be.

信号S4のパルス以外の区間(低レベル区間)でクロッ
クCLが立ち上がった場合は、Dタイプフリップフロッ
プ17の夏出力の反転信号がD端子に入力されているた
め、Dタイプフリ・ンブフロップ17の出力であるクロ
ック切換え信号S5は変化しない。信号S4の第1のパ
ルス期間にクロックCLが立ち上がった場合、信号Sl
(このときは高レベル)の反転信号がDタイプフリ・ン
プフロップ17のD端子に入力されているので、クロッ
ク切換え信号S5は低レベルとなる。さらに、信号S4
の第2のパルス期間にクロックCLが立ち上がった場合
は、信号Sl(このときは低レベル)の反転信号がDタ
イプフリップフロップ17のD端子に入力されているの
で、クロック切換え信号S5は高レベルとなる。
When the clock CL rises in an interval other than the pulse of the signal S4 (low level interval), the inverted signal of the summer output of the D-type flip-flop 17 is input to the D terminal, so the output of the D-type flip-flop 17 is A certain clock switching signal S5 does not change. When the clock CL rises during the first pulse period of the signal S4, the signal Sl
Since the inverted signal (high level at this time) is input to the D terminal of the D-type flip-flop 17, the clock switching signal S5 becomes low level. Furthermore, signal S4
When the clock CL rises during the second pulse period of becomes.

クロック切換え回路3では、クロックの切換え信号S5
が低レベルのときは、遅延クロックDCLを、また、ク
ロック切換え信号S5が高レベルのときは、クロックC
Lをそれぞれ出力クロ・ンクOCLとして出力する。
In the clock switching circuit 3, the clock switching signal S5
When the clock switching signal S5 is at a low level, the delayed clock DCL is set at a low level, and when the clock switching signal S5 is at a high level, the clock C is set at a low level.
L is output as the output clock OCL.

シフトレジスタ4は、出力クロックOCLを受けて、デ
ータDを読み取る。すなわち、シフトレジスタ4はクロ
ック切換え信号S5が低レベルのとき(クロックCLの
読み取りタイミングがデータの変化時点と賞金している
とき)は、遅延クロックDCLによりデータの読み取り
を行い、またクロック切換え信号が高レベルのとき(ク
ロックCLの読み取りタイミングがデータの変化時点に
対し安全区間に入っているとき)は正規のクロックCL
により読み取りを行う。
Shift register 4 receives output clock OCL and reads data D. That is, when the clock switching signal S5 is at a low level (when the reading timing of the clock CL coincides with the data change time), the shift register 4 reads data using the delayed clock DCL, and when the clock switching signal is When the level is high (when the reading timing of the clock CL is within the safe interval with respect to the data change point), it is the normal clock CL.
The reading is performed by

尚、2線式の場合には、クロック切換え信号が低レベル
であるときに、クロックCLの立ち上がりが競合区間の
前で遅延クロックの立ち上がりが競合区間に入る可能性
がある。そのような虞れがある場合には、競合区間をあ
る程度広く設定し、また、データDを第1図のA点にお
いて遅延回路により遅延させる必要がある。また、クロ
ック切換え回路3は、クロックCLが入ってから信号S
5が切り変わると、出力に“ヒゲが出ることになる。こ
れを避けるには、第1図のB点に短時間の遅延回路を挿
入する必要がある。
In the case of the two-wire system, when the clock switching signal is at a low level, there is a possibility that the rise of the clock CL is before the contention period and the rise of the delayed clock falls within the contention period. If there is such a possibility, it is necessary to set the contention interval to a certain extent and to delay the data D at point A in FIG. 1 using a delay circuit. Further, the clock switching circuit 3 switches the signal S after the clock CL is input.
5 switches, a "whisker" will appear in the output. To avoid this, it is necessary to insert a short-time delay circuit at point B in FIG.

以上説明したように、本発明によれば、比較的簡単な回
路を付加するだけで煩雑な調整工数を経ることなく、ま
た、高価なりロック発生器やエラー訂正回路を使用する
ことなく、読み取りエラーを起こすことのないデータ受
信装置を得ることができる。
As explained above, according to the present invention, reading errors can be corrected by simply adding a relatively simple circuit, without going through complicated adjustment steps, and without using an expensive lock generator or error correction circuit. Therefore, it is possible to obtain a data receiving device that does not cause this problem.

[発明の効果] 以上説明したように、本発明は、データ受信装置におい
てデータとデータ読み取りクロックが競合関俤になるか
否かを検出し、競合量体にあるときには正規のクロック
を一定時間遅らせたものをデータ読み取りクロックとし
て用いるものであるので、本発明によれば、小規模の回
路を追加するのみでデータと読み取りクロックとの競合
を確実に回避することができる。したがって、本発明に
よれば、煩雑なデータークロック間の位相調整の必要が
なくなり、さらにPLL方式クロック発生器やエラー訂
正回路を簡単なもので済ますことが可能となる。
[Effects of the Invention] As explained above, the present invention detects whether or not data and a data read clock are in a competitive relationship in a data receiving device, and when they are in a competitive relationship, delays the regular clock by a certain period of time. According to the present invention, contention between the data and the read clock can be reliably avoided by simply adding a small-scale circuit. Therefore, according to the present invention, there is no need for complicated phase adjustment between data clocks, and furthermore, it is possible to use a simple PLL type clock generator and an error correction circuit.

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

第1図は、本発明の一実施例を示す回路図、第2図は、
その動作を説明するためのタイミングチャート、第3図
乃至第5図は、それぞれ従来例のブロック図である。 1・・・・・・競合検出回路、  2・・・・・・クロ
ック遅延回路、   3・・・・・・クロック切換え回
路、  4・・・・・・シフトレジスタ、   5.6
.7.18.19・・・・・・遅延素子、  8.10
・・・・・・EXORゲート(イクスクルーシブORゲ
ート)、   9・・・・・・EXNORゲート(イク
スクルーシブNORゲート)、   11.14.15
.21.22・・・・・ANDゲート、   12.2
3・・・・・・ORゲート、13.20・・・・・・イ
ンバータ、   16・・・・・・NORゲート、  
17・・・・・Dタイプフリップフロップ、D・・・・
・・データ、   CL・・・・・・クロック、   
DCL・・・・・・遅延クロック、  OCL・・・・
・・出力クロック、  S1〜S4・・・・・・信号、
  S5・・・・・・クロック切換え信号。
FIG. 1 is a circuit diagram showing an embodiment of the present invention, and FIG. 2 is a circuit diagram showing an embodiment of the present invention.
Timing charts for explaining the operation and FIGS. 3 to 5 are block diagrams of conventional examples, respectively. 1...Conflict detection circuit, 2...Clock delay circuit, 3...Clock switching circuit, 4...Shift register, 5.6
.. 7.18.19...Delay element, 8.10
...EXOR gate (exclusive OR gate), 9...EXNOR gate (exclusive NOR gate), 11.14.15
.. 21.22...AND gate, 12.2
3...OR gate, 13.20...Inverter, 16...NOR gate,
17...D type flip-flop, D...
...Data, CL...Clock,
DCL...delay clock, OCL...
...output clock, S1 to S4...signal,
S5...Clock switching signal.

Claims (3)

【特許請求の範囲】[Claims] (1)シリアルに転送されてくるデータをクロックと同
期して読み取るデータ受信装置において、前記クロック
のデータ読み取りエッジとデータの変化時刻とが競合関
係にあるときには前記クロックを一定時間遅らせたクロ
ックを用いて、そうでないときには前記クロックを用い
てデータを読み取ることを特徴とするデータ受信装置。
(1) In a data receiving device that reads serially transferred data in synchronization with a clock, when there is a conflict between the data read edge of the clock and the data change time, a clock delayed by a certain period of time is used. The data receiving device is characterized in that the data is read using the clock when this is not the case.
(2)クロックのデータ読み取りエッジの時刻とデータ
の変化時刻とが競合しているか否かを検出する競合検出
回路と、クロックを所定時間遅らせるクロック遅延回路
と、正規のクロックと前記クロック遅延回路を経由した
遅延クロックとが入力され、前記競合検出回路が競合し
ていることを検出したときには遅延クロックを、そうで
ないときには正規のクロックを出力するクロック切換え
回路と、前記クロック切換え回路の出力するクロックの
タイミングでシリアルに転送されてくるデータを読み取
るシフトレジスタと、を具備するデータ受信装置。
(2) A conflict detection circuit that detects whether there is a conflict between the data read edge time of the clock and the data change time; a clock delay circuit that delays the clock by a predetermined time; a clock switching circuit which outputs the delayed clock when the conflict detection circuit detects a conflict and outputs the regular clock when the conflict detecting circuit detects a conflict; A data receiving device that includes a shift register that reads data that is serially transferred at a timing.
(3)前記競合検出回路が、前記クロックの前記エッジ
がデータの変化時点を含む競合区間内に存在していると
きには第1のレベルの信号を発生し、前記競合区間から
一定時間遅れた安全区間内に存在しているときには第2
のレベルの信号を発生するものである請求項2記載のデ
ータ受信装置。
(3) The conflict detection circuit generates a first level signal when the edge of the clock exists within a conflict interval that includes a data change point, and generates a signal at a first level in a safe interval delayed by a certain period of time from the conflict interval. when it exists within the second
3. The data receiving apparatus according to claim 2, wherein the data receiving apparatus generates a signal having a level of .
JP2128842A 1990-05-18 1990-05-18 Data receiver Pending JPH0423637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2128842A JPH0423637A (en) 1990-05-18 1990-05-18 Data receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2128842A JPH0423637A (en) 1990-05-18 1990-05-18 Data receiver

Publications (1)

Publication Number Publication Date
JPH0423637A true JPH0423637A (en) 1992-01-28

Family

ID=14994738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2128842A Pending JPH0423637A (en) 1990-05-18 1990-05-18 Data receiver

Country Status (1)

Country Link
JP (1) JPH0423637A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5303810A (en) * 1992-01-18 1994-04-19 Tani Electronics Industry Co., Ltd. Magazine rack and positional adjustment system therefor
JP2004120587A (en) * 2002-09-27 2004-04-15 Matsushita Electric Ind Co Ltd Synchronous circuit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01233863A (en) * 1988-03-14 1989-09-19 Fujitsu Ltd Synchronizing circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01233863A (en) * 1988-03-14 1989-09-19 Fujitsu Ltd Synchronizing circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5303810A (en) * 1992-01-18 1994-04-19 Tani Electronics Industry Co., Ltd. Magazine rack and positional adjustment system therefor
JP2004120587A (en) * 2002-09-27 2004-04-15 Matsushita Electric Ind Co Ltd Synchronous circuit

Similar Documents

Publication Publication Date Title
US5652530A (en) Method and apparatus for reducing clock-data skew by clock shifting
JP2909740B2 (en) Phase matching circuit
US6791360B2 (en) Source synchronous interface using variable digital data delay lines
US4914325A (en) Synchronizing circuit
US20040047441A1 (en) Source synchronous interface using a dual loop delay locked loop and variable analog data delay lines
JP3278621B2 (en) Data transmission equipment
JPH0423637A (en) Data receiver
US6525520B2 (en) Pulse detector for determining phase relationship between signals
KR100484250B1 (en) Digital dll circuit for controlling initial delay
US6041418A (en) Race free and technology independent flag generating circuitry associated with two asynchronous clocks
JPH04178047A (en) Skew compensation system
US4327442A (en) Clock recovery device
GB2345395A (en) Delayed locked loop clock generator
JPH0370314A (en) Clock interrupt detection circuit
JP2708061B2 (en) Synchronous circuit device
JP2982138B2 (en) Bit phase synchronization circuit
JP2620170B2 (en) Signal loss detection circuit
JP3017814B2 (en) Speed converter
JPH03255743A (en) Bit synchronizing circuit
KR950007458B1 (en) Clock synchronization circuit
JPH08330932A (en) Synchronous circuit controller
JP2769530B2 (en) Bit phase synchronization circuit
JPH0722926A (en) Phase comparison circuit
JPH01146442A (en) Video data transmission system
JPH08130534A (en) Data transmission adaptive system and data transmitter provided with the system