JP3152807B2 - Orbiting cycle accuracy judgment device - Google Patents
Orbiting cycle accuracy judgment deviceInfo
- Publication number
- JP3152807B2 JP3152807B2 JP17969693A JP17969693A JP3152807B2 JP 3152807 B2 JP3152807 B2 JP 3152807B2 JP 17969693 A JP17969693 A JP 17969693A JP 17969693 A JP17969693 A JP 17969693A JP 3152807 B2 JP3152807 B2 JP 3152807B2
- Authority
- JP
- Japan
- Prior art keywords
- cycle
- trigger signal
- accuracy
- value
- shift
- 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.)
- Expired - Fee Related
Links
Landscapes
- Electric Clocks (AREA)
- Measurement Of Unknown Time Intervals (AREA)
- Measuring Frequencies, Analyzing Spectra (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、周期的に発生するトリ
ガ信号の周回周期精度を判定する周回周期精度判定装置
に係わり、特にタイマを用いない簡易な構成を実現し、
縮小化を図り得る周回周期精度判定装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a circuit for determining the cycle accuracy of a periodically generated trigger signal, and more particularly, to a simple configuration which does not use a timer.
The present invention relates to an orbiting cycle accuracy determination device capable of achieving downsizing.
【0002】[0002]
【従来の技術】近年、周期的に発生するトリガ信号の周
回周期の精度を確認するために、基準となる周期に対し
ての測定周期の偏差が所定の%精度内にあるか否かを判
定する周回周期精度判定装置が広く用いられている。2. Description of the Related Art In recent years, in order to confirm the accuracy of a cycle of a trigger signal generated periodically, it is determined whether a deviation of a measurement cycle from a reference cycle is within a predetermined% accuracy. The orbiting cycle accuracy determination device is widely used.
【0003】図4はこの種の周回周期精度判定装置の構
成を示すブロック図である。この周回周期精度判定装置
は、1ms毎の時間単位で外部トリガの周期基準値が設
定される設定レジスタ1が、ダウンカウンタ2にこの周
期基準値をロードする。なお、ここでは周期基準値を1
(ms)とする。FIG. 4 is a block diagram showing the configuration of this kind of orbiting cycle accuracy determination device. In the circulation period accuracy determination device, a setting register 1 in which a period reference value of an external trigger is set in time units of 1 ms loads this period reference value into a down counter 2. Here, the cycle reference value is 1
(Ms).
【0004】また、1/100msタイマ3は外部から
印加される外部タイミングクロックに対応して1/10
0ms毎に出力クロックをダウンカウンタ2に印加す
る。ダウンカウンタ2は外部からOR回路4を通してイ
ネーブル信号を受けた後、外部からOR回路4を通して
最初の外部トリガを受けると、ロードされた1(ms)
の周期基準値を出力クロックに対応して1/100ms
毎にダウンカウントする。なお、この場合、1回出力ク
ロックを受けると、ダウンカウントが終了することにな
る。A 1/100 ms timer 3 has a 1/100 ms timer corresponding to an external timing clock applied from outside.
An output clock is applied to the down counter 2 every 0 ms. When the down counter 2 receives an enable signal from the outside through the OR circuit 4 and then receives the first external trigger from the outside through the OR circuit 4, the down counter 2 is loaded 1 (ms).
1 / 100ms corresponding to the output clock
Count down every time. In this case, when the output clock is received once, the down-counting ends.
【0005】ダウンカウンタ2はダウンカウントを終了
すると、ボローをアップカウンタ5に印加すると共に、
再度、設定レジスタ1から周期基準値をロードしてダウ
ンカウントを行う。なお、ダウンカウンタ2では、前述
したロードからダウンカウント及びボローの印加までの
各動作が繰り返される。When the down counter 2 finishes counting down, it applies a borrow to the up counter 5 and
The cycle reference value is loaded again from the setting register 1 and the down count is performed. In the down counter 2, each operation from the above-described loading to down counting and borrow application is repeated.
【0006】また、アップカウンタ5はボローを受ける
度に計数値をアップカウントし、この計数値を判定回路
6に印加する。判定回路6は、予め設定される精度に基
づいて、アップカウンタ5の計数値と外部トリガの検出
タイミングとを比較し、外部トリガの周回周期精度を判
定する。すなわち、前述した通り、ダウンカウントが1
/100ms毎に終了し、且つ周期基準値が1msであ
ることから、アップカウンタ5の計数値が100前後の
とき、外部トリガを検出すればよいことになる。The up-counter 5 counts up the count value each time it receives a borrow, and applies the count value to the determination circuit 6. The determination circuit 6 compares the count value of the up-counter 5 with the detection timing of the external trigger based on a preset accuracy, and determines the cycle accuracy of the external trigger. That is, as described above, the down count is 1
Since the process ends every / 100 ms and the cycle reference value is 1 ms, it is sufficient to detect an external trigger when the count value of the up counter 5 is around 100.
【0007】例えば、設定される精度が±1%の場合、
図5に示すように、判定回路6は、アップカウンタ5の
計数値が99〜101のとき、外部トリガを検出すれば
精度合格と判定し、外部トリガを検出しなければ精度失
格と判定する。また、設定される精度が±2%の場合、
判定回路6は、アップカウンタ5の計数値が98〜10
2のとき、外部トリガを検出すれば精度合格と判定し、
それ以外を精度失格と判定する。For example, when the set accuracy is ± 1%,
As shown in FIG. 5, when the count value of the up counter 5 is 99 to 101, the determination circuit 6 determines that the accuracy has passed if an external trigger is detected, and determines that the accuracy has failed if no external trigger is detected. In addition, when the set accuracy is ± 2%,
The determination circuit 6 determines that the count value of the up counter 5 is 98 to 10
In the case of 2, when an external trigger is detected, it is determined that the accuracy is passed,
Others are judged to be disqualified.
【0008】[0008]
【発明が解決しようとする課題】しかしながら、以上の
ような周回周期精度判定装置では、設定レジスタ1に設
定される時間単位を外部タイミングクロックの発生タイ
ミングと合わせていないため、タイミングを合わせるた
めに1/100msタイマ3が必要になる問題がある。However, in the above-described circuit for determining the cycle accuracy, the time unit set in the setting register 1 does not match the generation timing of the external timing clock. / 100 ms timer 3 is required.
【0009】すなわち、この1/100msタイマ3は
外部タイミングクロックに対応して1/100ms毎に
出力クロックを発生するものであるが、このようにタイ
ミング合わせのみのカウンタ(1/100msタイマ
3)を必要とすることは、回路自体の複雑化及び巨大化
を招くという問題がある。That is, the 1/100 ms timer 3 generates an output clock every 1/100 ms corresponding to the external timing clock. In this way, a counter (1/100 ms timer 3) for only timing adjustment is used. The necessity causes a problem that the circuit itself becomes complicated and huge.
【0010】また、外部トリガの周回周期は高精度を要
求されない場合もあるが、一律に1/100msタイマ
3による高精度、且つ複雑な装置が用いられている。な
お、本発明は上記実情を考慮してなされたもので、タイ
マを用いない簡易な構成を実現し、縮小化を図り得る周
回周期精度判定装置を提供することを目的とする。In some cases, the circulation period of the external trigger does not require high precision, but a highly accurate and complicated device using a 1/100 ms timer 3 is used uniformly. The present invention has been made in consideration of the above-described circumstances, and has as its object to provide a circulating cycle accuracy determination device that can realize a simple configuration that does not use a timer and that can be reduced in size.
【0011】[0011]
【課題を解決するための手段】上記目的を達成するため
に本発明は、周期的に発生するトリガ信号の周回周期精
度を判定出力する周回周期判定装置において、前記トリ
ガ信号の周回周期よりも短い周期の計数クロックを発生
させる計数クロック発生手段と、この計数クロック発生
手段による計数クロックの発生周期と前記トリガ信号の
周回周期との比に基づいて、前記トリガ信号の周期基準
値が所定のビット数で設定される基準値設定回路と、こ
の基準値設定回路に設定される周期基準値のうち、前記
トリガ信号の周回周期精度に対応してビットシフトさせ
たシフトアウト値を第1の記憶部に記憶し、且つこの第
1の記憶部に記憶しないシフト値を第2の記憶部に記憶
する基準値分配記憶回路と、あるトリガ信号が印加され
ると、前記基準値分配記憶回路に記憶された周期基準値
のうち、前記第1の記憶部に記憶されるシフトアウト値
を前記計数クロック発生手段から受ける計数クロックに
従って1回ダウンカウントし、前記第2の記憶部に記憶
されるシフト値を前記計数クロック発生手段から受ける
計数クロックに従って複数回ダウンカウントするダウン
カウンタと、このダウンカウンタから各ダウンカウント
終了に対応して送出されるボローを計数するアップカウ
ンタと、このアップカウンタによる計数値及び前記ある
トリガ信号の次のトリガ信号が前記周回周期精度に対応
して検出されたとき、前記トリガ信号の周回周期が前記
周回周期精度内に有ると判定し、前記検出がされないと
き、前記トリガ信号の周回周期が前記周回周期精度内に
無いと判定し、当該判定結果を送出する判定回路とを備
えた周回周期精度判定装置である。SUMMARY OF THE INVENTION In order to achieve the above object, the present invention provides a circuit for judging and outputting the period accuracy of a periodically generated trigger signal, wherein the period is shorter than the period of the trigger signal. A counting clock generating means for generating a counting clock of a period; and a cycle reference value of the trigger signal is set to a predetermined number of bits based on a ratio between a generation cycle of the counting clock by the counting clock generating means and a circulation cycle of the trigger signal. And a reference value setting circuit that is set in the first storage unit and a shift-out value that is bit-shifted corresponding to the cycle accuracy of the trigger signal among the cycle reference values set in the reference value setting circuit. A reference value distribution storage circuit that stores a shift value that is not stored in the first storage unit and stores the shift value in the second storage unit; Among the cycle reference values stored in the distribution memory circuit, the shift-out value stored in the first storage unit is down-counted once in accordance with a count clock received from the count clock generation unit, and is stored in the second storage unit. A down counter that counts down the stored shift value a plurality of times in accordance with a count clock received from the count clock generating means; an up counter that counts a borrow sent from the down counter in response to the end of each down count; When the count value of the counter and the trigger signal next to the certain trigger signal are detected in correspondence with the cycle accuracy, it is determined that the cycle of the trigger signal is within the cycle accuracy, and the detection is not performed. When it is determined that the cycle of the trigger signal is not within the cycle cycle accuracy, the determination result is transmitted. A recirculation period the accuracy determination device and a that determination circuit.
【0012】[0012]
【作用】従って、本発明は以上のような手段を講じたこ
とにより、計数クロック発生手段ではトリガ信号の周回
周期よりも短い周期の計数クロックが発生し、基準値設
定回路では、この計数クロック発生手段による計数クロ
ックの発生周期とトリガ信号の周回周期との比に基づい
てトリガ信号の周期基準値が所定のビット数で設定さ
れ、基準値分配記憶回路が、この基準値設定回路に設定
される周期基準値のうち、トリガ信号の周回周期精度に
対応してビットシフトさせたシフトアウト値を第1の記
憶部に記憶し、且つこの第1の記憶部に記憶しないシフ
ト値を第2の記憶部に記憶し、ダウンカウンタが、ある
トリガ信号が印加されると、基準値分配記憶回路に記憶
された周期基準値のうち、第1の記憶部に記憶されるシ
フトアウト値を計数クロック発生手段から受ける計数ク
ロックに従って1回ダウンカウントし、第2の記憶部に
記憶されるシフト値を計数クロック発生手段から受ける
計数クロックに従って複数回ダウンカウントし、アップ
カウンタが、このダウンカウンタから各ダウンカウント
終了に対応して送出されるボローを計数し、判定回路
が、このアップカウンタによる計数値及びあるトリガ信
号の次のトリガ信号が周回周期精度に対応して検出され
たとき、トリガ信号の周回周期が周回周期精度内に有る
と判定し、当該検出がされないとき、トリガ信号の周回
周期が周回周期精度内に無いと判定し、判定結果を送出
するので、タイマを用いない簡易な構成を実現し、縮小
化を図ることができる。According to the present invention, by taking the above means, the counting clock generating means generates a counting clock having a period shorter than the cycle of the trigger signal, and the reference value setting circuit generates the counting clock. The reference value of the cycle of the trigger signal is set by a predetermined number of bits based on the ratio between the generation cycle of the count clock by the means and the cycle of the trigger signal, and the reference value distribution storage circuit is set in the reference value setting circuit. Of the cycle reference values, a shift-out value that is bit-shifted in accordance with the cycle accuracy of the trigger signal is stored in the first storage unit, and a shift value that is not stored in the first storage unit is stored in the second storage unit. The down counter counts the shift-out value stored in the first storage unit among the cycle reference values stored in the reference value distribution storage circuit when a certain trigger signal is applied. The count value is down-counted once according to the count clock received from the lock generation means, and the shift value stored in the second storage unit is down-counted a plurality of times according to the count clock received from the count clock generation means. The borrow transmitted in response to the end of the down-counting is counted, and when the count value of the up-counter and a trigger signal next to a certain trigger signal are detected in accordance with the cycle accuracy, the determination circuit detects the borrow. When it is determined that the cycle is within the cycle accuracy, and when the detection is not performed, it is determined that the cycle of the trigger signal is not within the cycle accuracy, and the determination result is transmitted. It can be realized and downsized.
【0013】[0013]
【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は本発明の一実施例に係る周回周期精
度判定装置の構成を示すブロック図である。この周回周
期精度判定装置は、外部トリガ(トリガ信号)の周期基
準値が所定のビット数で設定される設定レジスタ(基準
値設定回路)11が、この周期基準値をビットシフトレ
ジスタ(基準値分配記憶回路)12に送出している。な
お、この周期基準値は、外部トリガの周回周期が計数ク
ロック発生部13で発生する外部タイミングクロックの
発生周期の何倍であるかを示すカウンタ数により設定さ
れている。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a circulation period accuracy determination device according to one embodiment of the present invention. In this circuit, a setting register (reference value setting circuit) 11 in which a cycle reference value of an external trigger (trigger signal) is set by a predetermined number of bits is used by a bit shift register (reference value distribution). (Storage circuit) 12. The cycle reference value is set by a counter number indicating how many times the cycle of the external trigger is greater than the cycle of the external timing clock generated by the count clock generator 13.
【0014】ビットシフトレジスタ12は、第1及び第
2のシフトレジスタ(第1及び第2の記憶部)12a,
12bからなり、設定レジスタ11から送出される周期
基準値を所定の判定精度に基づいてビットシフトすると
共に、シフトアウトされたシフトアウト値を第1のシフ
トレジスタ12aに記憶し、且つこの第1のシフトレジ
スタ12aに記憶しないシフト値を第2のシフトレジス
タ12bに記憶するものである。The bit shift register 12 includes first and second shift registers (first and second storage units) 12a,
12b, the cycle reference value sent from the setting register 11 is bit-shifted based on a predetermined determination accuracy, and the shifted out value is stored in the first shift register 12a. The shift values not stored in the shift register 12a are stored in the second shift register 12b.
【0015】例えば±25%の判定精度のときには、2
ビットだけシフトアウトされたシフトアウト値が第1の
シフトレジスタ12aに記憶され、残りのシフト値が第
2のシフトレジスタ12bに記憶されることになる。同
様に±12.5%の判定精度のときには3ビット分、±
6.25%の判定精度のときには4ビット分、また、±
3.125%の判定精度のときには5ビット分のシフト
アウト値が夫々第1のシフトレジスタ12aに記憶さ
れ、且つ残りのシフト値が夫々第2のシフトレジスタ1
2bに記憶されることになる。すなわち、シフトさせる
ビット数と判定精度には次の(1)式に示す関係があ
る。 判定精度={1/[2の(シフトさせるビット数)乗]}×100 …(1) また、ビットシフトレジスタ12は、ダウンカウンタ1
4から受けるロード要求信号に基づいて、第1又は第2
のシフトレジスタ12a,12bに記憶した値をダウン
カウンタ14にローディングする機能をもっている。For example, when the judgment accuracy is ± 25%, 2
The shift-out value shifted out by bits is stored in the first shift register 12a, and the remaining shift values are stored in the second shift register 12b. Similarly, when the determination accuracy is ± 12.5%, 3 bits, ±
For a determination accuracy of 6.25%, 4 bits, and ±
When the determination accuracy is 3.125%, the shift-out values for 5 bits are stored in the first shift register 12a, and the remaining shift values are stored in the second shift register 1a.
2b. That is, the number of bits to be shifted and the determination accuracy have the relationship shown in the following equation (1). Determination accuracy = {1 / [2 (the number of bits to be shifted)]} × 100 (1) Further, the bit shift register 12
1 or 2 based on the load request signal received from
Has a function of loading the values stored in the shift registers 12a and 12b into the down counter 14.
【0016】ダウンカウンタ14は、外部からイネーブ
ル信号をOR回路15を通して受けた後、最初の外部ト
リガをOR回路15を通して受けると、1回だけ第1の
シフトレジスタ12aにシフトアウト値をローディング
させて該シフトアウト値を計数クロック発生部13から
受ける外部タイミングクロックに従ってダウンカウント
し、且つ複数回反復して第2のシフトレジスタ12bに
シフト値をローディングさせて該シフト値を計数クロッ
ク発生部13から受ける外部タイミングクロックに従っ
てダウンカウントするものであって、ダウンカウントの
終了に対応してボローをアップカウンタ16に印加する
機能をもっている。When the down counter 14 receives the first external trigger through the OR circuit 15 after receiving the enable signal from the outside through the OR circuit 15, the down counter 14 loads the shift-out value into the first shift register 12a only once. The shift-out value is down-counted in accordance with an external timing clock received from the count clock generator 13, and the shift value is repeatedly loaded a plurality of times into the second shift register 12b to receive the shift value from the count clock generator 13. The counter counts down according to an external timing clock, and has a function of applying a borrow to the up counter 16 in response to the end of the down count.
【0017】アップカウンタ16は、ダウンカウンタ1
4から印加されるボローを計数して該計数値を判定回路
17に送出するものである。判定回路17は、このアッ
プカウンタ16による計数値及びある外部トリガの次の
外部トリガが周回周期精度に対応して検出されたとき、
外部トリガの周回周期が周回周期精度内に有ると合格判
定し、検出がされないとき、外部トリガの周回周期が周
回周期精度内に無いと失格判定し、当該判定結果を送出
する機能をもっている。The up counter 16 is a down counter 1
The number of borrows applied from 4 is counted and the counted value is sent to the judgment circuit 17. The determination circuit 17 determines when the count value of the up-counter 16 and an external trigger next to a certain external trigger are detected in accordance with the cycle accuracy.
If the cycle of the external trigger is within the cycle accuracy, it is determined to be acceptable. If no detection is made, the external trigger is judged to be disqualified if the cycle is not within the cycle accuracy, and the determination result is transmitted.
【0018】例えば±25%の判定精度のときには、ア
ップカウンタ16による計数値が“4”,“5”を示す
ときに次の外部トリガが検出されたとき、合格判定す
る。また、±12.5%の判定精度のときにはアップカ
ウンタ16による計数値が“8”,“9”を示すとき、
±6.25%の判定精度のときにはアップカウンタ16
による計数値が“16”,“17”を示すとき、±3.
125%の判定精度のときにはアップカウンタ16によ
る計数値が“32”,“33”を示すとき、次の外部ト
リガが検出されると夫々合格判定を行う。For example, when the judgment accuracy is ± 25%, when the next external trigger is detected when the count value of the up counter 16 indicates “4” or “5”, the pass is judged. When the count value of the up counter 16 indicates “8” or “9” when the judgment accuracy is ± 12.5%,
Up counter 16 when the judgment accuracy is ± 6.25%
When the count value of “.” Indicates “16” or “17”, ± 3.
If the count value of the up counter 16 indicates “32” or “33” when the determination accuracy is 125%, the pass determination is performed when the next external trigger is detected.
【0019】すなわち、アップカウンタ16の計数値と
判定精度に対応したシフトビット数とには次の(2)式
に示す関係がある。 計数値=2の(シフトさせるビット数)乗,及びそれ足す1 …(2) 次に、このような周回周期精度判定装置の動作を図2及
び図3を参照しながら説明する。That is, the count value of the up counter 16 and the number of shift bits corresponding to the determination accuracy have the relationship shown in the following equation (2). Count value = 2 raised to the power of (the number of bits to be shifted) and 1 + 2 (2) Next, the operation of such a circulation period accuracy determination apparatus will be described with reference to FIGS.
【0020】なお、ここでは判定に必要な値の設定を説
明し、続いて判定動作を述べる。いま、外部トリガの周
回周期が100(ms)であり、計数クロック発生部1
3による外部タイミングクロックの発生周期が100
(μs)であるとする。Here, the setting of the value required for the determination will be described, and then the determination operation will be described. Now, the circulation period of the external trigger is 100 (ms), and the counting clock generator 1
3 is 100.
(Μs).
【0021】このとき、設定レジスタ11には、次の
(3)式により得られる周期基準値が設定される。な
お、この周期基準値は、外部トリガの1周期の間に外部
タイミングクロックが何回発生するかを示す外部タイミ
ングクロックのカウンタ数である。At this time, the cycle reference value obtained by the following equation (3) is set in the setting register 11. The cycle reference value is the number of counters of the external timing clock indicating how many times the external timing clock occurs during one cycle of the external trigger.
【0022】 周期基準値=外部トリガの周回周期÷外部タイミングクロックの発生周期 …(3) =100ms÷100μs =1000(回) この周期基準値は(1000)10=(0011 111
0 1000)2 のように2進数に変換され、該変換値
が操作者の操作により設定レジスタ11に設定される。
また、設定レジスタ11はこの周期基準値をビットシフ
トレジスタ12に送出する。Period reference value = circulation period of external trigger / generation period of external timing clock (3) = 100 ms ÷ 100 μs = 1000 (times) This period reference value is (1000) 10 = (0011 111)
0 1000) 2 is converted into a binary number, and the converted value is set in the setting register 11 by the operation of the operator.
The setting register 11 sends the cycle reference value to the bit shift register 12.
【0023】このとき、例えば周回周期の判定精度を±
6.25%とすると、ビットシフトレジスタ12は、前
述した通り、周期基準値を4ビット分だけシフトして図
2に示すように、シフトアウト値(1000)2 を第1
のシフトレジスタ12aに記憶し、残りのシフト値(0
011 1110)2 を第2のシフトレジスタ12bに
記憶する。At this time, for example, the accuracy of the determination of the circulation cycle is ±
Assuming 6.25%, the bit shift register 12 shifts the cycle reference value by 4 bits as described above, and shifts the shift-out value (1000) 2 to the first value as shown in FIG.
And stores the remaining shift values (0
011 1110) 2 is stored in the second shift register 12b.
【0024】これにより、本実施例装置は周回周期精度
の判定動作に必要な値が設定される。なお、これら周期
基準値、シフトビット数、シフトアウト値及びシフト値
には、次の(4)式に示す関係がある。 周期基準値=シフト値×2の(シフトビット数)乗+シフトアウト値…(4) すなわち、外部タイミングクロックに従って、シフトア
ウト値を1回だけカウントし、さらにシフト値を2の
(シフトビット数)乗だけの回数カウントしたとき、周
期基準値に対応する外部トリガの周期と等しい時間が経
過することになる。また、判定精度に比例して2の(シ
フトビット数)乗の回数は増加し、シフト値は減少す
る。As a result, in the apparatus of this embodiment, a value required for the operation of determining the cycle accuracy is set. The cycle reference value, the number of shift bits, the shift-out value, and the shift value have the relationship shown in the following equation (4). Period reference value = shift value × 2 to the power of (shift bit number) + shift-out value (4) That is, the shift-out value is counted only once according to the external timing clock, and the shift value is further shifted to 2 (shift bit number). When the number of times is counted only by the power, a time equal to the cycle of the external trigger corresponding to the cycle reference value elapses. In addition, the number of powers of 2 (the number of shift bits) increases in proportion to the determination accuracy, and the shift value decreases.
【0025】次に、周回周期精度の判定動作を説明す
る。ダウンカウンタ14は、OR回路15からイネーブ
ル信号を受けた後、外部トリガを検出すると、第1のシ
フトレジスタ12aからシフトアウト値をローディング
し、このシフトアウト値を外部タイミングクロックに従
ってダウンカウントする。Next, the operation of determining the cycle accuracy will be described. When receiving an enable signal from the OR circuit 15 and detecting an external trigger, the down counter 14 loads a shift-out value from the first shift register 12a and counts down the shift-out value according to an external timing clock.
【0026】また、ダウンカウントが終了する外部タイ
ミングクロック1個前になると、ダウンカウンタ14は
ボローをアップカウンタ16及び第2のシフトレジスタ
12bに送出する。アップカウンタ16はこのボローを
計数して該計数値を判定回路17に送出する。When one count of the external timing clock before the end of the down count is reached, the down counter 14 sends a borrow to the up counter 16 and the second shift register 12b. The up counter 16 counts the number of borrows and sends the counted value to the determination circuit 17.
【0027】また、第2のシフトレジスタ12bはこの
ボローによってシフト値をダウンカウンタ14にローデ
ィングし、ダウンカウンタ14はこのシフト値を外部タ
イミングクロックに従ってダウンカウントする。The second shift register 12b loads the shift value into the down counter 14 by the borrow, and the down counter 14 counts down the shift value according to an external timing clock.
【0028】続いて同様に、ダウンカウンタ14は、ダ
ウンカウントが終了する外部タイミングクロック1個前
になると、ボローをアップカウンタ16及び第2のシフ
トレジスタ12bに送出する。Subsequently, similarly, the down counter 14 sends a borrow to the up counter 16 and the second shift register 12b one external timing clock before the end of the down counting.
【0029】以後、ダウンカウンタ14は、図3に示す
ように、シフト値のダウンカウントとボローの送出とを
繰り返し実行し、アップカウンタ16はボローを受ける
度に計数値を1だけ増加して判定回路17に送出する。Thereafter, as shown in FIG. 3, the down counter 14 repeatedly executes the down count of the shift value and the transmission of the borrow, and the up counter 16 increments the count value by 1 every time a borrow is received, and makes a determination. Send it to the circuit 17.
【0030】判定回路17は、アップカウンタ16の計
数値が16,17のとき、外部トリガの有無を検出し、
外部トリガ検出有りのとき、精度合格を判定し、外部ト
リガ検出無しのとき、精度失格を判定する。When the count value of the up counter 16 is 16, 17, the determination circuit 17 detects the presence or absence of an external trigger,
When the external trigger is detected, the accuracy is determined to be passed, and when the external trigger is not detected, the accuracy is determined to be disqualified.
【0031】しかる後、判定回路17はこの判定結果を
出力する。上述したように本実施例によれば、設定レジ
スタ11により、外部トリガの周期基準値を外部タイミ
ングクロックのカウンタ数で設定すると共に、第1及び
第2のシフトレジスタ12a,12bにより、この周期
基準値を判定精度に基づいてビットシフトして分配記憶
し、ダウンカウンタ14により、第1のシフトレジスタ
12aに記憶されたシフトアウト値及び第2のシフトレ
ジスタ12bに記憶されたシフト値をダウンカウントし
てボローを送出し、アップカウンタ16により、ボロー
を計数し、判定回路17により、判定精度に対応したア
ップカウンタ16の計数値のとき、外部トリガの有無を
検出して周回周期精度を判定し、この判定結果に基づい
て周回周期精度の合否を出力するようにしたので、タイ
マを用いない簡易な構成を実現し、縮小化を図ることが
できる。Thereafter, the determination circuit 17 outputs the result of the determination. As described above, according to the present embodiment, the setting register 11 sets the cycle reference value of the external trigger by the number of counters of the external timing clock, and the first and second shift registers 12a and 12b set the cycle reference value. The value is bit-shifted based on the determination accuracy, distributed and stored, and the down counter 14 counts down the shift-out value stored in the first shift register 12a and the shift value stored in the second shift register 12b. The borrow is sent out by the up counter 16, the borrow is counted by the up counter 16, and when the count value of the up counter 16 corresponding to the determination accuracy is detected by the determination circuit 17, the presence or absence of an external trigger is detected to determine the circulation period accuracy, Since the pass / fail of the circulation cycle accuracy is output based on this determination result, a simple configuration without using a timer is realized. And, it is possible to shrink.
【0032】なお、上記実施例では、周回周期精度の合
否のみを判定する場合について説明したが、これに限ら
ず、判定回路17に第1及び第2のカウンタを接続し、
判定時におけるアップカウンタ16の2つの計数値のう
ち、最初の計数値のときに外部トリガを検出すると周回
周期の進みを示す第1のカウンタをカウントアップし、
最後の計数値のときに外部トリガを検出すると周回周期
の遅れを示す第2のカウンタをカウントアップすること
により、精度内の外部トリガの進み遅れの状態を統計情
報として記憶する構成としても、本発明を同様に実施
し、同様の効果を得ることができる。In the above embodiment, the case where only the pass / fail of the circulation period accuracy is determined has been described. However, the present invention is not limited to this, and the determination circuit 17 is connected to the first and second counters.
When an external trigger is detected at the first count value of the two count values of the up counter 16 at the time of the determination, the first counter indicating the advance of the circulation cycle is counted up,
When the external trigger is detected at the last count value, the second counter indicating the delay of the circulation cycle is counted up to store the advance / delay state of the external trigger within the accuracy as statistical information. The invention can be carried out in the same manner and the same effects can be obtained.
【0033】また、上記実施例では、判定精度に対応し
たアップカウンタ16の計数値のときに外部トリガの有
無を検出する場合について説明したが、これに限らず、
外部トリガを検出したときのアップカウンタ16の計数
値が判定精度に対応しているか否かを確認して周回周期
精度を判定する構成としても、本発明を同様に実施して
同様の効果を得ることができる。その他、本発明はその
要旨を逸脱しない範囲で種々変形して実施できる。In the above embodiment, the case where the presence or absence of the external trigger is detected when the count value of the up-counter 16 corresponding to the determination accuracy is detected is described.
The present invention can be implemented in the same manner and the same effect can be obtained by determining whether or not the count value of the up counter 16 when the external trigger is detected corresponds to the determination accuracy and determining the circulation period accuracy. be able to. In addition, the present invention can be implemented with various modifications without departing from the scope of the invention.
【0034】[0034]
【発明の効果】以上説明したように本発明によれば、計
数クロック発生手段がトリガ信号の周回周期よりも短い
周期の計数クロックを発生し、基準値設定回路が、この
計数クロック発生手段による計数クロックの発生周期と
トリガ信号の周回周期との比に基づいてトリガ信号の周
期基準値を所定のビット数で設定し、基準値分配記憶回
路が、この基準値設定回路に設定される周期基準値のう
ち、トリガ信号の周回周期精度に対応してビットシフト
させたシフトアウト値を第1の記憶部に記憶し、且つこ
の第1の記憶部に記憶しないシフト値を第2の記憶部に
記憶し、ダウンカウンタが、あるトリガ信号が印加され
ると、基準値分配記憶回路に記憶された周期基準値のう
ち、第1の記憶部に記憶されるシフトアウト値を計数ク
ロック発生手段から受ける計数クロックに従って1回ダ
ウンカウントし、第2の記憶部に記憶されるシフト値を
計数クロック発生手段から受ける計数クロックに従って
複数回ダウンカウントし、アップカウンタが、このダウ
ンカウンタから各ダウンカウント終了に対応して送出さ
れるボローを計数し、判定回路が、このアップカウンタ
による計数値及びあるトリガ信号の次のトリガ信号が周
回周期精度に対応して検出されたとき、トリガ信号の周
回周期が周回周期精度内に有ると判定し、当該検出がさ
れないとき、トリガ信号の周回周期が周回周期精度内に
無いと判定し、判定結果を送出するので、タイマを用い
ない簡易な構成を実現し、縮小化を図ることができる周
回周期精度判定装置を提供できる。As described above, according to the present invention, the counting clock generating means generates a counting clock having a cycle shorter than the cycle period of the trigger signal, and the reference value setting circuit performs counting by the counting clock generating means. A cycle reference value of the trigger signal is set by a predetermined number of bits based on a ratio between a clock generation cycle and a cycle period of the trigger signal, and the reference value distribution storage circuit stores the cycle reference value set in the reference value setting circuit. And storing a shift-out value bit-shifted in accordance with the cycle accuracy of the trigger signal in the first storage unit, and storing a shift value not stored in the first storage unit in the second storage unit. When a certain trigger signal is applied to the down counter, the shift-out value stored in the first storage unit among the cycle reference values stored in the reference value distribution storage circuit is counted by the counting clock generation means. The count value is down-counted once according to the received count clock, and the shift value stored in the second storage unit is down-counted a plurality of times according to the count clock received from the count clock generating means. The borrow transmitted in response is counted, and when the count value of the up counter and the trigger signal next to the certain trigger signal are detected in accordance with the circulation cycle accuracy, the determination circuit determines the rotation cycle of the trigger signal. If it is determined that it is within the cycle accuracy, and if the detection is not performed, it is determined that the cycle of the trigger signal is not within the cycle accuracy, and the determination result is transmitted, so that a simple configuration without using a timer is realized and reduced. It is possible to provide an orbiting cycle accuracy determination device capable of realizing.
【図1】本発明の一実施例に係る周回周期精度判定装置
の構成を示すブロック図。FIG. 1 is a block diagram showing a configuration of a circulation period accuracy determination device according to one embodiment of the present invention.
【図2】同実施例におけるビットシフト動作を説明する
ための図。FIG. 2 is a diagram for explaining a bit shift operation in the embodiment.
【図3】同実施例における判定動作を説明するための
図。FIG. 3 is an exemplary view for explaining a determination operation in the embodiment.
【図4】従来の周回周期精度判定装置の構成を示すブロ
ック図。FIG. 4 is a block diagram showing a configuration of a conventional circulation period accuracy determination device.
【図5】従来の判定動作を説明するための図。FIG. 5 is a diagram for explaining a conventional determination operation.
11…設定レジスタ、12…ビットシフトレジスタ、1
2a…第1のシフトレジスタ、12b…第2のシフトレ
ジスタ、13…計数クロック発生部、14…ダウンカウ
ンタ、15…OR回路、16…アップカウンタ、17…
判定回路。11 setting register, 12 bit shift register, 1
2a: first shift register, 12b: second shift register, 13: counting clock generator, 14: down counter, 15: OR circuit, 16: up counter, 17 ...
Judgment circuit.
Claims (1)
精度を判定出力する周回周期判定装置において、 前記トリガ信号の周回周期よりも短い周期の計数クロッ
クを発生させる計数クロック発生手段と、 この計数クロック発生手段による計数クロックの発生周
期と前記トリガ信号の周回周期との比に基づいて、前記
トリガ信号の周期基準値が所定のビット数で設定される
基準値設定回路と、 この基準値設定回路に設定される周期基準値のうち、前
記トリガ信号の周回周期精度に対応してビットシフトさ
せたシフトアウト値を第1の記憶部に記憶し、且つこの
第1の記憶部に記憶しないシフト値を第2の記憶部に記
憶する基準値分配記憶回路と、 あるトリガ信号が印加されると、前記基準値分配記憶回
路に記憶された周期基準値のうち、前記第1の記憶部に
記憶されるシフトアウト値を前記計数クロック発生手段
から受ける計数クロックに従って1回ダウンカウント
し、前記第2の記憶部に記憶されるシフト値を前記計数
クロック発生手段から受ける計数クロックに従って複数
回ダウンカウントするダウンカウンタと、 このダウンカウンタから各ダウンカウント終了に対応し
て送出されるボローを計数するアップカウンタと、 このアップカウンタによる計数値及び前記あるトリガ信
号の次のトリガ信号が前記周回周期精度に対応して検出
されたとき、前記トリガ信号の周回周期が前記周回周期
精度内に有ると判定し、前記検出がされないとき、前記
トリガ信号の周回周期が前記周回周期精度内に無いと判
定し、当該判定結果を送出する判定回路とを備えたこと
を特徴とする周回周期精度判定装置。An apparatus for determining and outputting a cycle period accuracy of a periodically generated trigger signal, a count clock generating means for generating a count clock having a cycle shorter than the cycle of the trigger signal, A reference value setting circuit for setting a cycle reference value of the trigger signal with a predetermined number of bits based on a ratio between a generation cycle of a count clock by a clock generation means and a circulation cycle of the trigger signal; A shift-out value that is bit-shifted corresponding to the cycle accuracy of the trigger signal among the cycle reference values set in the first storage unit, and a shift value that is not stored in the first storage unit A reference value distribution storage circuit that stores the reference value in a second storage unit, and when a certain trigger signal is applied, among the cycle reference values stored in the reference value distribution storage circuit, 1 counts down the shift-out value stored in the first storage unit once in accordance with the count clock received from the count clock generator, and counts the shift value stored in the second storage unit from the count clock generator. A down counter that counts down a plurality of times in accordance with the following: an up counter that counts borrows transmitted from the down counter in response to the end of each down count; and a count value of the up counter and a trigger signal next to the certain trigger signal. When detected corresponding to the cycle period accuracy, it is determined that the cycle period of the trigger signal is within the cycle period accuracy, and when the detection is not performed, the cycle period of the trigger signal is within the cycle period accuracy. A circulating cycle, comprising: a determination circuit that determines that there is no result and sends the determination result. Degree determination device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17969693A JP3152807B2 (en) | 1993-07-21 | 1993-07-21 | Orbiting cycle accuracy judgment device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17969693A JP3152807B2 (en) | 1993-07-21 | 1993-07-21 | Orbiting cycle accuracy judgment device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0735875A JPH0735875A (en) | 1995-02-07 |
| JP3152807B2 true JP3152807B2 (en) | 2001-04-03 |
Family
ID=16070281
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17969693A Expired - Fee Related JP3152807B2 (en) | 1993-07-21 | 1993-07-21 | Orbiting cycle accuracy judgment device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3152807B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6280591B1 (en) | 1997-10-01 | 2001-08-28 | Fuji Xerox Co., Ltd. | Image forming method and image forming material |
| US7804174B2 (en) | 1998-12-14 | 2010-09-28 | Lg Display Co., Ltd. | TFT wiring comprising copper layer coated by metal and metal oxide |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3256954B2 (en) * | 1996-06-24 | 2002-02-18 | 横河電機株式会社 | Time measurement device |
-
1993
- 1993-07-21 JP JP17969693A patent/JP3152807B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6280591B1 (en) | 1997-10-01 | 2001-08-28 | Fuji Xerox Co., Ltd. | Image forming method and image forming material |
| US7804174B2 (en) | 1998-12-14 | 2010-09-28 | Lg Display Co., Ltd. | TFT wiring comprising copper layer coated by metal and metal oxide |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0735875A (en) | 1995-02-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5097490A (en) | Apparatus and method for improving the resolution with which a test signal is counted | |
| JPH0896575A (en) | Semiconductor storage device | |
| JPS5948660A (en) | Apparatus for measuring frequency and period | |
| US3981440A (en) | Digital signal detector | |
| US6586962B2 (en) | Semiconductor device | |
| US6008672A (en) | Input signal reading circuit having a small delay and a high fidelity | |
| WO2001031775A1 (en) | Apparatus for measuring intervals between signal edges | |
| JP3152807B2 (en) | Orbiting cycle accuracy judgment device | |
| EP0338528A2 (en) | Semiconductor memory | |
| CA2329374C (en) | A pulse width modulated weighing platform | |
| US6298360B1 (en) | Method and apparatus for generating a highly random number while using existing circuitry | |
| JPH02165721A (en) | Pulse output device | |
| US5982842A (en) | Output timer | |
| US5301219A (en) | Uninterrupted, enhanced-rate event sequencer with mixed-speed counter modules | |
| US5483553A (en) | Serial data transfer apparatus | |
| JP3048962B2 (en) | Time measuring method and time measuring system | |
| JPH06207971A (en) | Test signal generation circuit containing semiconductor device | |
| JP2598547Y2 (en) | Pattern generator for semiconductor test equipment | |
| JP2530040Y2 (en) | Full-duplex communication method by serial communication | |
| JPH02188836A (en) | Test mode setting circuit for microcomputer | |
| JPS60252269A (en) | Period detecting device | |
| KR970001369B1 (en) | Address decoder apparatus | |
| JP3022682B2 (en) | Memory circuit | |
| JPH0362236A (en) | Watchdog timer device | |
| SU951408A1 (en) | Device for checking memory units |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |