JPS5848868A - Measuring method for pulse frequency - Google Patents

Measuring method for pulse frequency

Info

Publication number
JPS5848868A
JPS5848868A JP14725481A JP14725481A JPS5848868A JP S5848868 A JPS5848868 A JP S5848868A JP 14725481 A JP14725481 A JP 14725481A JP 14725481 A JP14725481 A JP 14725481A JP S5848868 A JPS5848868 A JP S5848868A
Authority
JP
Japan
Prior art keywords
pulse
pulses
input
frequency
time
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
JP14725481A
Other languages
Japanese (ja)
Inventor
Masaki Obara
正樹 小原
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Fuji Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd, Fuji Electric Manufacturing Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP14725481A priority Critical patent/JPS5848868A/en
Priority to DE19823234575 priority patent/DE3234575A1/en
Publication of JPS5848868A publication Critical patent/JPS5848868A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/02Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage
    • G01R23/10Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage by converting frequency into a train of pulses, which are then counted, i.e. converting the signal into a square wave
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/48Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage
    • G01P3/481Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals
    • G01P3/489Digital circuits therefor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/02Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage

Abstract

PURPOSE:To precisely and quickly measure the frequency of an input pulse by generating standard pulses and timing pulses corresponding to a measuring period and measuring the number of standard pulses between input pulses and timing pulses continuously twice to calculate the input pulse frequency from the measured value. CONSTITUTION:Standard pulses, A, timing pulses B and auxiliary timing pulses S are found to count up input pulses E. The time from just after the arrival of the last input pulse in a measuring period Tn-1 to just after the arrival of the last input pulse in a measuring period Tn is proportional to (Pn-1-Pn+PT) and the number of input pulses arriving within the time coincides with the number Qn of input pules arriving within the measuring period Tn. Therefore if kXQn/(Pn-1-Pn+PT) is operated, a measuring output precisely proportional to the frequency of an input pulse to be detected can be found highly accurately for a short period.

Description

【発明の詳細な説明】 本発明は、到来する入力パルスから、これらの入力パル
スの周波数に比例するデジタル量を出力するパルス周波
数測定方法に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a pulse frequency measurement method that outputs from incoming input pulses a digital quantity that is proportional to the frequency of these input pulses.

マイクロコンピュータの普及にともなって、電動機の回
転速度を直接的にデジタル制御するl) DC装置の開
発がさかんになってきた。か\るDDCDC装置いては
回転速度をデジタル量で検出するこ吉が要求される。こ
のために回転軸に取付けたパルスゼネレータから検出す
べき回転速度に比例した周波数をもつパルスが取り出さ
れる。パルスゼネレータが発生するパルスは波形整形回
路を介してパルスカウンタを含む測定回路に入力される
。測定回路においては、例えば一定の測定時間内に到来
する入力パルスが積算計数される。しかしながら、か\
る単純な方式の場合lこは、よく知られているように1
±1の計数誤差1が生じるため、低速にな゛るほと相対
的に検出誤差が大きくなる。この検出誤差を小さくする
ためには入力パルスを積算計数する時間(測定時間)を
大きく設定する必要がある。こうした場合には、それに
応じて検出遅れが大となり、これはDDCDC装置度制
御性能を低下させるという不都合をもたらす。
With the spread of microcomputers, the development of DC devices that directly digitally control the rotational speed of electric motors has become active. In such a DDCDC device, it is necessary to detect the rotational speed as a digital quantity. For this purpose, pulses having a frequency proportional to the rotational speed to be detected are extracted from a pulse generator attached to the rotating shaft. Pulses generated by the pulse generator are input to a measurement circuit including a pulse counter via a waveform shaping circuit. In the measurement circuit, for example, input pulses arriving within a certain measurement time are integrated and counted. However, \
In the case of a simple method, as is well known, 1
Since a counting error of ±1 occurs, the detection error becomes relatively larger as the speed becomes lower. In order to reduce this detection error, it is necessary to set the time for integrating and counting input pulses (measurement time) to be large. In such a case, the detection delay increases accordingly, which brings about the inconvenience of deteriorating the DDCDC device control performance.

上述の不都合を解消し、とりわけ定格速度領域において
短時間で高精度に速度を検出するために、高周波の一定
周期の基準パルスを用意しておき、入力パルスが所定個
数カウントされる間に発生する基準パルスの個数をカウ
ントし、このカウントした基準パルスの個数の逆数を計
算することによって、入力パルスの周波数、すなわち検
出すべき速度に比例したデジタル量を得ることが既に提
案されている(%開開55−37707号公報、または
昭和55年5月20日オーム社発行1%許パルス回路技
術事典」第520頁参照)。
In order to eliminate the above-mentioned inconvenience and detect speed with high precision in a short time, especially in the rated speed range, a high-frequency reference pulse with a constant period is prepared and is generated while a predetermined number of input pulses are counted. It has already been proposed to obtain a digital quantity proportional to the frequency of the input pulse, ie the speed to be detected, by counting the number of reference pulses and calculating the reciprocal of the counted number of reference pulses (% open). (See Japanese Patent Publication No. 55-37707, or page 520 of "1% Permissible Pulse Circuit Technology Encyclopedia" published by Ohmsha on May 20, 1980).

