JPH01293039A - Synchronizing system - Google Patents

Synchronizing system

Info

Publication number
JPH01293039A
JPH01293039A JP63123436A JP12343688A JPH01293039A JP H01293039 A JPH01293039 A JP H01293039A JP 63123436 A JP63123436 A JP 63123436A JP 12343688 A JP12343688 A JP 12343688A JP H01293039 A JPH01293039 A JP H01293039A
Authority
JP
Japan
Prior art keywords
signal
timer
period
interrupt
flag
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
JP63123436A
Other languages
Japanese (ja)
Inventor
Shigeru Osawa
滋 大澤
Fumikazu Hamaya
浜谷 二三一
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 Platforms Ltd
Original Assignee
Nitsuko 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 Nitsuko Corp filed Critical Nitsuko Corp
Priority to JP63123436A priority Critical patent/JPH01293039A/en
Publication of JPH01293039A publication Critical patent/JPH01293039A/en
Pending legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Use Of Switch Circuits For Exchanges And Methods Of Control Of Multiplex Exchanges (AREA)

Abstract

PURPOSE:To cope with a change in the period of the 1st signal without changing hardware by synchronizing the 1st and 2nd signals to each other in such a way that, when the pulse of the 2nd signal precedes that of the 1st signal, the period of the 2nd signal is made longer, and when the pulse of the 2nd signal succeeds that of the 1st signal, the period of the 2nd signal is made shorter. CONSTITUTION:A CPU 1 generates a timer interrupt signal having a period which is nearly equal to that of an external interrupting signal from clocks in a terminal and detects the pulse of the external interrupt signal from a port 3. Then the CPU 1 sets an external interrupt flag and timer interrupt flag into a memory 2 in corresponding to the pulses of the external interrupt signal and timer interrupt signal. The flags are operated by an external interrupt routine program and timer interrupt routine program and the time lag between both pulses is detected by means of a timer control flag. Then the two interrupt signals are made synchronous to each other by adjusting the generating intervals of the timer interrupt signal longer or shorter. Therefore, the necessity of changing the hardware of a timer circuit which arises when the period of the external interrupt signal is changed can be eliminated.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、周期が概ね等しい2つの信号を同期させる同
期方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a synchronization method for synchronizing two signals having approximately the same period.

(従来の技術) 通信路を介して複数の端末を接続するホスト局のディジ
タル交換機は、通信路より端末に所定周期のパルス(外
部割込み信号)を送り、外部割込み信号で端末に対して
割込みを起こして命令を実行する。第12図は従来の端
末の要部ブロック図である。タイマ回路12は割込み信
号と周期がぼぼ等しいパルス(割込み信号)を発生し、
CPU13は外部割込み信号によりホスト局の割込みを
検出すると、割込み処理を実行する。CPU13は、タ
イマ回路12をリセットして新たにタイマ割込み信号を
発生させ、2つの割込み信号の位相を同期させ、割込み
優先回路11により選択された割込み信号を検出し、処
理を行う。
(Prior art) A host station digital exchange that connects multiple terminals via a communication channel sends a pulse (external interrupt signal) with a predetermined period to the terminal through the communication channel, and uses the external interrupt signal to interrupt the terminal. Wake up and carry out commands. FIG. 12 is a block diagram of main parts of a conventional terminal. The timer circuit 12 generates a pulse (interrupt signal) having a period approximately equal to that of the interrupt signal,
When the CPU 13 detects an interrupt from the host station based on an external interrupt signal, it executes the interrupt process. The CPU 13 resets the timer circuit 12 to generate a new timer interrupt signal, synchronizes the phases of the two interrupt signals, detects the interrupt signal selected by the interrupt priority circuit 11, and processes it.

(発明が解決しようとする課題) しかし、時間が経過すると2つの割込み信号の位相がづ
れ、端末におけるホスト局の命令の実行が揃わないとい
う問題や、外部割込み信号の周期が変更されるとタイマ
回路のハードウェアを変更しなければいけないという問
題がある。
(Problem to be solved by the invention) However, as time passes, the two interrupt signals become out of phase, causing problems such as the execution of commands from the host station at the terminal not being aligned, and when the cycle of the external interrupt signal changes, the timer The problem is that the circuit hardware must be changed.

