JPS632353B2 - - Google Patents

Info

Publication number
JPS632353B2
JPS632353B2 JP55143861A JP14386180A JPS632353B2 JP S632353 B2 JPS632353 B2 JP S632353B2 JP 55143861 A JP55143861 A JP 55143861A JP 14386180 A JP14386180 A JP 14386180A JP S632353 B2 JPS632353 B2 JP S632353B2
Authority
JP
Japan
Prior art keywords
microprocessor
pulse train
pulse
time
latch
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.)
Expired
Application number
JP55143861A
Other languages
Japanese (ja)
Other versions
JPS5767883A (en
Inventor
Mamoru Shimamoto
Shinji Shirasaki
Taku Yamada
Hideto Mori
Kazuo Ido
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.)
Denso Corp
Original Assignee
NipponDenso 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 NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP55143861A priority Critical patent/JPS5767883A/en
Publication of JPS5767883A publication Critical patent/JPS5767883A/en
Publication of JPS632353B2 publication Critical patent/JPS632353B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04FTIME-INTERVAL MEASURING
    • G04F10/00Apparatus for measuring unknown time intervals by electric means
    • G04F10/04Apparatus for measuring unknown time intervals by electric means by counting pulses or half-cycles of an ac

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は時間間隔計測方法に関し、特にマイク
ロプロセツサを用いて被計測パルス信号のパルス
時間間隔を計測する方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a time interval measuring method, and more particularly to a method for measuring pulse time intervals of a pulse signal to be measured using a microprocessor.

(従来の技術) 第3図は従来の技術を示すブロツク構成図で、
マイクロプロセツサ4の並列処理ビツト数より分
解能の高い時間間隔計測を行なうものである。第
3図においては2つのカウンタ30と31とが設
けられている。マイクロプロセツサ4のクロツク
パルス4aはカウンタ30,31の夫夫のクロツ
ク入力端子30c,31cに接続され各カウンタ
がクロツクパルス4aを常時カウントアツプまた
はカウントダウンするようになつている。カウン
タ30のオーバフロー出力端子30bはカウンタ
31のキヤリー入力端子31bに接続されている
ので、カウンタ31のカウント値31aは全体の
カウント値の上位を、カウンタ30のカウント値
30aは下位を夫々表わすことになる。カウント
値30a,31aは夫々ゲート70,71によつ
て通常はデータバス9から切り離されている。マ
イクロプロセツサ4からのアドレス信号4cとア
ドレスが有効であることを表わす信号4dとがア
ドレスデコーダ12に入力され、各ゲートの選択
を意味するアドレスがマイクロプロセツサ4から
出力されたときアドレスデコーダ12から対応し
たゲートにゲート信号12aまたは12bが供給
されそのときのみゲートが開き、対応するカウン
ト値をデータバス9に導くようになつている。
(Prior art) Figure 3 is a block diagram showing the conventional technology.
It measures time intervals with a resolution higher than the number of parallel processing bits of the microprocessor 4. In FIG. 3, two counters 30 and 31 are provided. The clock pulse 4a of the microprocessor 4 is connected to the clock input terminals 30c, 31c of the counters 30, 31, so that each counter constantly counts up or down the clock pulse 4a. Since the overflow output terminal 30b of the counter 30 is connected to the carry input terminal 31b of the counter 31, the count value 31a of the counter 31 represents the upper part of the overall count value, and the count value 30a of the counter 30 represents the lower part. Become. Count values 30a and 31a are normally separated from data bus 9 by gates 70 and 71, respectively. The address signal 4c from the microprocessor 4 and the signal 4d indicating that the address is valid are input to the address decoder 12, and when the address indicating the selection of each gate is output from the microprocessor 4, the address decoder 12 A gate signal 12a or 12b is supplied from the gate to the corresponding gate, and only then the gate is opened and the corresponding count value is led to the data bus 9.

次に動作について説明する。マイクロプロセツ
サ4は先ず1ビツト入力端子4bで被計測パルス
列1のレベルを監視している。今、スタートパル
ス1aの立上りを確認すると、マイクロプロセツ
サ4はゲート70の選択を意味するアドレス信号
4cを出力し、アドレスデコーダ12はこのアド
レス信号4cをデコードしてゲート信号12aを
発生する。このゲート信号12aがゲート70の
ゲート有効入力端子70aに加えられてゲート7
0が開き、マイクロプロセツサ4はカウンタ30
のカウント値30aをデータバス9を通して読み
出しRAM11にデータ11aとして格納する。
次にマイクロプロセツサ4はゲート71の選択を
意味するアドレス信号4cを出力し、アドレスデ
コーダ12はゲート信号12bを発生する。ゲー
ト信号12bはゲート有効入力端子71aに加え
られゲート71が開き、マイクロプロセツサ4は
カウント値31aを読み出しRAM11にデータ
11bとして格納する。その後マイクロプロセツ
サ4は1ビツト入力端子4bを監視しエンドパル
ス1bの立上りを認識すると再度カウント値の読
出しを行なうプログラムへ移り、前述と同じよう
に順次ゲート70,71を開いて下位のカウント
値30a′と上位のカウント値31a′を読み出し、
RAM11へ下位のカウント値30a′はデータ1
1cとして、上位のカウント値31a′はデータ1
1dとして格納する。
Next, the operation will be explained. The microprocessor 4 first monitors the level of the pulse train 1 to be measured at the 1-bit input terminal 4b. Now, when the rise of the start pulse 1a is confirmed, the microprocessor 4 outputs an address signal 4c indicating selection of the gate 70, and the address decoder 12 decodes this address signal 4c to generate a gate signal 12a. This gate signal 12a is applied to the gate enable input terminal 70a of the gate 70, and the gate 70
0 opens and the microprocessor 4 starts the counter 30.
The count value 30a is read out through the data bus 9 and stored in the RAM 11 as data 11a.
Next, the microprocessor 4 outputs an address signal 4c indicating selection of the gate 71, and the address decoder 12 generates a gate signal 12b. The gate signal 12b is applied to the gate enable input terminal 71a to open the gate 71, and the microprocessor 4 reads out the count value 31a and stores it in the RAM 11 as data 11b. Thereafter, the microprocessor 4 monitors the 1-bit input terminal 4b, and when it recognizes the rising edge of the end pulse 1b, it moves to a program that reads the count value again, and opens the gates 70 and 71 in sequence in the same way as described above to read the lower count value. Read out 30a' and upper count value 31a',
The lower count value 30a' to RAM11 is data 1
1c, the upper count value 31a' is data 1.
Store as 1d.

求めるパルス時間間隔はマイクロプロセツサ4
によつて例えば第4図に示す計算式に従つて算出
される。即ちマイクロプロセツサ4はスタートパ
ルス1aの立上り時に応答して読み込んだ下位の
カウント値30aを表わすデータ11aに、その
次に上位のカウント値31aを読み込むまでに要
した時間差T1(通常のマイクロプロセツサのイン
ストラクシヨン実行時間は一定であるので時間差
T1は一定である)を加えてデータ11a′とし、
さらにエンドパルス1bの立上り時に応答して読
み込んだ下位のカウント値31aを表わすデータ
11cに同様の理由で時間差T2を加えてデータ
11c′とし、データ11d,11c′で構成される
エンドパルス1bの立上り時刻からデータ11
b,11a′で構成されるスタートパルス1aの立
上り時刻を減算し、パルス時間間隔を表わすデー
タ11f,11eを得てRAM11に格納する。
以後マイクロプロセツサ4はパルス時間間隔とし
てデータ11f,11eを用いて処理を行なう。
なお下位のカウント値30aまたは30a′を読み
込んだ後マイクロプロセツサ4が夫々の上位のカ
ウント値31aまたは31a′を読み込むまでに下
位のカウンタ30がキヤリー信号(カウントアツ
プ時)またはボロー信号(カウントダウン時)を
発生する可能性があるが、これはプログラムによ
り例えば下位のカウント値を読み出し時に吟味す
ることにより補正することができる。また第3図
ではカウンタは2つのみであるが必要に応じてさ
らに増やすことが可能である。
The desired pulse time interval is determined by the microprocessor 4.
For example, it is calculated according to the calculation formula shown in FIG. That is, the microprocessor 4 converts the data 11a representing the lower count value 30a read in response to the rise of the start pulse 1a to the time difference T1 required to read the next higher count value 31a (normal microprocessor The instruction execution time is constant, so the time difference
T1 is constant) is added to obtain data 11a',
Furthermore, for the same reason, a time difference T2 is added to the data 11c representing the lower count value 31a read in response to the rising edge of the end pulse 1b, resulting in data 11c', and at the rising edge of the end pulse 1b composed of data 11d and 11c'. Data from time 11
By subtracting the rising time of the start pulse 1a consisting of 11b and 11a', data 11f and 11e representing the pulse time interval are obtained and stored in the RAM 11.
Thereafter, the microprocessor 4 performs processing using the data 11f and 11e as pulse time intervals.
Note that after reading the lower count value 30a or 30a', the lower counter 30 receives a carry signal (when counting up) or a borrow signal (when counting down) before the microprocessor 4 reads the respective upper count value 31a or 31a'. ) may occur, but this can be corrected by a program, for example, by examining the lower count value at the time of reading. Further, although there are only two counters in FIG. 3, it is possible to further increase the number of counters if necessary.

このようにしてマイクロプロセツサ4の並列処
理ビツト数(例えば8ビツト)より分解能の高い
時間間隔計測行なえるが1系統の時間間隔しか計
測できない欠点がある。
In this way, time intervals can be measured with a resolution higher than the number of parallel processing bits (for example, 8 bits) of the microprocessor 4, but there is a drawback that only one system of time intervals can be measured.

(発明が解決すべき問題点) 本発明は、2種類のパルスの間隔を同一のカウ
ンタで効率よく計測できる方法を提供することを
目的とする。
(Problems to be Solved by the Invention) An object of the present invention is to provide a method that can efficiently measure the interval between two types of pulses using the same counter.

(問題点を解決するための手段) マイクロプロセツサに入力される第1のパルス
列に同期した計測開始時期および計測終了時期
に、一定周波数のクロツクパルスを常時カウント
しているフリーランカウンタ手段のカウント値
を、ゲート手段を介して前記マイクロプロセツサ
のデータバスに出力し、前記マイクロプロセツサ
によつて、前記計測開始時期および終了時期にそ
れぞれ前記データバスに出力される前記フリーラ
ンカウンタの第1および第2のカウント値の差を
求めて、前記第1のパルス列の時間間隔を計測す
るようにした時間間隔計測方法において、前記ゲ
ート手段はラツチ付きゲート回路を有し、前記第
1のパルス列が前記マイクロプロセツサに入力さ
れていないことを示す指示信号が前記マイクロプ
ロセツサから出力されると、第2のパルスを前記
ラツチ付きゲート回路に入力して前記フリーラン
カウンタのその時の第3のカウント値を前記デー
タバスに出力し、前記第2のパルス列が前記ラツ
チ付きゲート回路に入力されなくなると、前記フ
リーランカウンタのその時の第4のカウント値を
前記ラツチ付きゲート回路で一時記憶し、前記マ
イクロプロセツサによつて、前記第3および第4
図のカウント値の差を求めて、前記第2のパルス
列の時間間隔をも計測する。
(Means for solving the problem) A count value of a free-running counter means that constantly counts clock pulses of a constant frequency at the measurement start time and measurement end time synchronized with the first pulse train input to the microprocessor. are output to the data bus of the microprocessor via gate means, and the first and second free run counters are output by the microprocessor to the data bus at the measurement start time and end time, respectively. In the time interval measuring method, the time interval of the first pulse train is measured by determining a difference between second count values, wherein the gate means has a gate circuit with a latch, and the first pulse train When the microprocessor outputs an instruction signal indicating that no input is being input to the microprocessor, a second pulse is input to the latch gate circuit to determine the current third count value of the free run counter. is output to the data bus, and when the second pulse train is no longer input to the latch gate circuit, the current fourth count value of the free run counter is temporarily stored in the latch gate circuit, and the second pulse train is no longer input to the latch gate circuit. The third and fourth
The time interval of the second pulse train is also measured by determining the difference between the count values shown in the figure.