しかしながら、上述の公知θ)方法は、広い速度範囲に
わたって可変速制御を行なうような用途にあっては、測
定時間(したがって、検出遅れ)が大幅に変動するとい
う問題点を有する。1)DC装置にとって、速度検出部
は制御対象の一部とみなせるので、上述のことは制御対
象の伝達関数が速度に依存して変動することを意味する
。さらに、この公知の方法は低速域では非常lこ多くの
入力パルスをカウントしなければならないため、非常に
長い測定時間を賛し、これに応じて許容できないはどの
検出遅れを生じる。前記公報に記載の発明においては、
この点の問題を解決するためlこ、速度領域を判別して
これが起動時の低速域にある場合には、最初に述べた単
純な方式、すなわち一定の測定時間内に到来する入力パ
ルスの個数をカウントする方式にて速度を検出すること
を提案している。
However, the above-mentioned known θ) method has a problem in that the measurement time (and therefore the detection delay) varies considerably in applications where variable speed control is performed over a wide speed range. 1) For a DC device, the speed detection section can be considered as part of the controlled object, so the above means that the transfer function of the controlled object varies depending on the speed. Furthermore, this known method requires a very large number of input pulses to be counted in the low speed range, resulting in very long measurement times and correspondingly unacceptable detection delays. In the invention described in the above publication,
To solve this problem, we can determine the speed range and, if it is in the low speed range at startup, use the simple method described at the beginning, that is, the number of input pulses that arrive within a certain measurement time. It is proposed that the speed be detected by counting the speed.

本発明の目的は、入力パルスの周波数が広範囲にわたっ
て変化する場合にも、短時間に高精度にて、しかも一定
の時間間隔で繰返し人力パルスの周波数を測定するこさ
を可能にすることにある。
An object of the present invention is to make it possible to repeatedly measure the frequency of a human pulse at regular time intervals in a short time with high precision even when the frequency of the input pulse changes over a wide range.

