JPS58205864A - Apparatus for measuring pulse frequency - Google Patents

Apparatus for measuring pulse frequency

Info

Publication number
JPS58205864A
JPS58205864A JP8805782A JP8805782A JPS58205864A JP S58205864 A JPS58205864 A JP S58205864A JP 8805782 A JP8805782 A JP 8805782A JP 8805782 A JP8805782 A JP 8805782A JP S58205864 A JPS58205864 A JP S58205864A
Authority
JP
Japan
Prior art keywords
pulse
counter
measuring device
frequency
input
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
JP8805782A
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 JP8805782A priority Critical patent/JPS58205864A/en
Publication of JPS58205864A publication Critical patent/JPS58205864A/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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

PURPOSE:To make it possible to measure pulse frequency in good preciseness even when input frequency is chaned over a wide range, by dividing the number of pulses arriving within a predetermined time interval by a net time required in the arrival of said number of pulses. CONSTITUTION:A loop counter 2 generates a timing pulse B with a definite cycle by repeating operation counting the internal reference pulse A of a CPU circuit 8 until predetermined numbers PT. On the other hand, an input pulse C is inputted in a counter 3 through the matching circuit 1 and a counter 4 is cleared zero each time by an input pulse D. When the CPU circuit 8 receives the pulse B as an interruption signal, a retention indicating signal is imparted to latch circuits 5, 6, 7 and the valves Qn, Mn, Pn thereof are taken in. In addition, the previous values Qn-1, Mn-1, Pn-1 stored in a memory circuit 9 are taken out and predetermined operation is carried out corresponding to the decided result according to the size of Mn and Mn-1 to output the operated result to a data receiving circuit 10 as a frequency measuring value.

Description

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