(実施例) 第1図は本発明の実施例を示すブロツク構成図
で、1組のカウンタを使用して2系統の時間間隔
を計測するものである。第1図の構成は第3図の
従来技術に比較してゲート70,71の代りに例
えばRCA社製CD4508のようなラツチ付ゲート8
0,81を用い、パルス発生回路100から発生
される第2の被計測パルス列17をラツチ付ゲー
トのラツチストローブ入力端子80b,81bに
接続した点が異なる。ラツチ付ゲート80,81
はラツチストローブ入力端子80b,81bへの
入力信号が高レベルの間は第3図のゲート70,
71と全く同じ動作を行なう。なお端子80a,
81aはゲート70,71のゲート有効入力端子
70a,71aに相当する。ラツチストローブ入
力端子80b,81bへの入力信号が高レベルか
ら低レベルへ変化したときはこのラベルの立下り
に応答してラツチ付ゲート80,81はそのとき
のカウンタ30,31のカウント値30a,31
aをラツチする。ラツチストローブ入力端子が低
レベルの間は先の立下りでラツチしたカウント値
を保持し続ける。この状態でゲート有効入力端子
80a,81aに信号が加えられるとこの保持し
ているカウント値がデータバス9に現われるよう
になつている。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of the present invention, in which a set of counters is used to measure the time interval of two systems. Compared to the prior art shown in FIG. 3, the configuration shown in FIG. 1 is different from the prior art shown in FIG.
0 and 81 are used, and the second measured pulse train 17 generated from the pulse generation circuit 100 is connected to the latch strobe input terminals 80b and 81b of the gate with a latch. Gate with latch 80, 81
is the gate 70 in FIG. 3 while the input signals to the latch strobe input terminals 80b and 81b are at high level.
Exactly the same operation as 71 is performed. Note that the terminal 80a,
81a corresponds to the gate valid input terminals 70a and 71a of the gates 70 and 71. When the input signal to the latch strobe input terminals 80b, 81b changes from high level to low level, in response to the fall of this label, the latch gates 80, 81 change the count value 30a of the counters 30, 31 at that time, 31
Latch a. While the latch strobe input terminal is at a low level, the count value latched at the previous fall continues to be held. In this state, when a signal is applied to the gate valid input terminals 80a, 81a, the held count value appears on the data bus 9.

第2の被計測パルス列を発生するパルス発生回
路100の例として第1図では入力端子16から
入力される未知電圧の値に応じたパルス巾を有す
る被計測パルス17を発生する回路を示してい
る。第1図のパルス発生回路100の動作は、先
ずマイクロプロセツサ4の1ビツト出力端子4e
からの制御信号によつてスイツチ手段19が閉成
しコンデンサ13が完全に放電する。このとき比
較器15の反転入力端子(−)は接地レベルにな
るので比較器15の出力レベル、すなわち、第2
の被計測パルス17のレベルは高レベルになる。
次にマイクロプロセツサ4の1ビツト出力端子4
eからの制御信号のレベルが反転するとスイツチ
手段19が開放する。するとコンデンサ13、抵
抗14の値で決まる時定数でコンデンサ13の充
電電圧、すなわち、接続点13aの電位が上昇す
る。このとき比較器15の出力レベルは高レベル
のままであるが、コンデンサ13の充電電圧が入
力端子16から比較器15の非反転入力端子
(+)へ入力される未知電圧を越えると比較器1
5の出力は低レベルに反転する。このようにして
比較器15から出力される第2の被計測パルス列
17のパルス巾は未知電圧と一定の関係を有する
ことによる。
As an example of the pulse generation circuit 100 that generates the second pulse train to be measured, FIG. . The operation of the pulse generating circuit 100 shown in FIG.
The switch means 19 is closed by a control signal from the capacitor 13, and the capacitor 13 is completely discharged. At this time, the inverting input terminal (-) of the comparator 15 becomes the ground level, so the output level of the comparator 15, that is, the second
The level of the measured pulse 17 becomes high level.
Next, the 1-bit output terminal 4 of the microprocessor 4
When the level of the control signal from e is inverted, the switch means 19 is opened. Then, the charging voltage of the capacitor 13, that is, the potential of the connection point 13a increases with a time constant determined by the values of the capacitor 13 and the resistor 14. At this time, the output level of the comparator 15 remains at a high level, but when the charging voltage of the capacitor 13 exceeds the unknown voltage input from the input terminal 16 to the non-inverting input terminal (+) of the comparator 15, the comparator 1
The output of 5 is inverted to low level. This is because the pulse width of the second measured pulse train 17 output from the comparator 15 has a certain relationship with the unknown voltage.

