JPH03186772A - Cycle measuring device - Google Patents

Cycle measuring device

Info

Publication number
JPH03186772A
JPH03186772A JP32572789A JP32572789A JPH03186772A JP H03186772 A JPH03186772 A JP H03186772A JP 32572789 A JP32572789 A JP 32572789A JP 32572789 A JP32572789 A JP 32572789A JP H03186772 A JPH03186772 A JP H03186772A
Authority
JP
Japan
Prior art keywords
intersection
intersection point
time interval
latch
period
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
JP32572789A
Other languages
Japanese (ja)
Inventor
Hidenobu Nakanishi
秀信 中西
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP32572789A priority Critical patent/JPH03186772A/en
Publication of JPH03186772A publication Critical patent/JPH03186772A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、2種類以上の周期波が複合した複合周期波形
などの周期を計測し得る周期計測装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a period measuring device capable of measuring the period of a composite periodic waveform, etc., which is a combination of two or more types of periodic waves.

[従来の技術] 第3図は従来の周期計測装置を示すブロック図であり、
同図において、41は外部からの周期波信号を微分する
微分回路、42は予め設定した基準レベルの信号を発生
する基準レベル設定器、43はその周期波信号及び基準
レベルの信号を比較するコンパレータ、44はコンパレ
ータ43が方形波を出力する期間中に、発振器45が発
生するパルスをカウントするカウンタ、46はカウント
パルス数に対応した周期測定値を表示する表示器である
[Prior Art] FIG. 3 is a block diagram showing a conventional period measuring device.
In the figure, 41 is a differentiating circuit that differentiates a periodic wave signal from the outside, 42 is a reference level setter that generates a preset reference level signal, and 43 is a comparator that compares the periodic wave signal and the reference level signal. , 44 is a counter that counts the pulses generated by the oscillator 45 during the period when the comparator 43 outputs a square wave, and 46 is a display that displays a period measurement value corresponding to the number of counted pulses.

このように構成された従来装置の動作について説明する
The operation of the conventional device configured in this way will be explained.

まず、外部からの周期波を微分回路41にて微分し、そ
の微分パルスを基準レベル設定器42にて設定した基準
レベルの信号とコンパレータ43で比較する。このコン
パレータ43は周期波の微分値が基準レベルより大きく
なると同時に立ち上がる方形波信号を出力する。次に、
この方形波信号の立ち上がり部分(または立ち下がり部
分)をカウンタ44のスタート信号として、一方、次の
立ち上がり部分(または立ち下がり部分)をストップ信
号として、このカウンタ44を動作させる。これにより
、その方形波信号期間内のパルス数をカウントすること
で、1周期に相当するデータの計測、つまり人力周期波
形の1周期の計測が実施できることになる。
First, a periodic wave from the outside is differentiated by a differentiating circuit 41, and the differentiated pulse is compared with a reference level signal set by a reference level setter 42 by a comparator 43. This comparator 43 outputs a square wave signal that rises at the same time that the differential value of the periodic wave becomes larger than the reference level. next,
The counter 44 is operated using the rising portion (or falling portion) of this square wave signal as a start signal for the counter 44, and the next rising portion (or falling portion) as a stop signal. Thereby, by counting the number of pulses within the period of the square wave signal, it is possible to measure data corresponding to one period, that is, to measure one period of the human-powered periodic waveform.

〔発明が解決しようとする課題] 従来の周期計測装置は以上のように構成されているので
、単一成分の入力周期波形の周期計測は容易に行えるも
のの、2種類以上の周期波が複合した複合周期波形の周
期計測が安定的に行えないという欠点があった。すなわ
ち、複合周期波形では基準レベルの設定値により、例え
ば、第2図のql−allが立ち上がり、または立ち下
がりとして誤って判定される場合が生ずる。このような
場合には方形波の立ち上がり、立ち下がりタイミングに
おけるスタート、ストップの各トリガ信号間の幅が一定
とならず、不安定な周期計測を行うことになるなどの問
題があった。
[Problem to be solved by the invention] Since the conventional period measuring device is configured as described above, it is easy to measure the period of a single component input periodic waveform, but it is difficult to measure the period of a single component input periodic waveform. There was a drawback that period measurement of composite periodic waveforms could not be performed stably. That is, in the composite periodic waveform, depending on the set value of the reference level, for example, ql-all in FIG. 2 may be erroneously determined as rising or falling. In such a case, there is a problem that the width between the start and stop trigger signals at the rise and fall timings of the square wave is not constant, resulting in unstable period measurement.

本発明はこのような従来の問題を解消するためになされ
たものであり、複合周期波形についても安定で正確な周
期計測結果を得ることができる周期計測装置を提供する
ことを目的とする。
The present invention has been made to solve these conventional problems, and an object of the present invention is to provide a period measuring device that can obtain stable and accurate period measurement results even for complex periodic waveforms.

[課題を解決するための手段] 本発明の前記目的は、入力波形が基準レベルと交差する
交点を次々に検出する交点検出手段と、該交点検出手段
に夫々検出された第1番目の交点及び第2番目の交点間
の第1の時間間隔と前記第2番目の交点及び第3番目の
交点間の第2の時間間隔とを算出する第1の減算手段と
、前記交点検出手段に夫々検出された第n (nは3以
上の整数)番目の交点及び第n+1番目の交点間の第3
の時間間隔と前記第n+1番目の交点及び第n+2番目
の交点間の第4の時間間隔とを算出する第2の減算手段
と、前記第1及び第3の時間間隔の差及び前記第2及び
第4の時間間隔の差が夫々所定値以内にあるか否かを検
出するための比較手段と、前記第1番目の交点及び第n
番目の交点における前記入力波形のスロープの向きが同
一であるか否かを検出するスロープ方向検出手段と、前
記2つの時間間隔の差がいずれも所定値以内にあり、前
記スロープの方向が互いに同一であることが検出された
時に前記第1番目の交点及び第n番目の交点間の時間間
隔を算出する第3の減算手段とを備えたことを特徴とす
る周期計測装置によって達成される。
[Means for Solving the Problems] The object of the present invention is to provide intersection detection means for successively detecting intersection points where an input waveform intersects with a reference level; a first subtraction means for calculating a first time interval between the second intersection points and a second time interval between the second intersection point and the third intersection point; and a detection means for the intersection detection means, respectively. The third intersection between the n-th (n is an integer of 3 or more) intersection and the n+1-th intersection
and a fourth time interval between the n+1-th and n+2-th intersection points; a comparison means for detecting whether the difference between the fourth time intervals is within a predetermined value, and the first intersection point and the nth intersection point;
slope direction detection means for detecting whether the directions of the slopes of the input waveforms at the intersection point are the same; and the difference between the two time intervals is within a predetermined value, and the directions of the slopes are the same. This is achieved by a period measuring device characterized in that it is provided with a third subtraction means that calculates the time interval between the first intersection point and the nth intersection point when it is detected that .

[作用] 比較手段が上記2つの時間間隔の差が共に所定値以内に
あり、且つスロープ方向検出手段がスロープ方向が同一
であることを検出したときには、第1番目から第3番目
の交点間の波形と第n番目から第n+2番目の交点間の
波形とが同一であるとみなされ、これら2つの波形は夫
々第1の周期及び第2の周期と判断される。このとき第
3の減算手段は第1番目の交点と第n番目の交点との間
の時間間隔を算出し、これに適当な係数を掛は合わせる
ことにより周期が表示される。
[Operation] When the comparison means detects that the difference between the two time intervals is within a predetermined value, and the slope direction detection means detects that the slope directions are the same, the difference between the first to third intersection points is The waveform and the waveform between the n-th and n+2-th intersections are considered to be the same, and these two waveforms are determined to be the first period and the second period, respectively. At this time, the third subtraction means calculates the time interval between the first intersection point and the nth intersection point, and by multiplying this by an appropriate coefficient, the period is displayed.