本発明は、このような問題点を解決する同期方式を提供
することを目的とする。
An object of the present invention is to provide a synchronization method that solves these problems.

(課題を解決するための手段) 上記の目的を達成するため、本発明は、所定周期で人力
される第1の信号を検出する信号検出手段と、第1の信
号の前記所定周期の前後に周期が可変される第2の信号
を発生し、第1の信号と第2の信号のパルスを検出し、
第2の信号のパルスが第1の信号のパルスに先行してい
るか、後続しているかを識別し、先行のときは第2の信
号の周期を長く、後続のときは短(制御するパルス発生
制御手段とを備えている。
(Means for Solving the Problems) In order to achieve the above object, the present invention includes a signal detection means for detecting a first signal manually inputted at a predetermined period, and a signal detecting means for detecting a first signal manually inputted at a predetermined period, generating a second signal with a variable period; detecting pulses of the first signal and the second signal;
It is determined whether the pulse of the second signal precedes or follows the pulse of the first signal, and if the pulse of the second signal precedes or follows the pulse of the first signal, the period of the second signal is lengthened, and if it follows, the period of the second signal is shortened (pulse generation to control). and control means.

(作用) 本発明によれば、信号検出手段によって検出された第1
の信号のパルスと、発生された第2の信号のパルスを比
較し、第2の信号のパルスが第1の信号のパルスに先行
しているときは第2の信号の周期を長く、後続している
場合は短く可変して、第2の信号を第1の信号に同期さ
せることができる。
(Function) According to the present invention, the first signal detected by the signal detection means
The pulses of the second signal are compared with the pulses of the second signal generated, and if the pulses of the second signal precede the pulses of the first signal, the period of the second signal is lengthened and the pulse of the second signal is If so, the second signal can be varied briefly to synchronize the second signal with the first signal.

(実施例) 次に、図面を参照して本発明の同期方式の実施例を説明
する。第1図は本実施例の説明図である。
(Example) Next, an example of the synchronization method of the present invention will be described with reference to the drawings. FIG. 1 is an explanatory diagram of this embodiment.

ホスト局のディジタル変換機は複数の端末を通信路5を
介して接続し、各端末4に所定周期の外部割込み信号を
供給している。端末4には、CPU1とメモリ2と外部
割込み信号を受信するポート3が設けられている。CP
tJlは、端末内部のクロックから外部割込み信号と周
期がほぼ等しいタイマ割込み信号を発生し、ボート3か
ら外部割込み信号のパルスを検出する。しかして、外部
割込み信号およびタイマ割込み信号のパルスに対応して
メモリ2に外部割込みフラグおよびタイマ割込みフラグ
をセットし、これらのフラグを外部割込みルーチンプロ
グラムおよびタイマ割込みルーチンプログラムにより操
作し、両者のパルスのづれをタイマコントロールフラグ
で検出し、タイマ割込み信号の発生間隔を長くまたは短
く調節して2つの割込み信号を同期させる。
The digital converter of the host station connects a plurality of terminals via a communication path 5 and supplies each terminal 4 with an external interrupt signal at a predetermined period. The terminal 4 is provided with a CPU 1, a memory 2, and a port 3 for receiving external interrupt signals. C.P.
tJl generates a timer interrupt signal having almost the same cycle as the external interrupt signal from the terminal's internal clock, and detects the pulse of the external interrupt signal from the boat 3. Then, an external interrupt flag and a timer interrupt flag are set in the memory 2 in response to the pulses of the external interrupt signal and the timer interrupt signal, and these flags are operated by the external interrupt routine program and the timer interrupt routine program, and the pulses of both are set. The two interrupt signals are synchronized by detecting the deviation using a timer control flag and adjusting the generation interval of the timer interrupt signal to be longer or shorter.

次に、外部割込みフラグ(EXINT−FLAG) 、
タイマフラグ(TIMER−Ft、AG) 、キャリフ
ラグ、タイマコントロールフラグ(TMCNTいを以下
()の名称で説明する。
Next, external interrupt flag (EXINT-FLAG),
The timer flag (TIMER-Ft, AG), carry flag, and timer control flag (TMCNT) will be explained below using the names ().

T [MER−FLAGは、タイマ割込みルーチンプロ
グラムにおいてEXINT−FLAGの否定としてセッ
トされ、外部割込み信号ルーチンプログラムでクリアさ
れる。
T[MER-FLAG is set as the negation of EXINT-FLAG in the timer interrupt routine program and cleared in the external interrupt signal routine program.

EX INT−FLAGは外部割込み信号ルーチンプロ
グラムにおいて↑IMER−FLAGの否定としてセッ
トされ、タイマ割込みルーチンでキャリフラグにセット
される。
EX INT-FLAG is set as the negation of ↑IMER-FLAG in the external interrupt signal routine program, and is set to the carry flag in the timer interrupt routine.

第3図のT門CNTL−FLAGは、8ビツトのシフト
レジスタ51 (D6〜at)の下2桁の2ビットD6
+口、であり、タイマ割込み信号が外部割込み信号のパ
ルスより先行または後続しているか、また、それらの反
転状態を表す、キャリフラグ52は、シフトレジスタ5
1の桁上フラグであって、キャリフラグ52にEX I
NT−FLAGがセットされる。左シフトによりキャリ
フラグ52の内容がシフトレジスタ51のり、ビットに
挿入され、D、ビットがり、ビットシフトされる。
The T gate CNTL-FLAG in FIG.
The carry flag 52, which indicates whether the timer interrupt signal precedes or follows the pulse of the external interrupt signal, and their inverted state, is the shift register 5.
EX I is the carry flag of 1 and is the carry flag 52.
NT-FLAG is set. By shifting to the left, the contents of the carry flag 52 are inserted into the bits of the shift register 51, and the contents are shifted by D and bits.

次に、タイマコントロールフラグと外部割込み信号およ
びタイマ割込み信号の位置関係およびタイマ割込み信号
の周期の調節を第2図(a)〜(d)に示す。
Next, the positional relationship between the timer control flag, external interrupt signal, and timer interrupt signal, and adjustment of the period of the timer interrupt signal are shown in FIGS. 2(a) to 2(d).

タイマコントロールフラグ−00,第2図(a)では、
タイマ割込み信号が外部割込み信号に先行している。こ
の場合はタイマ割込み信号の間隔T′を2α長くする。
Timer control flag -00, in Figure 2(a),
The timer interrupt signal precedes the external interrupt signal. In this case, the timer interrupt signal interval T' is increased by 2α.

αは最小可変単位である。α is the smallest variable unit.

タイマコントロールフラグ−11,第2図Φ)では、外
部割込み信号がタイマ割込み信号に先行している0間隔
T゛をαだけ短くする。
The timer control flag -11 (FIG. 2 Φ) shortens the zero interval T' in which the external interrupt signal precedes the timer interrupt signal by α.

タイマコントロールフラグ−01,第2図(C)では、
タイマ割込み信号の間隔が徐々に長くなり、発生順序が
反転したことを示す、この場合は、間隔T″の調節を行
わない、タイマコントロールフラグはOO→O1→11
に変化する。
Timer control flag -01, in Figure 2 (C),
The interval between timer interrupt signals gradually becomes longer, indicating that the order of occurrence has been reversed. In this case, the interval T'' is not adjusted, and the timer control flag changes from OO to O1 to 11.
Changes to

タイマコントロールフラグ=lO1第2図(d)では、
タイマ割込み信号の発生間隔が徐々に短くなり、発生順
序が反転したことを示す0間隔T°をαだけ長くする。
Timer control flag = lO1 In Figure 2(d),
The timer interrupt signal generation interval is gradually shortened, and the 0 interval T°, which indicates that the generation order has been reversed, is lengthened by α.

タイマコントロールフラグは11→10→00に変化す
る。
The timer control flag changes from 11 to 10 to 00.

次に、第3図タイマ割込みルーチンのフロー図において
、CPUIは外部割込み信号を検出すると、ステップ2
0にてEXINT−FLAGを読む。次のステツブ21
でEXINT−FLAGをキャリフラグ52にセットす
る。ステップ22に:TEXINT−FLAG(7)否
定をとり、TIMER−FLAGにセットする0次のス
テップ23にてEXINT−FLAGをクリアする。ス
テップ24にてTMCNTLを読む0次に、ステップ2
5にてTMCNTLとキャリフラグを左へ1ピツト移動
する。ステップ26にてTMCNTLのビットD、〜D
、をマスクする。ステップ27にて、TMCNTL= 
00か否かを調べる。そうであれば、ステップ28に進
みタイマ値(タイマ割込み信号の周期)を長くする。否
であれば、ステップ29に進み??ICNTLが11か
否かを調べる。11であれば、ステップ30に進み、タ
イマ値を短くする。否であれば、ステップ31に進み、
TMCNTLが01か否かを調べる。そうであれば、ス
テップ32に進む。ステップ32にてタイマ値が最大値
より小さいか否かを調べる。そうであれば、ステップ3
3に進み、タイマ値が最小値より小さいか否かを調べる
。そうであれば、ステップ35に進み、タイマ値を最小
値にセットする。否であれば、ステップ36に進みタイ
マを新しい値にセットする。ステップ34〜36が終了
するとステップ20に戻る。
Next, in the flowchart of the timer interrupt routine shown in FIG. 3, when the CPU detects an external interrupt signal, step 2
Read EXINT-FLAG at 0. Next step 21
EXINT-FLAG is set in the carry flag 52. In step 22: TEXINT-FLAG (7) is negated and set to TIMER-FLAG.0 In the next step 23, EXINT-FLAG is cleared. Read TMCNTL in step 24. Next, step 2
At step 5, TMCNTL and the carry flag are moved one pit to the left. At step 26, bits D, ~D of TMCNTL
, to mask. At step 27, TMCNTL=
Check whether it is 00 or not. If so, the process proceeds to step 28 and the timer value (period of the timer interrupt signal) is lengthened. If not, proceed to step 29? ? Check whether ICNTL is 11 or not. If it is 11, proceed to step 30 and shorten the timer value. If not, proceed to step 31;
Check whether TMCNTL is 01 or not. If so, proceed to step 32. In step 32, it is checked whether the timer value is smaller than the maximum value. If so, step 3
Proceed to step 3 and check whether the timer value is smaller than the minimum value. If so, proceed to step 35 and set the timer value to the minimum value. If not, proceed to step 36 and set the timer to a new value. When steps 34 to 36 are completed, the process returns to step 20.

、次に、第4図の外部割込みルーチンにおいて、CPU
Iは外部割込み信号を検出すると、ステップ40にてT
IMER−FLAGを読み取り、次のステップ41にて
Tl阿ER−FLAGの否定をとり、これをI!XIN
T−FLAGにセットする0次に、ステップ41に進み
、TIMER−FLAGをクリアしてステップ40に戻
る。
, Next, in the external interrupt routine of FIG.
When I detects an external interrupt signal, T
IMER-FLAG is read, and in the next step 41, TlAER-FLAG is negated, and this is I! XIN
Set T-FLAG to 0. Next, proceed to step 41, clear TIMER-FLAG, and return to step 40.

次に、第5図に外部割込み信号、タイマ割込み信号゛に
対する第3図、第4図のフロー図のフラグの変化の関連
を示す。
Next, FIG. 5 shows the relationship between the changes in the flags in the flowcharts of FIGS. 3 and 4 with respect to the external interrupt signal and the timer interrupt signal.

タイマ割込みルーチン(第3図)、外部割込みルーチン
(第4図)によるタイマコントロールフラグの変化の具
体例を、第6図、第7図で説明する。外部割込み信号t
1の周期は10m5、タイマ割込み信号t2の周期は可
変単位0.1ssで9.5ss〜10.5ssの範囲で
可変するものとする。
Specific examples of changes in the timer control flag due to the timer interrupt routine (FIG. 3) and external interrupt routine (FIG. 4) will be explained with reference to FIGS. 6 and 7. external interrupt signal t
The period of timer interrupt signal t2 is assumed to be 10 m5, and the period of timer interrupt signal t2 is variable in the range of 9.5 ss to 10.5 ss in a variable unit of 0.1 ss.

第6図にてタイマ割込み信号t、は、外部割込み信号1
+より5ss先行し、周期が最初に10.2ssである
。CPUIは、この関係をタイマコントロールフラグ0
0で読み取り、周期10.2〜10.5まで可変し、プ
ロセスのに至る。タイマ割込み信号が同期したことをプ
ロセス■のタイマコントロールフラグの変化OO→O1
→11でCPUIが読み取り、タイマ割込み信号t2を
10.4ssよりO,1ss単位で短くするように制御
する。
In FIG. 6, the timer interrupt signal t is the external interrupt signal 1.
+5ss and the period is initially 10.2ss. The CPUI sets this relationship to timer control flag 0.
It reads at 0 and varies from period 10.2 to 10.5, leading to the process. The timer control flag of process ■ changes from OO to O1 to indicate that the timer interrupt signal is synchronized.
→11, the CPUI reads it and controls the timer interrupt signal t2 to be shorter than 10.4ss in units of O.1ss.

次に、第7図において、外部割込み信号t1がタイマ割
込み信号t2より進んでいて、これらの差t1〜t!が
5膳3ある時点からスタートする。タイマコントロール
フラグ01によりタイマ割込み信号t2の発生間隔をL
ossより短くする制御が行われる。
Next, in FIG. 7, the external interrupt signal t1 is ahead of the timer interrupt signal t2, and the difference between them is t1~t! Starts at a certain point when there are 5 meals. The generation interval of timer interrupt signal t2 is set to L by timer control flag 01.
Control is performed to make it shorter than oss.

プロセス■でタイマコントロールフラグが11→lO→
OOとなり、タイマ割込み信号の発生間隔t8が長くな
るように制御される。
In process ■, timer control flag is 11 → lO →
OO, and the timer interrupt signal generation interval t8 is controlled to be longer.

次に同期について説明する。ホストと端末とが同期して
いる状態は外部割込みとタイマ割込みが常に重複して発
生している状態である。これを第8図〜第11図に示す
、第8図のように外部割込み中にタイマ割込みが発生す
ると、外部割込みのルーチンが終了するまでタイマ割込
みルーチンは待機させられる。よって、第8図の外部割
込みと4通りのタイマ割込みのどの組み合せの場合にも
、第9図のように外部割込み終了と同時にタイマ割込み
が発生することになる。
Next, synchronization will be explained. A state in which the host and terminal are synchronized is a state in which external interrupts and timer interrupts are always occurring in duplicate. This is shown in FIGS. 8 to 11. When a timer interrupt occurs during an external interrupt as shown in FIG. 8, the timer interrupt routine is made to wait until the external interrupt routine is completed. Therefore, in any combination of the external interrupt and the four timer interrupts shown in FIG. 8, the timer interrupt will occur at the same time as the external interrupt ends, as shown in FIG.

次に、第10図のようにタイマ割込み中に外部割込みが
発生した場合は、タイマ割込みのルーチンが終了するま
で外部割込みルーチンが待機させられる。よって第8図
と第10図のどの割込みの組み合せの場合にも第11図
のようにタイマ割込み終了と同時に外部割込みが発生す
る。このような重複関係を発生させるためには、以下の
条件が必要である。外部割込みおよびタイマ割込みの処
理時間の合計は、外部割込みおよびタイマ割込み発生の
時間差より大きいこと、この条件を満たすためには、次
の関係がある。
Next, when an external interrupt occurs during a timer interrupt as shown in FIG. 10, the external interrupt routine is made to wait until the timer interrupt routine is completed. Therefore, in any combination of interrupts shown in FIG. 8 and FIG. 10, an external interrupt occurs at the same time as the timer interrupt ends, as shown in FIG. In order to generate such an overlapping relationship, the following conditions are necessary. The total processing time for external interrupts and timer interrupts is greater than the time difference between the occurrences of external interrupts and timer interrupts.In order to satisfy this condition, the following relationship exists.

l)タイマ割込み発生間隔の可変できる幅は、その発生
間隔に比べ十分小さく、最小可変単位の±10倍以下程
度が望ましい。
l) The range in which the timer interrupt generation interval can be varied is sufficiently small compared to the generation interval, and is preferably about ±10 times or less of the minimum variable unit.

2)タイマ割込みの発生間隔は、プラス、マイナスの増
減が可能であるが、このプラス、マイナスの可変単位は
十分小さくて、最小可変単位は外部割込み発生間隔の1
 /1000以下が望ましい、この可変単位とタイマ割