上記構成の本発明の実施例の動作について第1
図および第2図を参照しながら説明する。
First regarding the operation of the embodiment of the present invention having the above configuration.
This will be explained with reference to the figures and FIG.

第6図においてマイクロプロセツサ4は1ビツ
ト入力端子4bにスタートパルス1aが現われる
前に1ビツト出力端子4eからの制御信号により
スイツチ手段19を前述のように作動させて第2
図bの17aで示すように第2の被計測パルス列
17を高レベルにする。パルス列17が高レベル
になると前述のようにラツチ付ゲート80,81
は通常のゲートとして働くので、マイクロプロセ
ツサ4はこの第2の被計測パルス17の立上り1
7aの時刻を表わすカウンタ30,31のカウン
ト値30a,31aを読み込み、RAM11に夫
夫データ11g,11hとして格納することがで
きる。次にマイクロプロセツサ4はプログラムに
より1ビツト入力端子4bで第1の被計測パルス
列1を監視する。第7図aに示すように1ビツト
入力端子4bにスタートパルス1aが入来すると
前述したような動作でスタートパルス1aの立上
り時刻に関するデータをRAM11に格納する。
その後第7図bの17bで示すように未知電圧の
値に応じたパルス巾で第2の被計測パルス列17
が立下る。この立下り時刻はラツチ付ゲート8
0,81によつてラツチされる。マイクロプロセ
ツサ4は例えばカウンタ30のカウント値30a
を連続的に読み出したり、または第6図の破線で
示すように第2の被計測パルス17を別の1ビツ
ト入力端子4fで直接監視することにより第2の
被計測パルス17の立下り17bをチエツクし、
第2の被計測パルス17の立下り17bを認識し
たら、その後マイクロプロセツサ4にとつて都合
の良い時刻にラツチ付ゲート80,81にラツチ
されたカウント値を読み出しRAM11にデータ
11i,11jとして格納する。その後マイクロ
プロセツサ4はプログラムによりエンドパルス1
bの入来前にパルス発生回路100のスイツチ手
段19を作動させて第2図bの17a′で示すよう
に第2の被計測パルス17を高レベルにする。こ
れによりラツチ付ゲート80,81は通常のゲー
ト機能にもどるので、マイクロプロセツサ4は1
ビツト入力端子4bを監視し第2図aに示すよう
なエンドパルス1bの立上りの認識して前述のよ
うに立上り時刻を読み出すことができる。
In FIG. 6, the microprocessor 4 activates the switch means 19 as described above by the control signal from the 1-bit output terminal 4e before the start pulse 1a appears at the 1-bit input terminal 4b, so that the second
As shown by 17a in FIG. b, the second pulse train 17 to be measured is set to a high level. When the pulse train 17 reaches a high level, the latched gates 80 and 81 are activated as described above.
acts as a normal gate, so the microprocessor 4 detects the rising edge 1 of this second measured pulse 17.
The count values 30a, 31a of the counters 30, 31 representing the time 7a can be read and stored in the RAM 11 as husband data 11g, 11h. Next, the microprocessor 4 monitors the first measured pulse train 1 at the 1-bit input terminal 4b according to the program. As shown in FIG. 7a, when a start pulse 1a is input to the 1-bit input terminal 4b, data regarding the rise time of the start pulse 1a is stored in the RAM 11 in the manner described above.
Thereafter, as shown at 17b in FIG. 7b, a second measured pulse train 17 is generated with a pulse width corresponding to the value of the unknown voltage.
falls. This falling time is gate 8 with latch.
It is latched by 0,81. For example, the microprocessor 4 receives the count value 30a of the counter 30.
The falling edge 17b of the second pulse to be measured 17 can be detected by reading out continuously or by directly monitoring the second pulse to be measured 17 with another 1-bit input terminal 4f as shown by the broken line in FIG. Check and
After recognizing the falling edge 17b of the second measured pulse 17, the microprocessor 4 reads out the count values latched in the latched gates 80 and 81 at a convenient time and stores them in the RAM 11 as data 11i and 11j. do. After that, the microprocessor 4 outputs the end pulse 1 according to the program.
2b, the switch means 19 of the pulse generating circuit 100 is operated to set the second measured pulse 17 to a high level as shown at 17a' in FIG. 2b. As a result, the latch gates 80 and 81 return to their normal gate functions, so the microprocessor 4
By monitoring the bit input terminal 4b and recognizing the rise of the end pulse 1b as shown in FIG. 2a, the rise time can be read out as described above.