[実施例] 以下に本発明の実施例を詳細に説明する。[Example] Examples of the present invention will be described in detail below.

第1図は本発明の入力周期波形の周期計測装置の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a period measuring device for input periodic waveforms according to the present invention.

同図において、12は基準レベルの信号を発生する基準
レベル設定器、13は複合周期波形などの入力周期波形
を前記基準レベルの信号と比較するコンパレータ、14
は発振器15が発生するパルスのうち、入力周期波形と
基準レベルとの隣接の交点間におけるパルス数をカウン
トするカウンタ、17は入力周期波形のスロープ方向、
つまり波形の立ち上がり方向または立ち下がり方向を検
出するスロープ方向検出回路、18は上記コンパレータ
!3が出力する前記交点データを動作点(トリガ信号)
として以下のラッチを制御するラッチコントロール回路
、19.20.21は、第2図に示すような各交点P1
、P2.P3におけるパルスカウント値と夫々の入力周
期のスロープ方向を保持するラッチである。
In the figure, 12 is a reference level setter that generates a reference level signal, 13 is a comparator that compares an input periodic waveform such as a composite periodic waveform with the reference level signal, and 14
is a counter that counts the number of pulses generated by the oscillator 15 between adjacent intersections between the input periodic waveform and the reference level; 17 is the slope direction of the input periodic waveform;
In other words, the slope direction detection circuit detects the rising direction or falling direction of the waveform, and 18 is the above-mentioned comparator! The intersection data outputted by 3 is the operating point (trigger signal)
The latch control circuit, 19.20.21, which controls the following latches as shown in FIG.
, P2. This is a latch that holds the pulse count value at P3 and the slope direction of each input cycle.

22、23.24はラッチであり各交点PL、P2.P
3が検出されるごとにラッチ24の出力がラッチ23に
入力され、ラッチ23の出力がラッチ22に入力され、
かつこれらの状態が保持される。25.26は隣接する
各ラッチ+9.20.21の出力どうしを減算する減算
器である。
22, 23, 24 are latches, and each intersection PL, P2 . P
Every time 3 is detected, the output of the latch 24 is input to the latch 23, the output of the latch 23 is input to the latch 22,
And these states are maintained. 25 and 26 are subtracters that subtract the outputs of the adjacent latches +9, 20, and 21.

27.28は隣接する各ラッチ22.23.24の出力
どうしを減算する減算器である。29はラッチ19.2
2の出力からスロープ方向が一致するか否かを検出する
スロープ方向検出回路であり、30は減算器25.27
の出力を比較するエリア比較回路であり、31は減算器
26.211の出力を比較するエリア比較回路である。
27 and 28 are subtracters that subtract the outputs of adjacent latches 22, 23, and 24 from each other. 29 is latch 19.2
2 is a slope direction detection circuit that detects whether the slope directions match from the output of 2, and 30 is a subtracter 25.27
31 is an area comparison circuit that compares the outputs of the subtracters 26 and 211.

32はスロープ方向検出回路29及び各エリア比較回路
30J1の出力の論理積をとるアンドゲート、33はア
ンドゲート32の出力に従ってラッチ1922の出力間
の減算をする減算器、34は減算器33の減算結果を表
示する表示器である。
32 is an AND gate that takes the logical product of the outputs of the slope direction detection circuit 29 and each area comparison circuit 30J1; 33 is a subtracter that performs subtraction between the outputs of the latch 1922 according to the output of the AND gate 32; and 34 is a subtraction of the subtracter 33. This is a display device that displays the results.

この実施例においては、交点検出手段はコンパレータ1
3に、第1の減算手段は減算器25.26に、第2の減
算手段は減算器27.28に、スロープ方向検出手段は
スロープ方向検出回路29に、比較手段はエリア比較回
路30.31に、そして第3の減算手段は減算器33に
夫々対応している。
In this embodiment, the intersection detection means is the comparator 1
3, the first subtraction means is connected to the subtracter 25.26, the second subtraction means is connected to the subtracter 27.28, the slope direction detection means is connected to the slope direction detection circuit 29, and the comparison means is connected to the area comparison circuit 30.31. and the third subtraction means correspond to the subtracter 33, respectively.