この目的は、本発明によれば、一定の高い周波数(fo
)を有する基準パルスと測定時間に相当する一定の周期
(1゛)を有するタイミングパルスとを発生させ、時間
的互いに隣り合う2つのタイミングパルス間の一定時間
(1″)内に到来する入力パルスの個数Qと、各タイミ
ングパルス発生直前の入力パル 5− ス到来時点から癌該タイミングパルス発生時点までの間
に発生した基準パルスの個数(乃とを計数し、各タイミ
ングパルス発生時点毎に、前記基準パルスの個数(P)
の前回のnt数値Pn−1および今回の計数値Pnと、
前記入力パルスの個数(Qの今回の計数1直Qnとから
、 n k 豐□ Pn−IPn+p。
This purpose, according to the invention, is achieved by a constant high frequency (fo
) and a timing pulse having a constant period (1゛) corresponding to the measurement time, and an input pulse that arrives within a constant time (1'') between two timing pulses that are temporally adjacent to each other. The number Q of reference pulses generated between the time of arrival of the input pulse immediately before the generation of each timing pulse and the time of occurrence of the timing pulse, and the number of reference pulses (Q) generated between the time of arrival of the input pulse immediately before each timing pulse generation and the time of generation of the timing pulse, and the Number of reference pulses (P)
The previous nt value Pn-1 and the current count value Pn,
From the number of input pulses (Q's current count 1 round Qn), n k 豐□ Pn-IPn+p.

(但し、k一定数、 PT =f−T一定数)なる演算
を実行し、この演算結果を出力することによって達成さ
れる。
(where k is a constant number, PT = f - T is a constant number) and is achieved by executing the operation and outputting the result of this operation.

しかして、本発明によれば、か\る構成により測定時間
(周波数測定演算サイクル)をタイミングパルスの周期
(1)に相当する一定値に保つことができる。しかも、
人力パルスの1′±1の計数1差“は演算式中の項(P
n−1−Pn)によって補償されているので、測定時間
(すなわちタイミングパルスの周期T)を小さく設定し
ても十分な測定精度を達成することができ、したがっ゛
C短時間に高梢贋にて周波数を測定することができる。
Therefore, according to the present invention, the measurement time (frequency measurement calculation cycle) can be kept at a constant value corresponding to the period (1) of the timing pulse with the above configuration. Moreover,
The term (P
n-1-Pn), sufficient measurement accuracy can be achieved even if the measurement time (i.e., the period T of the timing pulse) is set small. frequency can be measured.

本発明の= 6− 方法の場合に、測定精度はほとんど基準パルスの周波数
によって決まり、基準パルスの周波数を十分高くすれば
申し分のない測定精度を得ることができる。
In the case of the =6- method of the invention, the measurement accuracy is determined mostly by the frequency of the reference pulse, and if the frequency of the reference pulse is made high enough, satisfactory measurement accuracy can be obtained.

タイミングパルスは基準パルスからつくり出すことがで
きる。すなわち、基準パルスを所定数敗)だけ計数する
毎にパルスを発生させ、これをタイミングパルスとして
使用すればよい。
Timing pulses can be created from reference pulses. That is, a pulse may be generated every time a predetermined number of reference pulses are counted, and this pulse may be used as a timing pulse.

各計数値をもとに演算を実行する手段としてマイクロコ
ンピュータ内のクロックパルス出力を基準パルスとして
使用するこ吉ができる。この場合にタイミングパルスは
マイクロコンピュータ内のCPU #こ対する割込信号
として使用することができ、CPUはこの割込信号を受
けつけてプログラムメモリ(とくにROM )に記憶さ
れている割込プログラムにしたがって、今回の計数値Q
n、Pnを取り込む。
As a means of executing calculations based on each count value, it is possible to use the clock pulse output within the microcomputer as a reference pulse. In this case, the timing pulse can be used as an interrupt signal to the CPU in the microcomputer, and the CPU receives this interrupt signal and executes the interrupt according to the interrupt program stored in the program memory (especially ROM). Current count Q
Take in n and Pn.

前回の計数値Pn−1としては、マイクロコンピュータ
内のデータメモリ(とくにRAM )に格納しておいた
ものを取り出して使用すればよい。
As the previous count value Pn-1, one stored in the data memory (especially RAM) in the microcomputer may be retrieved and used.

以下、図面を参照しながら、本発明をさらに詳細に説明
する。
Hereinafter, the present invention will be explained in more detail with reference to the drawings.

第1図は本発明方法を実施するための装置の一実施例を
示し、第2図はそれの要部の動作波形A〜Eを示す。
FIG. 1 shows an embodiment of an apparatus for carrying out the method of the present invention, and FIG. 2 shows operational waveforms A to E of essential parts thereof.

1は波形整形回路であり、例えば電動機の回転軸に取り
付けられたパルスゼネレータが発生するパルスDを一定
時間幅の矩形パルスEに整形する。
Reference numeral 1 denotes a waveform shaping circuit which shapes a pulse D generated by, for example, a pulse generator attached to a rotating shaft of an electric motor into a rectangular pulse E having a constant time width.

3は入力パルスカウント回路であり、波形整形後の入力
パルスEをカウントする。4は基準パルスカウント回路
であり、基準パルスAをカウントする。5,6はラッチ
回路であり、タイミングパルスBによる保持指令により
カウント回路3,4の計数内容を保持する。7はタイマ
回路であり、基準パルスAを予め定めた個数PTだけカ
ウントする毎にタイミングパルスBを発生するとともに
、これに対して、このタイミングパルスBによりラッチ
回路5.6がカウント回路3.4の計数内容を正常に保
持するに足るだけの僅かの時間遅れで補助タイミングパ
ルスCを発生する。補助タイミングパルスCはカウント
回路3の零クリア信号として使用される。カウント回路
4は入力パルスEを零クリア信号として導かれる。
3 is an input pulse counting circuit which counts input pulses E after waveform shaping. 4 is a reference pulse count circuit which counts reference pulses A; Reference numerals 5 and 6 indicate latch circuits, which hold the count contents of the count circuits 3 and 4 in response to a hold command from the timing pulse B. 7 is a timer circuit, which generates a timing pulse B every time a predetermined number PT of reference pulses A is counted, and in response to this timing pulse B, the latch circuit 5.6 is activated by the count circuit 3.4. The auxiliary timing pulse C is generated with a slight time delay sufficient to maintain the count contents normally. The auxiliary timing pulse C is used as a zero clear signal for the count circuit 3. The count circuit 4 is guided by the input pulse E as a zero clear signal.

8はCPU、9はメモリ、10はデータ授受回路であり
、これらはラッチ回路5,6ととも共通バスで接続され
ている。CPU 8が出力する内部クロックパルスが基
準パルス人として使用されている。
8 is a CPU, 9 is a memory, and 10 is a data exchange circuit, which are also connected to the latch circuits 5 and 6 by a common bus. The internal clock pulse output by CPU 8 is used as a reference pulse.

タイマ回路7が発生するタイミングパルスBはCPU8
への割込信号としても用いられている。CPU8は割込
信号Bを受けとって現在実行中の処理を中断してメモリ
9内のプログラムメモリ(キくにROM )に内蔵する
後述の割込プログラムにしたがって、タイミングパルス
Bの発生時点でラッチ回路5.6が保持したカウント回
路3,4の計数内容Q 、 l)を取り込んで所定の演
算処理を施し、入力パルスEの周波数に比例する測定出
力をデータ授受回路10に出力する。11は制御用マイ
クロコンピュータであり、例えば電動機回転速度をDD
C方式にて制御するのに用いられる。制御用マイクロコ
ンピュータ11は回転速度の測定値が必要なとき、デー
タ授受回路10の内容を取り込む。
The timing pulse B generated by the timer circuit 7 is generated by the CPU 8.
It is also used as an interrupt signal. Upon receiving the interrupt signal B, the CPU 8 interrupts the process currently being executed and starts the latch circuit 5 at the time of generation of the timing pulse B according to an interrupt program (to be described later) stored in the program memory (Kikuni ROM) in the memory 9. .6 takes in the count contents Q, l) of the count circuits 3 and 4 held, performs predetermined arithmetic processing, and outputs a measurement output proportional to the frequency of the input pulse E to the data exchange circuit 10. 11 is a control microcomputer, for example, the motor rotation speed is controlled by DD.
It is used for control using the C method. The control microcomputer 11 takes in the contents of the data exchange circuit 10 when a measured value of the rotational speed is required.