このように第1および第2の被計測パルスの位
相関係を調整させて第2の被計測パルス17が高
レベルのとき、すなわち、ラツチ付ゲートがラツ
チ機能を行なわないとき第1の被計測パルス1の
スタートパルスおよびエンドパルスが入来するよ
うにすれば1組のカウンタを用いて2系統の時間
間隔を計測することができる。
By adjusting the phase relationship between the first and second pulses to be measured in this way, when the second pulse to be measured 17 is at a high level, that is, when the gate with a latch does not perform the latch function, the first pulse to be measured is adjusted. By allowing one start pulse and one end pulse to arrive, it is possible to measure the time interval between the two systems using one set of counters.

(効果) 本発明においては、ラツチ付ゲートを使用し2
種類のパルス間隔を同一のカウンタで効率よく計
測できるという効果がある。
(Effect) In the present invention, a gate with a latch is used.
This has the advantage that different types of pulse intervals can be efficiently measured using the same counter.

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

第1図は本発明の実施例を示すブロツク構成図
である。第2図は第1図の実施例におけるカンウ
ト値の読み込み順序を示すタイミング図である。
第3図は従来の時間間隔計測方法を示すブロツク
構成図である。第4図は第3図の方法における時
間間隔算出法を示す説明図である。 1……被計測時間間隔パルス、3……カウン
タ、4……マイクロプロセツサ、7,70,71
……ゲート、30……下位のカウンタ、31……
上位のカウンタ、80,81……ラツチ付ゲー
ト。
FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a timing diagram showing the order in which count values are read in the embodiment of FIG. 1.
FIG. 3 is a block diagram showing a conventional time interval measuring method. FIG. 4 is an explanatory diagram showing a time interval calculation method in the method of FIG. 3. 1... Time interval pulse to be measured, 3... Counter, 4... Microprocessor, 7, 70, 71
...gate, 30...lower counter, 31...
Upper counters, 80, 81...gates with latches.

Claims (1)

【特許請求の範囲】 1 マイクロプロセツサに入力される第1のパル
ス列に同期した計測開始時期および計測終了時期
に、一定周波数のクロツクパルスを常時カウント
しているフリーランカウンタ手段のカウンタ値
を、ゲート手段を介して前記マイクロプロセツサ
のデータバスに出力し、 前記マイクロプロセツサによつて、前記計測開
始時期および終了時期にそれぞれ前記データバス
に出力される前記フリーランカウンタの第1およ
び第2のカウンタ値の差を求めて、前記第1のパ
ルス列の時間間隔を計測するようにした時間間隔
計測方法において、 前記ゲート手段はラツチ付きゲート回路を有
し、 前記第1のパルス列が前記マイクロプロセツサ
に入力されていないことを示す指示信号が前記マ
イクロプロセツサから出力されると、第2のパル
スを前記ラツチ付きゲート回路に入力して前記フ
リーランカウンタのその時の第3のカウント値を
前記データバスに出力し、 前記第2のパルス列が前記ラツチ付きゲート回
路に入力されなくなると前記フリーランカウンタ
のその時の第4のカウント値を前記ラツチ付きゲ
ート回路で一時記憶し、 前記マイクロプロセツサによつて、前記第3お
よび第4のカウント値の差を求めて、前記第2の
パルス列の時間間隔をも計測する ことを特徴とする時間間隔計測方法。 2 前記第2のパルス列を、前記マイクロプロセ
ツサからの前記指示信号が生じてから一定割合で
変化する電圧信号と、別途入力される電圧信号と
の比較によつて生じさせることを特徴とする特許
請求の範囲第1項の時間間隔測定方法。
[Claims] 1. A counter value of a free-running counter means that constantly counts clock pulses of a constant frequency is gated at the measurement start time and measurement end time synchronized with the first pulse train input to the microprocessor. the first and second free-run counters are output to the data bus of the microprocessor via means, and are output to the data bus by the microprocessor at the measurement start time and end time, respectively. In the time interval measuring method, the time interval of the first pulse train is measured by determining a difference between counter values, wherein the gate means has a gate circuit with a latch, and the first pulse train is connected to the microprocessor. When the microprocessor outputs an instruction signal indicating that the data is not input, a second pulse is input to the latch gate circuit to convert the current third count value of the free run counter to the data. When the second pulse train is no longer input to the latch gate circuit, the fourth count value of the free run counter at that time is temporarily stored in the latch gate circuit, and the microprocessor outputs the second pulse train to the latch gate circuit. A time interval measuring method characterized in that the time interval of the second pulse train is also measured by determining the difference between the third and fourth count values. 2. A patent characterized in that the second pulse train is generated by comparing a voltage signal that changes at a constant rate after the generation of the instruction signal from the microprocessor with a separately input voltage signal. The time interval measuring method according to claim 1.
JP55143861A 1980-10-15 1980-10-15 Method and device for measuring time intervals Granted JPS5767883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55143861A JPS5767883A (en) 1980-10-15 1980-10-15 Method and device for measuring time intervals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55143861A JPS5767883A (en) 1980-10-15 1980-10-15 Method and device for measuring time intervals