込みおよび外部割込みとのづれには次の関係がある。
2) The timer interrupt generation interval can be increased or decreased by plus or minus, but the variable unit of this plus or minus is sufficiently small, and the minimum variable unit is 1 of the external interrupt generation interval.
The following relationship exists between this variable unit, which is preferably less than /1000, and the timer interrupt and external interrupt.

タイマ割込みと外部割込みのづれζ20×可変単位但し
、1)で述べた変化できる幅を±10倍以下の最小増減
単位として、タイマ割込み発生間隔は可変単位幅の10
00倍以上の場合である。
Difference between timer interrupt and external interrupt ζ 20 x variable unit However, assuming that the variable width mentioned in 1) is the minimum increase/decrease unit of ±10 times or less, the timer interrupt generation interval is 10 of the variable unit width.
This is a case of 00 times or more.

以上より実際の外部割込みとタイマ割込みとに要する処
理時間を計算して可変単位が得られる。
From the above, a variable unit can be obtained by calculating the processing time required for the actual external interrupt and timer interrupt.

すなわち、可変単位幅<1/20X処理時間の合計とす
る0例えば、第8図〜第10図のケースでは、処理時間
の合計は120μsecである。したがって、可変単位
< 1 /20X120−6μsecとなる。
That is, variable unit width < 1/20X total processing time 0. For example, in the cases of FIGS. 8 to 10, the total processing time is 120 μsec. Therefore, the variable unit is <1/20×120−6 μsec.