−19= 第2図には第1図における各部のパルス信4A〜Eの時
間経過の一例が示されている。
-19= FIG. 2 shows an example of the time course of the pulse signals 4A to 4E of each part in FIG. 1.

タイマ回路7によって一定周波数fGをもつ基準パルス
を所定数FTだけ計数する毎にタイミングパルスBを発
生させることにより、一定時間T(=Pr/f、)の測
定周期を生じさせることができる。
By generating a timing pulse B every time the timer circuit 7 counts a predetermined number FT of reference pulses having a constant frequency fG, a measurement cycle of a constant time T (=Pr/f) can be generated.

補助タイミングパルスCの発生時点は実質的にタイミン
グパルスBの発生時点と同時であるき見なし得るので、
n番目の測定周期Tnの終了直後にCP[J8が取り込
む保持回路5の内容Qは測定周期Tn内に到来した入力
パルスEの個数に相当オる。
Since the time point at which the auxiliary timing pulse C is generated can be considered to be substantially the same as the time point at which the timing pulse B is generated,
The content Q of the holding circuit 5 taken in by CP[J8 immediately after the end of the n-th measurement period Tn is equivalent to the number of input pulses E that have arrived within the measurement period Tn.

これを今回値としてQnにて表わすものとする。才た、
それと同時にCPU8が取り込む保持回路6の内容Pは
測定周期Tn内で最後に到来した入力パルス(Qn番目
の入力パルス)から測定周期Tnの終了時点までの時間
内に発生した基準パルスの個数に和尚する。これを今回
値としてPnにて表わし、前回の測定周期Tn−1にお
ける対応する時間内に発生した基準パルスの個数を前回
値としてI)nl  にて表わすものとする。
Let this be the current value and be expressed as Qn. Talented,
At the same time, the content P of the holding circuit 6 taken in by the CPU 8 is calculated based on the number of reference pulses generated within the time from the last input pulse (Qnth input pulse) to the end of the measurement period Tn. do. This is expressed as the current value by Pn, and the number of reference pulses generated within the corresponding time in the previous measurement period Tn-1 is expressed as the previous value by I)nl.

10− 第2図から分るように測定周期Tnl  内で最後の入
力パルスの到来時点の直後から測定周期Tn内での最後
の入力パルスの到来時点の直後才での時間は(Pn−1
−))n+ PT)に比例し、この時間内に到来した入
力パルスの個数は測定周期Tn内に到来した人力パルス
の個数Qnと一致する。したがってQn なる演算を実行ずれば、検出すべき回転速度、ずなわぢ
入力パルスの周波数に正確に比例した測定出力を得るこ
とができる。これが本発明の測定方法の基本原理であり
、これによれば短時間に高精度lこて、しかも一定時間
間隔Tにて繰返し測定結果を求めることができる。
10- As can be seen from Fig. 2, the time from immediately after the arrival of the last input pulse within the measurement period Tnl to immediately after the arrival of the last input pulse within the measurement period Tn is (Pn-1).
-))n+PT), and the number of input pulses arriving within this time matches the number Qn of manual pulses arriving within the measuring period Tn. Therefore, by executing the calculation Qn, it is possible to obtain a measurement output that is accurately proportional to the rotational speed to be detected and the frequency of the Zunawa input pulse. This is the basic principle of the measuring method of the present invention, and according to this, measurement results can be obtained repeatedly with high accuracy in a short time and at constant time intervals T.

さらに本発明の測定方法は、入力パルスの周期が測定周
期Tを上回るような超低周波域での測定出力も得ること
ができるように発展させることができる。もちろん、こ
のような超低周波域での測定時間を一定値Tに保持する
ことはあきらめなけれはならない。
Furthermore, the measurement method of the present invention can be developed so that measurement output can also be obtained in a very low frequency range where the period of the input pulse exceeds the measurement period T. Of course, it is necessary to give up on maintaining the measurement time at a constant value T in such a very low frequency range.