マイクロコンピュータの普及にともなって、電動機の回
転速度を直接的にデジタル制御するDDC装置の開発が
さかんになってきた。か瓦るDDC装置においては回転
速度をデジタル量で検出することが要求される。この丸
めに回転軸に取付けたパルスゼネレータから検出すべき
回転速度に比例した周波数をもつパルスが取シ出される
。ノ(ルスゼネレータが発生するパルスは波形整形回路
を介してパルスカウンタを含む測定回路に入力される。
With the spread of microcomputers, development of DDC devices that directly digitally control the rotational speed of electric motors has become active. In a fragile DDC device, it is required to detect the rotational speed as a digital quantity. A pulse having a frequency proportional to the rotational speed to be detected is extracted from a pulse generator attached to the rotating shaft. The pulses generated by the pulse generator are input to a measurement circuit including a pulse counter via a waveform shaping circuit.

測定回路においては、例えば一定の測定時間内に到来す
る入力パルスが積算計数される。しかしながら、か〜る
単純な方式の場合には、よく知られているように6±1
の計数誤差”が生じるため、低速になるほど相対的に検
出誤差が大きくなる。この検出誤差を小さくするために
は入カッ(ルスを積算計数する時間(測定時間)を大き
く設定する必要がある。こうした場合には、それに応じ
て検出遅れが大となシ、これはDDC装置の速度制御性
能を低下させるという不都合をもたらす。
In the measurement circuit, for example, input pulses arriving within a certain measurement time are integrated and counted. However, in the case of such a simple method, as is well known, 6±1
The lower the speed, the larger the detection error becomes.In order to reduce this detection error, it is necessary to set the time for integrating the input pulses (measurement time) to be large. In such a case, the detection delay becomes correspondingly large, which brings about the inconvenience of deteriorating the speed control performance of the DDC device.

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

しかしながら、上述の公知の方法は、広い速度範囲にわ
たって可変速制御を行なうような用途にあっては、測定
時間(したがって、検出遅れ)が大幅に変動するという
問題点を有する。DDC装置にとって、速度検出部は制
御対象の一部とみなせるので、上述のことは制御対象の
伝達関数が速度に依存して変動することを意味する。さ
らに、この公知め方法は低速域では非常に多くの入力パ
ルスをカウントしなければならないため、非常圧長い測
定時間を要し、これに応じて許容できないほどの検出遅
れを生じる。前記公報に記載の発明においては、この点
の問題を解決するために、速度領域を判別してこれが起
動時の低速域にある場合には、最初に述べた単純な方式
、すなわち一定の測定時間内に到来する入力パルスの個
数をカウントする方式にて速度を検出することを提案し
ている。
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. For the DDC 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 extremely long measurement times and correspondingly unacceptable detection delays. In the invention described in the above-mentioned publication, in order to solve this problem, the speed range is determined, and if it is in the low speed range at startup, the first method is used, that is, a fixed measurement time is used. It is proposed to detect the speed by counting the number of input pulses that arrive within a certain period of time.

本発明の目的は、入力パルスの周波数が広範囲にわたっ
て変化する場合にも、一定の時間間隔で繰返し入力パル
スの周波数を精度よく測定することを可能にすることに
ある。
An object of the present invention is to enable accurate measurement of the frequency of an input pulse repeatedly at regular time intervals even when the frequency of the input pulse changes over a wide range.

この目的は、本発明によれば、到来する入力パルスから
それの周波数に比例したデジタル出力を発生するパルス
周波数測定装置を、次の第1.第2および第3のカウン
タと、マイクローンピユータの如きデジタル演算処理装
置とから構成することによって達成される。
This purpose, according to the invention, is to provide a pulse frequency measuring device which generates from an incoming input pulse a digital output proportional to its frequency. This is achieved by comprising second and third counters and a digital arithmetic processing device such as a micron computer.

すなわち、第10カウンタは、一定周期の高周波の基準
パルスを所定個数PTだげカウントする動作を繰シ返え
して行なうことによシ、一定周期をもつタイミングパル
スを発生するものである。第2のカウンタは、到来する
入力パルスを所定個数(Ko)までカウント1゛する動
作を繰シ返えすものであシ、この場合に、その所定個数
koは、測定すべき周波数が最大値にあるとき前記のタ
イぽングパルスの1周期内に到来する入力パルスの個数
よりも大きく選定されている。第3のカウンタは、到来
する入力パルスによりクリアされながら前記基準パルス
をカウントするものである。そして、デジタル処理装置
は、第1のカウンタからタイミングパルスを受は取る毎
に、第1.第2および第3のカウンタのカウント内容を
取シ込んでは次の如き演算処理を行なって所望の周波数
測定値を出力する。す表わち、第1.第2および第3の
カウンタのカウント内容の今回数シ込んだ値をそれぞれ
、Qn = MnおよびPユとし、また前回域シ込んで
記憶しておいた値をQn−1、Mn−1およびPnとす
ると、第20カウンタのカウント内容の今回値Mnと前
回値Mn−1との大小判定結果に応じて、M21≧Mn
−1のとき Mn<Mニー1のとき 力る演算を実行して、その演算結果をJli1波数測定
値として出力する。
That is, the tenth counter generates a timing pulse having a constant period by repeatedly counting a predetermined number PT of high-frequency reference pulses having a constant period. The second counter repeats the operation of counting incoming input pulses up to a predetermined number (Ko). The number of input pulses is selected to be larger than the number of input pulses that arrive within one period of the typing pulse. The third counter counts the reference pulse while being cleared by an incoming input pulse. Each time the digital processing device receives and receives a timing pulse from the first counter, the first . The count contents of the second and third counters are input and the following arithmetic processing is performed to output a desired frequency measurement value. In other words, 1st. The current values of the count contents of the second and third counters are set as Qn = Mn and Pyu, respectively, and the values stored in the previous range are set as Qn-1, Mn-1 and Pn. Then, M21≧Mn according to the result of determining the magnitude of the current value Mn and the previous value Mn-1 of the count contents of the 20th counter.
-1, when Mn<M knee 1, force calculation is executed, and the calculation result is output as a Jli1 wave number measurement value.

本発明によれば、かへる構成によシ、入力パルスの周波
数が広範囲にわたって変化する場合にも、タイミングパ
ルスの周期に相当する一定時間間隔にて繰シ返えし入力
パルスの周波数を高精度で測定することができる。
According to the present invention, even when the frequency of the input pulse changes over a wide range, the frequency of the input pulse can be increased repeatedly at constant time intervals corresponding to the period of the timing pulse. Can be measured with precision.

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

第1図は本発明によるパルス周波数測定装置の実施例を
示し、第2図はそれの要部の動作波形図を示すものであ
る。
FIG. 1 shows an embodiment of a pulse frequency measuring device according to the present invention, and FIG. 2 shows an operating waveform diagram of the main part thereof.

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

とくに、この場合にパルス整形回路1の出カッλルスD
は、後述のCPU回路8の内部基準パルス(クロックパ
ルス)AK同期化することが好ましい。2はその基準パ
ルスを所定個数F=までカウントする動作を繰シ返すこ
とによシ一定周期のタイミングパルスBを発生するルー
プカウンタ回路(第1のカウンタ)である。3は、パル
ス整形回路1を介して導かれる入力パルスDを所定個数
KOまでカウントする動作を繰シ返えすループカウンタ
回路(第2のカウンタ)である。その所定個数KOは、
入力パルスDの想定される最大周波数のときにタイミン
グパルスBの1周期内に到来する入力パルスの個数よシ
も大きく設定されている。4は基準パルスをカウントす
るカウンタ回路(第3のカウンタ)であシ、到来する入
力パルスDによりその都度零クリアされる。各カウンタ
2,3および4に付属してラッチ回路5゜6および7が
設けられている。
In particular, in this case, the output pulse D of the pulse shaping circuit 1
is preferably synchronized with an internal reference pulse (clock pulse) AK of the CPU circuit 8, which will be described later. 2 is a loop counter circuit (first counter) that generates a timing pulse B of a constant period by repeating the operation of counting the reference pulses up to a predetermined number F=. Reference numeral 3 denotes a loop counter circuit (second counter) that repeatedly counts the input pulses D guided through the pulse shaping circuit 1 up to a predetermined number KO. The predetermined number of KOs is
The number of input pulses that arrive within one cycle of the timing pulse B when the input pulse D is at the assumed maximum frequency is also set to be larger. 4 is a counter circuit (third counter) for counting reference pulses, and is cleared to zero each time by an input pulse D that arrives. Associated with each counter 2, 3 and 4 is a latch circuit 5.6 and 7.

8.9.10はマイクロコンピュータを構成しておシ、
8はCPU回路、9はメモリ回路(ROMおよびRAM
)、10はデータ授受回路である。
8.9.10 configures a microcomputer,
8 is a CPU circuit, 9 is a memory circuit (ROM and RAM
), 10 is a data exchange circuit.

11は、例えば電動機速度のためのDDC装置を構成す
る制御用マイクロコンピュータである。CPU回路8の
内部基準パルス人は、既に述べたように第1のカウンタ
2および第3のカウンタ4に導かれている。第1のカウ
ンタ2が発生するタイミングバルスはCPU回路8に割
込信号として与えられる。ループカウンタ回路2,3.
Fツチ回路5,6,7、CPU回路8、メモリ回路9お
よびデータ授受回路10は共通バスで接続されている。
Reference numeral 11 denotes a control microcomputer that constitutes a DDC device for controlling motor speed, for example. The internal reference pulses of the CPU circuit 8 are guided to the first counter 2 and the third counter 4 as already mentioned. The timing pulse generated by the first counter 2 is given to the CPU circuit 8 as an interrupt signal. Loop counter circuit 2, 3.
The F-Touch circuits 5, 6, and 7, the CPU circuit 8, the memory circuit 9, and the data exchange circuit 10 are connected by a common bus.

CPU回路8はメモリ回路9が内蔵するプログラムにし
たがって動作する。ループカウンタ回路2.3(7)ル
ープ数FT、KoはCPU回路8がプログラムにしたが
って設定することができる。CPU回路8は、ループカ
ウンタ回路2が発生する一定周期のタイミングパルスB
を割込信号として受は取ると、それまで実行中の処理を
中断して、メモリ回路9内のROMに格納されている所
定の割込プログラムを実行する。この割込プログラムに
おいては、まずラッチ回路fs、6.7に対して保持指
令信号Eを同時に与える。それから、ループカウンタ2
に付属するラッチ回路5に保持された値Qn。
The CPU circuit 8 operates according to a program contained in the memory circuit 9. Loop counter circuit 2.3 (7) The number of loops FT and Ko can be set by the CPU circuit 8 according to a program. The CPU circuit 8 receives a timing pulse B of a constant period generated by the loop counter circuit 2.
When received as an interrupt signal, the process currently being executed is interrupted and a predetermined interrupt program stored in the ROM in the memory circuit 9 is executed. In this interrupt program, first, a hold command signal E is simultaneously applied to the latch circuit fs, 6.7. Then loop counter 2
The value Qn held in the latch circuit 5 attached to.

ループカウンタ回路3に付属するラッチ回路6に保持さ
れた値Mn、カウンタ回路4に付属するラッチ回路7に
保持された値Pnを取込み、そして前回の演算サイクル
の際に取込んでメモリ回路9内のRAMに記憶しておい
た対応する前回値Qn−1IMn−11Pn−1を取シ
出し、前述のあらかじめ設定した値PTおよびKOとを
合わせて、次の如きパルス周波数測定のための演算処理
を実行する。すなわち、MnとMn−1との大小判別を
行なってから、その判別結果に応じてMn≧Mu−1の
ときは、なる演算を実行し、またMIX <Mn−1の
ときは、なる演算を実行する。この場合に、必要に応じ
て演算結果に対して比例定数を考慮することができるこ
とは言うまでもない。演算終了後、演算結果が所望の測
定値としてデータ授受回路10に出力されるとともに、
次回の演算サイクルに備えて今回数シ込んだQユ9M□
、Pnをメモリ回路9内のRAMK格納する。
The value Mn held in the latch circuit 6 attached to the loop counter circuit 3 and the value Pn held in the latch circuit 7 attached to the counter circuit 4 are taken in, and the values taken in during the previous calculation cycle are stored in the memory circuit 9. Take out the corresponding previous value Qn-1IMn-11Pn-1 stored in the RAM of Execute. That is, after determining the size of Mn and Mn-1, according to the result of the determination, if Mn≧Mu-1, the following operation is executed, and when MIX <Mn-1, the following operation is executed. Execute. In this case, it goes without saying that a proportionality constant can be taken into account for the calculation results if necessary. After the calculation is completed, the calculation result is output as a desired measurement value to the data exchange circuit 10, and
Qyu9M□ which has been inserted several times this time in preparation for the next calculation cycle
, Pn are stored in RAMK in the memory circuit 9.

#!2図には主要部の動作波形が示されている。#! Figure 2 shows the operating waveforms of the main parts.

第2図のA−Flは、それぞれ基準パルスA、タイミン
クパルス(割込信号)B、波形整形前の入力パルスC9
波形整形稜の入カパルスD、保持指令信fEをそれぞれ
示している。F、G、Hはそれぞれカウンタ2,3.4
の動作を図解している。
A-Fl in Fig. 2 is a reference pulse A, a timing pulse (interrupt signal) B, and an input pulse C9 before waveform shaping, respectively.
The input pulse D and hold command signal fE of the waveform shaping edge are shown, respectively. F, G, H are counters 2, 3.4 respectively
The operation is illustrated.

この第2図を参照しながら、本発明装置におけるパルス
周波数測定のため演算原理を説明する。
Referring to FIG. 2, the principle of calculation for pulse frequency measurement in the apparatus of the present invention will be explained.

本発明装置のパルス周波数測定のため演算原理は、2つ
の隣シ合う保持指令信号Eの時間間隔内に到来した入力
パルスの個数を、その個数の入力パルスが到来するのに
要した正味の時間で割算することによって精確外周波数
を測定することを基本とするものである。
The calculation principle for pulse frequency measurement of the device of the present invention is to calculate the number of input pulses that have arrived within the time interval of two adjacent holding command signals E, and calculate the net time required for that number of input pulses to arrive. The basic idea is to measure the out-of-precision frequency by dividing by .

ループカウンタ回路3のループ数KOは想定される最大
周波数のときに基準パルス数PTに相当する時間内に到
来する入力パルス数よシも大きく選定されているので、
すなわち最大周波数のときでもループカウンタ回路3の
繰)返えし周期はループカウンタ2の一定の繰シ返えし
周期を下回ることはない。したがって、2つの隣シ合う
保持指令信号Eの時間間隔内に到来した入力パルスの個
数は、ラッチ回路6によって保持されたループカウンタ
回路30カウント数の今回値Mnと前回値Mn−1との
間の差分M、−M□−1によって与えられる。ただし、
今回値Mnが前回値Mn−1よシも小さいときには、そ
の差分Mn−MB−1にループ数KOが加算されなけれ
ばならない。
The number of loops KO of the loop counter circuit 3 is selected to be larger than the number of input pulses that arrive within the time corresponding to the reference pulse number PT at the expected maximum frequency, so
That is, even at the maximum frequency, the repetition period of the loop counter circuit 3 does not fall below the constant repetition period of the loop counter 2. Therefore, the number of input pulses that arrive within the time interval of two adjacent hold command signals E is between the current value Mn and the previous value Mn-1 of the loop counter circuit 30 count held by the latch circuit 6. It is given by the difference M, -M□-1. however,
When the current value Mn is smaller than the previous value Mn-1, the number of loops KO must be added to the difference Mn-MB-1.

2つの隣シ合う保持指令信号Eの時間間隔内に到来した
入力パルスの個数MnMn−1もしくは、MニーMn 
−l十Koが発生するのに要した正味の時間は、前回の
保持指令信号の発生直前の入力パルス到来直後から今回
の保持指令信号の発生直前の入力パルス到来までの時間
に相当する。この時間は、第2図から分かるように、M
、とMu−1との間の大小関係には関係なく、前回の保
持指令信号の発生直後から今回の保持指令信号の発生ま
での時間から、カウンタ回路4に付属するラッチ回路7
が今回保持したカウント数Pnと前回保持したカウント
数Pn−1との差分に相当する時間を差し引いた時間で
ある。しかも、前回の保持指令信号の発生直後から今回
の保持指令信号発生までの時間は、同様に第2図から分
かるように、基準パルス数PTに相当する一定時間に、
ラッチ回路5によって保持されたループカウンタ回路2
の今回値Q、と前同値Qn−1との差分に相当する。し
たがって、前記の正味時間は、 PT+Qn  Qn−t  Pn+Pn−tにて求める
ことができる。それゆえ、パルス周波数は・MnとMn
−1との間の大小関係に応じて、Mn≧Mn−1のとき Mn<Mn−tのとき なる演算を裏打することによシ求めることができる。
The number of input pulses MnMn-1 or Mn Mn that arrived within the time interval of two adjacent hold command signals E
The net time required for -10Ko to occur corresponds to the time from immediately after the arrival of the input pulse immediately before the generation of the previous hold command signal to the arrival of the input pulse immediately before the generation of the current hold command signal. As can be seen from Figure 2, this time is M
, and Mu-1, the latch circuit 7 attached to the counter circuit 4 is determined based on the time from immediately after the generation of the previous hold command signal to the generation of the current hold command signal.
is the time obtained by subtracting the time corresponding to the difference between the count number Pn held this time and the count number Pn-1 held last time. Moreover, as can be seen from FIG. 2, the time from immediately after the generation of the previous hold command signal to the generation of the current hold command signal is a constant time corresponding to the reference pulse number PT.
Loop counter circuit 2 held by latch circuit 5
It corresponds to the difference between the current value Q and the previous same value Qn-1. Therefore, the above net time can be determined as PT+Qn Qn-t Pn+Pn-t. Therefore, the pulse frequency is ・Mn and Mn
-1, it can be determined by confirming the calculation that when Mn≧Mn-1, Mn<Mn-t.

以上から分かるように、本発明によれば、正味の時間を
用いて演算するので、高精度の測定値を得ることができ
る。しかも、広い周波数にわたって、測定のための演算
周期を基準パルス数PTに相当する一定時間に保って、
測定値を繰シ返えし求めることができる。
As can be seen from the above, according to the present invention, since calculation is performed using net time, highly accurate measured values can be obtained. Moreover, over a wide range of frequencies, the calculation cycle for measurement is kept at a constant time corresponding to the reference pulse number PT,
Measured values can be obtained repeatedly.

ループカウンタ回路2の設定ループ数、すなわち基準パ
ルス数に相当する時間を上回るほど、入力パルスが極低
周波領域にあるときにも、高精度が要求される場合には
、先にも述べたように、ループ数PTをプログラムにょ
ル変更すればよい。また、ループカウンタ回路3のルー
プ数KOも同様にプログラムによって設定変更でき、こ
れにょシ測定可能な最大周波数を高めることもできる。
As mentioned earlier, if high accuracy is required even when the input pulse is in the extremely low frequency region, the time corresponding to the set loop number of the loop counter circuit 2, that is, the reference pulse number, is exceeded. Then, the number of loops PT can be changed in the program. Further, the number of loops KO of the loop counter circuit 3 can be similarly set and changed by a program, and in this way, the maximum measurable frequency can also be increased.

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

第1図は本発明装置の一実施例を示すブロック図、第2
図はその実施例の動作を説明するための要部の動作波形
図である。 符号説明 1・・・・・・パルス整形回路、2・・・・・・ループ
カウンタ回路(第1のカウンタ)、3・・・・・・ルー
プカウンタ回路(第2のカウンタ)、4・・曲カウンタ
回路(#l!3のカウンタ)、5〜7・曲・ラッチ回路
、8・・・・・・CPU、9・・・・・・メモリ、1o
・・間データ授受回路前 1 図 第25II ビn−1ビル
FIG. 1 is a block diagram showing one embodiment of the device of the present invention, and FIG.
The figure is an operational waveform diagram of main parts for explaining the operation of the embodiment. Description of symbols 1... Pulse shaping circuit, 2... Loop counter circuit (first counter), 3... Loop counter circuit (second counter), 4... Song counter circuit (#l!3 counter), 5 to 7, song/latch circuit, 8...CPU, 9...Memory, 1o
...In front of the data transfer circuit 1 Figure 25II Bin-1 Building

Claims (1)

【特許請求の範囲】 l)到来する入力パルスからそれの周波数に比例したデ
ジタル出力を発生するパルス周波数測定装置において、 一定周期の高周波の基準パルスを所定個数(PT)だけ
カウントすゐ動作を繰シ返えすことによJ) 一定周期
をもつタイミングパルスを発生する第1のカウンタと、 測定すべき周波数が最大値にあるとき前記タイミングパ
ルスの1周期内に到来する入力パルスの個数よシも大き
い所定個数(Ko )まで、到来する入力パルスをカウ
ントする動作を繰シ返えす第2のカウンタと、 到来する入力パルスによシフリアされながら前記基準パ
ルスをカウントする第3のカウンタと、前記タイミング
パルスを受は取る毎に、第1゜第2および第3のカウン
タのカウント内容を取シ込み、第1.第2および第3の
カウンタのカウント内容の今回値(Qn 、M、および
Pn)および前回値(Qn −12Mn−sおよびPn
−t)から、第2のカウンタのカウント内容の今回値(
M、)と前回値(Mn−t )との間の大小判定結果に
応じて、 Mn≧MB−1のとき Mal < Mn−tのとき なる演算を実行し、その演算結果を周波数測定値として
出力するデジタル演算処理装置と、を備えて表ることを
特徴とするパルス周波数測定装置。 2)前記デジタル演算処理装置はマイクロコンピュータ
であることを特徴とする特許請求の範囲第1項記載のパ
ルス周波数測定装置。 3)前記基準パルスはマイクロコンピュータ内のり四ツ
クパルスゼネレータによって与えられることを特徴とす
る特許請求の範囲第2項記載のパルス周波数測定装置。 4)到来する入力パルスは基準パルスに同期化処理され
て波形整形されていることを特徴とする特許請求の範囲
第3項記載のパルス周波数測定装1iO 5)前記タイミングパルスはマイクロコンピュータに対
して割込信号として与えられることを特徴とする特許請
求の範囲第2項ないし第4項のいずれかの項記載のパル
ス周波数測定装置。 6)第1.第2および第3のカウンタの各出力部はラッ
チ回路を備えていて、マイクロコンピュータはタイミン
グパルスを割込信号として受は取った後に、これらのラ
ッチ回路に保持指令信号を与え、これらのラッチ回路の
保持動作完了後それの保持内容を取シ込むことを特徴と
する特許請求の範囲第2項ないし第5項のいずれかの項
記載のパルス周波数測定装置。 7)第1および第2のカウンタのループカウント動作に
おけるループカウント数はマイクロコンピュータにおけ
るプログラムによって設定されることを特徴とする特許
請求の範囲第1項ないし第6項記載のパルス周波数測定
装置。 8)到来する入力パルスは回転速度を測定すべき回転軸
に取シ付ゆられているパルスゼネレータから供給され、
回転速度をそのパルスゼネレータから到来する入力パル
スの周波数によって測定することを特徴とする特許請求
の範囲第1項ないし第7項のいずれかの項記載のパルス
周波数測定装置0
[Claims] l) In a pulse frequency measuring device that generates a digital output proportional to the frequency of an incoming input pulse, an operation of repeatedly counting a predetermined number (PT) of high-frequency reference pulses with a constant period is performed. (J) A first counter that generates a timing pulse with a constant period, and a counter that generates a timing pulse with a constant period, and a counter that is equal to the number of input pulses that arrive within one period of the timing pulse when the frequency to be measured is at its maximum value. a second counter that repeats the operation of counting incoming input pulses up to a large predetermined number (Ko); a third counter that counts the reference pulses while being shuffled by the incoming input pulse; and the timing Each time a pulse is received, the count contents of the first, second, and third counters are captured, and the contents of the first, second, and third counters are captured. The current value (Qn, M, and Pn) and the previous value (Qn -12Mn-s and Pn) of the count contents of the second and third counters
-t), the current value of the count contents of the second counter (
According to the result of determining the magnitude between M, ) and the previous value (Mn-t), when Mn ≥ MB-1, perform the calculation such that Mal < Mn-t, and use the calculation result as the frequency measurement value. A pulse frequency measuring device comprising: a digital arithmetic processing device that outputs an output; 2) The pulse frequency measuring device according to claim 1, wherein the digital arithmetic processing device is a microcomputer. 3) The pulse frequency measuring device according to claim 2, wherein the reference pulse is provided by a four-wheel pulse generator within a microcomputer. 4) The pulse frequency measuring device 1iO according to claim 3, wherein the arriving input pulse is synchronized with the reference pulse and waveform-shaped. 5) The timing pulse is transmitted to the microcomputer. The pulse frequency measuring device according to any one of claims 2 to 4, characterized in that the pulse frequency measurement device is provided as an interrupt signal. 6) 1st. Each output section of the second and third counters is equipped with a latch circuit, and after receiving the timing pulse as an interrupt signal, the microcomputer gives a hold command signal to these latch circuits, and The pulse frequency measuring device according to any one of claims 2 to 5, wherein the held contents are input after the holding operation of the pulse frequency measuring device is completed. 7) The pulse frequency measuring device according to any one of claims 1 to 6, wherein the loop count number in the loop counting operation of the first and second counters is set by a program in a microcomputer. 8) the incoming input pulses are supplied by a pulse generator mounted on the rotating shaft whose rotational speed is to be measured;
Pulse frequency measuring device 0 according to any one of claims 1 to 7, characterized in that the rotational speed is measured by the frequency of input pulses coming from the pulse generator.
JP8805782A 1982-05-26 1982-05-26 Apparatus for measuring pulse frequency Pending JPS58205864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8805782A JPS58205864A (en) 1982-05-26 1982-05-26 Apparatus for measuring pulse frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8805782A JPS58205864A (en) 1982-05-26 1982-05-26 Apparatus for measuring pulse frequency