外部割込み発生間隔を1抛sec、可変単位を5μ5e
c(外部割込み発生間隔の1 /2000)とすると、
タイマ割込み発生間隔は10a+sec±5 X 5 
μ5ec=9.075+*sec〜10.025m5e
cとなる。外部割込みとタイマ割込みの発生のづれは、
約100μsec以下となる。
External interrupt generation interval is 1sec, variable unit is 5μ5e
Assuming c (1/2000 of external interrupt generation interval),
Timer interrupt generation interval is 10a+sec±5 x 5
μ5ec=9.075+*sec~10.025m5e
c. The difference between the occurrence of external interrupts and timer interrupts is
The time is approximately 100 μsec or less.

これは第8図〜第10図で示した例のように、外部割込
み20μsec 、タイマ割込み100μsecの合計
120μsecより小さいため、外部割込みおよびタイ
マ割込みは常に重複して発生していることになり、すな
わち同期していることになる。
This is smaller than the total of 120 μsec, which is 20 μsec for external interrupts and 100 μsec for timer interrupts, as in the examples shown in FIGS. 8 to 10, so external interrupts and timer interrupts always occur overlappingly. This means that they are in sync.

(発明の効果) 本発明によれば、所定周期を有する第1の信号のパルス
と、周期が可変される第2の信号のパルスを検出し、第
2の信号のパルスが第1の信号のパルスに先行している
ときは、第2の信号の周期を長く、後続しているときは
短く制御して同期をとることができる。この同期制御は
プログラム制御方式であるから、第1の信号の周期が変
更された場合でも、ハードウェアを変更することなく対
応できる。
(Effects of the Invention) According to the present invention, a pulse of a first signal having a predetermined period and a pulse of a second signal whose period is variable are detected, and a pulse of the second signal is detected as a pulse of the first signal. Synchronization can be achieved by controlling the period of the second signal to be long when it is preceding the pulse and short when it is following it. Since this synchronous control is a program control method, even if the period of the first signal is changed, it can be handled without changing the hardware.

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