例えば第3図1と示すように入力パルスの周期Tがタイ
ミングパルスHの周期Tよりも長い場合tこは、次のよ
うにして測定1H力を求めることができる。今、測定周
期I11. iこおいて1つの入力パルスが存在し、Q
=Qn = i 、 P =pnなる計数結果カ得られ
たものとする。この人力パルスの前の人力パルスが到来
した測定周期ではP−Poなる計数結果が得られたもの
とし、またこの測定周期と今回の測定周期との間に入力
パルスが到来しなかった測定周期m回存在していたもの
とする。入力パルスの時間間隔は、 (Po−1−m*lPr )−Pn+PTによって計測
するこさができる。したがって、先と同じ演算式を用い
て、この式中の値Pn刊として(Po十m PT )を
代入すればよい。つまり、その都度の計数結果Qの値が
零かどうかを判別して、零でなければ式(1)による演
算を実行し、次回の演算に備えて、 Pn刊←P。
For example, when the period T of the input pulse is longer than the period T of the timing pulse H, as shown in FIG. 3, the measured 1H force can be determined as follows. Now, the measurement period I11. There is one input pulse at i, and Q
It is assumed that the following counting results are obtained: =Qn = i, P =pn. It is assumed that a counting result of P-Po was obtained in the measurement cycle in which the manual pulse before this manual pulse arrived, and in the measurement cycle m in which no input pulse arrived between this measurement cycle and the current measurement cycle. Assume that it has existed twice. The time interval of input pulses can be measured by (Po-1-m*lPr)-Pn+PT. Therefore, using the same arithmetic expression as before, it is sufficient to substitute (Po0m PT ) as the value Pn in this expression. In other words, it is determined whether the value of the counting result Q at each time is zero, and if it is not zero, the calculation according to formula (1) is executed, and in preparation for the next calculation.

なる記憶値pn4の更新を行ない、零〇)ときは測定出
力の更新は行なわないで、次回の演算に備えてPn−1
←Pn1 +PT なる記憶値Pn刊の更新を行なえばよく、このとき今回
の計数結果Pnは無視される。
The stored value pn4 is updated to
←Pn1 +PT It is sufficient to update the stored value Pn, and at this time, the current count result Pn is ignored.

第4図は上述の原理にしたがったメモリ9内のROMに
内賊された割込プログラムの手順の概略を示すフローチ
ャートである。CPU 8はタイミングパルス13を割
込信号として受は取って現存実行中の処理を中断して割
込プログラムにしたがって、まずラッチ回路5,6によ
って保持したカウント回路3.4の今回の計数内容Qn
 、 Pnを順次読み込み、Qnが零であるかどうかを
判定する。Qn ”=;、 。
FIG. 4 is a flowchart outlining the procedure of an interrupt program stolen into the ROM in the memory 9 according to the above-described principle. The CPU 8 receives the timing pulse 13 as an interrupt signal, interrupts the currently executing process, and, according to the interrupt program, first calculates the current count content Qn of the count circuit 3.4 held by the latch circuits 5 and 6.
, Pn are sequentially read and it is determined whether Qn is zero. Qn”=;, .