第2図は本発明により計測する複合周期波形の一例を示
す波形図であり、かかる構成になる周期計測装置の動作
について同図を用いて説明する。
FIG. 2 is a waveform diagram showing an example of a composite periodic waveform measured according to the present invention, and the operation of the periodic measuring device having such a configuration will be explained using the diagram.

まず、第2図に示すような複合周期波形をコンパレータ
13に入力し、基準レベル設定器12で設定した例えば
基準レベルLと比較する。次に、このコンパレータI3
が出力する出力パルスの立ち上がり及び立ち下がりのエ
ツジで計測したパルスカウント値とスロープ方向検出回
路18で検出したスロープ方向のデータを、ラッチコン
トロール回路18の制御のもと、ラッチ19.20.2
1に保持する。
First, a composite periodic waveform as shown in FIG. 2 is input to the comparator 13 and compared with, for example, a reference level L set by the reference level setter 12. Next, this comparator I3
Under the control of the latch control circuit 18, the pulse count value measured at the rising and falling edges of the output pulse output by the latches 19.20.2 and the slope direction data detected by the slope direction detection circuit 18 are
Hold at 1.

ここで、各ラッチ+9.20.21の動作点は、複合周
期波形と基準レベルLとの交点PL、  P2. P3
゜・・・となる。このとき、ラッチ22.23.24は
、そのラッチの動作点ごとにラッチ24の出力をラッチ
23に入力し、ラッチ23の出力をラッチ22に入力し
て、それぞれその状態を保持する。また、このうちラッ
チ24はカウンタ14の出力値と前記スロープ方向のデ
ータが入力されて、これを保持している。さらに、ラッ
チ19には交点P1でのパルスカウント値と複合周期波
形のスロープ方向のデータが入力され、ラッチ20には
交点P2でのパルスカウント値とスロープ方向のデータ
が入力され、ラッチ21には交点P3でのパルスカウン
ト値とスロープ方向のデータが入力され、それぞれ保持
される。
Here, the operating points of each latch +9, 20, 21 are the intersection points PL, P2. P3
゜... At this time, the latches 22, 23, and 24 input the output of the latch 24 to the latch 23 and the output of the latch 23 to the latch 22 for each operating point of the latch, and maintain their respective states. Furthermore, the latch 24 receives and holds the output value of the counter 14 and the data in the slope direction. Furthermore, the pulse count value at the intersection P1 and data in the slope direction of the composite periodic waveform are input to the latch 19, the pulse count value at the intersection P2 and data in the slope direction are input to the latch 20, and the latch 21 is inputted to the latch 19. The pulse count value and slope direction data at the intersection P3 are input and held respectively.

次に減算器25.26及び減算器27.28により、隣
接する各ラッチ19〜21の出力どうし及び22〜24
の出力どうしを減算する。すなわち、第2図について見
ると、減算器25ではdl=P2−PLを、減算器26
ではd2=P3−P2を、減算器27ではd3−P++
+1−Pn  (但し、n〉3)を、減算器28ではd
4=Pn+2−Pn+1をそれぞれ計算する。
Next, subtracters 25.26 and 27.28 compare the outputs of adjacent latches 19-21 and 22-24.
Subtract the outputs of . That is, looking at FIG. 2, the subtracter 25 calculates dl=P2-PL, and the subtracter 26
Then, the subtracter 27 calculates d2=P3-P2, and the subtracter 27 calculates d3-P++.
+1−Pn (where n>3), the subtracter 28 calculates d
4=Pn+2-Pn+1, respectively.

