JP2004184296A - Pulse interval measuring device - Google Patents

Pulse interval measuring device Download PDF

Info

Publication number
JP2004184296A
JP2004184296A JP2002353246A JP2002353246A JP2004184296A JP 2004184296 A JP2004184296 A JP 2004184296A JP 2002353246 A JP2002353246 A JP 2002353246A JP 2002353246 A JP2002353246 A JP 2002353246A JP 2004184296 A JP2004184296 A JP 2004184296A
Authority
JP
Japan
Prior art keywords
pulse
clock
time
circuit
converter
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
JP2002353246A
Other languages
Japanese (ja)
Inventor
Shoichi Sakamoto
尚一 坂本
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2002353246A priority Critical patent/JP2004184296A/en
Publication of JP2004184296A publication Critical patent/JP2004184296A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a pulse interval measuring device capable of measuring a time within a clock period with a simple constitution without using a two-phase oscillator. <P>SOLUTION: The number of clocks between a start pulse and a stop pulse of a pulse to be measured is counted by a counter 7, and the time from the start pulse until the next clock is measured by an integrating circuit 2 and an A/D converter 4 for converting the output voltage of the integrating circuit 2 into a digital value. The time from the stop pulse until the next clock is measured by an integrating circuit 3 and an A/D converter 5 for converting the output voltage of the integrating circuit 3 into a digital value, and the output of the counter 7 and outputs of the A/D converters 4, 5 are inputted into an operation circuit 8, and the time between the start pulse and the stop pulse is measured. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
この発明は、パルス間隔を測定するパルス間隔測定装置に関するものである。
【0002】
【従来の技術】
従来のパルス間隔測定装置においては、クロック信号に同期した2位相発振器を用い、2位相発振器の信号の振幅をディジタル値に変換してクロック周期より短い時間を測定している(例えば、特許文献1参照)。
【0003】
【特許文献1】
特開平4−244971号公報(第3〜4頁、図1)
【0004】
【発明が解決しようとする課題】
従来のパルス間隔測定装置は、2位相発振器がスタートクロックの同期をとらなければならず、高精度の同期回路と高精度の波形発生器が必要であり、構成が複雑になるという問題がある。
また、パルス間隔が短くなった場合に、部品構成の多さから各部品の遅延時間の制約による影響を大きく受ける問題点があった。
【0005】
この発明は、上記のような問題点を解決するためになされたものであり、2位相発振器を用いることなく、簡単な構成で、クロック周期以内の時間を測定することができるパルス間隔測定装置を得ることを目的とする。
【0006】
【課題を解決するための手段】
この発明に係わるパルス間隔測定装置においては、クロックを用いて被測定パルスの間隔を測定するパルス間隔測定装置において、被測定パルスの第一のパルスと第二のパルスとの間のクロック数をカウントする第一のカウンタ、被測定パルスの第一のパルスから第一のパルス以後の所定のクロックまでの時間を測定する第一の測定手段、第一のパルスの次の被測定パルスである第二のパルスから第二のパルス以後の所定のクロックまでの時間を測定する第二の測定手段、及び第一のカウンタによってカウントされるクロック数と第一の測定手段及び第二の測定手段によって測定された時間とにより第一のパルスと第二のパルスとの間隔時間を演算する演算回路を備え、
第一の測定手段は、第一のパルスの入力によって積分を開始し、第一のパルス以後の所定のクロックまでを積分する第一の積分回路と、この第一の積分回路の出力電圧をディジタル値に変換する第一のA/D変換器とによって構成され、
第二の測定手段は、第二のパルスの入力によって積分を開始し、第二のパルス以後の所定のクロックまでを積分する第二の積分回路と、この第二の積分回路の出力電圧をディジタル値に変換する第二のA/D変換器とによって構成されているものである。
【0007】
【発明の実施の形態】
実施の形態1.
以下、この発明の実施の形態1を図に基づいて説明する。
図1は、この発明の実施の形態1によるパルス間隔測定装置を示す回路構成図である。
図1において、クロック回路1は、クロック信号を発生する。積分回路a2(第一の積分回路)は、スタートパルスP1(第一のパルス)で積分を開始し、積分回路b3(第二の積分回路)は、ストップパルスP2(第二のパルス)で積分を開始する。A/D変換器a4(第一のA/D変換器)は、積分回路a2の出力電圧をディジタルに変換し、A/D変換器b5(第二のA/D変換器)は、積分回路b3の出力電圧をディジタルに変換する。第一の積分回路と第一のA/D変換器は、第一の測定手段を構成し、第二の積分回路と第二のA/D変換器は、第二の測定手段を構成している。
コントロール回路6は、クロック信号、スタートパルスP1、ストップパルスP2の入力と、A/D変換器4、5の動作時間(既知)から、積分回路2、3のスタート、ストップ信号の生成及びカウンタ7のカウントスタート、カウントストップの信号を生成する。カウンタ7(第一のカウンタ)は、クロック信号をカウントする。演算回路8は、カウンタ7のカウンタ値と、A/D変換器4、5の出力値が入力され、スタートパルスP1とストップパルスP2間(被測定パルス)のパルス間隔を算出する。
図2は、この発明の実施の形態1によるパルス間隔測定装置の動作を示すタイミングチャートである。
【0008】
次に、動作について説明する。
スタートパルスP1が入力されると、コントロール回路6で、カウンタ7にスタート信号を送り、カウンタ7にクロックの読み込みを開始するカウンタゲート開信号と、積分回路a2に積分を開始する積分開始信号を送る。
積分回路a2、b3は、簡易な回路で良く、例えば、定電流ダイオードと、コンデンサと、このコンデンサの充電、放電を行う半導体スイッチとで構成されている。積分開始信号は、コンデンサの充電を行う半導体スイッチを動作させ、コンデンサの充電を行う。積分回路2、3の時定数は、クロック間隔(T0時間)時間内に飽和しない値に設定することで、クロック間隔時間内の補正を確実に行うことができる。
積分回路a2の積分開始信号は、スタートパルスP1入力時とし、積分停止信号は、スタートパルスP1入力後の次のクロック(所定のクロック)が発生した時とし、積分回路a2の出力には時間に比例した電圧が発生する。A/D変換器a4は、積分停止信号により変換を開始し、積分回路a2の出力電圧を読み込む。積分回路a2の出力電圧は、スタートパルスP1入力からクロック入力までの時間に比例しており、この時間をT1とする。コントロール回路6は、A/D変換器a4の変換完了後に積分回路a2の積分回路を初期状態にする初期状態信号を送り、初期の状態に戻す。
【0009】
ストップパルスP2が入力されると、コントロール回路6で、カウンタ7にストップ信号を送り、カウンタ7にクロックの読み込みを停止するカウンタゲート閉信号と、積分回路b3に積分を開始する積分開始信号を送る。
積分回路b3の積分開始信号は、ストップパルスP2入力時とし、積分停止信号は、ストップパルスP2入力後の次のクロック(所定のクロック)が発生した時とし、積分回路b3の出力には時間に比例した電圧が発生する。A/D変換器b5は、積分停止信号により変換を開始し、積分回路の出力電圧を読み込む。積分回路b3の出力電圧は、ストップパルスP2入力からクロック入力までの時間に比例しており、この時間をT2とする。コントロール回路6は、A/D変換器b5の変換完了後に積分回路b3の積分回路を初期状態にする初期状態信号を送り、初期の状態に戻す。
【0010】
スタートパルスP1とストップパルスP2間の時間Tは、演算回路8で求める。スタートパルスP1からスタートパルスP1の次に入力されるクロックとの時間は、A/D変換器a4の出力値で、T1時間とする。ストップパルスP2とストップパルスP2の次に入力されるクロックとの時間は、A/D変換器b5の出力値で、T2時間とする。スタートパルスP1の次のクロックからストップパルスP2の前のクロックまでの時間TCは、カウンタ値nとクロック間隔時間T0との積T0×nで決まる。したがって、スタートパルスP1からストップパルスP2までの時間Tは、T=T1+(T0−T2)+TCで求まる。これにより、クロック周期以内の時間を計測することができる。
【0011】
実施の形態1によれば、このように、スタートパルスP1と同期をとった2位相発振器のような複雑な回路なしに、簡易な積分回路を用いて、クロック周期以内の時間を計測するパルス間隔測定装置を安価に構成できる効果がある。
【0012】
実施の形態2.
実施の形態1では、積分回路の出力電圧が、コンデンサの自己放電、半導体スイッチのリーク電流及び次段のA/D変換器の入力抵抗により徐々に低下するため、この低下を無視できる高速のA/D変換器を使用する必要があるという欠点がある。実施の形態2は、これに対応するものである。
図3は、この発明の実施の形態2によるパルス間隔測定装置を示す回路構成図である。
図3において、1〜8は図1におけるものと同一のものである。積分回路の出力電圧の低下を抑制するために、積分回路a2の出力側にホールド回路a9(第一のホールド回路)を、積分回路b3の出力側にホールド回路b10(第二のホールド回路)を設ける。
図4は、この発明の実施の形態2によるパルス間隔測定装置の動作を示すタイミングチャートである。
図4にみられるように、ホールド回路9、10により、積分回路2、3の出力電圧の低下を防いでいる。
【0013】
実施の形態2によれば、ホールド回路a、bを設けることで積分回路の出力電圧が低下せず、低速のA/D変換器で高精度の時間が測定できる効果がある。
【0014】
実施の形態3.
安価な積分回路は、一般的にコンデンサを使用しており、周囲温度に対する静電容量の変化が大きく、積分回路の時定数が変化することから温度によって同一時間が同一出力電圧とならないという欠点がある。実施の形態3は、これに対応するものである。
図5は、この発明の実施の形態3によるパルス間隔測定装置を示す回路構成図である。
図5において、1〜8は図1におけるものと同一のものである。図5では、積分回路の温度変化を抑制するために温度検出回路11を積分回路の温度影響を大きく受ける素子の近傍に設ける。
実施の形態3のタイミングチャートは、図2と同じである。
【0015】
温度検出回路11の出力は、演算回路8に入力し、A/D変換器a4の測定時間T1及びA/D変換器b5の測定時間T2の値を、予め求めた温度に対する関数により温度係数を乗じた値を求め、測定時間T1の温度補正後の時間T1’、測定時間T2の温度補正時間T2’とする。
スタートパルスP1からストップパルスP2間での時間Tは、
T=T1’+(T0−T2’)+TCで求まる。
【0016】
実施の形態3によれば、温度検出回路を設け、積分回路の温度補正を行うことで、温度変化に対し高精度の時間が測定できる効果がある。
【0017】
実施の形態4.
実施の形態3では、温度測定回路を使用して温度変化の影響を受けやすい積分回路の補正を行っているが、積分回路は、温度以外にも経時変化の影響も受けやすい。実施の形態4は、これに対応するものである。
実施の形態4の回路構成は、図1と同じである。
図6は、この発明の実施の形態4によるパルス間隔測定装置の動作を示すタイミングチャートである。
実施の形態4では、時間が正確なクロックの間隔時間で積分回路の出力電圧をA/D変換し、積分回路の出力電圧から求められる時間を補正する補正係数を求める。
T1時間の積分回路の出力電圧をA/D変換した時間をT1’、T0時間の積分回路の出力電圧をA/D変換した時間をT0’とすると、補正係数は、(T0/T0’)×T1’で求められる。T2時間についても同様に補正係数を求めることができる。
【0018】
実施の形態4によれば、スタートパルスP1及びストップパルスP2入力毎にA/D変換器を含めた積分回路の校正を行うため、温度変化、経時変化等による計測時間への影響を排除でき高精度の時間が計測できる効果がある。
【0019】
実施の形態5.
実施の形態4では、スタートパルスP1による積分と校正用の積分を個別に行っており、積分スタート時の半導体スイッチ等による特性の変化により誤差を生じる欠点がある。実施の形態5は、これに対応するものである。
実施の形態5の回路構成は、図1と同じである。
図7は、この発明の実施の形態5によるパルス間隔測定装置の動作を示すタイミングチャートである。
積分回路の時定数を、クロック間隔時間の2倍以上で飽和しない値に設定することで補正を行うことができる。
図7のタイミングチャートで以下に動作を説明する。
【0020】
実施の形態5では、積分回路の時定数をT0×3の値で飽和しないようにしている。
スタートパルスP1が入力されるとカウンタ7のカウントを開始するためのカウンタゲートを開とし、カウントできる状態にする。さらに、積分回路a2の積分を開始する。スタートパルスP1が入力された後の2番目のクロックで、積分回路a2の出力電圧をA/D変換器a4で読み込み、時間T1_1とし、3番目のクロック(所定のクロック)で積分回路の停止と積分回路の出力電圧をA/D変換器a4で読み込み、時間T1_2とする。
ストップパルスP2についても、スタートパルス1と同様にA/D変換器b5で読み込み、時間T2_1、T2_2を計測する。
【0021】
積分回路で計測した時間と、カウンタ7のカウント値からパルス間隔の時間を次のように求める。
カウンタ7のカウント値は、積分回路の積分時間分のカウント値が含まれており、スタートパルスP1から2カウント、ストップパルスP2から2カウントは減算する必要があり、カウント値をnとすると、カウンタ値の時間TC=(n−4)×T0時間となる。
積分回路a2で求める時間T1は、積分開始のスタートパルスP1から積分停止の3番目のクロックまでの時間で、T0時間がT1_2−T1_1より、
T1=((T0/(T1_2−T1_1))×T1_2
で求められる。
積分回路b3で求める時間T2は、積分開始のスタートパルスP2から積分停止の3番目のクロック(所定のクロック)までの時間で、T0時間がT2_2−T2_1より、
T2=((T0/(T2_2−T2_1))×T2_2
で求められる。
スタートパルスP1からストップパルスP2までの時間Tは、
T=T1+(T0×3−T2)+TCで求まる。
【0022】
実施の形態5によれば、このように、積分回路の動作中に同時に構成できることから、回路の特性のばらつきによる誤差が校正でき、高精度に測定できる効果がある。
【0023】
実施の形態6.
実施の形態1〜5は、パルス入力が連続して入力される場合に、それぞれのパルス間隔を測定できない欠点がある。実施の形態6は、これに対応するものである。
図8は、この発明の実施の形態6によるパルス間隔測定装置を示す回路構成図である。
図8において、1〜6、8は図1におけるものと同一のものである。図8では、カウンタa7(第一のカウンタ)とカウンタb12(第二のカウンタ)との二つのカウンタを設け、パルス間隔を連続して測定することができるようにした。
図9は、この発明の実施の形態6によるパルス間隔測定装置の動作を示すタイミングチャートである。
【0024】
次に、動作について説明する。
スタートパルスP1(第一のパルス)が入力されると、コントロール回路6で、カウンタa7にクロックの読み込みを開始するカウンタゲート開信号、カウンタb12にクロックの読み込みを停止するカウンタゲート閉信号、さらに積分回路a2に積分を開始する積分開始信号を送る。
積分回路a2の積分開始信号は、スタートパルスP1入力時に、積分停止信号は、スタートパルスP1の次のクロックが発生した時に停止し、積分回路a2の出力には時間に比例した電圧が発生している。A/D変換器a4は、積分停止信号により変換を開始し、積分回路a2の出力電圧を読み込む。積分回路a2の出力電圧は、スタートパルスP1入力からクロック入力までの時間に比例しており、この時間をT1とする。コントロール回路6は、A/D変換器a4の変換完了後に積分回路a2を初期状態にする初期状態信号を送り、初期の状態に戻す。
【0025】
ストップパルスP2(第二のパルス)が入力されると、コントロール回路6で、カウンタa7にクロックの読み込みを停止するカウンタゲート閉信号、カウンタb12にクロックの読み込みを開始するカウンタゲート開信号、さらに積分回路b3に積分を開始する積分開始信号を送る。積分回路b3の積分開始信号は、ストップパルスP2入力時に、積分停止信号は、ストップパルスP2入力後の次のクロックが発生した時とし、積分回路b3の出力には時間に比例した電圧が発生している。A/D変換器b5は、積分停止信号により変換を開始し、積分回路b3の出力電圧を読み込む。積分回路b3の出力電圧は、ストップパルスP2入力からクロック入力までの時間に比例しており、この時間をT2とする。コントロール回路6は、A/D変換器b5の変換完了後に、積分回路b3を初期状態にする初期状態信号を送り、初期の状態に戻す。
【0026】
次にスタートパルスP1(第三のパルス)が入力されると、上述と同じ動作でA/D変換器a4の出力値より、時間をT3とする。
スタートパルスP1とストップパルスP2間の時間Tは、演算回路8で求める。スタートパルスP1からスタートパルスP1の次に入力されるクロックとの時間は、A/D変換器a4の出力値で、T1時間とする。ストップパルスP2とストップパルスP2の次に入力されるクロックとの時間は、A/D変換器bの出力値で、T2時間とする。スタートパルスP1の次のクロックからストップパルスP2の前のクロックまでの時間TCは、カウンタ値nとクロック間隔時間T0より、TC=T0×nで求まる。
スタートパルスP1からストップパルスP2までの時間Tは、
T=T1+(T0−T2)+TCで求まる。
同様に、ストップパルスP2からスタートパルスP1までに時間Tは、
T=T2+(T0−T3)+TCで求まる。
【0027】
実施の形態6によれば、これにより、スタートパルスP1とストップパルスP2が切り返し入力された場合にそれぞれのパルス間隔時間を連続して計測することができる効果がある。
【0028】
【発明の効果】
この発明は、以上説明したように、クロックを用いて被測定パルスの間隔を測定するパルス間隔測定装置において、被測定パルスの第一のパルスと第二のパルスとの間のクロック数をカウントする第一のカウンタ、被測定パルスの第一のパルスから第一のパルス以後の所定のクロックまでの時間を測定する第一の測定手段、第一のパルスの次の被測定パルスである第二のパルスから第二のパルス以後の所定のクロックまでの時間を測定する第二の測定手段、及び第一のカウンタによってカウントされるクロック数と第一の測定手段及び第二の測定手段によって測定された時間とにより第一のパルスと第二のパルスとの間隔時間を演算する演算回路を備え、
第一の測定手段は、第一のパルスの入力によって積分を開始し、第一のパルス以後の所定のクロックまでを積分する第一の積分回路と、この第一の積分回路の出力電圧をディジタル値に変換する第一のA/D変換器とによって構成され、
第二の測定手段は、第二のパルスの入力によって積分を開始し、第二のパルス以後の所定のクロックまでを積分する第二の積分回路と、この第二の積分回路の出力電圧をディジタル値に変換する第二のA/D変換器とによって構成されているので、簡易な積分回路を用いて、クロック周期以内の時間を測定することができる。
【図面の簡単な説明】
【図1】この発明の実施の形態1によるパルス間隔測定装置を示す回路構成図である。
【図2】この発明の実施の形態1によるパルス間隔測定装置の動作を示すタイミングチャートである。
【図3】この発明の実施の形態2によるパルス間隔測定装置を示す回路構成図である。
【図4】この発明の実施の形態2によるパルス間隔測定装置の動作を示すタイミングチャートである。
【図5】この発明の実施の形態3によるパルス間隔測定装置を示す回路構成図である。
【図6】この発明の実施の形態4によるパルス間隔測定装置の動作を示すタイミングチャートである。
【図7】この発明の実施の形態5によるパルス間隔測定装置の動作を示すタイミングチャートである。
【図8】この発明の実施の形態6によるパルス間隔測定装置を示す回路構成図である。
【図9】この発明の実施の形態6によるパルス間隔測定装置の動作を示すタイミングチャートである。
【符号の説明】
1 クロック回路、2 積分回路a、3 積分回路b、4 A/D変換器a、
5 A/D変換器b、6 コントロール回路、7 カウンタまたはカウンタa、
8 演算回路、9 ホールド回路a、10 ホールド回路b、
11 温度検出回路、12 カウンタb。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a pulse interval measuring device for measuring a pulse interval.
[0002]
[Prior art]
In a conventional pulse interval measuring device, a two-phase oscillator synchronized with a clock signal is used, and the amplitude of the signal of the two-phase oscillator is converted into a digital value to measure a time shorter than a clock cycle (for example, Patent Document 1). reference).
[0003]
[Patent Document 1]
JP-A-4-244971 (pages 3 and 4, FIG. 1)
[0004]
[Problems to be solved by the invention]
The conventional pulse interval measuring device has a problem that the two-phase oscillator must synchronize the start clock, and requires a high-precision synchronization circuit and a high-precision waveform generator, which complicates the configuration.
Further, when the pulse interval becomes short, there is a problem that the delay time of each component is greatly affected by the large number of component configurations.
[0005]
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has a pulse interval measuring device capable of measuring time within a clock cycle with a simple configuration without using a two-phase oscillator. The purpose is to get.
[0006]
[Means for Solving the Problems]
In the pulse interval measuring device according to the present invention, in the pulse interval measuring device for measuring the interval of the pulse to be measured using a clock, the number of clocks between the first pulse and the second pulse of the pulse to be measured is counted. A first counter, a first measuring means for measuring a time from a first pulse of the pulse to be measured to a predetermined clock after the first pulse, a second which is a pulse to be measured next to the first pulse. The second measuring means for measuring the time from the pulse of the second pulse to a predetermined clock after the second pulse, and the number of clocks counted by the first counter and measured by the first measuring means and the second measuring means. Provided with an arithmetic circuit that calculates the interval time between the first pulse and the second pulse based on the time
The first measuring means starts integration by input of the first pulse, and integrates a first integration circuit that integrates up to a predetermined clock after the first pulse, and digitally outputs an output voltage of the first integration circuit. A first A / D converter that converts the value into a value,
The second measuring means starts integration by input of the second pulse, integrates a predetermined clock after the second pulse up to a predetermined clock, and digitally outputs an output voltage of the second integration circuit. And a second A / D converter for converting the value into a value.
[0007]
BEST MODE FOR CARRYING OUT THE INVENTION
Embodiment 1 FIG.
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a circuit configuration diagram showing a pulse interval measuring device according to Embodiment 1 of the present invention.
In FIG. 1, a clock circuit 1 generates a clock signal. The integration circuit a2 (first integration circuit) starts integration with a start pulse P1 (first pulse), and the integration circuit b3 (second integration circuit) integrates with a stop pulse P2 (second pulse). To start. The A / D converter a4 (first A / D converter) converts the output voltage of the integration circuit a2 to digital, and the A / D converter b5 (second A / D converter) converts the output voltage of the integration circuit a2 to digital. The output voltage of b3 is converted to digital. The first integrating circuit and the first A / D converter constitute first measuring means, and the second integrating circuit and the second A / D converter constitute second measuring means. I have.
The control circuit 6 generates the start and stop signals of the integration circuits 2 and 3 and the counter 7 based on the input of the clock signal, the start pulse P1 and the stop pulse P2, and the operation time (known) of the A / D converters 4 and 5. Generates count start and count stop signals. The counter 7 (first counter) counts a clock signal. The arithmetic circuit 8 receives the counter value of the counter 7 and the output values of the A / D converters 4 and 5 and calculates the pulse interval between the start pulse P1 and the stop pulse P2 (measured pulse).
FIG. 2 is a timing chart showing the operation of the pulse interval measuring device according to the first embodiment of the present invention.
[0008]
Next, the operation will be described.
When the start pulse P1 is input, the control circuit 6 sends a start signal to the counter 7 and sends a counter gate open signal for starting clock reading to the counter 7 and an integration start signal for starting integration to the integration circuit a2. .
Each of the integrating circuits a2 and b3 may be a simple circuit, and includes, for example, a constant current diode, a capacitor, and a semiconductor switch for charging and discharging the capacitor. The integration start signal operates the semiconductor switch for charging the capacitor, and charges the capacitor. By setting the time constant of the integrating circuits 2 and 3 to a value that does not saturate within the clock interval (T0 time), the correction within the clock interval can be reliably performed.
The integration start signal of the integration circuit a2 is when the start pulse P1 is input, the integration stop signal is when the next clock (predetermined clock) after the input of the start pulse P1 is generated, and the output of the integration circuit a2 is time. A proportional voltage is generated. The A / D converter a4 starts the conversion in response to the integration stop signal, and reads the output voltage of the integration circuit a2. The output voltage of the integrating circuit a2 is proportional to the time from the input of the start pulse P1 to the input of the clock, and this time is defined as T1. The control circuit 6 sends an initial state signal for initializing the integration circuit of the integration circuit a2 after the completion of the conversion of the A / D converter a4, and returns to the initial state.
[0009]
When the stop pulse P2 is input, the control circuit 6 sends a stop signal to the counter 7 and sends a counter gate closing signal for stopping the clock reading to the counter 7 and an integration start signal for starting the integration to the integrating circuit b3. .
The integration start signal of the integration circuit b3 is when the stop pulse P2 is input, the integration stop signal is when the next clock (predetermined clock) after the stop pulse P2 is input, and the output of the integration circuit b3 is time. A proportional voltage is generated. The A / D converter b5 starts the conversion in response to the integration stop signal, and reads the output voltage of the integration circuit. The output voltage of the integrating circuit b3 is proportional to the time from the input of the stop pulse P2 to the input of the clock, and this time is defined as T2. The control circuit 6 sends an initial state signal for initializing the integration circuit of the integration circuit b3 after the completion of the conversion of the A / D converter b5, and returns to the initial state.
[0010]
The operation circuit 8 calculates the time T between the start pulse P1 and the stop pulse P2. The time from the start pulse P1 to the clock input next to the start pulse P1 is the output value of the A / D converter a4 and is T1 time. The time between the stop pulse P2 and the clock input next to the stop pulse P2 is the output value of the A / D converter b5, and is T2 time. The time TC from the clock following the start pulse P1 to the clock before the stop pulse P2 is determined by the product T0 × n of the counter value n and the clock interval time T0. Therefore, the time T from the start pulse P1 to the stop pulse P2 is determined by T = T1 + (T0−T2) + TC. Thus, the time within the clock cycle can be measured.
[0011]
According to the first embodiment, the pulse interval for measuring the time within the clock cycle using a simple integrator without a complicated circuit such as a two-phase oscillator synchronized with the start pulse P1 as described above. There is an effect that the measuring device can be configured at low cost.
[0012]
Embodiment 2 FIG.
In the first embodiment, since the output voltage of the integrating circuit gradually decreases due to the self-discharge of the capacitor, the leakage current of the semiconductor switch, and the input resistance of the A / D converter at the next stage, the high-speed A can ignore this decrease. There is a disadvantage that a / D converter needs to be used. Embodiment 2 corresponds to this.
FIG. 3 is a circuit configuration diagram showing a pulse interval measuring device according to a second embodiment of the present invention.
In FIG. 3, reference numerals 1 to 8 are the same as those in FIG. In order to suppress a decrease in the output voltage of the integration circuit, a hold circuit a9 (first hold circuit) is provided on the output side of the integration circuit a2, and a hold circuit b10 (second hold circuit) is provided on the output side of the integration circuit b3. Provide.
FIG. 4 is a timing chart showing the operation of the pulse interval measuring device according to the second embodiment of the present invention.
As shown in FIG. 4, the hold circuits 9 and 10 prevent the output voltages of the integration circuits 2 and 3 from decreasing.
[0013]
According to the second embodiment, by providing the hold circuits a and b, the output voltage of the integration circuit does not decrease, and there is an effect that a highly accurate time can be measured by a low-speed A / D converter.
[0014]
Embodiment 3 FIG.
Inexpensive integrators generally use capacitors, have a large capacitance change with respect to the ambient temperature, and the time constant of the integrator changes. is there. Embodiment 3 corresponds to this.
FIG. 5 is a circuit diagram showing a pulse interval measuring apparatus according to Embodiment 3 of the present invention.
In FIG. 5, reference numerals 1 to 8 are the same as those in FIG. In FIG. 5, a temperature detection circuit 11 is provided near an element of the integration circuit which is greatly affected by temperature in order to suppress a change in temperature of the integration circuit.
The timing chart of the third embodiment is the same as that of FIG.
[0015]
The output of the temperature detection circuit 11 is input to an arithmetic circuit 8, and the values of the measurement time T1 of the A / D converter a4 and the measurement time T2 of the A / D converter b5 are converted into a temperature coefficient by a function with respect to a temperature previously obtained. The multiplied values are obtained, and are set as a time T1 'after the temperature correction of the measurement time T1 and a temperature correction time T2' of the measurement time T2.
The time T between the start pulse P1 and the stop pulse P2 is
T = T1 ′ + (T0−T2 ′) + TC.
[0016]
According to the third embodiment, by providing the temperature detection circuit and performing the temperature correction of the integration circuit, there is an effect that a highly accurate time can be measured with respect to a temperature change.
[0017]
Embodiment 4 FIG.
In the third embodiment, the temperature measuring circuit is used to correct an integrating circuit that is easily affected by a change in temperature. However, the integrating circuit is easily affected by a change with time other than the temperature. Embodiment 4 corresponds to this.
The circuit configuration of the fourth embodiment is the same as that of FIG.
FIG. 6 is a timing chart showing the operation of the pulse interval measuring device according to the fourth embodiment of the present invention.
In the fourth embodiment, the output voltage of the integration circuit is A / D-converted at the time interval of the clock that is accurate, and a correction coefficient for correcting the time obtained from the output voltage of the integration circuit is obtained.
Assuming that the time during which the output voltage of the integration circuit during the time T1 is A / D converted is T1 'and the time when the output voltage of the integration circuit during the time T0 is A / D converted is T0', the correction coefficient is (T0 / T0 ') × T1 '. The correction coefficient can be similarly obtained for the time T2.
[0018]
According to the fourth embodiment, since the integration circuit including the A / D converter is calibrated for each input of the start pulse P1 and the stop pulse P2, the influence on the measurement time due to a temperature change, a change over time, or the like can be eliminated. There is an effect that the time of accuracy can be measured.
[0019]
Embodiment 5 FIG.
In the fourth embodiment, integration by the start pulse P1 and integration for calibration are separately performed, and there is a disadvantage that an error occurs due to a change in characteristics due to a semiconductor switch at the start of integration. Embodiment 5 corresponds to this.
The circuit configuration of the fifth embodiment is the same as that of FIG.
FIG. 7 is a timing chart showing the operation of the pulse interval measuring device according to the fifth embodiment of the present invention.
The correction can be performed by setting the time constant of the integration circuit to a value that does not saturate at least twice the clock interval time.
The operation will be described below with reference to the timing chart of FIG.
[0020]
In the fifth embodiment, the time constant of the integration circuit is not saturated at the value of T0 × 3.
When the start pulse P1 is input, the counter gate for starting the counting of the counter 7 is opened, and the counting is started. Further, the integration of the integration circuit a2 is started. At the second clock after the start pulse P1 is input, the output voltage of the integration circuit a2 is read by the A / D converter a4, and the time is set to T1_1. The integration circuit is stopped at the third clock (predetermined clock). The output voltage of the integration circuit is read by the A / D converter a4, and is set as time T1_2.
Similarly to the start pulse 1, the stop pulse P2 is read by the A / D converter b5, and the times T2_1 and T2_2 are measured.
[0021]
The pulse interval time is obtained from the time measured by the integration circuit and the count value of the counter 7 as follows.
The count value of the counter 7 includes the count value for the integration time of the integration circuit, and it is necessary to subtract 2 counts from the start pulse P1 and 2 counts from the stop pulse P2. The value time TC = (n−4) × T0 time.
The time T1 obtained by the integration circuit a2 is a time from the start pulse P1 for starting the integration to the third clock for stopping the integration, and the time T0 is longer than T1_2-T1_1.
T1 = ((T0 / (T1_2-T1_1)) × T1_2
Is required.
The time T2 obtained by the integration circuit b3 is the time from the start pulse P2 for starting the integration to the third clock (predetermined clock) for stopping the integration, and the time T0 is longer than T2_2-T2_1.
T2 = ((T0 / (T2_2-T2_1)) × T2_2
Is required.
The time T from the start pulse P1 to the stop pulse P2 is
T = T1 + (T0 × 3-T2) + TC.
[0022]
According to the fifth embodiment, since the configuration can be performed at the same time during the operation of the integration circuit, errors due to variations in circuit characteristics can be calibrated and the measurement can be performed with high accuracy.
[0023]
Embodiment 6 FIG.
Embodiments 1 to 5 have a disadvantage that when pulse inputs are continuously input, the pulse intervals cannot be measured. Embodiment 6 corresponds to this.
FIG. 8 is a circuit diagram showing a pulse interval measuring apparatus according to Embodiment 6 of the present invention.
8, 1 to 6 and 8 are the same as those in FIG. In FIG. 8, two counters, a counter a7 (first counter) and a counter b12 (second counter), are provided so that the pulse interval can be measured continuously.
FIG. 9 is a timing chart showing the operation of the pulse interval measuring device according to the sixth embodiment of the present invention.
[0024]
Next, the operation will be described.
When the start pulse P1 (first pulse) is input, the control circuit 6 causes the counter a7 to start reading a clock, a counter gate open signal to start reading the clock, the counter b12 to stop the clock reading, and a further integration. An integration start signal for starting integration is sent to the circuit a2.
The integration start signal of the integration circuit a2 is stopped when the start pulse P1 is input, the integration stop signal is stopped when the next clock of the start pulse P1 is generated, and a voltage proportional to time is generated at the output of the integration circuit a2. I have. The A / D converter a4 starts the conversion in response to the integration stop signal, and reads the output voltage of the integration circuit a2. The output voltage of the integrating circuit a2 is proportional to the time from the input of the start pulse P1 to the input of the clock, and this time is defined as T1. The control circuit 6 sends an initial state signal for initializing the integration circuit a2 after the completion of the conversion of the A / D converter a4, and returns to the initial state.
[0025]
When the stop pulse P2 (second pulse) is input, the control circuit 6 causes the counter a7 to stop reading the clock, the counter gate closing signal to stop reading the clock, the counter b12 to open the counter gate, and the integration. An integration start signal for starting integration is sent to the circuit b3. The integration start signal of the integration circuit b3 is when the stop pulse P2 is input, the integration stop signal is when the next clock after the input of the stop pulse P2 is generated, and a voltage proportional to time is generated at the output of the integration circuit b3. ing. The A / D converter b5 starts the conversion in response to the integration stop signal, and reads the output voltage of the integration circuit b3. The output voltage of the integrating circuit b3 is proportional to the time from the input of the stop pulse P2 to the input of the clock, and this time is defined as T2. After the conversion of the A / D converter b5 is completed, the control circuit 6 sends an initial state signal for initializing the integration circuit b3, and returns to the initial state.
[0026]
Next, when the start pulse P1 (third pulse) is input, the time is set to T3 based on the output value of the A / D converter a4 in the same operation as described above.
The operation circuit 8 calculates the time T between the start pulse P1 and the stop pulse P2. The time from the start pulse P1 to the clock input next to the start pulse P1 is the output value of the A / D converter a4 and is T1 time. The time between the stop pulse P2 and the clock input after the stop pulse P2 is the output value of the A / D converter b, and is T2 time. The time TC from the next clock of the start pulse P1 to the clock before the stop pulse P2 is obtained from the counter value n and the clock interval time T0 as TC = T0 × n.
The time T from the start pulse P1 to the stop pulse P2 is
T = T1 + (T0−T2) + TC.
Similarly, the time T from the stop pulse P2 to the start pulse P1 is:
T = T2 + (T0−T3) + TC.
[0027]
According to the sixth embodiment, when the start pulse P1 and the stop pulse P2 are repeatedly input, the pulse interval time can be measured continuously.
[0028]
【The invention's effect】
As described above, the present invention counts the number of clocks between a first pulse and a second pulse of a measured pulse in a pulse interval measuring device that measures the interval of the measured pulse using a clock. A first counter, first measuring means for measuring a time from a first pulse of the pulse to be measured to a predetermined clock after the first pulse, a second pulse which is a pulse to be measured next to the first pulse. Second measuring means for measuring the time from the pulse to a predetermined clock after the second pulse, and the number of clocks counted by the first counter and measured by the first measuring means and the second measuring means With an arithmetic circuit that calculates the interval time between the first pulse and the second pulse by time,
The first measuring means starts integration by input of the first pulse, and integrates a first integration circuit that integrates up to a predetermined clock after the first pulse, and digitally outputs an output voltage of the first integration circuit. A first A / D converter that converts the value into a value,
The second measuring means starts integration by input of the second pulse, integrates a predetermined clock after the second pulse up to a predetermined clock, and digitally outputs an output voltage of the second integration circuit. Since it is constituted by the second A / D converter for converting the value into a value, the time within the clock cycle can be measured using a simple integration circuit.
[Brief description of the drawings]
FIG. 1 is a circuit configuration diagram showing a pulse interval measuring device according to a first embodiment of the present invention.
FIG. 2 is a timing chart showing an operation of the pulse interval measuring device according to the first embodiment of the present invention.
FIG. 3 is a circuit configuration diagram showing a pulse interval measuring device according to a second embodiment of the present invention.
FIG. 4 is a timing chart showing an operation of the pulse interval measuring device according to the second embodiment of the present invention.
FIG. 5 is a circuit configuration diagram showing a pulse interval measuring device according to a third embodiment of the present invention.
FIG. 6 is a timing chart showing an operation of the pulse interval measuring device according to the fourth embodiment of the present invention.
FIG. 7 is a timing chart showing an operation of the pulse interval measuring device according to the fifth embodiment of the present invention.
FIG. 8 is a circuit diagram showing a pulse interval measuring device according to a sixth embodiment of the present invention.
FIG. 9 is a timing chart showing an operation of the pulse interval measuring device according to the sixth embodiment of the present invention.
[Explanation of symbols]
1 clock circuit, 2 integration circuit a, 3 integration circuit b, 4 A / D converter a,
5 A / D converter b, 6 control circuit, 7 counter or counter a,
8 arithmetic circuit, 9 hold circuit a, 10 hold circuit b,
11 temperature detection circuit, 12 counter b.

Claims (6)

クロックを用いて被測定パルスの間隔を測定するパルス間隔測定装置において、上記被測定パルスの第一のパルスと第二のパルスとの間のクロック数をカウントする第一のカウンタ、上記被測定パルスの第一のパルスから上記第一のパルス以後の所定のクロックまでの時間を測定する第一の測定手段、上記第一のパルスの次の被測定パルスである第二のパルスから上記第二のパルス以後の所定のクロックまでの時間を測定する第二の測定手段、及び上記第一のカウンタによってカウントされるクロック数と第一の測定手段及び第二の測定手段によって測定された時間とにより上記第一のパルスと第二のパルスとの間隔時間を演算する演算回路を備え、
上記第一の測定手段は、上記第一のパルスの入力によって積分を開始し、上記第一のパルス以後の所定のクロックまでを積分する第一の積分回路と、この第一の積分回路の出力電圧をディジタル値に変換する第一のA/D変換器とによって構成され、
上記第二の測定手段は、上記第二のパルスの入力によって積分を開始し、上記第二のパルス以後の所定のクロックまでを積分する第二の積分回路と、この第二の積分回路の出力電圧をディジタル値に変換する第二のA/D変換器とによって構成されていることを特徴とするパルス間隔測定装置。
In a pulse interval measuring apparatus for measuring an interval between measured pulses using a clock, a first counter for counting the number of clocks between a first pulse and a second pulse of the measured pulse; The first measuring means for measuring the time from the first pulse to a predetermined clock after the first pulse, the second pulse from the second pulse which is the pulse to be measured next to the first pulse Second measuring means for measuring the time until a predetermined clock after the pulse, and the number of clocks counted by the first counter and the time measured by the first measuring means and the second measuring means, An arithmetic circuit that calculates an interval time between the first pulse and the second pulse,
The first measuring means starts integration by input of the first pulse, integrates a predetermined clock after the first pulse up to a predetermined clock, and an output of the first integration circuit. A first A / D converter for converting a voltage into a digital value,
The second measuring means starts integration by input of the second pulse, integrates a predetermined clock after the second pulse up to a predetermined clock, and an output of the second integration circuit. A pulse interval measuring device comprising a second A / D converter for converting a voltage into a digital value.
上記第一の積分回路の出力側に第一のホールド回路を設けると共に、上記第二の積分回路の出力側に第二のホールド回路を設けたことを特徴とする請求項1記載のパルス間隔測定装置。2. The pulse interval measurement according to claim 1, wherein a first hold circuit is provided on an output side of the first integration circuit, and a second hold circuit is provided on an output side of the second integration circuit. apparatus. 上記積分回路近傍の温度を検出する温度検出回路を備え、上記温度検出回路の出力によってA/D変換器の出力が補正されることを特徴とする請求項1または請求項2記載のパルス間隔測定装置。3. The pulse interval measurement according to claim 1, further comprising a temperature detection circuit for detecting a temperature near the integration circuit, wherein an output of the A / D converter is corrected by an output of the temperature detection circuit. apparatus. クロック間隔を上記第一の積分回路によって積分し、上記第一の積分回路の出力電圧が上記第一のA/D変換器によって変換された上記クロック間隔のディジタル値を用いて、上記第一のA/D変換器の出力が補正されると共に、上記クロック間隔を上記第二の積分回路によって積分し、上記第二の積分回路の出力電圧が上記第二のA/D変換器によって変換された上記クロック間隔のディジタル値を用いて、上記第二のA/D変換器の出力が補正されることを特徴とする請求項1または請求項2記載のパルス間隔測定装置。The clock interval is integrated by the first integration circuit, and the output voltage of the first integration circuit is converted into the first voltage using the digital value of the clock interval converted by the first A / D converter. The output of the A / D converter is corrected, the clock interval is integrated by the second integration circuit, and the output voltage of the second integration circuit is converted by the second A / D converter. 3. The pulse interval measuring device according to claim 1, wherein the output of the second A / D converter is corrected using the digital value of the clock interval. 上記所定のクロックは、n(nは、n>2の整数)番目のクロックであり、上記第一のA/D変換器によって変換されたディジタル値に含まれるクロック間隔分のディジタル値を用いて、上記第一のA/D変換器の出力が補正されると共に、上記第二のA/D変換器によって変換されたディジタル値に含まれるクロック間隔分のディジタル値を用いて、上記第二のA/D変換器の出力が補正されることを特徴とする請求項1または請求項2記載のパルス間隔測定装置。The predetermined clock is an n-th clock (n is an integer of n> 2), and uses a digital value for a clock interval included in the digital value converted by the first A / D converter. The output of the first A / D converter is corrected, and the digital value of the clock interval included in the digital value converted by the second A / D converter is used for the second A / D converter. 3. The pulse interval measuring device according to claim 1, wherein an output of the A / D converter is corrected. 上記被測定パルスの第二のパルスから次の被測定パルスである第三のパルスまでのクロック数をカウントする第二のカウンタを備え、上記第一の測定手段は、上記第一のパルス以後の所定のクロックまでの時間を測定後、第三のパルス以後の所定のクロックまでの時間を測定するように切換えられ、上記演算回路は、上記第二のカウンタによってカウントされたクロック数と上記第一の測定手段によって測定された第三のパルス以後の所定のクロックまでの時間及び上記第二の測定手段によって測定された時間を用いて、上記第二のパルスから第三のパルスまでの間隔時間を演算することを特徴とする請求項1〜請求項5のいずれかに記載のパルス間隔測定装置。A second counter that counts the number of clocks from a second pulse of the pulse to be measured to a third pulse that is the next pulse to be measured is provided, and the first measuring means is provided after the first pulse. After measuring the time until the predetermined clock, the operation is switched to measure the time until the predetermined clock after the third pulse, and the arithmetic circuit determines the number of clocks counted by the second counter and the first clock. Using the time until the predetermined clock after the third pulse measured by the measuring means and the time measured by the second measuring means, the interval time from the second pulse to the third pulse The pulse interval measurement device according to claim 1, wherein the pulse interval measurement device performs a calculation.
JP2002353246A 2002-12-05 2002-12-05 Pulse interval measuring device Pending JP2004184296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002353246A JP2004184296A (en) 2002-12-05 2002-12-05 Pulse interval measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002353246A JP2004184296A (en) 2002-12-05 2002-12-05 Pulse interval measuring device

Publications (1)

Publication Number Publication Date
JP2004184296A true JP2004184296A (en) 2004-07-02

Family

ID=32754575

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002353246A Pending JP2004184296A (en) 2002-12-05 2002-12-05 Pulse interval measuring device

Country Status (1)

Country Link
JP (1) JP2004184296A (en)

Similar Documents

Publication Publication Date Title
RU2324286C1 (en) Device for analog-to-digital conversion of measured voltage
US20070296396A1 (en) Phase Difference Measurement Circuit
AU2006202661B2 (en) High resolution time interval measurement apparatus and method
WO1989002080A1 (en) Frequency counting apparatus and method
KR20110107409A (en) Integrated time and/or capacitance measurement system, method and apparatus
US3983481A (en) Digital intervalometer
EP3557206B1 (en) Temperature sensor in an integrated circuit having offset cancellation
WO2007069102A2 (en) Current measurement circuit and method
GB1570739A (en) Analogue-digital converters
JP2659594B2 (en) Physical quantity detector
EP3296709B1 (en) Temperature-to-digital converter
JP2004184296A (en) Pulse interval measuring device
JPH0946194A (en) Waveform shaping device
US10656032B2 (en) Temperature sensor in an integrated circuit and method of calibrating the temperature sensor
JP2009200681A (en) Proximity detection apparatus and proximity detecting method
KR101650012B1 (en) Sensor device and sensing method
JPH0697744B2 (en) Integral type analog / digital conversion method and apparatus
JPH11118854A (en) Pulse width measuring circuit
JPH039268A (en) Measuring instrument for phase characteristic
JPH0395484A (en) Pace measuring apparatus of electronic time-piece
KR100567601B1 (en) An Apparatus For Compensating Quantization Error for Synchronous A/F converter
JPH055514Y2 (en)
JP2588304B2 (en) Jitter analyzer
KR930007788Y1 (en) Time measuring apparatus between two signal
RU77693U1 (en) DEVICE FOR TIME-DIGITAL CONVERSION