のときは、メモリ9内の1(JJ iと格納して2いた
pnlを取り出して先に示した式(1)にしたがった演
算を実行し、演算結果をデータ授受回路に出力し、そし
て次回の演算のためにメモリ9内のRAMの記憶値Pn
−1を今回の計数tPnに更新してから、割込信号Bに
よって実行を中断した処理を再開し、次の割込信号Bを
待つ。Qn=Q のときは、メモリ9内のRAMの記憶
値に一定値P工を加算してその13− 結果を新たな記憶値としてRAMに格納してから、割込
信号Bによって中断した処理プログラムの実行を再開す
る。
When , pnl stored as 1 (JJ i and 2 in memory 9) is retrieved, the calculation is performed according to the equation (1) shown above, the calculation result is output to the data exchange circuit, and the next time The memory value Pn of the RAM in the memory 9 for the calculation of
After updating -1 to the current count tPn, the process whose execution was interrupted by the interrupt signal B is resumed, and the next interrupt signal B is waited for. When Qn=Q, a certain value P is added to the value stored in RAM in memory 9, the result is stored in RAM as a new stored value, and then the processing program is interrupted by interrupt signal B. Resumes execution.

第5図は、本発明を実施するための装置の別の実施例を
示し、第6図はそれの要部の動作波形を示す。
FIG. 5 shows another embodiment of the apparatus for carrying out the present invention, and FIG. 6 shows operational waveforms of the main parts thereof.

この実施例が第1図の実施例と相違するところは、入力
パルスカウント回路3′および基準パルスカウント回路
4′が追加され、カウント回路3と4とを、そしてカウ
ント回路3/、4/とをそれぞれ対にこれらを交互に選
択して動作させるようにしている点である。タイマ回路
7はこの場合には一系列のタイミングパルスBを発生し
さえすればよい。
This embodiment differs from the embodiment shown in FIG. 1 in that an input pulse count circuit 3' and a reference pulse count circuit 4' are added, and count circuits 3 and 4 are The point is that these are alternately selected and operated in pairs. In this case, the timer circuit 7 only needs to generate one series of timing pulses B.

タイミングパルスBは分周回路12によって分周される
。分周回路12から得られる相反する2つの信号G、H
iこよって交互に入力パルスカウント回路3,3′の入
力ゲートが制御される。入力パルスカウント回路3,3
′の入力ゲートを通過した入力パルスI、には基準パル
スカウント回路4.4′のクリア信号として用いられる
。基準パルスカウ14− ント回路4.4′は相反する選択信号G、Hによって制
御される入力ゲートを介して基準パルスAを導かれる。
Timing pulse B is frequency-divided by frequency divider circuit 12 . Two contradictory signals G and H obtained from the frequency dividing circuit 12
The input gates of the input pulse counting circuits 3 and 3' are controlled alternately by the input signal i. Input pulse count circuit 3, 3
The input pulse I, which has passed through the input gate of ', is used as a clear signal for the reference pulse count circuit 4.4'. Reference pulse counting circuit 4.4' receives reference pulse A via input gates controlled by opposing selection signals G, H.

データ入力回路は分周回路12の一方の出力(i号、例
えばH信号から、どぢらのカウンタ対が選択されている
かを判別するのに役立つ。
The data input circuit serves to determine which counter pair is selected from one output (i, eg, H signal) of the frequency divider circuit 12.

例えば選択信号Gが論理レベル”L”で、選択信号Hが
論理レベル”H”である周期においては、基準パルスA
は入力ゲートを介してカウント回路4の計測パルス信号
Jとなり、波形整形後の入力パルスEは入力ゲートを介
してカウンタ回路3の計測信号およびカウント回路4の
クリア信号を兼ねた信号Iとなる。この場合にカウント
回路3は一定時間T内の入力パルスの個数Qを計測し、
カウンタ4はタイミングパルスBの直前の入力パルス到
来時点から当該タイミングパルスBの発生時点才での間
の基準パルスの個数Pを計測する。一定時間Tが経過後
、タイマ回路7から信号Bが出力されると、分周回路1
2の出力信号G、Hが反転し、カウント回路3.4が計
測禁止となり、カウント回路a/、4/の計測禁止が解
除される。このときCi)UはタイミングパルスBを割
込信号として受けとり、現在実行中の処理を中断し、W
υ込プログラムを実行する。まず、データ入力回路13
0)内容を読み込み、現在計測禁止であるカウンタ回路
を判断する(読込む信号は分周回路12からのカウンタ
選択信号11であり、この信号Hの論理レベルがII 
L 1であれば現在計測禁止にあるθ)はカウンタ回路
3,4である。)。その後、カウンタ回路3の内容をQ
、とじて、才たカウンタ回路4の内容をPnとして取り
込み、次の計測のためにカウンタ回路3,4を零クリア
する(カウンタ回路4の零クリアは必ず必要というわけ
ではない。)。
For example, in a period in which the selection signal G is at the logic level "L" and the selection signal H is at the logic level "H", the reference pulse A
becomes the measurement pulse signal J of the count circuit 4 via the input gate, and the input pulse E after waveform shaping becomes the signal I serving as the measurement signal of the counter circuit 3 and the clear signal of the count circuit 4 via the input gate. In this case, the counting circuit 3 measures the number Q of input pulses within a certain time T,
The counter 4 measures the number P of reference pulses between the time when the input pulse immediately before the timing pulse B arrives and the time when the timing pulse B is generated. When the signal B is output from the timer circuit 7 after a certain period of time T has elapsed, the frequency divider circuit 1
The output signals G and H of 2 are inverted, the count circuits 3 and 4 are prohibited from measuring, and the prohibition of measurement of the count circuits a/ and 4/ is canceled. At this time, Ci)U receives the timing pulse B as an interrupt signal, interrupts the process currently being executed, and
Execute the υinclude program. First, data input circuit 13
0) Read the contents and determine which counter circuit is currently prohibited from measurement (The signal to be read is the counter selection signal 11 from the frequency divider circuit 12, and the logic level of this signal H is II
If L1, θ) whose measurement is currently prohibited is the counter circuits 3 and 4. ). After that, the contents of counter circuit 3 are Q
, the contents of the counter circuit 4 are taken in as Pn, and the counter circuits 3 and 4 are cleared to zero for the next measurement (clearing the counter circuit 4 to zero is not always necessary).

そしてメモリ8内のRAMに格納しておいた一回前のカ
ウンタ回路4′の値pn1  を取り出す。以下の動作
は第1図の実施例において説明したのと同様であり、や
はり例えば回転機の回転速度を高速から超低速まで検出
することができる。
Then, the previous value pn1 of the counter circuit 4' stored in the RAM in the memory 8 is retrieved. The following operations are similar to those described in the embodiment of FIG. 1, and the rotational speed of a rotating machine can be detected from high speed to very low speed.

tJX1図および第2図の実施例ではCPU、メモリ。In the embodiments shown in tJX1 and FIG. 2, the CPU and memory.

カウンタ回路を分けて記載したが、CPU、メモリ。Although the counter circuit is described separately, it includes the CPU and memory.

カウンタがワンチップにまとめられたワンチップマイコ
ンを使用することができる。また、タイマ回路およびカ
ウンタ回路の部分を、カウンタが数り 個収納されたカランLSIで実現することもできる。
A one-chip microcontroller with counters integrated into one chip can be used. Further, the timer circuit and counter circuit portions can also be realized by a Callan LSI in which several counters are housed.

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