そして、これらの結果は各エリア比較回路30.31に
入力され、各エリアごとに、すなわち互いに同一波形の
各対応部分についてエリア比較回路30ではd3−di
の絶対値を、エリア比較回路31ではd4−d2の絶対
値をそれぞれ求める。また、このとき、ラッチ19とラ
ッチ22に保持されているスロープ方向を示すデータが
同一であるか否かをスロープ方向検出回路29で判定す
る。アンドゲート32はそのスロープ方向が一致し、か
つ各エリア比較回路30.31の比較結果が設定値以下
に収まった場合には、前記交点Pnの位置が前記複合周
期波形の第2周期の初めと判定し、減算器33を起動す
る。このとき、減算器33はラッチ19.22の出力差
、即ちPn−PLを求め、これを1周期のカウント値と
して計算する。そして、このようにして得た複合周期波
形の計測周期は、これに適当な係数処理を施すことで周
波数データに変換される。
These results are input to each area comparison circuit 30.31, and the area comparison circuit 30 calculates d3-di for each area, that is, for each corresponding portion of the same waveform.
The area comparison circuit 31 calculates the absolute value of d4-d2. At this time, the slope direction detection circuit 29 determines whether the data indicating the slope direction held in the latch 19 and the latch 22 are the same. If the slope directions of the AND gates 32 match and the comparison results of the area comparison circuits 30 and 31 fall below the set value, the position of the intersection Pn is the beginning of the second period of the composite periodic waveform. The subtractor 33 is activated. At this time, the subtracter 33 obtains the output difference of the latch 19.22, that is, Pn-PL, and calculates this as a count value for one cycle. The measurement period of the composite periodic waveform thus obtained is converted into frequency data by applying appropriate coefficient processing to the measurement period.

[発明の効果] 以上詳説したように、本発明の周期計測装置は入力波形
と基準レベルとが交差する第1番目及び第2番目の交点
間の時間間隔と第2番目及び第3番目の交点間の時間間
隔とを算出し、また、第n番目及び第n+1番目の交点
間の時間間隔と第n+1番目及び第n+2番目の交点間
の時間間隔とを算出してこれらの時間間隔の差を検出し
、さらに第1番目及び第n番目における入力波形のスロ
ープの向きが同一であるか否かを検出することにより、
第1番目の交点から第3番目の交点に至る波形が第n番
目の交点から第n+2番目の交点に至る波形と同一であ
る否かを検出するようにしているので、2種類以上の周
期波が複合した複合周期波形についても、オシロスコー
プなどを用いずに、1周期の計測を高精度に実施できる
という効果が得られる。
[Effects of the Invention] As explained in detail above, the period measuring device of the present invention has a period measuring device that is configured to measure the time interval between the first and second intersection points where the input waveform and the reference level intersect, and the time interval between the second and third intersection points. Also, calculate the time interval between the n-th and n+1-th intersections and the time interval between the n+1-th and n+2-th intersections, and calculate the difference between these time intervals. By detecting, and further detecting whether the directions of the slopes of the first and nth input waveforms are the same,
Since it is detected whether the waveform from the first intersection point to the third intersection point is the same as the waveform from the nth intersection point to the n+2th intersection point, it is possible to detect two or more types of periodic waves. Even with respect to a composite periodic waveform in which .

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

第1図は本発明の一実施例による周期計測装置を示すブ
ロック図、第2図は本発明により計測する複合周期波形
を示す波形図、第3図は従来の凰期計測装置を示すブロ
ック図である。 I3・・・・・・コンパレータ、 スロープ方向検出回路、 25〜28.33・・・・・・減算器、路。 14・・・・・・カウンタ、17・・・・・・19〜2
4・・・・・・ラッチ、 3031・・・・・・エリア比較回
FIG. 1 is a block diagram showing a period measuring device according to an embodiment of the present invention, FIG. 2 is a waveform diagram showing a composite periodic waveform measured by the present invention, and FIG. 3 is a block diagram showing a conventional period measuring device. It is. I3...Comparator, slope direction detection circuit, 25-28.33...Subtractor, path. 14...Counter, 17...19~2
4...Latch, 3031...Area comparison time

Claims (1)

