JPH02288721A - Phase adjustment circuit - Google Patents
Phase adjustment circuitInfo
- Publication number
- JPH02288721A JPH02288721A JP11158289A JP11158289A JPH02288721A JP H02288721 A JPH02288721 A JP H02288721A JP 11158289 A JP11158289 A JP 11158289A JP 11158289 A JP11158289 A JP 11158289A JP H02288721 A JPH02288721 A JP H02288721A
- Authority
- JP
- Japan
- Prior art keywords
- data
- circuit
- serial data
- delay
- phase adjustment
- 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
- 230000003111 delayed effect Effects 0.000 claims description 4
- 230000001934 delay Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 2
- ZPUCINDJVBIVPJ-LJISPDSOSA-N cocaine Chemical compound O([C@H]1C[C@@H]2CC[C@@H](N2C)[C@H]1C(=O)OC)C(=O)C1=CC=CC=C1 ZPUCINDJVBIVPJ-LJISPDSOSA-N 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、位相調整回路に関し、特に、シリアルデータ
を取り組む際の取り込みクロックとシリアルデータとの
位相調整を行う位相調整回路に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a phase adjustment circuit, and more particularly to a phase adjustment circuit that adjusts the phase between an acquisition clock and serial data when handling serial data.
(従来の技術)
従来、シリアルデータをタロツクで取り込む場合には、
シリアルデータを送出する側がシリアルデータとクロッ
クを一定の位相関係に保って送出するだけで、受け取る
側では、タイミング調整を行っていなかった。(Conventional technology) Conventionally, when importing serial data using tarokku,
The side sending serial data simply maintains a fixed phase relationship between the serial data and the clock, and the receiving side does not adjust the timing.
(発明が解決しようとする課題)
上述した従来のシリアルデータの収り込みは、受け取り
側で何もしていない場合、配線遅延等により位相関係が
変化してしまった時に取り込みを失敗するという欠点が
ある。また、シリアルデータを送出する側と、受け取る
側のタロツクは同一クロックでなければ受け取れないと
いう欠点がある。(Problem to be Solved by the Invention) The conventional serial data convergence method described above has the disadvantage that if nothing is done on the receiving side, the data acquisition will fail when the phase relationship changes due to wiring delays, etc. be. Another drawback is that the serial data cannot be received unless the serial data transmitter and receiver have the same clock.
(課題を解決するための手段)
本発明による位相調整回路は、予め定めたシリアルデー
タの位相を任意時間遅延させる遅延選択回路と、この遅
延回路で遅延されたシリアルデータをクロックのタイミ
ングで受け取るシフトレジスタと、このシフトレジスタ
の出力をラッチするラッチ回路と、このラッチ回路のラ
ッチ信号を発生するフリップフロップと、前記ラッチ回
路でラッチされたデータと予め用意した前記予め定めた
シリアルデータと等しい内部保持データとを比較し、そ
の比較結果に基づいて、前記遅延選択回路の遅延時間を
制御する制御回路とを備える。(Means for Solving the Problems) A phase adjustment circuit according to the present invention includes a delay selection circuit that delays the phase of predetermined serial data by an arbitrary time, and a shifter that receives the serial data delayed by the delay circuit at clock timing. a register, a latch circuit that latches the output of this shift register, a flip-flop that generates a latch signal for this latch circuit, and internal storage that is equal to the data latched by the latch circuit and the predetermined serial data prepared in advance. and a control circuit that compares the data and controls the delay time of the delay selection circuit based on the comparison result.
(実施例) 次に本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.
第1図は本発明の位相調整回路の一実施例を示すブロッ
ク回路図である。FIG. 1 is a block circuit diagram showing one embodiment of the phase adjustment circuit of the present invention.
シリアルデータaは、図示されていない外部回路から遅
延選択回路1に入力される。一方、クロックbは図示さ
れていない外部回路がらシフトレジスタ2に入力される
他、図示されていない外部回路(データの受け取り回路
)に送出される。シリアルデータaは遅延選択回路1に
おいてマイコン(制御回路)5がら送出される遅延選択
信号dによって遅延され、シリアルデータCとしてシフ
トレジスタ2と上記外部回路(データの受け取り回路)
に送出される。シフトレジスタ2ではシリアルデータC
をクロックbで取り込みパラレルデータjとしてラッチ
回路4に送出する。シフトレジスタ最上位ビット信号e
は、ラッチ回路4ヘラッチ信号gを送出するためにフリ
ップフロップ3に入力されている。ラッチ回路4の出力
にはマイコン5に入力されている。マイコン5から出力
されるリセット信号fはシフトレジスタ2およびフリッ
プフロップ3をリセットし、位相調整終了信号iは図示
されていない外部回路に接続される。Serial data a is input to delay selection circuit 1 from an external circuit (not shown). On the other hand, the clock b is input to the shift register 2 from an external circuit (not shown) and is also sent to an external circuit (data receiving circuit) not shown. The serial data a is delayed in the delay selection circuit 1 by a delay selection signal d sent from the microcomputer (control circuit) 5, and is sent as serial data C to the shift register 2 and the above external circuit (data receiving circuit).
sent to. Serial data C in shift register 2
is fetched at clock b and sent to latch circuit 4 as parallel data j. Shift register most significant bit signal e
is input to the flip-flop 3 in order to send a latch signal g to the latch circuit 4. The output of the latch circuit 4 is input to the microcomputer 5. The reset signal f output from the microcomputer 5 resets the shift register 2 and the flip-flop 3, and the phase adjustment completion signal i is connected to an external circuit (not shown).
位相調整スタート信号りは外部回路からの信号で、マイ
コン5に入力されている。The phase adjustment start signal is a signal from an external circuit and is input to the microcomputer 5.
まず、図示されていない上位回路は、位相調整スタート
信号りでマイコン5に位相調整スタートを知らせると同
時に、予めマイコン5の内部レジスタに格納しである8
とットデータと同じデータパターン、たとえば“too
otooo″等の繰り返しパターンをシリアルデータa
として送出する。マイコン5は、位相調整スタート信号
りを受けると、遅延選択信号dでシリアルデータの遅延
時間を設定し、リセット信号fを解除する。First, a higher-level circuit (not shown) notifies the microcomputer 5 of the start of phase adjustment using a phase adjustment start signal, and at the same time, stores the phase adjustment start signal in advance in the internal register of the microcomputer 5.
The same data pattern as the toot data, for example “too
Serial data a repeating pattern such as "otooo"
Send as. When the microcomputer 5 receives the phase adjustment start signal, it sets the delay time of the serial data using the delay selection signal d and releases the reset signal f.
遅延されたシリアルデータCは、マイコン5によって設
定された時間だけシリアルデータaを遅延した信号で、
遅延選択回路1がらシフトレジスタ2に送出される。シ
フトレジスタ2はクロックbでシリアルデータCを受け
取る。シリアルデータCの“1″が最上位ビットに達す
ると、シフトレジスタ最上位ビット信号eによりフリッ
プフロップ3が“1″になり、ラッチ信号gによりラッ
チ4は、パラレルデータjをラッチする。マイコン5は
リセット信号fを解除した後パラレルデータjがラッチ
される時間待ってパラレルデータkを読み取り、内部デ
ータパターンと比較する。比較すると同時にリセット信
号fを通してフリップフロップ3およびシフトレジスタ
2にリセット信号を送出し、フリップフロップ3および
シフトレジスタ2をリセットする。The delayed serial data C is a signal obtained by delaying the serial data A by the time set by the microcomputer 5.
The signal is sent from the delay selection circuit 1 to the shift register 2. Shift register 2 receives serial data C at clock b. When "1" of the serial data C reaches the most significant bit, the shift register's most significant bit signal e causes the flip-flop 3 to become "1", and the latch signal g causes the latch 4 to latch the parallel data j. After releasing the reset signal f, the microcomputer 5 waits for a time for the parallel data j to be latched, reads the parallel data k, and compares it with the internal data pattern. At the same time as the comparison, a reset signal is sent to the flip-flop 3 and shift register 2 through the reset signal f, and the flip-flop 3 and shift register 2 are reset.
以上の動作を数回繰り返し、内部データパターンと取り
込んだパラレルデータパターンが完全に一致する遅延時
間に遅延選択回路1の遅延時間を遅延選択信号dで固定
する0選択信号を固定した後、上位回路に、位相調整終
了信号lを送出してシリアルデータaの位相調整を終了
する。After repeating the above operation several times and fixing the 0 selection signal that fixes the delay time of the delay selection circuit 1 with the delay selection signal d at a delay time where the internal data pattern and the imported parallel data pattern completely match, the upper circuit Then, a phase adjustment end signal l is sent to end the phase adjustment of the serial data a.
(発明の効果)
以上説明したように本発明は、外部からのシリアルデー
タの取り込みのためのシリアルデータとクロックの位相
関係を考えなくても、自動的にシリアルデータの位相調
整を行い確実な、データの取り込みができる。また、シ
リアルデータ送出側のクロックでなくても、クロック周
期が同じであれば、位相調整を行い、シリアルデータを
確実に受け取れるタイミングに調整できるという効果が
ある。(Effects of the Invention) As explained above, the present invention automatically adjusts the phase of serial data without considering the phase relationship between the serial data and the clock for importing serial data from the outside, and provides a reliable system. Data can be imported. Furthermore, even if the clock is not the one on the serial data sending side, if the clock cycle is the same, phase adjustment can be performed to adjust the timing to ensure that the serial data can be received.
【図面の簡単な説明】
第1図は本発明による位相調整回路の一実施例を示すブ
ロック回路図である。
1・・・遅延選択回路、
2・・・シフトレジスタ、
3・・・
フリップフロップ、
4・・・ラッチ回路、
5・・・マイク
ロコンピュータ。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block circuit diagram showing an embodiment of a phase adjustment circuit according to the present invention. DESCRIPTION OF SYMBOLS 1...Delay selection circuit, 2...Shift register, 3...Flip-flop, 4...Latch circuit, 5...Microcomputer.
Claims (1)
遅延選択回路と、この遅延回路で遅延されたシリアルデ
ータをクロックのタイミングで受け取るシフトレジスタ
と、このシフトレジスタの出力をラッチするラッチ回路
と、このラッチ回路のラッチ信号を発生するフリップフ
ロップと、前記ラッチ回路でラッチされたデータと予め
用意した前記予め定めたシリアルデータと等しい内部保
持データとを比較し、その比較結果に基づいて、前記遅
延選択回路の遅延時間を制御する制御回路とを備えて成
ることを特徴とする位相調整回路。A delay selection circuit that delays the phase of predetermined serial data for an arbitrary period of time, a shift register that receives the serial data delayed by this delay circuit at clock timing, a latch circuit that latches the output of this shift register, and this latch. A flip-flop that generates a latch signal of the circuit compares the data latched by the latch circuit with internally held data prepared in advance that is equal to the predetermined serial data, and based on the comparison result, the delay selection circuit and a control circuit for controlling the delay time of the phase adjustment circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11158289A JPH02288721A (en) | 1989-04-28 | 1989-04-28 | Phase adjustment circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11158289A JPH02288721A (en) | 1989-04-28 | 1989-04-28 | Phase adjustment circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02288721A true JPH02288721A (en) | 1990-11-28 |
Family
ID=14565028
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11158289A Pending JPH02288721A (en) | 1989-04-28 | 1989-04-28 | Phase adjustment circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02288721A (en) |
-
1989
- 1989-04-28 JP JP11158289A patent/JPH02288721A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4390969A (en) | Asynchronous data transmission system with state variable memory and handshaking protocol circuits | |
| JP3856696B2 (en) | Configurable synchronizer for double data rate synchronous dynamic random access memory | |
| CA1147421A (en) | Data-transfer controlling system | |
| WO2003010674A1 (en) | Phase correction circuit | |
| JP2003208400A (en) | Clock switching circuit | |
| JPH09512406A (en) | Circuit device for converting a serial data signal into a parallel data signal | |
| JPH01163840A (en) | Delay time checking system | |
| JPH02288721A (en) | Phase adjustment circuit | |
| US6571346B1 (en) | Elastic interface for master-slave communication | |
| JP2893897B2 (en) | Serial I/O Device | |
| JPH0219044A (en) | Phase adjustment circuit | |
| JPH1115783A (en) | Synchronous circuit | |
| JP2626501B2 (en) | Information transfer device | |
| US6601182B1 (en) | Optimized static sliding-window for ACK sampling | |
| JP3459542B2 (en) | Serial data transfer device | |
| JPS583615B2 (en) | Shingouno Jiyujiyuhoushiki | |
| JP2806568B2 (en) | Common bus control method | |
| JP2696091B2 (en) | Test pattern generation apparatus and method | |
| JPH0638210B2 (en) | Sequence controller input / output control system | |
| JPS6129026B2 (en) | ||
| JP2615504B2 (en) | Microcontroller | |
| JPS6226564A (en) | Processor system | |
| JPH0767070B2 (en) | Select circuit | |
| CA2249250A1 (en) | System and method for compensating for delays of a signal in a component of a synchronous system | |
| JPH03141450A (en) | Peripheral equipment |