第1図は本発明の同期方式が適用されるディジタル変換
システムの端末のブロック図、第2図は外部割込み信号
とタイマ割込み信号の時間差を示すコントロールフラグ
の図、第3図はタイマ割込みルーチンのフロー図、第4
図は外部割込みルーチンのフロー図、第5図は外部割込
み信号、タイマ割込み信号およびタイマ割込みフラグ、
外部割込みフラグ、タイマコントロールフラグの関係図
、第6図、第7図はタイマコントロールフラグの反転プ
ロセスの図、第8図〜第11図は同期の説明図、第12
図は従来例のブロック図を示す。 l ・・・CPU 2・・・メモリ 3・ ・・ボート 第1図 第2図 (b) (C) (d) 第3図 (b) 外fP飼込刀ルー手ン 第5図 TMCNTL  [I]  回 四  匝第9図 第10図
Figure 1 is a block diagram of a terminal in a digital conversion system to which the synchronization method of the present invention is applied, Figure 2 is a diagram of a control flag indicating the time difference between an external interrupt signal and a timer interrupt signal, and Figure 3 is a diagram of a timer interrupt routine. Flow diagram, 4th
The figure is a flow diagram of the external interrupt routine, and Figure 5 shows the external interrupt signal, timer interrupt signal, and timer interrupt flag.
Relationship diagram between external interrupt flag and timer control flag, Figures 6 and 7 are diagrams of timer control flag inversion process, Figures 8 to 11 are explanatory diagrams of synchronization, Figure 12
The figure shows a block diagram of a conventional example. l...CPU 2...Memory 3...Boat Figure 1 Figure 2 (b) (C) (d) Figure 3 (b) ] Times 4 Figure 9 Figure 10

