JPH02166830A - Pulse time width measuring instrument - Google Patents
Pulse time width measuring instrumentInfo
- Publication number
- JPH02166830A JPH02166830A JP32160388A JP32160388A JPH02166830A JP H02166830 A JPH02166830 A JP H02166830A JP 32160388 A JP32160388 A JP 32160388A JP 32160388 A JP32160388 A JP 32160388A JP H02166830 A JPH02166830 A JP H02166830A
- Authority
- JP
- Japan
- Prior art keywords
- counter
- pulse
- time
- signal
- counting
- 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.)
- Ceased
Links
Landscapes
- Measurement Of Unknown Time Intervals (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
本発明はパルス信号の時間幅を自動的に測定するための
パルス時間幅測定回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a pulse time width measuring circuit for automatically measuring the time width of a pulse signal.
(従来の技術)
従来この種の装置では、所定の時定数動作する再トリガ
可能なワンショット回路に被測定パルス信号を入力して
、このワンショット回路を動作させ、前記パルス信号の
入力時点からこのワンショット回路の動作終了時点まで
の時間を求め、更にこの時間から前記所定の時定数を減
じた時間が前記パルス信号の時間幅であると判定する。(Prior Art) Conventionally, in this type of device, a pulse signal to be measured is input to a retriggerable one-shot circuit that operates with a predetermined time constant, the one-shot circuit is operated, and the pulse signal is measured from the time when the pulse signal is input. The time until the end of the operation of this one-shot circuit is determined, and the time obtained by subtracting the predetermined time constant from this time is determined to be the time width of the pulse signal.
しかし、上記再トリガ可能なワンショット回路は抵抗と
コンデンサによって決まる時定数で動作するため、上記
抵抗、コンデンサの精度の範囲(高い精度を採れない)
で上記時定数の精度が決まる。このため、測定したパル
ス時間幅の精度が悪く不正確であるという欠点があった
。又、ワンショット回路の時定数を変更してこの回路の
動作時間を変えるためには回路の定数を切替えるリレー
やアナログスイッチ等による切替回路が必要で、付加回
路が複雑になるという欠点がめった。However, since the above retriggerable one-shot circuit operates with a time constant determined by the resistor and capacitor, the precision range of the resistor and capacitor (high precision cannot be achieved)
The accuracy of the above time constant is determined by For this reason, there was a drawback that the accuracy of the measured pulse time width was poor and inaccurate. In addition, in order to change the time constant of the one-shot circuit to change the operating time of the circuit, a switching circuit such as a relay or an analog switch is required to change the circuit constant, which often results in the disadvantage of complicating the additional circuitry.
(発明が解決しようとする課題)
上記の如く、抵抗とコンデンサで決まる時定数で動作す
る聞トリガ可能なワンショット回路は、前記時定数の精
度が悪く、これを用いてパルス信号の時間幅を測定する
と、精度が悪くなるという欠点があった。又、上記回路
の動作時間を変更するための付加回路が複雑になるとい
う欠点があった。そこで、本発明は上記の欠点を除去す
るもので高精度でパルス時間幅を測定でき且つ簡単な付
加回路で回路の動作時間を変更することができるパルス
時間幅測定回路を提供することにある。(Problems to be Solved by the Invention) As mentioned above, the triggerable one-shot circuit that operates with a time constant determined by a resistor and a capacitor has poor accuracy in the time constant, and uses this to adjust the time width of a pulse signal. The drawback was that the accuracy of the measurements was poor. Another drawback is that the additional circuit for changing the operating time of the circuit becomes complex. SUMMARY OF THE INVENTION An object of the present invention is to provide a pulse time width measuring circuit which eliminates the above-mentioned drawbacks and is capable of measuring pulse time widths with high accuracy and changing the operating time of the circuit with a simple additional circuit.
[発明の構成]
(課題を解決するための手段)
本発明は、入力されるパルス信号のパルス時間幅を測定
するパルス時間幅測定回路において、前記時間幅を計数
する計数用カウント手段と、前記パルス信号のパルスの
立ち上がり又は立ち下がりをとらえて設定数だけカウン
ト動作を行う再トリガ可能なワンショットカウント手段
と、このワンショットカウント手段が上記カウント動作
を行っている期間だけ前記計数用カウント手段を動作さ
せる制御手段と、前記計数用カウント手段がカウントし
た値と前記ワンショットカウント手段の設定値とから前
記パルス時間幅を算出する演算手段とを具備して成る構
成を有している。[Structure of the Invention] (Means for Solving the Problems) The present invention provides a pulse time width measuring circuit that measures the pulse time width of an input pulse signal, including a counting means for counting the time width, and a counting means for counting the time width; a retriggerable one-shot counting means that performs a counting operation by a set number of times by capturing the rising or falling edge of a pulse of a pulse signal; It has a configuration comprising a control means for operating the pulse time width, and an arithmetic means for calculating the pulse time width from the value counted by the counting means and the set value of the one-shot counting means.
(作用)
本発明のパルス時間幅測定回路において、制御手段はワ
ンショットカウント手段が入力パルス信号のパルスの立
ち上がり又は立ち下がりをとらえて設定数だけカウント
動作を行っている期間だけ前記計数用カウント手段を動
作させる。計数用カウント手段は前記制御手段の制御を
受けた期間だけカウント動作を行い、その結果を演算手
段に出力する。演算手段は前記計数用カウント手段がカ
ウントした値と前記ワンショットカウント手段の設定値
とから前記パルス時間幅を算出する。(Function) In the pulse time width measurement circuit of the present invention, the control means controls the counting means only during the period when the one-shot counting means captures the rise or fall of the pulse of the input pulse signal and performs a counting operation by a set number of times. make it work. The counting means performs a counting operation only during a period under the control of the control means, and outputs the result to the calculation means. The calculating means calculates the pulse time width from the value counted by the counting means and the set value of the one-shot counting means.
(実施例)
以下、本発明の一実施例を図面を参照して説明する。第
1図は本発明のパルス時間幅測定回路の一実施例を示し
たブロック図である。1は入力信号102の立ち上がり
でカウント動作を開始し、おるいは初期値に再セットを
行ない設定値までカウントする再トリガが可能なワンシ
ョットカウンタ、2は入力信号101の立ち上がりから
ワンショットカウンタ1のカウント終了時点までの入力
クロックをカウントとする時間計数用カウンタ、3はワ
ンショットカウンタ1及び計数用カウンタ2の動作条件
やカウント数初期値のセットを行ったり、あるいはカウ
ンタ2の計数値を読み出してパルス時間幅の計算を行う
マイクロプロセッサ、4はカウンタ1,2のカウント用
クロック50を発生する計数基準用のクロック発振器で
あり、例えば水晶発振器等の高精度の信号や、それを分
周した信号をクロック50として出力する。5は前記ク
ロック発振器から出力されるクロック50のカウンタ2
への入力をオン・オフするアンドゲート、6は入力信@
101の立ち上がりで動作するフリップフロップである
。7はアンドゲート5を開閉する制御信号をカウンタ2
へ出力するオアゲート、8は入力信号の極性を反転させ
るインバータである。(Example) Hereinafter, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the pulse time width measuring circuit of the present invention. 1 is a one-shot counter that starts counting at the rising edge of the input signal 102, or can be retriggered to reset to the initial value and count up to the set value; 2 is the one-shot counter 1 that starts counting from the rising edge of the input signal 101; 3 is a time counting counter whose count is the input clock up to the end of the count. 4 is a counting reference clock oscillator that generates a counting clock 50 for counters 1 and 2, and 4 is a counting reference clock oscillator that generates a high-precision signal such as a crystal oscillator or a frequency-divided signal. The signal is output as a clock 50. 5 is a counter 2 of the clock 50 output from the clock oscillator.
AND gate that turns on and off the input to , 6 is the input signal @
This is a flip-flop that operates at the rising edge of 101. 7 is a counter 2 which sends a control signal for opening and closing the AND gate 5.
8 is an inverter that inverts the polarity of the input signal.
次に本実施例の動作について説明する。入力信@101
は例えば第2図(A)に示す波形を有し、これがフリッ
プフロップ6に入力されると共に、インバータ8によっ
て反転されてワンショットカウンタ1に入力される。フ
リップフロップ6は入力信号101のパルス(イ)の立
ち上がりでセットされ、出力信号103を第2図(B)
に示す如くローレベルとする。一方ワンショットカウン
タ1は入力信号101のパルス(イ)の立ち下がり、即
ちインバータ8から出力される立ち上がり信号によって
トリガされ、このトリガの後、最初に入力ざれるクロッ
ク発振器6からのクロック50によって動作して、その
出力信号104を第2図(D>で示す如くローレベルと
する。但し、ワンショットカウンタ1の出力信号104
は待機状態ではハイレベルで、これがフリップフロップ
6を動作可能状態としている。従って、出力信号104
が上記の如くローレベルとなると、フリップフロップ6
は動作不能状態となって、第2図(B)に示す如くその
出力信号103はaの時点でハイレベルとなる。ここで
、上記信号103 、104が入力されるオアゲート7
の出力信号105は、第2図(D)に示す如く、信号1
03がローレベルとなるとローレベルとなり、その後信
号103がハイレベルとなっても、この時信号104が
ローレベルとなるため、引き続きローレベルとなってい
る。この信号105がローレベルとなると、アンドゲー
ト5が開くため、クロック発振器4から出力されるクロ
ック50がカウンタ2に入力されカウンタ2はカウント
動作を開始する。Next, the operation of this embodiment will be explained. Input @101
has a waveform as shown in FIG. The flip-flop 6 is set at the rising edge of the pulse (A) of the input signal 101, and outputs the output signal 103 as shown in FIG. 2(B).
Low level as shown in . On the other hand, the one-shot counter 1 is triggered by the falling edge of the pulse (A) of the input signal 101, that is, by the rising signal output from the inverter 8, and is operated by the clock 50 from the clock oscillator 6 that is first input after this trigger. Then, the output signal 104 of the one-shot counter 1 is set to a low level as shown in FIG.
is at a high level in the standby state, which makes the flip-flop 6 ready for operation. Therefore, the output signal 104
When becomes low level as above, flip-flop 6
becomes inoperable, and its output signal 103 becomes high level at time a, as shown in FIG. 2(B). Here, the OR gate 7 to which the above signals 103 and 104 are input
The output signal 105 is the signal 1 as shown in FIG. 2(D).
When signal 03 becomes low level, it becomes low level, and even if the signal 103 becomes high level thereafter, the signal 104 becomes low level at this time, so it continues to be low level. When this signal 105 becomes low level, the AND gate 5 opens, so that the clock 50 output from the clock oscillator 4 is input to the counter 2, and the counter 2 starts counting operation.
ところで、再トリガ可能なワンショットカウンタ1は入
力信号が立ち下がってからtwの時間カウント動作を行
ってその出力信号104をローレベルとしているため、
この時間twより短い周期で入力信号101がハイ・ロ
ーレベルを繰返す場合、その間出力信@105はローレ
ベルとなっている。その後、入力信号101のパルス(
ロ)の立ち下がりからtw時間経った所でワンショット
カウンタ1の出力信号104がハイレベルとなる。この
ためオアゲート7から出力される信号105も同時にハ
イレベルとなって、アンドゲート5を閉じる。従って、
信号105がハイレベルに戻った時点でカウンタ2への
クロック50の供給が止まるため、カウンタ2はそのカ
ウント動作を停止する。結局、カウンタ2は入力信号1
01のパルス(イ)の立ち上がりから、同信号101の
パルス(ロ)の立ち下がりまでの時間txにワンショッ
トカウンタ1の動作時間twを加えた時間だけカウント
動作を行う。By the way, since the retriggerable one-shot counter 1 performs a time counting operation tw after the input signal falls, and sets its output signal 104 to a low level,
When the input signal 101 repeats high and low levels in a cycle shorter than this time tw, the output signal @105 is at a low level during that time. After that, the pulse of the input signal 101 (
(b) After time tw has elapsed since the fall of the signal 1, the output signal 104 of the one-shot counter 1 becomes high level. Therefore, the signal 105 output from the OR gate 7 also becomes high level at the same time, closing the AND gate 5. Therefore,
When the signal 105 returns to high level, the supply of the clock 50 to the counter 2 is stopped, so the counter 2 stops its counting operation. In the end, counter 2 receives input signal 1
The counting operation is performed for the time tx from the rise of the pulse (a) of signal 101 to the fall of the pulse (b) of signal 101, plus the operation time tw of the one-shot counter 1.
マイクロプロセッサ3は、カウンタ2のカウント動作が
終了するとそのカウント値を読み出して計数期間を輝出
し、算出した計数期間からワンショットカウンタ1の動
作時間twを減算して、入力信@101のパルス時間幅
tX8算出する。なあ、フリップフロップ6は、ワンシ
ョットカウンタ1の第2図(C)に示すようなトリガ後
最初に入力されるクロック信号50によって出力104
がローレバルとなるまでの動作遅延時間tiを補償する
ためのものである。When the counting operation of the counter 2 is completed, the microprocessor 3 reads out the count value, highlights the counting period, subtracts the operating time tw of the one-shot counter 1 from the calculated counting period, and calculates the pulse time of the input signal @101. Calculate the width tX8. Incidentally, the flip-flop 6 outputs an output 104 in response to a clock signal 50 input first after the trigger as shown in FIG. 2(C) of the one-shot counter 1.
This is to compensate for the operation delay time ti until the signal becomes low level.
本実施例によれば、ワンショットカウンタ1の動作時間
twはクロック発振器4の水晶発振精度で決まるため、
精度を著しく高くすることができ、従って、パルス時間
幅↑Xを非常に正確に測定することができる。又、前記
ワンショットカウンタ1の動作時間twの変更はこのワ
ンショットカウンタ1の設定カウント値をマイクロプロ
セッサ3にて変更するか、又はクロック発振器4の発振
周波数を変更するだけでよく、これにより、上記回路の
パルス測定動作時間の変更を簡単な回路にて且つ容易に
行うことができる。According to this embodiment, the operating time tw of the one-shot counter 1 is determined by the crystal oscillation accuracy of the clock oscillator 4, so that
The accuracy can be significantly increased and therefore the pulse time width ↑X can be measured very accurately. Further, the operating time tw of the one-shot counter 1 can be changed by simply changing the set count value of the one-shot counter 1 in the microprocessor 3 or by changing the oscillation frequency of the clock oscillator 4. The pulse measurement operation time of the circuit described above can be easily changed using a simple circuit.
第3図は本発明の他の実施例を示したブロック図である
。本例は上記実施例の構成の他に、入力信号201の極
性を変化させる排他的論理和ゲート21と、入力信号2
01の入力タイミングを制限する回路を構成するアンド
ゲート22、オアゲート23及びフリップフロップ26
.27から成る計数期間を制限する回路を備えている。FIG. 3 is a block diagram showing another embodiment of the present invention. In addition to the configuration of the above embodiment, this example includes an exclusive OR gate 21 that changes the polarity of the input signal 201, and an exclusive OR gate 21 that changes the polarity of the input signal 201.
AND gate 22, OR gate 23, and flip-flop 26 forming a circuit that limits the input timing of 01
.. A circuit for limiting the counting period consisting of 27 is provided.
次に本実施例の動作について説明する。まずマイクロプ
ロセッサ3は制御信号51を出して、回路を入力信号の
立ち上がりで動作させるか、立ち下がりで動作させるか
を決める。又、初期状態ではフリップフロップ27の出
力信号207はハイレベルで、アンドゲート22をオン
としている。従って、第4図(A>に示すような入力信
号のパルス(イ)の立ち下がりで、ワンショットカウン
タ1がカウント動作を開始して、その出力信@202が
、第4図(B)に示す如くローレベルとなる。ここで、
フリップフロップ26.27は起動されていない時も又
、マイクロプロセッサ3から出力されるスタート信号2
03が第4図(C)の如くハイレベルとなって起動され
た後も、その出力信号208 、207はハイレベルで
出力信号204 、205はローレベルである。従って
、ワンショットカウンタ1及びフリツブフロップ6の論
理和を取った結果であるオアゲート7の出力がローレベ
ルとなっていても、信号208がハイレベルでおる限り
、アンドゲート24は閉となっていて、クロック発振器
4から出力されるクロック50はカウンタ2に入力され
ない。次に、ワンショットカウンタ1の動作が停止して
、第4図(B)に示す如く信号202が立ち上がった時
点aにおいて、第4図(A)に示す如く入力信号201
がハイレベルであると、オアゲート23の出力信号20
9はローレベルであるため、例え信号202が立ち上が
ってもフリップフロップ26はセットされることなく、
前記状態を維持し、カウンタ2に依然クロック50が入
力されず、カウント動作が行われない侍殿状懇のままで
ある。こうして、上記と同様の動作によって、ワンショ
ットカウンタ1が再び動作してその出力信号が第4図(
B)に示す如くローレベルとなってから、bの時点で立
ち上がる。この時、入力信号201はローレベルである
ため、オアゲート23の出力信号209はハイレベルと
なっている。従って、フリップフロップ26は前記す時
点の信号202の立ち上がりによってセットされる。こ
れによって、フリップフロップ26の出力信号204が
ハイレベルとなって、フリップフロップ27をセット可
能状態とすると共に、フリップフロップ26の出力信号
208をローレベルとする。このような状態でワンショ
ットカウンタ1が再び動作してその出力信号202をロ
ーレベルとした時点Cより少し前の時点で、オアゲート
7の出力信号はローレベルとなっているため、アンドゲ
ート24が開いて、第4図(F)に示す如くクロック5
0がカウンタ2に入力されて、このカウンタ2のカウン
ト動作が開始される。このような状態で第4図(B)に
示すdの時点で信号202が立ち上がると、フリップフ
ロップ27がセットされると共に、オアゲート7の出力
信号がハイレベルとなるためアンドゲート24が閉とな
って、カウンタ2のカウント動作が停止される。この時
、フリップフロップ27の出力信@205は第4図(E
)に示す如くハイレベルとなって、マイクロプロセッサ
3にカウンタ2のカウント終了を知らせると共に、信号
207がローレベルとなってアンドゲート22を閉とし
て、ワンショットカウンタ1に入力信号201が入力さ
れないようにする。次にマイクロプロセッサ3はカウン
タ2のカウント値を読み込んで、前実施例と同様の計算
を行ってパルス時間幅を算出する。Next, the operation of this embodiment will be explained. First, the microprocessor 3 issues a control signal 51 to determine whether to operate the circuit on the rising edge or the falling edge of the input signal. Further, in the initial state, the output signal 207 of the flip-flop 27 is at a high level, turning the AND gate 22 on. Therefore, at the falling edge of the input signal pulse (A) as shown in Fig. 4 (A>), the one-shot counter 1 starts counting operation, and its output signal @202 is shown in Fig. 4 (B). As shown, it becomes low level.Here,
When the flip-flops 26 and 27 are not activated, they also receive the start signal 2 output from the microprocessor 3.
Even after the output signal 03 is activated with a high level as shown in FIG. 4(C), its output signals 208 and 207 are at a high level and output signals 204 and 205 are at a low level. Therefore, even if the output of the OR gate 7, which is the logical sum of the one-shot counter 1 and the flip-flop 6, is at a low level, as long as the signal 208 remains at a high level, the AND gate 24 remains closed. Therefore, the clock 50 output from the clock oscillator 4 is not input to the counter 2. Next, at a time point a when the operation of the one-shot counter 1 stops and the signal 202 rises as shown in FIG. 4(B), the input signal 202 rises as shown in FIG. 4(A).
is at a high level, the output signal 20 of the OR gate 23
Since signal 9 is at low level, even if signal 202 rises, flip-flop 26 will not be set.
The above state is maintained, the clock 50 is still not input to the counter 2, and the counter 2 remains in a samurai state where no counting operation is performed. In this way, by the same operation as above, the one-shot counter 1 operates again and its output signal is shown in FIG.
After becoming low level as shown in B), it rises at point b. At this time, since the input signal 201 is at a low level, the output signal 209 of the OR gate 23 is at a high level. Therefore, the flip-flop 26 is set by the rising edge of the signal 202 at the time mentioned above. As a result, the output signal 204 of the flip-flop 26 goes high, making the flip-flop 27 ready to be set, and the output signal 208 of the flip-flop 26 goes low. In this state, the output signal of the OR gate 7 is at a low level a little before the time C when the one-shot counter 1 operates again and sets its output signal 202 to a low level, so the AND gate 24 is activated. Open the clock 5 as shown in Figure 4 (F).
0 is input to the counter 2, and the counting operation of the counter 2 is started. In this state, when the signal 202 rises at time d shown in FIG. 4(B), the flip-flop 27 is set and the output signal of the OR gate 7 becomes high level, so the AND gate 24 is closed. Then, the counting operation of the counter 2 is stopped. At this time, the output signal @205 of the flip-flop 27 is shown in FIG.
), the signal 207 becomes high level to notify the microprocessor 3 that the count of the counter 2 has ended, and the signal 207 becomes low level, closing the AND gate 22 so that the input signal 201 is not input to the one-shot counter 1. Make it. Next, the microprocessor 3 reads the count value of the counter 2, performs the same calculation as in the previous embodiment, and calculates the pulse time width.
本実施例によれば、スイッチのチャタリングの長さ又は
ジッタの長さ等を正確に測定することができる。ここで
、前記チャタリングの長さ10m5とジッタの長さ20
μsを測定する場合ではワンショットカウンタ1の動作
1間twを変更する必要がある。その方法として、クロ
ック発振器4が発生するクロック50の周波数を例えば
分周比を変更することによって変える。おるいはワンシ
ョットカウンタ1の設定カウント数を変更することによ
って、上記動作時間twを容易且つ、簡単な回路にて変
更することができる。According to this embodiment, it is possible to accurately measure the length of chattering or jitter of a switch. Here, the length of the chattering is 10m5 and the length of the jitter is 20m5.
When measuring μs, it is necessary to change tw during one operation of the one-shot counter 1. As a method, the frequency of the clock 50 generated by the clock oscillator 4 is changed, for example, by changing the frequency division ratio. Alternatively, by changing the set count number of the one-shot counter 1, the operating time tw can be easily changed using a simple circuit.
第5図は本発明の更に他の実施例を示したブロック図で
ある。本例は第1図に示した回路に、入力信号に対する
カウンタ2の計数期間を制限する回路を付加したもので
、この制限回路はアンドゲート32.34、オアゲート
33、フリップフロップ36゜37、38から成ってい
る。本例の上記制限回路の動作は第3図に示したそれと
ほぼ同じであるが、フリップフロップが1g余計である
ため、カウンタ2の計数期間が、第6図(A>に示す如
く異なっている。即ち、第3図に示した実施例と同様に
、入力信号301がローレベルの時にワンショットカウ
ンタ1の出力信号302が第6図(B)に示す如く立ち
上がったa時点にて、フリップフロップ36がセットさ
れて、フリップフロップ36の出力信号304を第6図
(C)に示す如くハイレベルとし、フリップフロップ3
7をセット可能状態とすると共に、フリップフロップ3
6の出力信号30Bをローレベルとする。この時、フリ
ップフロップ38の出力信号306はローレベルでおる
ため、アンドゲート34は、オアゲート7の出力がロー
レベルになりさえすれば開となる状態となる。この状態
で第6図(A)で示す入力信号301パルス(イ)の立
ち上がりで、オアゲート7の出力信号がローレベルとな
り、アンドゲート34が開となって、カウンタ2はカウ
ントを開始する。その後、ワンショットカウンタ1は第
6図(B)のbの時点で立ち上がり、この時フリップフ
ロップ37をセットする。このためフリップ70ツブ3
7の出力信号305が第6図(D)に示す如くハイレベ
ルとなり、出力信号309がローレベルとなるため、引
き続きオアゲート7の出力はローレベルで、カウンタ2
はカウント動作を続行する。この時、フリップフロップ
38は、信号305がハイレベルとなるためセット可能
状態となる。こうして、再び、ワンショットカウンタ1
の出力信号302がローレベルとなって第6図(E)に
示す如くCの時点で立ち上がる時、フリップフロップ3
8がセットされて、その出力信号306をハイレベルと
し、アンドゲート34を閉じるため、カウンタ2はカウ
ント動作を終了し、結局、カウンタ2は第6図(A)に
示す期間カウント動作を行い、入力信号301のWで示
す部分のパルス時間幅が測定される。なお、本例の効果
も前実施例と同様である。FIG. 5 is a block diagram showing still another embodiment of the present invention. In this example, a circuit for limiting the counting period of counter 2 with respect to an input signal is added to the circuit shown in FIG. It consists of The operation of the above-mentioned limiting circuit in this example is almost the same as that shown in Fig. 3, but since the flip-flop is 1g extra, the counting period of counter 2 is different as shown in Fig. 6 (A>). That is, similar to the embodiment shown in FIG. 3, when the input signal 301 is at a low level, the output signal 302 of the one-shot counter 1 rises as shown in FIG. 36 is set, the output signal 304 of the flip-flop 36 is set to high level as shown in FIG. 6(C), and the flip-flop 3
7 can be set, and the flip-flop 3
The output signal 30B of No. 6 is set to low level. At this time, since the output signal 306 of the flip-flop 38 is at a low level, the AND gate 34 becomes open as long as the output of the OR gate 7 becomes a low level. In this state, at the rising edge of the input signal 301 pulse (a) shown in FIG. 6(A), the output signal of the OR gate 7 becomes low level, the AND gate 34 is opened, and the counter 2 starts counting. Thereafter, the one-shot counter 1 starts up at point b in FIG. 6(B), and the flip-flop 37 is set at this time. For this reason flip 70 knob 3
As shown in FIG. 6(D), the output signal 305 of OR gate 7 becomes high level and the output signal 309 becomes low level, so the output of OR gate 7 continues to be low level and
continues counting operation. At this time, the flip-flop 38 becomes settable because the signal 305 becomes high level. In this way, one shot counter 1 again
When the output signal 302 of the flip-flop 3 becomes low level and rises at the time point C as shown in FIG. 6(E), the output signal 302 of the flip-flop 3
8 is set, the output signal 306 is set to high level, and the AND gate 34 is closed, so that the counter 2 completes the counting operation, and eventually the counter 2 performs the counting operation for the period shown in FIG. 6(A). The pulse time width of the portion indicated by W of the input signal 301 is measured. Note that the effects of this example are also similar to those of the previous example.
なお、第1.3.5図に示した各実施例は電気的に回路
構成を書き換えられるプログラマブルロジックデバイス
(PLD)を用いることによって、1つの回路にて実現
することもできる。Note that each of the embodiments shown in FIGS. 1.3.5 can also be realized in one circuit by using a programmable logic device (PLD) whose circuit configuration can be electrically rewritten.
[発明の効果]
以上記述した如く本発明のパルス時間幅測定回路によれ
ば、高精度でパルス時間幅を測定でき且つ簡単な付加回
路で回路の動作時間を変更することができる。[Effects of the Invention] As described above, according to the pulse time width measuring circuit of the present invention, the pulse time width can be measured with high accuracy, and the operating time of the circuit can be changed with a simple additional circuit.
第1図は本発明のパルス時間幅測定回路の一実施例を示
したブロック図、第2図は第1図に示した回路の動作タ
イムチャート、第3図は本発明の他の実施例を示したブ
ロック図、第4図は第3図に示した回路の動作タイムチ
ャート、第5図は本発明の更に他の実施例を示したブロ
ック図、第6図は第5図に示した回路の動作タイムチャ
ートである。
1・・・ワンショットカウンタ
2・・・カウンタ
3・・・マイクロプロセッサ
4・・・クロック発振器
5、24.34・・・アンドゲート
6、26.27.3B、 37.38・・・フリップフ
ロップ23、33・・・オアゲートFIG. 1 is a block diagram showing one embodiment of the pulse time width measuring circuit of the present invention, FIG. 2 is an operation time chart of the circuit shown in FIG. 1, and FIG. 3 is a block diagram showing another embodiment of the present invention. 4 is an operation time chart of the circuit shown in FIG. 3, FIG. 5 is a block diagram showing still another embodiment of the present invention, and FIG. 6 is a circuit diagram of the circuit shown in FIG. 5. This is an operation time chart. 1... One-shot counter 2... Counter 3... Microprocessor 4... Clock oscillator 5, 24.34... AND gate 6, 26.27.3B, 37.38... Flip-flop 23, 33... or gate
Claims (3)
パルス時間幅測定回路において、前記時間幅を計数する
計数用カウント手段と、前記パルス信号のパルスの立ち
上がり又は立ち下がりをとらえて設定数だけカウント動
作を行う再トリガ可能なワンショットカウント手段と、
このワンショットカウント手段が上記カウント動作を行
つている期間だけ前記計数用カウント手段を動作させる
制御手段と、前記計数用カウント手段がカウントした値
と前記ワンショットカウント手段の設定値とから前記パ
ルス時間幅を算出する演算手段とを具備して成ることを
特徴とするパルス時間幅測定回路。(1) In a pulse time width measurement circuit that measures the pulse time width of an input pulse signal, a counting means for counting the time width, and a set number of pulses that capture the rise or fall of the pulse of the pulse signal are provided. a retriggerable one-shot counting means for performing a counting operation;
control means for operating the counting means only during the period when the one-shot counting means is performing the counting operation; 1. A pulse time width measuring circuit comprising: arithmetic means for calculating a width.
延時間を補償する補償手段を含むことを特徴とする請求
項第1項記載のパルス時間幅測定回路。(2) The pulse time width measuring circuit according to claim 1, wherein the control means includes compensation means for compensating for the operation delay time of the one-shot counting means.
時点が入力パルス信号と特定の関係にある時のみ計数用
カウント手段を動作させることを特徴とする請求項第1
項又は第2項記載のパルス時間幅測定回路。(3) The control means operates the counting means only when the operation start point of the one-shot counting means has a specific relationship with the input pulse signal.
The pulse time width measuring circuit according to item 1 or 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32160388A JPH02166830A (en) | 1988-12-20 | 1988-12-20 | Pulse time width measuring instrument |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32160388A JPH02166830A (en) | 1988-12-20 | 1988-12-20 | Pulse time width measuring instrument |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02166830A true JPH02166830A (en) | 1990-06-27 |
Family
ID=18134377
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP32160388A Ceased JPH02166830A (en) | 1988-12-20 | 1988-12-20 | Pulse time width measuring instrument |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02166830A (en) |
-
1988
- 1988-12-20 JP JP32160388A patent/JPH02166830A/en not_active Ceased
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4150432A (en) | Frequency counter and method | |
| US2851596A (en) | Electronic counter | |
| JPH0463345B2 (en) | ||
| WO1989001191A1 (en) | Method and apparatus for asynchronous time measurement | |
| US4350953A (en) | Time interval measurement apparatus | |
| JP3026448B2 (en) | Gate generation circuit | |
| US4603292A (en) | Frequency and time measurement circuit | |
| JPH05215872A (en) | Unstable condition avoiding circuit and method for avoiding unstable condition | |
| US4168467A (en) | Measurement of pulse duration | |
| JPS6045383B2 (en) | electronic watch body | |
| US5357490A (en) | Measuring timer system | |
| JP2742642B2 (en) | Oscillation-synchronous frequency change measurement method and apparatus | |
| CN113063992B (en) | Timing circuit and timing method for measuring time difference between two paths of pulse signals | |
| JP2524617B2 (en) | Frequency measuring device | |
| JPH0395484A (en) | Pace measuring apparatus of electronic time-piece | |
| JP3383437B2 (en) | Time measurement method and clock | |
| SU1659973A1 (en) | Pulse duration and time position meter | |
| JP3080480B2 (en) | Signal delay time measuring device | |
| JPH0923159A (en) | measuring device | |
| US5511047A (en) | High resolution timer using low resolution counter | |
| JPH0317275Y2 (en) | ||
| SU785990A1 (en) | Meter of transient process time of frequency setting | |
| JPS6042383Y2 (en) | frequency counter device | |
| SU659978A1 (en) | Electronic counting frequency meter | |
| SU1451640A2 (en) | Device for measuring delay time |