Publications (1)

Publication Number Publication Date
JPS58205864A true JPS58205864A (en) 1983-11-30

Family

ID=13932208

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8805782A Pending JPS58205864A (en) 1982-05-26 1982-05-26 Apparatus for measuring pulse frequency

Country Status (1)

Country Link
JP (1) JPS58205864A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6484157A (en) * 1987-09-28 1989-03-29 Hitachi Ltd Method and device for current detection

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6484157A (en) * 1987-09-28 1989-03-29 Hitachi Ltd Method and device for current detection

Similar Documents

Publication Publication Date Title
US4875201A (en) Electronic pulse time measurement apparatus
EP0177557B1 (en) Counting apparatus and method for frequency sampling
JPS60131465A (en) Detector for rotating speed
JPS5848868A (en) Measuring method for pulse frequency
SE421727B (en) DEVICE FOR CONTINUOUS SADING OF A VARIOUSLY WIDE AREA VARIABLE FREQUENCY OF A HEAD GENERATOR AND DIGITAL CONTROL SYSTEM INCLUDING A SOUND DEVICE
JPS58205864A (en) Apparatus for measuring pulse frequency
JPS63226115A (en) Zero cross counter
EP0236108B1 (en) Tacho signal processing
US4722094A (en) Digital rate detection circuit
US4188820A (en) Device for measuring rotational angles of a rotating shaft
JPH061279B2 (en) Digital speed detector
US4392749A (en) Instrument for determining coincidence and elapse time between independent sources of random sequential events
US4154096A (en) Circuit for producing a digital count representing the average value of a variable frequency
JPS62261073A (en) Method of measuring frequency of signal
JPH01320468A (en) Method and apparatus for measuring revolutions of machine
SU543969A1 (en) Device for converting rotational speed to digital code
JPS6319831B2 (en)
SU1420546A1 (en) Digital phase meter
SU868617A1 (en) Digital frequency meter
KR19990043005A (en) Motor speed detection device using incremental encoder
JPH04233467A (en) Method and apparatus for measuring speed of motor
SU726486A1 (en) Scaled low-frequency digital frequency meter
JPS61284664A (en) Measuring method for rotational frequency
SU1613959A1 (en) Apparatus for measuring difference of rotational speeds
JPH0455274B2 (en)