Publications (2)

Publication Number Publication Date
JPS5767883A JPS5767883A (en) 1982-04-24
JPS632353B2 true JPS632353B2 (en) 1988-01-18

Family

ID=15348677

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55143861A Granted JPS5767883A (en) 1980-10-15 1980-10-15 Method and device for measuring time intervals

Country Status (1)

Country Link
JP (1) JPS5767883A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6318287A (en) * 1986-07-10 1988-01-26 Yokogawa Electric Corp Time measuring apparatus
JP2711111B2 (en) * 1988-07-29 1998-02-10 株式会社日立製作所 Data processing device, measuring method and control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5229259A (en) * 1975-08-29 1977-03-04 Toshiba Corp Electronic clock
JPS53128238A (en) * 1977-04-15 1978-11-09 Toshiba Corp Velocity test system
JPS5581329A (en) * 1978-12-14 1980-06-19 Canon Inc Data imprinting camera
JPS5582965A (en) * 1978-12-18 1980-06-23 Nippon Denso Co Ltd Measuring device for rotary time used on car
JPS5646482A (en) * 1979-09-25 1981-04-27 Nissan Motor Co Ltd Time interval measuring methode

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5229259A (en) * 1975-08-29 1977-03-04 Toshiba Corp Electronic clock
JPS53128238A (en) * 1977-04-15 1978-11-09 Toshiba Corp Velocity test system
JPS5581329A (en) * 1978-12-14 1980-06-19 Canon Inc Data imprinting camera
JPS5582965A (en) * 1978-12-18 1980-06-23 Nippon Denso Co Ltd Measuring device for rotary time used on car
JPS5646482A (en) * 1979-09-25 1981-04-27 Nissan Motor Co Ltd Time interval measuring methode

Also Published As

Publication number Publication date
JPS5767883A (en) 1982-04-24

Similar Documents

Publication Publication Date Title
KR20040068971A (en) High accuracy method for determining the frequency of a pulse input signal over a wide frequency range
US4574271A (en) Multi-slope analog-to-digital converter
JPS632353B2 (en)
JPH0455272B2 (en)
JPH0121436Y2 (en)
JPH0519027A (en) Semiconductor logic integrated circuit
JPS6255110B2 (en)
JP3903607B2 (en) Pulse count method in pulse input circuit
JPH0395484A (en) Pace measuring apparatus of electronic time-piece
SU1226396A1 (en) Device for measuring rise time of electric signal
JP2911130B2 (en) Phase difference detector
SU754338A1 (en) Device for measuring time parameters of electronic circuits
JPS5831525B2 (en) A-D
SU1275472A1 (en) Device for checking parameters
JPH038005A (en) Timer control system
SU983610A1 (en) Device for checking magnetic core parameters
SU1649465A1 (en) Frequency deviation meter
SU676972A1 (en) Digital harmonic signal period meter
SU1464172A1 (en) Device for identifying stationarity of random process
SU1420546A1 (en) Digital phase meter
SU813432A1 (en) Device for testing microprogramme automatic apparatus
JPH0721838B2 (en) Measuring device
JP2518022Y2 (en) Maximum pulse width measurement circuit
SU1377908A2 (en) Device for measuring digital maximum and minimum period of signal recurrance
SU1200183A1 (en) Apparatus for determining extremum moment of periodic signals