Claims (1)

【特許請求の範囲】[Claims] 所定周期で入力される第1の信号を検出する信号検出手
段と、第1の信号の前記所定周期の前後に周期が可変さ
れる第2の信号を発生し、第1の信号と第2の信号のパ
ルスを検出し、第2の信号のパルスが第1の信号のパル
スに先行しているか、後続しているかを識別し、先行の
ときは第2の信号の周期を長く、後続のときは短く制御
するパルス発生制御手段とを備えた同期方式。
a signal detection means for detecting a first signal input at a predetermined period; and a signal detection means for generating a second signal whose period is variable before and after the predetermined period of the first signal, and generating a second signal whose period is variable before and after the predetermined period of the first signal. Detects the pulses of the signal, identifies whether the pulses of the second signal precede or follow the pulses of the first signal, and increases the period of the second signal if the pulses precede the pulses of the first signal; This is a synchronous method equipped with short pulse generation control means.
JP63123436A 1988-05-20 1988-05-20 Synchronizing system Pending JPH01293039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63123436A JPH01293039A (en) 1988-05-20 1988-05-20 Synchronizing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63123436A JPH01293039A (en) 1988-05-20 1988-05-20 Synchronizing system

Publications (1)

Publication Number Publication Date
JPH01293039A true JPH01293039A (en) 1989-11-27

