[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JPS63144284A - Pulse period measuring circuit - Google Patents

Pulse period measuring circuit

Info

Publication number
JPS63144284A
JPS63144284A JP29224486A JP29224486A JPS63144284A JP S63144284 A JPS63144284 A JP S63144284A JP 29224486 A JP29224486 A JP 29224486A JP 29224486 A JP29224486 A JP 29224486A JP S63144284 A JPS63144284 A JP S63144284A
Authority
JP
Japan
Prior art keywords
counter
output
latched
clock
pulse signal
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.)
Granted
Application number
JP29224486A
Other languages
Japanese (ja)
Other versions
JPH045957B2 (en
Inventor
Kaoru Kimizuka
君塚 薫
Koichi Nakajo
中條 孝一
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP29224486A priority Critical patent/JPS63144284A/en
Publication of JPS63144284A publication Critical patent/JPS63144284A/en
Publication of JPH045957B2 publication Critical patent/JPH045957B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Measurement Of Unknown Time Intervals (AREA)

Abstract

PURPOSE:To output an error signal when a ring counter makes one round and accurate measurement can not be taken by latching the output of a 2nd counter with the output of a synchronizing means which synchronizes a pulse signal with a clock. CONSTITUTION:The clock is inputted to a 1st counter 2 and a 2nd counter which have stages as many as the counter 2 and latches its carry output. A latch means 11 latches the latched carry output of the counter 10 and the output of the counter 2. The synchronizing means 4 inputs a pulse signal whose period is to be measured and synchronizes the pulse signal with the clock. The output of the counter 2 and the latched carry output of the counter 10 are latched by the latch means 11 with the output of the synchronizing means 4 and the counter 10 is cleared. Consequently, even if the counter 2 overflows, an error signal indicating the overflow is latched by the latch means 11, so there is no error in measurement even if an input pulse signal having a longer period than expected is inputted and the counter 2 overflows.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 この発明は、入力パルス信号の周期を測定するパルス周
Ill測定口路の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to an improvement in a pulse frequency Ill measurement path for measuring the period of an input pulse signal.

〈従来技術〉 入力パルス信号の周期は、このパルス信号の周期より充
分短い周期のクロックを入力パルス信号の周期の間カウ
ントして測定する。このようなパルス周期測定回路を第
4図に示す。第4図において、1はクロック発生手段で
あり、一定置IIのクロックを発生する。このクロック
はリングカウンタ2に入力され、カウントされる。この
リングカウンタ2のカウント値はラッチ手段3に入力さ
れる。4は同期化手段であり、周期を測定する入力パル
ス信号が入力され、その信号をクロック発生手段1のク
ロックに同期させる。同期化手段4は2つのD型フリッ
プフロップ41.42で構成される。フリップフロップ
41のクロック端子に入力クロック信号が入力され、そ
の反転出力Qはデータ端子りに、非反転出力Qはフリッ
プフロップ42のデータ端子りに接続される。フリップ
70ツブ42のクロック端子にはクロック発生手段1の
クロックが入力され、その反転出力Qはフリツプフロッ
プ41のリセット端子に接続されると共に、外部に出力
される。この同期化手段の出力により、リングカウンタ
2のカウント出力をラッチ手段3にラッチづる。リング
カウンタ2の段数は充分長い入力パルス信号の周期にた
いしてもカウンタが一巡しないようにに設定される。
<Prior Art> The period of an input pulse signal is measured by counting clocks whose period is sufficiently shorter than the period of the input pulse signal during the period of the input pulse signal. Such a pulse period measuring circuit is shown in FIG. In FIG. 4, reference numeral 1 denotes a clock generating means, which generates a clock at a constant point II. This clock is input to the ring counter 2 and counted. The count value of the ring counter 2 is input to the latch means 3. Reference numeral 4 denotes a synchronizing means, into which an input pulse signal for measuring the period is input, and synchronizes the signal with the clock of the clock generating means 1. The synchronization means 4 consist of two D-type flip-flops 41, 42. An input clock signal is input to the clock terminal of the flip-flop 41, its inverted output Q is connected to the data terminal, and its non-inverted output Q is connected to the data terminal of the flip-flop 42. The clock of the clock generating means 1 is inputted to the clock terminal of the flip-flop 42, and its inverted output Q is connected to the reset terminal of the flip-flop 41 and outputted to the outside. The count output of the ring counter 2 is latched into the latch means 3 by the output of the synchronization means. The number of stages of the ring counter 2 is set so that the counter does not complete one cycle even for a sufficiently long period of the input pulse signal.

このような構成において、ラッチ手段3にラッチされた
脇を図示しない外部回路で読みだし、その直前にラッチ
されていた値との差をとることにより、入力パルス信り
の周期を測定することが出来る。
In such a configuration, the period of the input pulse signal can be measured by reading the side latched by the latch means 3 using an external circuit (not shown) and taking the difference from the value latched immediately before. I can do it.

〈発明が解決すべぎ問題点〉 しかしながらこの様なパルス周期測定回路には次のよう
な問題点がある。リングカウンタ2はそのカウント値が
一巡すると最初にもどって同じ動作を繰返す。そのため
、予期したものより長い周期の入力パルス信号が入力さ
れると、リングカウンタ2が一巡してしまい、正確な周
期が測定出来なくなる。
<Problems to be Solved by the Invention> However, such a pulse period measuring circuit has the following problems. After the ring counter 2 completes one cycle, the ring counter 2 returns to the beginning and repeats the same operation. Therefore, when an input pulse signal with a cycle longer than expected is input, the ring counter 2 completes one cycle, making it impossible to accurately measure the cycle.

〈発明の目的〉 この発明の目的は、リングカウンタが一巡して正確な周
期が測定出来なくなるとエラー信号を出力するパルス周
rrns定回路を提供することにある。
<Object of the Invention> An object of the present invention is to provide a pulse frequency rrns constant circuit that outputs an error signal when the ring counter completes one cycle and cannot measure an accurate period.

く問題点を解決するための手段〉 前記問題点を解決するために、本発明ではクロックが入
力される第1のカウンタと、前記クロックが入力され、
前記第1のカウンタと同じ段数を有しかつそのキャリー
がラッチされる第2のカウンタと、この第2のカウンタ
にラッチされたキャリー出力と前記第1のカウンタの出
力をラッチするラッチ手段と、その周期が測定される入
力パルス信号が入力され、前記クロックに同期させる同
期化手段とを有し、この同期化手段の出力により、前記
第1のカウンタの出力および第2のカウンタのラッチさ
れたキャリー出力を前記ラッチ手段にラッチすると共に
前記第2のカウンタをクリヤするようにしたものである
Means for Solving the Problems> In order to solve the above problems, the present invention provides a first counter to which a clock is input, a first counter to which the clock is input,
a second counter that has the same number of stages as the first counter and whose carry is latched; a latch means that latches the carry output latched by the second counter and the output of the first counter; an input pulse signal, the period of which is measured, is input and synchronizing means synchronizes with the clock, and the output of the synchronizing means causes the output of the first counter and the latched clock of the second counter to be input. The carry output is latched by the latch means and the second counter is cleared.

く実施例〉 第1図に本発明に係るパルス周期測定rgJ路の一実施
例を示す。なお、第4図と同じ要素には同一符号を付し
、説明を省略する。第1図において、2はリングカウン
タであり、例えばナショナルセミコンダクタ社の4bi
tカウンタである74HC161を用いる。10はリン
グカウンタ2と同じ段数を有し、そのキャリーがラッチ
されるカウンタであり、例えば4bitカウンタの74
1−I C161とそのキャリーをラッチするラッチで
構成する。11はラッチ手段であり、リングカウンタ2
の段数より1段多い段数を有する。このラッチ手段11
にはリングカウンタ2のカウント出力およびカウンタ1
0のラッチされたキャリーが入力される。カウンタ70
のクリヤ端子CLRには同m化手段4の出力が入力され
る。
Embodiment> FIG. 1 shows an embodiment of the pulse period measurement rgJ path according to the present invention. Note that the same elements as in FIG. 4 are given the same reference numerals, and their explanations will be omitted. In FIG. 1, 2 is a ring counter, for example, National Semiconductor's 4bi counter.
A 74HC161 t counter is used. 10 is a counter that has the same number of stages as ring counter 2 and whose carry is latched; for example, 74 of a 4-bit counter.
1-I Consists of C161 and a latch that latches its carry. 11 is a latch means, and a ring counter 2
The number of stages is one more than the number of stages. This latch means 11
is the count output of ring counter 2 and the count output of counter 1.
A latched carry of zero is input. counter 70
The output of the equalization means 4 is inputted to the clear terminal CLR of.

次にこの実施例の動作を第2図タイムチャートに膓づい
て説明する。なお、このタイムチャートはリングカウン
タ2およびカウンタ10として2bitのカウンタを用
いた場合を示す。第2図において、(A>はクロック発
生手段1の出力クロック、(B)はリングカウンタ2の
カウント出力である。(B)の数字は出力値を表す。リ
ングカウンタ2はこのクロックによりカウントアツプさ
れる。(C)は入力パルス信号であり、同期化手段4に
よりクロック(A)の立もさがりに同期した信@(D)
に変換される。(E)はカウンタ10のキャリー信号、
(F)はカウント出力である。
Next, the operation of this embodiment will be explained with reference to the time chart of FIG. Note that this time chart shows a case where 2-bit counters are used as the ring counter 2 and the counter 10. In FIG. 2, (A> is the output clock of the clock generation means 1, and (B) is the count output of the ring counter 2. The number in (B) represents the output value. The ring counter 2 starts counting up by this clock. (C) is an input pulse signal, which is synchronized with the rising edge of the clock (A) by the synchronization means 4 @(D)
is converted to (E) is the carry signal of counter 10,
(F) is the count output.

カウンタ10の出力すなわち出力(E)、(F)は出力
(D)でクリヤされる。また、リングカウンタ2のカウ
ント出力(B)およびカウンタ10のラッヂされたキャ
リー信号(E)は出力(D)の立下がりのタイミングで
ラッチ手段11にラッチされる。ラッチ手段11にラッ
ヂされた値は適当なタイミングで図示しない外部手段で
読みだされ、その差から入力パルス信号の周期が測定さ
れる。このような動作において、時刻■、■、■、■は
同期化手段4の出力が立ちさがるタイミングである。時
刻■と■の間、および■と■の間ではカウンタ10はオ
ーバーフローしないので、キ←リー(E)は発生しない
。時刻■と■の間は長く、時刻■でキャリー(E)がた
ちあがる。このキャリー信@(E)はそのまま保持され
、時刻■すななわち(D)の立も下がりのタイミングで
ラッチ手段11にエラー信号としてラッチされると共に
カウンタ10はクリヤされる。(G)はラッチ手段11
にラッチされたエラー信号を示す。このエラー信号があ
ると、入力パルス信号の周期が正確に測定きれでいない
と判断する。
The outputs of the counter 10, ie, outputs (E) and (F), are cleared by the output (D). Further, the count output (B) of the ring counter 2 and the latched carry signal (E) of the counter 10 are latched by the latch means 11 at the timing of the fall of the output (D). The value latched in the latch means 11 is read out at an appropriate timing by an external means (not shown), and the period of the input pulse signal is measured from the difference. In such an operation, times ■, ■, ■, ■ are the timings at which the output of the synchronizing means 4 falls. Since the counter 10 does not overflow between times ■ and ■ and between times ■ and ■, a key (E) does not occur. The time between time ■ and ■ is long, and carry (E) rises at time ■. This carry signal @(E) is held as it is, and is latched as an error signal by the latch means 11 at time ①, that is, at the falling and falling timings of (D), and the counter 10 is cleared. (G) is the latch means 11
shows the error signal latched in. If this error signal is present, it is determined that the period of the input pulse signal cannot be accurately measured.

第3図は入力パルス信号が2個ある場合の実施例を示す
。なお、第1図実施例と同じ要素には同一符号を付し、
説明を省略する。この実施例は同期化手段4、カウンタ
10.ラッチ手段11を2系列設置し、その各々に入力
パルス信号を入力する。すなわち、入力パルス信@1は
同II化手段4に入力し、この同期化手段4の出力でリ
ングカウンタ2の出力およびカウンタ10のラッチされ
たキャリーをラッチ手段11にラッチすると共にカウン
タ10をクリヤする。入力パルス信号2は同期化手段1
2に入力され、この同期化手段12の出力でリングカウ
ンタ2の出力およびカウンタ13のラッチされたキャリ
ー信号をラッチすると共にカウンタ13をクリヤする。
FIG. 3 shows an embodiment in which there are two input pulse signals. Note that the same elements as in the embodiment in FIG. 1 are given the same reference numerals.
The explanation will be omitted. This embodiment includes synchronization means 4, counter 10. Two lines of latch means 11 are installed, and an input pulse signal is input to each of them. That is, the input pulse signal @1 is input to the synchronization means 4, and the output of the synchronization means 4 latches the output of the ring counter 2 and the latched carry of the counter 10 to the latch means 11, and also clears the counter 10. do. Input pulse signal 2 is synchronized by synchronization means 1
2, and the output of the synchronizing means 12 latches the output of the ring counter 2 and the latched carry signal of the counter 13, and also clears the counter 13.

同期化手段4と12、カウンタ10と13、ラッチ手段
11と14はそれぞれ同じものである。このようにする
と、クロック発生手段1およびリングカウンタ2を共通
にできるので、構成が簡単になる。なお、入力パルス信
号が3個以上の場合でも同期化手段、カウンタ、ラッチ
手段からなる系列を入力パルス信号の個数だけ設ければ
よい。
The synchronizing means 4 and 12, the counters 10 and 13, and the latching means 11 and 14 are respectively the same. In this way, the clock generating means 1 and the ring counter 2 can be used in common, so that the configuration becomes simple. Note that even when there are three or more input pulse signals, it is sufficient to provide as many series of synchronizing means, counters, and latch means as there are input pulse signals.

〈発明の効TA> 以上、実施例に基づいて具体的に説明したようにこの発
明ではクロック発生手段の出力クロックを第1のカウン
タおよび第1のカウンタと同じ段数を有しかつそのキャ
リーがラッチされる第2のカウンタと、入力パルス信号
が入力され、このパルス信号を前記クロックに同期させ
る同期化手段と、ラッチ手段とを有し、この同期化手段
の出力により前記第1のカウンタおよび第2のカウンタ
の出力をラッチ手段にラッチすると共に第2のカウンタ
をクリヤするようにした。そのため、第1のカウンタが
オーバーフローしてもオーバーフローしたことを示すエ
ラー信号がラッチ手段にラッチされるので、予想した周
期より長い周期の入力パルス信@別入力して第1のカウ
ンタがオーバーフローしても間違った測定を行うことは
なくなるという効果がある。
<Effects of the Invention TA> As described above in detail based on the embodiments, in this invention, the output clock of the clock generation means is generated by the first counter, which has the same number of stages as the first counter, and whose carry is latched. a second counter that receives an input pulse signal and synchronizes the pulse signal with the clock, and a latch means, and the output of the synchronization means causes the first counter and the first counter to The output of the second counter is latched in the latch means and the second counter is cleared. Therefore, even if the first counter overflows, an error signal indicating that it has overflowed is latched in the latch means, so if another input pulse signal with a period longer than the expected period is input, the first counter will overflow. This also has the effect of preventing incorrect measurements.

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

第1図は本発明に係るパルス周期測定回路の一実施例を
示す構成図、第2図は動作を説明する為のタイムチャー
ト、第3図は他の実施例を示す構成図、第4図は従来の
パルス周期測定回路の構成を示す構成図である。 1・・・クロック発生手段、2・・・リングカウンタ、
3.11.14・・・ラッチ手段、4・・・同期化手段
、10.13・・・カウンタ。 篤2図 ■ ■   ■    ■■
FIG. 1 is a block diagram showing one embodiment of the pulse period measuring circuit according to the present invention, FIG. 2 is a time chart for explaining the operation, FIG. 3 is a block diagram showing another embodiment, and FIG. 4 1 is a configuration diagram showing the configuration of a conventional pulse period measuring circuit. 1... Clock generation means, 2... Ring counter,
3.11.14... Latch means, 4... Synchronization means, 10.13... Counter. Atsushi 2 ■ ■ ■ ■■

Claims (1)

【特許請求の範囲】[Claims] クロックが入力される第1のカウンタと、前記クロック
が入力され、前記第1のカウンタと同じ段数有しかつそ
のキャリー出力がラッチされる第2のカウンタと、この
第2のカウンタのラッチされたキャリー出力と前記第1
のカウンタの出力をラッチするラッチ手段と、その周期
が測定されるパルス信号が入力され、このパルス信号を
前記クロックに同期させる同期化手段とを有し、この同
期化手段の出力により前記第1のカウンタの出力および
第2のカウンタのラッチされたキャリー出力を前記ラッ
チ手段にラッチすると共に前記第2のカウンタをクリヤ
することを特徴とするパルス周期測定回路。
a first counter to which a clock is input; a second counter to which the clock is input, has the same number of stages as the first counter and has its carry output latched; and a latched carry output of the second counter. Carry output and the first
latching means for latching the output of the counter, and synchronizing means for receiving a pulse signal whose period is measured and synchronizing the pulse signal with the clock, and the output of the synchronizing means for latching the output of the first counter. A pulse period measuring circuit characterized in that the output of the counter and the latched carry output of the second counter are latched in the latch means, and the second counter is cleared.
JP29224486A 1986-12-08 1986-12-08 Pulse period measuring circuit Granted JPS63144284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29224486A JPS63144284A (en) 1986-12-08 1986-12-08 Pulse period measuring circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29224486A JPS63144284A (en) 1986-12-08 1986-12-08 Pulse period measuring circuit

Publications (2)

Publication Number Publication Date
JPS63144284A true JPS63144284A (en) 1988-06-16
JPH045957B2 JPH045957B2 (en) 1992-02-04

Family

ID=17779323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29224486A Granted JPS63144284A (en) 1986-12-08 1986-12-08 Pulse period measuring circuit

Country Status (1)

Country Link
JP (1) JPS63144284A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02300693A (en) * 1989-05-16 1990-12-12 Jeco Co Ltd Cycle measuring circuit

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230190108A1 (en) 2020-12-15 2023-06-22 Derma Medical Inc. Dermoscope, dermoscope adapter, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02300693A (en) * 1989-05-16 1990-12-12 Jeco Co Ltd Cycle measuring circuit

Also Published As

Publication number Publication date
JPH045957B2 (en) 1992-02-04

Similar Documents

Publication Publication Date Title
JP2021526226A (en) High-precision time measurement method based on FPGA
EP0177557A4 (en) Counting apparatus and method for frequency sampling.
CA2182356C (en) Time interval measurement system and a method applied therein
US3675127A (en) Gated-clock time measurement apparatus including granularity error elimination
TW396276B (en) Arithmetic unit
JPS63144284A (en) Pulse period measuring circuit
RU2210785C2 (en) Digital frequency meter
US4335596A (en) Device for measuring the operation of a timepiece movement
KR950006468A (en) Periodic measuring device
JPH01124773A (en) Frequency measuring instrument
US4728816A (en) Error and calibration pulse generator
US4245322A (en) Transducer circuit for use in the measurement of the rotary speed of a shaft or other rotary member
JPS5917914B2 (en) Jitter measurement device
SU538335A1 (en) The device of the Vernier time interval measurement
JP2559237Y2 (en) Serial data sampling signal generator
SU907840A1 (en) Device for measuring error coefficient
JPH0311977Y2 (en)
SU966661A1 (en) Time interval measuring device
SU932540A1 (en) Device for measuring digital signal duration
JPH04344476A (en) Frequency ratio measuring circuit
JPS6027970Y2 (en) Timing generator for IC test equipment
JPH03235527A (en) A/d converter
SU945820A1 (en) Device for measuring number of periods
SU741180A2 (en) Frequency deviation measuring device
JPS6361963A (en) Delay time measuring circuit