第1図は本発明方法を実施するための装置の一実施例を
示すブロック図、第2図および第3図は第1図の実施例
の動作を説明するための動作波形図、第4図は第1図の
実施例における割込プログラムの手順の概略を示すフロ
ーチャート、第5図は本発明方法を実施するための装置
の他の実施例を示すブロック図、第6図に[4図の実施
例の動作を説明するための波形図である。 ]・・・波形整形回路、3.3’・・・入力パルスカウ
ント回路、4.4’・・・基準パルスカウント回路、5
゜6・・・ラッチ回路、7・・・タイマ回路、8・・・
CPU19・・・メモリ、10・・・データ授受回路、
11・・・制御用マイクロコンピュータ。 =17− i1  回 72 図 73回 Tガー17x
FIG. 1 is a block diagram showing an embodiment of an apparatus for carrying out the method of the present invention, FIGS. 2 and 3 are operational waveform diagrams for explaining the operation of the embodiment of FIG. 1, and FIG. 1 is a flowchart showing an outline of the procedure of the interrupt program in the embodiment of FIG. 1, FIG. 5 is a block diagram showing another embodiment of the apparatus for carrying out the method of the present invention, and FIG. FIG. 3 is a waveform diagram for explaining the operation of the embodiment. ]...Waveform shaping circuit, 3.3'...Input pulse count circuit, 4.4'...Reference pulse count circuit, 5
゜6...Latch circuit, 7...Timer circuit, 8...
CPU19...memory, 10...data exchange circuit,
11... Control microcomputer. =17-i1 times 72 Figure 73 times T-gar 17x

Claims (1)

【特許請求の範囲】 1)到来する入力パルスからそれの周波数に比例したデ
ジグル量を導き出すパルス周波数測定方法において、一
定の高い周波数(fo)をもつ基準パルスと一定周期α
)をもつタイミングパルスとを発生させ、時間的に隣り
合う2つのタイミングパルスの間の一定時間内に到来す
る入力パルスの個数(Qと、各タイミングパルス発生時
点の直前における入力パルス到来時点から尚該タイミン
グパルス発生時点までの間に発生する基準パルスの個数
(P)とをそれぞれ計測し、各タイミングパルス発生時
点毎に、前記入力パルスの個数qの今回の計測値Qnと
前記基準パルスの個数(P)の今回の計測値Pnおよび
前回の計測値P。−1とから、 ’  ”n−1”n 十PT (但し、k二定数、PT = fo・T一定数)なる演
算を実行し、その演算結果を出力するようにしたことを
特徴とするパルス周波にノ測定方法。 2)特許請刃〈(力!硝囲第1項記載の方法1・こむい
て、前記入力パルスは検出すべき速度1こ比例した周波
数を有するパルスであることを特許とするパルス周波数
測定方法。 3)特許請求の範囲第1項または第2項記載の方法(こ
おい−C1前記タイミングパルスは基準パルスを所定個
数(PT)だけ計測するjFf−に発生させた一定周期
(11)をもつパルスであることを特徴さするパルス周
波数測定方法。 4)特許請求の範囲第1項ないし第3項のいす相かに記
載の方法において、前記演■:の実行はマイクロコンピ
ュータを用いて行なうことを特徴とするパルス周波数測
定方法。 5)%許請求の範囲第4項、記載の方法tこおいて、基
準パルスとしてマイクロコンピュータの内ff[(クロ
ックパルスを用いることを特徴とするパルス周波数測定
方法。
[Claims] 1) In a pulse frequency measurement method for deriving an amount of dejiggling proportional to the frequency of an incoming input pulse, a reference pulse having a constant high frequency (fo) and a constant period α are used.
), and the number of input pulses (Q) that arrive within a certain period of time between two temporally adjacent timing pulses, and The number (P) of reference pulses generated up to the timing pulse generation time is measured, and at each timing pulse generation time, the current measured value Qn of the number q of input pulses and the number of reference pulses are calculated. From the current measurement value Pn of (P) and the previous measurement value P.-1, perform the calculation '``n-1''n 0PT (where k is a constant, PT = fo・T is a constant). A method for measuring pulse frequency, characterized in that the calculation result is output. A pulse frequency measuring method patented in that the pulse has a frequency proportional to the power velocity 1. 3) The method according to claim 1 or 2 (Koi-C1) The timing pulse is a reference pulse. A pulse frequency measuring method characterized in that the pulse frequency is a pulse having a constant period (11) generated at jFf- for measuring a predetermined number (PT). 4) Chair phase according to claims 1 to 3. 3. The pulse frequency measuring method according to claim 1, wherein step (1) is performed using a microcomputer. 5) A pulse frequency measuring method according to claim 4, characterized in that an internal clock pulse of a microcomputer is used as a reference pulse.
JP14725481A 1981-09-18 1981-09-18 Measuring method for pulse frequency Pending JPS5848868A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP14725481A JPS5848868A (en) 1981-09-18 1981-09-18 Measuring method for pulse frequency
DE19823234575 DE3234575A1 (en) 1981-09-18 1982-09-17 Method and arrangement for measuring frequencies

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14725481A JPS5848868A (en) 1981-09-18 1981-09-18 Measuring method for pulse frequency