Family

ID=14860534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63123436A Pending JPH01293039A (en) 1988-05-20 1988-05-20 Synchronizing system

Country Status (1)

Country Link
JP (1) JPH01293039A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5523613A (en) * 1978-08-07 1980-02-20 Ricoh Co Ltd Reproducing system of timing information
JPS5773545A (en) * 1980-10-24 1982-05-08 Fujitsu Ltd Phase synchronizing system
JPS62274947A (en) * 1986-05-23 1987-11-28 Fujitsu Ltd Retiming circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5523613A (en) * 1978-08-07 1980-02-20 Ricoh Co Ltd Reproducing system of timing information
JPS5773545A (en) * 1980-10-24 1982-05-08 Fujitsu Ltd Phase synchronizing system
JPS62274947A (en) * 1986-05-23 1987-11-28 Fujitsu Ltd Retiming circuit

Similar Documents

Publication Publication Date Title
JPS6315530A (en) Digital phase locked loop
JP3468592B2 (en) Clock signal generation circuit
JPH0433056B2 (en)
JPH0292021A (en) Digital PLL circuit
US6021504A (en) High-speed internal clock synchronizing method and circuit
JPH01293039A (en) Synchronizing system
US20040140919A1 (en) Clock synchronization logic
JPS6055466A (en) Synchronization system between plural processors
US7714631B2 (en) Method and apparatus for synchronizing a clock generator in the presence of jittery clock sources
US6760798B1 (en) Interface mechanism and method for interfacing a real-time clock with a data processing circuit
JPS6339209A (en) Synchronous circuit
JPS59176863A (en) Timer synchronizing system
JPH01154625A (en) Pll synchronizing detection circuit
JPS594343Y2 (en) Multiprocessor control circuit
JPS59146325A (en) Asynchronous digital signal processing system
JPS6313558Y2 (en)
JPH11231912A (en) Synchronous control method
JPS60190024A (en) Digital phase locked loop circuit
JPH02176916A (en) Clock switching system
JPH11205101A (en) Phase tracking device
JP2716294B2 (en) System switching method
JPS61208923A (en) Digital pll circuit
JP2000232437A (en) Data receiving device
JPH0484354A (en) Data transferring system for synchronous circuit
JPH0540916U (en) Processor