【特許請求の範囲】[Claims] 入力波形が基準レベルと交差する交点を次々に検出する
交点検出手段と、該交点検出手段に夫々検出された第1
番目の交点及び第2番目の交点間の第1の時間間隔と前
記第2番目の交点及び第3番目の交点間の第2の時間間
隔とを算出する第1の減算手段と、前記交点検出手段に
夫々検出された第n(nは3以上の整数)番目の交点及
び第n+1番目の交点間の第3の時間間隔と前記第n+
1番目の交点及び第n+2番目の交点間の第4の時間間
隔とを算出する第2の減算手段と、前記第1及び第3の
時間間隔の差及び前記第2及び第4の時間間隔の差が夫
々所定値以内にあるか否かを検出するための比較手段と
、前記第1番目の交点及び第n番目の交点における前記
入力波形のスロープの向きが同一であるか否かを検出す
るスロープ方向検出手段と、前記2つの時間間隔の差が
いずれも所定値以内にあり、前記スロープの方向が互い
に同一であることが検出された際に前記第1番目の交点
及び第n番目の交点間の時間間隔を算出する第3の減算
手段とを備えたことを特徴とする周期計測装置。
Intersection detection means for successively detecting intersection points at which an input waveform intersects with a reference level;
a first subtraction means for calculating a first time interval between the second intersection point and the second intersection point and a second time interval between the second intersection point and the third intersection point, and the intersection point detection a third time interval between the n-th (n is an integer of 3 or more) intersection and the n+1-th intersection detected by the means, and the n+-th intersection;
a second subtraction means for calculating a fourth time interval between the first intersection point and the n+2th intersection point, and a difference between the first and third time intervals and a difference between the second and fourth time intervals; Comparing means for detecting whether the differences are within predetermined values, and detecting whether the directions of the slopes of the input waveform at the first intersection point and the n-th intersection point are the same. slope direction detection means, when it is detected that the difference between the two time intervals is within a predetermined value and the directions of the slopes are the same, the first intersection point and the nth intersection point; A period measuring device comprising: third subtraction means for calculating a time interval between periods.
JP32572789A 1989-12-15 1989-12-15 Cycle measuring device Pending JPH03186772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32572789A JPH03186772A (en) 1989-12-15 1989-12-15 Cycle measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32572789A JPH03186772A (en) 1989-12-15 1989-12-15 Cycle measuring device

Publications (1)

Publication Number Publication Date
JPH03186772A true JPH03186772A (en) 1991-08-14

Family

ID=18180007

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32572789A Pending JPH03186772A (en) 1989-12-15 1989-12-15 Cycle measuring device

Country Status (1)

Country Link
JP (1) JPH03186772A (en)

Similar Documents

Publication Publication Date Title
IE38360B1 (en) Method and apparatus for use in an inductive sensor coin selector
EP0146640B1 (en) Period detection circuit
US5233292A (en) Speed detector device for elevator
CN1122453A (en) Apparatus for measuring a pulse duration
US3962618A (en) Digital following error measurement system
JPS63226115A (en) Zero cross counter
JPH03186772A (en) Cycle measuring device
JP2549751B2 (en) Pulse position measurement type instrument drive circuit
JP3516778B2 (en) Frequency measurement method for semiconductor test equipment
JPH04346069A (en) Speed signal generating circuit
JPS5615040A (en) Mark detector
JPS6042896B2 (en) Weighing machine abnormality detection device
JP3031970B2 (en) Filter circuit
JPH01212368A (en) Pulse width measuring circuit
JP3419033B2 (en) Pulse width control circuit and pulse width measurement circuit
SU1084834A1 (en) Device for recognizing straight lines and edges in images of objects
JP2774588B2 (en) Electronic watt-hour meter
SU1269167A2 (en) Device for checking and registering operation of equipment
JPH08233842A (en) Speed detection device and abnormality detection method thereof
JPH04269674A (en) Apparatus for measuring length of transmission line
JPH0341772B2 (en)
SU1213426A2 (en) Apparatus for detecting and measuring signal extremums
SU1709234A1 (en) Digital phasemeter
SU630742A1 (en) Broadband reversible phase discriminator
JPH0241528Y2 (en)