Publications (1)

Publication Number Publication Date
JPS5848868A true JPS5848868A (en) 1983-03-22

Family

ID=15426066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14725481A Pending JPS5848868A (en) 1981-09-18 1981-09-18 Measuring method for pulse frequency

Country Status (2)

Country Link
JP (1) JPS5848868A (en)
DE (1) DE3234575A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS646875A (en) * 1987-06-30 1989-01-11 Yokogawa Electric Corp Frequency measuring instrument
JPH01124773A (en) * 1987-11-09 1989-05-17 Yokogawa Electric Corp Frequency measuring instrument
JPH01241919A (en) * 1988-03-23 1989-09-26 Ono Sokki Co Ltd Counter system
JPH0515184A (en) * 1991-07-03 1993-01-22 Matsushita Electric Ind Co Ltd Speed detector

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60216262A (en) * 1984-04-12 1985-10-29 Hitachi Ltd Method and apparatus for detecting position and speed
GB8704499D0 (en) * 1987-02-26 1987-04-01 Lucas Ind Plc Circuit arrangement
US4799178A (en) * 1987-05-26 1989-01-17 Delco Electronics Corporation Method and apparatus for detecting rotational speed
DE3817705C3 (en) * 1987-05-26 1994-12-22 Delco Electronics Corp Method for the approximate determination of low speeds
DE3815535A1 (en) * 1988-05-06 1989-11-16 Heidelberger Druckmasch Ag METHOD AND ARRANGEMENT FOR MEASURING THE SPEED OF A MACHINE
DE4119378C1 (en) * 1990-11-13 1992-10-01 Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung Ev, 8000 Muenchen, De
US5410581A (en) * 1994-05-02 1995-04-25 Motorola, Inc. Apparatus and method for determining a time that a system's main power was inactive
DE19530677A1 (en) * 1995-08-21 1997-02-27 Siemens Ag Velocity or rotation measurement method
DE102006026921A1 (en) * 2006-06-09 2007-12-20 Siemens Ag Method for detecting the driving speed of a motor vehicle and device for carrying out the method
WO2009034829A1 (en) * 2007-09-11 2009-03-19 Kabushiki Kaisha Yaskawa Denki Velocity detection method and motor control device using the method
DE102008013288A1 (en) * 2008-03-07 2009-09-10 Bbh Systems Gmbh Method and device for determining the speed, in particular the rotational speed of a rotating machine element

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4942376A (en) * 1972-04-28 1974-04-20
JPS5748664A (en) * 1980-09-06 1982-03-20 Yaskawa Electric Mfg Co Ltd Pulse frequency detector

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4942376A (en) * 1972-04-28 1974-04-20
JPS5748664A (en) * 1980-09-06 1982-03-20 Yaskawa Electric Mfg Co Ltd Pulse frequency detector

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS646875A (en) * 1987-06-30 1989-01-11 Yokogawa Electric Corp Frequency measuring instrument
JPH01124773A (en) * 1987-11-09 1989-05-17 Yokogawa Electric Corp Frequency measuring instrument
JPH01241919A (en) * 1988-03-23 1989-09-26 Ono Sokki Co Ltd Counter system
JPH0515184A (en) * 1991-07-03 1993-01-22 Matsushita Electric Ind Co Ltd Speed detector

Also Published As

Publication number Publication date
DE3234575A1 (en) 1983-03-31

Similar Documents

Publication Publication Date Title
JPS5848868A (en) Measuring method for pulse frequency
KR20040068971A (en) High accuracy method for determining the frequency of a pulse input signal over a wide frequency range
JPS5913957A (en) Speed detecting circuit
JPS59214921A (en) Pulse frequency detector
JPS59225354A (en) Speed detecting method
JPS6319831B2 (en)
JPS6346648B2 (en)
JPS6061662A (en) Digital speed detection system
JPS61284664A (en) Measuring method for rotational frequency
JPH01174982A (en) Detection of acceleration
JPH04233467A (en) Method and apparatus for measuring speed of motor
JPS6298265A (en) Speed detecting device
JPH01321372A (en) Detection of acceleration
JP2827446B2 (en) Motor speed detection method
JPS58105072A (en) Device for measuring frequency of alternating current voltage
JPH0340847B2 (en)
JPH0712861A (en) Method and apparatus for measuring pulse frequency
JPS58120167A (en) Detection of speed
JP2568121Y2 (en) Average value period measurement device
JP2531808Y2 (en) Ripple voltage reduction device
KR940004394B1 (en) Speed measuring method and device
SU1679399A1 (en) Meter of amplitude of harmonic signal
JPH043225Y2 (en)
JPH0751631Y2 (en) CPU runaway detection circuit
JPS59225356A (en) Speed detecting system