JPH0325376A - Signal width measuring instrument - Google Patents

Signal width measuring instrument

Info

Publication number
JPH0325376A
JPH0325376A JP1160284A JP16028489A JPH0325376A JP H0325376 A JPH0325376 A JP H0325376A JP 1160284 A JP1160284 A JP 1160284A JP 16028489 A JP16028489 A JP 16028489A JP H0325376 A JPH0325376 A JP H0325376A
Authority
JP
Japan
Prior art keywords
signal
pulse
period
counter
measured
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
JP1160284A
Other languages
Japanese (ja)
Inventor
Hiroshi Shirakawa
洋 白川
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1160284A priority Critical patent/JPH0325376A/en
Publication of JPH0325376A publication Critical patent/JPH0325376A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accurately measure the mean value of the signal width of an incidental pulse signal by single-time measurement by integrating the counted value of one-shot pulses in the presence period of a signal to be measured according to a detection signal for the presence period and finding the mean value of the signal width. CONSTITUTION:When a start signal 107 goes up to H, an FF 13 is turned on and off repeatedly according to rises of one-shot pulses p1 and p2 of a counter 1. Consequently, a clock signal 50 is supplied from an AND gate 10 to a counter 2 only for a period of tx+tw and a counter 5 counts rises of the signal 50. This operation is performed every time the signal to be measured is inputted. When the counted value of the counter 5 reaches a set value and a carry signal 108 goes up to H, the FF 14 turns on the rising of the output signal 104 of a counter 1 and a microcomputer 3 resets a holding means 32 to make a start signal 107 rise and also sends an arithmetic command to a calculating means 35, which calculates the mean value of the signal width.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明はメインパルスの立上がり及び立下がりの各側に
それぞれ付帯して存在する付帯パルス信号を持つ信号、
例えばチヤタリングパルス信号を生じているリレー接点
又はスイッチ接点のオン/オフ信号を被測定信号とし、
その立上がり及び立下がり各側の付帯パルス信号のうち
一方を測定対象信号、他方を測定対象外信号としてその
測定対象信号のみの信号幅を測定する信号IM all
定装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention provides a signal having ancillary pulse signals that are present incidentally on each side of the rising edge and falling edge of a main pulse,
For example, an on/off signal of a relay contact or a switch contact that generates a chattering pulse signal is used as the signal to be measured,
Signal IM all that measures the signal width of only the measurement target signal, with one of the incidental pulse signals on each side of the rising and falling sides as the measurement target signal and the other as the non-measurement target signal.
related to fixed equipment.

(従来の技術) 従来、所定の動作時間幅を持つ再トリガ−Ml能なワン
ショット回路に被測定信号を入力してこのワンショット
回路を動作させ、被測定信号の人力時点からこのワンシ
ョット回路の動作終了時点までの時問をカウントし、こ
の時間から上記動作時間幅を減じることにより被測定信
号の信号幅を求める信号幅測定装置がある。
(Prior Art) Conventionally, a signal under test is input to a retriggerable one-shot circuit having a predetermined operating time width, the one-shot circuit is operated, and the one-shot circuit is activated from the point in time when the signal under test is manually input. There is a signal width measuring device that calculates the signal width of the signal under test by counting the time until the end of the operation and subtracting the operation time width from this time.

この装置によれば、被測定信号が断続的に発生するよう
なものであっても、そのパルス群の入力開始時点ならび
に入力終了時点を捕えることができるため、その信号幅
の測定値を容易に得ることができる。
According to this device, even if the signal under test occurs intermittently, it is possible to capture the input start point and input end point of the pulse group, making it easy to measure the signal width. Obtainable.

ところで、このような単独の測定値の他に、多数の測定
値の平均値を得る場合、上記の装置によっても、複数の
測定値を得、これを平均することで平均値を得ることが
できるが、そのためには当然のことながら複数回の測定
が必要になる。この場合において、被測定信号が短05
間に頻繁に発牛するものであれば良いが、その発生回数
か少ないほど平均値算出用となる必要数のハ1定値を?
1Iるのに長時間がかかることになり、測定作業者はそ
の必要数の測定値が得られるまでΔ11定作業に拘束さ
れるようになる。
By the way, in addition to such a single measurement value, when obtaining the average value of a large number of measurement values, the above-mentioned device can also be used to obtain the average value by obtaining multiple measurement values and averaging them. However, this naturally requires multiple measurements. In this case, if the signal under test is short
It is fine as long as it occurs frequently during the period, but the smaller the number of occurrences, the more necessary number to calculate the average value.
It takes a long time to complete 1I, and the measurement operator is forced to perform Δ11 constant work until the required number of measured values is obtained.

そこで、その一連の作業をマイクロコンピュータにより
自動的に行うことも考えられるが、この場合、マイクロ
コンピュータは、測定のスタート、測定終了のチェック
、データの読取り、その加算等の処理を毎回の測定で行
わなければならず、負担が大きくなるという問題がある
Therefore, it may be possible to automatically perform this series of operations using a microcomputer, but in this case, the microcomputer would perform processing such as starting measurement, checking the end of measurement, reading data, and adding the data for each measurement. There is a problem in that it requires a lot of effort, which increases the burden.

(発明が解決しようとする3題) このように、従来の信号幅測定装置にあっては、平均値
を求める場合、そのための多数のサンプル値を得るため
に複数回の測定を行なわなければならないがため、作業
時間が嵩み、また、その作業を行うマイクロコンピュー
タには大きな負担を課すこととなっていた。
(Three problems to be solved by the invention) As described above, in the conventional signal width measuring device, when calculating the average value, it is necessary to perform multiple measurements in order to obtain a large number of sample values. This increases the amount of time required to perform the work, and also places a heavy burden on the microcomputer that performs the work.

そこで、本発明の発明者は、そのサンプル値を複数得る
のではなく、測定複数回分のデータを累積した後に、そ
の回数で平均を取ることを考えている。ただし、特に、
チヤタリングパルス1g号のようにメインパルスの立上
がり及び立下がりの両側に付帯しているパルス信号の場
合、そのメインパルスとの区別を行わなければならず、
また、またその立上がり及び立下がりの両側の信号のう
ち一方のみ測定対象としたい場合、他方との区別が必要
になり、ここに難しい面がある。
Therefore, instead of obtaining a plurality of sample values, the inventor of the present invention has considered accumulating data for a plurality of measurements and then taking an average over the number of measurements. However, especially
In the case of a pulse signal attached to both the rising and falling edges of the main pulse, such as chattering pulse No. 1g, it is necessary to distinguish it from the main pulse.
Furthermore, if it is desired to measure only one of the rising and falling signals, it is necessary to distinguish it from the other signal, which is difficult.

本発明は、この点に鑑みてなされたもので、その目的と
するところは、このようなメインパルスの立上がり及び
立下がりの各側に存在する付・:;シバルス信号のうち
一方を測定対象とし他方をalll定対象外とする場合
でも複数回のM1定を要することなく信号幅の平均値を
正確に求めることができる信号幅測定装置を提供するこ
とにある。
The present invention has been made in view of this point, and its purpose is to measure one of the signal signals present on each side of the rising and falling edges of the main pulse. It is an object of the present invention to provide a signal width measuring device that can accurately determine the average value of signal widths without requiring multiple M1 constants even when the other side is excluded from all constants.

〔発明の構戊〕[Structure of the invention]

(課題を解決するための手段) 本発明の信号幅測定装置は、ワンショッ1・パルスの立
上がり或いは立下がり時におけるlm il[lI定信
号のレベルに基づいて、メインパルスにおける立上がり
存在期間と立下がり存在期間とをill別し、これによ
り測定対象信号のみの存在期間を険出し、その存在期間
検出信号に基づき測定対象(:号の存在期間におけるワ
ンショットパルスの発生中のみカウント動作してそのカ
ウント値を累積し、そのカウント値が測定対象信号の存
在期間出現回数にして予定回数分に到達したとき、この
累積カウント直に平均値演算を施して信号幅の平均値を
求めるようにしたものである。
(Means for Solving the Problems) The signal width measuring device of the present invention detects the rising duration and falling duration of the main pulse based on the level of the lmil[lI constant signal at the rising or falling edge of the one-shot 1 pulse. This makes it possible to identify the period of existence of only the signal to be measured, and based on the period of existence detection signal, the count is performed only during the generation of one-shot pulses during the period of existence of the signal to be measured. The value is accumulated, and when the count value reaches the scheduled number of occurrences during the existence period of the signal to be measured, the average value calculation is performed directly on the accumulated count to obtain the average value of the signal width. be.

(作 用) 本発明によれば、被al定信号における測定対象外信号
が存在せず測定対象信号のみイj在する期間を検出し、
その期間内に発生したワンショットパルスの時間幅をカ
ウントするため、そのカウントによって、測定対象外信
号の時間幅は含まれず、測定対象信号の時間幅のみ含ま
れる累積データを得ることができ、したがって、信号幅
の3li均値を複数回の測定作業を要することなく正確
に求めることができる。
(Function) According to the present invention, a period in which a non-measurement signal exists in a constant signal and only a measurement target signal exists is detected,
Since the time width of one-shot pulses that occur within that period is counted, by counting, it is possible to obtain cumulative data that does not include the time width of the signal not to be measured, but only the time width of the signal to be measured. , the 3li average value of the signal width can be accurately determined without requiring multiple measurement operations.

(実施例) 以下、本発明の一実施例について図面を参照しつつ説明
する。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例に係る信号幅測定装置のブロ
ック図である。
FIG. 1 is a block diagram of a signal width measuring device according to an embodiment of the present invention.

まず、この実施例においてはリレーの開閉時に生ずるチ
ヤタリングパルス信号の信号幅を測定するようになって
おり、21は駆動トランジスタ、22はリレーコイル、
23は逆流防止ダイオード、24はリレー接点、25は
電流制限抵抗器である。
First, in this embodiment, the signal width of a chattering pulse signal generated when a relay is opened and closed is measured, and 21 is a drive transistor, 22 is a relay coil,
23 is a backflow prevention diode, 24 is a relay contact, and 25 is a current limiting resistor.

これらより成るリレー回路は駆動トランジスタ21のベ
ースにオン●オフ制御パルスが入力され、これによりト
ランジスタ21がオン・オフされ、そのコレクタ側に接
続されているリレーコイル22への通電が断続され、接
点24が開閉される、というものである。
In the relay circuit consisting of these, an on/off control pulse is input to the base of the drive transistor 21, which turns the transistor 21 on and off, and cuts off current to the relay coil 22 connected to its collector side, causing the contact 24 is opened and closed.

第2図(A)において、符号Mで示すものがリレーMの
開閉により生じたメインパルスであり、その前縁部(立
上がり部)及び後縁部(立下がり部)に付布しているも
のがチヤタリングにより生じたパルスであり、本実施例
の装置はそのパルス群よりなる信号al,a2各々の信
号幅t xi,tX2を測定しようというものである。
In Fig. 2 (A), the symbol M is the main pulse generated by opening and closing of relay M, and the pulses attached to its leading edge (rising part) and trailing edge (falling part) are is a pulse generated by chattering, and the apparatus of this embodiment is intended to measure the signal widths txi and tX2 of the signals al and a2, respectively, which are made up of a group of pulses.

3はマイクロコンピュータであり、当該平均値の算出、
その測定回数の設定、スタート信号の発生等の機能を有
し、手段31〜35はそれらの磯能に夫々対応するもの
である。
3 is a microcomputer, which calculates the average value,
It has functions such as setting the number of measurements and generating a start signal, and means 31 to 35 correspond to these functions, respectively.

101は上記リレー回路からの入力信号で、この信号1
01はイクスクルーシプオアゲート(以下、EXオアゲ
ートという。)15の一人力端に人力されるようになっ
ている。このEXオアゲート15の他方の入力端には極
性切換え信号111が供給される。この極性切換え信号
111は“H”(ハイレベル)と″′L″ (ローレベ
ル)との2値を取り、入力信号101はEXオアゲート
15において極性切換え信号110のレベルによりその
レベルが切換えられるようになっている。
101 is an input signal from the above relay circuit, and this signal 1
01 is designed to be human-powered at the one-man power end of Exclusive or Gate (hereinafter referred to as EX-OR Gate) 15. A polarity switching signal 111 is supplied to the other input terminal of this EX-OR gate 15. This polarity switching signal 111 has two values, "H" (high level) and "'L" (low level), and the level of the input signal 101 is switched by the level of the polarity switching signal 110 at the EX OR gate 15. It has become.

ここで、以降の信号処理回路は、基本的にメインバルス
Mの立上がり側のパルス信号a1を測定対象とするよう
に構成されており、そのため、入力信号101における
パルス信号alを測定対象とする場合、極性切換え信号
110を“L”にして、入力信号101がその極性のま
までEXオアゲート15から出力されるようにし、パル
ス信号a2を測定対象とする場合には、極性切換え信号
110を“H”にして、入力信号101が反転されてE
Xオアゲート15から出力されるようにするものである
。例として、第2図の場合は、パルス信号a2が測定対
象信号s1パルス信号a1が測定対象外信号nとなって
おり、よって、この例では、パルス信号a2の信号幅t
x2を測定対象1;号Sの信号幅tXとして測定するよ
うになっている。
Here, the subsequent signal processing circuit is basically configured to measure the pulse signal a1 on the rising side of the main pulse M, and therefore, when the pulse signal al in the input signal 101 is measured. , the polarity switching signal 110 is set to "L" so that the input signal 101 is output from the EX OR gate 15 with its polarity unchanged, and when the pulse signal a2 is to be measured, the polarity switching signal 110 is set to "H". ”, the input signal 101 is inverted and E
The signal is outputted from the X-OR gate 15. As an example, in the case of FIG. 2, the pulse signal a2 is the signal to be measured s1, and the pulse signal a1 is the signal not to be measured n. Therefore, in this example, the signal width t of the pulse signal a2 is
x2 is measured as the signal width tX of the measurement object 1; S.

アンドゲート9はゲート信号110が“H”のときのみ
入力信号101を通過させるもので、102はこのアン
ドゲート9の出力信号である。
The AND gate 9 allows the input signal 101 to pass only when the gate signal 110 is "H", and 102 is the output signal of the AND gate 9.

4はクロック発振器であり、被測定信号102であるバ
ースト信号のパルス繰返し周波数よりも十分に高い周波
数の高精度基準クロック信号50を発生する。
A clock oscillator 4 generates a high-precision reference clock signal 50 having a frequency sufficiently higher than the pulse repetition frequency of the burst signal that is the signal under test 102 .

1はワンショットカウンタ、12はフリップフロップ、
7はオアゲートである。
1 is a one-shot counter, 12 is a flip-flop,
7 is the or gate.

ワンショットカウンタ1は、信号102の立上がり(す
なわち、人力信号101の立下がり)によりトリガされ
て、基準クロック信号50のクロックパルスを設定数だ
けカウントするもので、そのカウント動作時間内は“L
”を出力し、カウント動作時間外は“H”を出力する。
The one-shot counter 1 is triggered by the rising edge of the signal 102 (that is, the falling edge of the human input signal 101), and counts the clock pulses of the reference clock signal 50 by a set number.
", and outputs "H" outside the counting operation time.

このカウン1・値で設定されるカウント時間はパルス信
号at,a2の1周期より長く設定されるものである。
The count time set by this count 1 value is set longer than one period of the pulse signals at and a2.

よって、このワンショットカウンタ1は、信号102に
おける信号n,  sの最初のパルスの立上がりでトリ
ガされてからは後続のパルスの立下がりによりその出力
信号104が立上がる前にトリガされるため、最後の立
上がりによるトリガ後、時間twが経過するまでその出
力信号を“L”に保持する。その結果、このワンショッ
トカウンタ1からは測定対象信号Sのトリガによるワン
ショットバルスplと測定対象外信号nのトリガによる
ワンショットバルスp2とが発生されることとなる。
Therefore, this one-shot counter 1 is triggered at the rising edge of the first pulse of the signals n and s in the signal 102, and is triggered by the falling edge of the subsequent pulse before the output signal 104 rises, so that the one-shot counter 1 is After being triggered by the rising edge of , the output signal is held at "L" until time tw has elapsed. As a result, the one-shot counter 1 generates a one-shot pulse pl triggered by the signal S to be measured and a one-shot pulse p2 triggered by the signal n not to be measured.

フリップフロツブ12は、そのデータ入力端子が電,T
I!電圧VCCにより“H@に保持され、同クロック入
力端子には信号102が人力され、同リセット入力端子
には信号104が反転入力されている。このフリップフ
ロップ12は信号104が“H”のときに信号102の
立上がりによりオンとなり、その出力が“L”になると
ともに、信号104の立下がりによりリセットされる。
The flip-flop 12 has its data input terminals connected to voltage and T.
I! It is held at "H@" by the voltage VCC, the signal 102 is input to the same clock input terminal, and the signal 104 is inverted input to the reset input terminal.This flip-flop 12 operates when the signal 104 is "H". It is turned on by the rise of the signal 102, its output becomes "L", and is reset by the fall of the signal 104.

よって、このフリップフロップ12はパルス信号al,
a2の最初のパルスの立上がりによりその出力が“H”
となり、ワンショットパルスpi,p2の立下がりによ
りその出力が“L”になる。
Therefore, this flip-flop 12 receives pulse signals al,
When the first pulse of a2 rises, its output becomes “H”
The output becomes "L" when the one-shot pulses pi and p2 fall.

オアゲート7にはフリップフロップ12並びにワンショ
ットカウンタ1の出力信号112104が反転入力され
、このオアゲート7によりそれらの論理和が取られるよ
うになっている。よって、このオアゲート7は、信号1
12.104が“L”である間、つまり、測定対象外信
号n並びに測定対象信号Sの最初の立上がりからワンシ
ョットバルスpi,p2の立上がりまでの期間だけ“H
”を出力する。
The output signal 112104 of the flip-flop 12 and the one-shot counter 1 is inverted and inputted to the OR gate 7, and the OR gate 7 calculates the logical sum of these signals. Therefore, this OR gate 7 receives the signal 1
12.104 is "L", that is, the period from the first rise of the non-measurement signal n and the measurement object signal S to the rise of the one-shot pulses pi, p2 is "H".
” is output.

13は測定対象信号の存在期間検出手段となるフリップ
フロップで、そのデータ人力端子13にはアンドゲート
9の出力信号102がインバータ8を介して入力され、
同クロツク入力端子にはワンショットカウンタ1の出力
信号104が人力され、同リセット端子にはスタート信
号107が反転入力されている。このフリップフロップ
13は、スタート信号107が“H”のとき、ワンショ
ツトバルスpi,p2の立上がりでインバータ8の出力
信号103のレベルを出力端子に発生させるようになっ
ている。これにより、ワンショットバルスp2の立上が
りとその直後に発生するワンショットバルスp1の立上
がりとの間の期間、即ち測定対象存在期間tS内は“H
”が出力される。
Reference numeral 13 denotes a flip-flop serving as means for detecting the period of existence of the signal to be measured; the output signal 102 of the AND gate 9 is inputted to the data input terminal 13 via the inverter 8;
The output signal 104 of the one-shot counter 1 is input to the clock input terminal, and the inverted start signal 107 is input to the reset terminal. This flip-flop 13 is designed to generate the level of the output signal 103 of the inverter 8 at the output terminal at the rising edge of the one-shot pulse pi, p2 when the start signal 107 is "H". As a result, the period between the rise of the one-shot pulse p2 and the rise of the one-shot pulse p1 that occurs immediately after that, that is, the measurement object existence period tS is “H”.
” is output.

また、ワンショットバルスplの立上がりとその直後に
発生するワンショットパルスp2の立上がりとの間の期
間、即ち測定対象外存在期間tn内は“H“が出力され
る。
Moreover, "H" is output during the period between the rise of the one-shot pulse pl and the rise of the one-shot pulse p2 generated immediately after that, ie, during the non-measurement object existing period tn.

ここで、スタート信号107は、マイクロコンピュータ
3の測定モード発生手段32及び測定モード保持手段3
3により発生されるものである。
Here, the start signal 107 is transmitted to the measurement mode generating means 32 and the measurement mode holding means 3 of the microcomputer 3.
3.

ここで、スタート信号107は、マイクロコンピュータ
3の測定モード発生手段32及び測定モード保持手段3
3により発生されるものである。
Here, the start signal 107 is transmitted to the measurement mode generating means 32 and the measurement mode holding means 3 of the microcomputer 3.
3.

瀾定モード発生手段32は測定作業名が図示しないコン
ソールを通じて指令を出すと測定モード信号を生成する
ものである。測定モード保持千段33はこの測定モード
信号をラッチし、その出力を立上げるもので、この測定
モード保持千段33の出力がスタート信号・107とさ
れるものである。
The determination mode generating means 32 generates a measurement mode signal when a measurement task name is issued through a console (not shown). The measurement mode holding stage 33 latches this measurement mode signal and raises its output, and the output of the measurement mode holding stage 33 is used as a start signal 107.

10は基準クロック信号50をゲートするためのアンド
ゲートであり、このアンドゲート10は、フリップフロ
ップ13の出力信号105とオアゲート7の出力信号と
が共に“H”のとき基準クロック信号50を通過させる
ようになっている。よって、このアンドゲート10から
は測定対象存在期間tsにおけるワンショットバルスp
tの発生期間だけクロック信号50が出力される。
10 is an AND gate for gating the reference clock signal 50, and this AND gate 10 allows the reference clock signal 50 to pass when both the output signal 105 of the flip-flop 13 and the output signal of the OR gate 7 are "H". It looks like this. Therefore, from this AND gate 10, the one-shot pulse p during the measurement object existence period ts
The clock signal 50 is output only during the generation period t.

2は時間幅カウンタである。この時間帆カウンタ2はア
ンドゲート10からの出力信号106をカウントし、こ
れによりtx+tvの期間に相当するカウント値を累積
する。
2 is a time width counter. The time sail counter 2 counts the output signal 106 from the AND gate 10, thereby accumulating a count value corresponding to the period tx+tv.

5は回数カウンタであり、フリップフロップ13の出力
の立上がりをカウントすることにより、測定対象存在期
間tsの出現回数回数をカウントするもので、そのカウ
ント値は時間カウンタ2のカウント動作回数に相当し、
そのカウント値が設定値に達するとキャリー信号108
を“H”にする。
5 is a number counter, which counts the number of times the measurement object existence period ts appears by counting the rising edge of the output of the flip-flop 13, and the count value corresponds to the number of counting operations of the time counter 2;
When the count value reaches the set value, carry signal 108
Set to “H”.

この回数カウンタ5への回数設定はマイクロコンピュー
タ3の回数設定手段33により行われるものである。
This number setting to the number counter 5 is performed by the number setting means 33 of the microcomputer 3.

14は測定終了時制御用のフリップフロツプであり、そ
のデータ入力端子には回数カウンタ5のキャリー信号1
08が人力され、同クロック人力端子にはワンショット
カウンタ1の出力信号104が入力され、リセット端子
にはスタート信号107が人力されている。このフリッ
プフロップ14は回数カウンタ14からのキャリー信号
108が′H“になってからの信号104(ワンショッ
トカウンタ1の出力)の最初の立上がりでオンとなり、
その出力信号109を゛H”とし、出力信号110を“
L”にするものである。出力信号110はゲート信号と
してアンドゲート91;与えられ、出力信号109はΔ
−1定動作の終了通知としてマイクロコンピュータ3に
与えられる。
14 is a flip-flop for control at the end of measurement, and its data input terminal receives the carry signal 1 of the number counter 5.
08 is manually input, the output signal 104 of the one-shot counter 1 is input to the clock input terminal, and the start signal 107 is input to the reset terminal. This flip-flop 14 turns on at the first rise of the signal 104 (output of the one-shot counter 1) after the carry signal 108 from the number counter 14 becomes 'H'.
The output signal 109 is set to “H”, and the output signal 110 is set to “H”.
The output signal 110 is given as a gate signal to an AND gate 91, and the output signal 109 is
-1 This is given to the microcomputer 3 as a notification of the end of a regular operation.

このマイクロコンピュータ3の終了確認手段34はフリ
ップフロップ14の出力信号109の立上がりを受けて
測定モード保持手段33をリセットするとともに、算出
手段35に演算命令を発する。
The end confirmation means 34 of the microcomputer 3 resets the measurement mode holding means 33 in response to the rise of the output signal 109 of the flip-flop 14, and also issues an operation command to the calculation means 35.

この算出手段35は終了確認手段34からの演算命令に
応答して時間幅カウンタ2のカウント値を読取り、測定
対象信号Sの信号幅txの平均値を算出するものである
The calculation means 35 reads the count value of the time width counter 2 in response to the calculation command from the completion confirmation means 34, and calculates the average value of the signal width tx of the signal S to be measured.

ここで、その信号幅txの平均値をAy(tx)、時間
幅カウンタ2からのカウント値に当たる信号幅txの累
積漣をΣ(tx ) 、回数設定千段31からの設定値
をnとしたとき、算出手段35は、次式で表される計算
を行うものである。
Here, the average value of the signal width tx is Ay(tx), the cumulative ripple of the signal width tx corresponding to the count value from the time width counter 2 is Σ(tx), and the set value from the number setting 1,000 steps 31 is n. At this time, the calculation means 35 performs the calculation expressed by the following equation.

すなわち、 Av(tx)−(Σ(tx ) /n) − tvであ
る。
That is, Av(tx)-(Σ(tx)/n)-tv.

算出手段35は、この計算により求めた値をモ二夕やプ
リンタ等の出力装置に供給してその表示を行わせたり、
あるいは、求めた平均値が所期の値であるか否かを判定
する手段に供給し、その判定を行わせるようになってい
る。
The calculation means 35 supplies the value obtained by this calculation to an output device such as a monitor or a printer to display the value,
Alternatively, the average value obtained is supplied to a means for determining whether or not it is a desired value, and is caused to make the determination.

次に、上記のように構成された本実施例装置の作用につ
いて説明する。
Next, the operation of the apparatus of this embodiment configured as described above will be explained.

まず、初期状態であってスター}(J号107が“L”
のときには、フリップフロップ14にリセットがかけら
れており、その出力信号110は“H”となっている。
First, in the initial state, star} (J number 107 is "L"
At this time, the flip-flop 14 is reset, and its output signal 110 is at "H".

そのため、アンドゲート9は開いており、入力信号10
1はアンドゲート9を通過してフリップフロップ12並
びにワンシッットカウンタ1に供給されていることとな
る。よって、第2図(A).(B).(C)に示すよう
に、フリップフロップ12及びワンショットカウンタ1
は測定対象外信号n並びに測定対象信号Sに応動し、オ
アゲート7からはそれらの反転信号の論理和出力が発生
されている。
Therefore, AND gate 9 is open and input signal 10
1 passes through the AND gate 9 and is supplied to the flip-flop 12 and the one-sit counter 1. Therefore, Fig. 2 (A). (B). As shown in (C), a flip-flop 12 and a one-shot counter 1
responds to the non-measurement signal n and the measurement object signal S, and the OR gate 7 generates an OR output of their inverted signals.

よって、フリップフロップ13にもワンシジットカウン
タ1の出力信号104の立上がりが作用しているが、ス
タート信号107は“L”であり、ターンオンが禁止さ
れているため、その出力は″L″のままでとなる。その
ため、アンドゲート10は閉じており、時間カウンタ2
にクロック信号50が供給されないため、この時間カウ
ンタ2はカウント動作を行わない。
Therefore, the rise of the output signal 104 of the one-digit counter 1 also acts on the flip-flop 13, but since the start signal 107 is "L" and turn-on is prohibited, its output remains "L". It becomes. Therefore, AND gate 10 is closed and time counter 2
Since the clock signal 50 is not supplied to the time counter 2, the time counter 2 does not perform a counting operation.

そして、スタート信号107が″H”になると、時間カ
ウンタ2並びに回数カウンタ5が初期化されるとともに
フリップフロップ13のリセットが解除され、この解除
後、第2図(C)〜(F)に示すようにワンショットパ
ルスpi,p2の立上がりに応答してオン・オフを繰返
す。
Then, when the start signal 107 becomes "H", the time counter 2 and the number counter 5 are initialized, and the reset of the flip-flop 13 is released, and after this release, as shown in FIGS. It repeats on and off in response to the rise of the one-shot pulses pi and p2.

これにより、第2図(G)に示すように(tx十tv)
の期間だけアンドゲート10から時間カウンタ2にクロ
ック信号50が供給されるとともに、信号105の立上
がりが回数カウンタ5によりカウントされるようになる
。この時間カウンタ2並びに回数カウンタ5の動作が測
定対象信号Sの入力毎に行われ、時間カウンタ2にあっ
ては(tx +tv )がその入力回数分だけ累積され
、回数カウンタ5にあってはその回数がカウントされて
行くこととなる。
As a result, as shown in Figure 2 (G), (tx ten tv)
The clock signal 50 is supplied from the AND gate 10 to the time counter 2 for a period of , and the rise of the signal 105 is counted by the number counter 5. The operations of the time counter 2 and the number counter 5 are performed every time the signal S to be measured is input, and the time counter 2 accumulates (tx + tv) by the number of inputs, and the number counter 5 accumulates (tx + tv) for the number of inputs. The number of times will be counted.

そして、この回数カウンタ5におけるカウント値が設定
値に達しキャリー信号10gが“H”になると、ワンシ
ョットカウンタ1の出力信号104の立上がりを待って
、即ちその回の時間カウンタ2のカウント動作終了を待
ってフリップフロップ14がオンとなる。すると、マイ
クロコンピュータ3の終了確認手段34が測定の終了を
知り、測定モード保持手段32をリセットしてスタート
信号107を立下げると共に、算出手段35に演算命令
を出すため、この算出手段35によって上記のように平
均IAv(tx)が算出されることとなる。
When the count value in the number of times counter 5 reaches the set value and the carry signal 10g becomes "H", it waits for the output signal 104 of the one-shot counter 1 to rise, that is, the end of the counting operation of the time counter 2 for that time. After a while, the flip-flop 14 is turned on. Then, the end confirmation means 34 of the microcomputer 3 learns of the end of the measurement, resets the measurement mode holding means 32, lowers the start signal 107, and issues an operation command to the calculation means 35. The average IAv(tx) will be calculated as follows.

以上のように、マイクロコンピュータ3がスタート信号
107を1回立上げると、平均値算出用のデータがその
外部の回路により自動的に集められ、マイクロコンピュ
ータ3はその終了時に発せられる終了通知信号109に
応答して所定の演算を行い平均値を求めれば良いので、
一つの測定対象信号Sについての測定値を得る度にマイ
クロコンピュータ3がスタート信号の立上げ、測定終了
の確認、データの読取り、データの累積演算等の処理を
行う必要がなく、マイクロコンピュータ3の負担が大き
く軽減されると共に、スター1・信号107の立上げか
ら、測定動作終了時までの空時間を有効に使用すること
ができる。
As described above, when the microcomputer 3 raises the start signal 107 once, the data for calculating the average value is automatically collected by the external circuit, and the microcomputer 3 issues the completion notification signal 109 at the end of the process. All you have to do is perform a predetermined calculation in response to and find the average value.
There is no need for the microcomputer 3 to perform processing such as raising a start signal, confirming the end of measurement, reading data, and accumulating data every time a measurement value for one measurement target signal S is obtained. The burden is greatly reduced, and the idle time from the start of the star 1 signal 107 to the end of the measurement operation can be used effectively.

ここで、本実施例においては、測定対象存在期間tsを
検出し、その期間内に発生したワンショットパルスpt
の時間幅をカウントするため、そのカウントによって、
測定対象外信号nの時間幅txtは含まれず、測定対象
信号の時間幅のみ含まれる累積データを得ることができ
、したがって、求められる数鎧は正確である。
Here, in this embodiment, the measurement object existence period ts is detected, and the one-shot pulse pt generated within that period is
Since we count the time width of
It is possible to obtain cumulative data that does not include the time width txt of the non-measurement target signal n, but includes only the time width of the measurement target signal, and therefore the required number is accurate.

さらに、上記の説明では平均値を求める場合について述
べているが、本実施例の装置は回数設定手段33の設定
数を“1“にすれば、算出手段35においては上記の演
算が行われるにしても、平均値ではなく単一測定対象信
号Sの信号幅測定値を得ることもできる。
Furthermore, although the above explanation describes the case of calculating the average value, in the device of this embodiment, if the number set in the number setting means 33 is set to "1", the calculation means 35 performs the above calculation. However, it is also possible to obtain a signal width measurement value of a single signal S to be measured instead of an average value.

そして、上記装置において、極性切換え信号111を“
L#にすれば、アンドゲート9以降の信号処理系では、
このパルス信号alが測定対象信号Sになり、他方のパ
ルス信号a2は測定対象外信号nとして設定され、パル
ス信号alの時間幅tX1の平均値が求められることと
なる。
In the above device, the polarity switching signal 111 is
If you set it to L#, in the signal processing system after AND gate 9,
This pulse signal al becomes the measurement target signal S, the other pulse signal a2 is set as the non-measurement target signal n, and the average value of the time width tX1 of the pulse signal al is determined.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、被測定信号におけ
る測定対象外信号が存在せずに測定対象信号のみ存在す
る期間を検出し、その期間内に発生したワンショットパ
ルスの時間幅をカウントするため、そのカウントによっ
て、測定対象外信号の時間幅は含まれず、測定対象信号
の特間幅のみ含まれる累積データを得ることができ、し
たがって、メインパルスの立上がり及び立下がりの各側
に存在する付帯パルス信号のうち一方を測定対象とし他
方を測定対象外とする場合でも複数回の測定を要するこ
となく信号幅の平均値を正確に求めることができる。
As explained above, according to the present invention, a period in which only a signal to be measured exists without any non-measured signal in the signal under test is detected, and the time width of one-shot pulses generated within that period is counted. Therefore, by counting, it is possible to obtain cumulative data that does not include the time width of the signal not to be measured, but only the special width of the signal to be measured. Even when one of the incidental pulse signals is to be measured and the other is not to be measured, the average value of the signal width can be accurately determined without requiring multiple measurements.

1・・・ワンショットカウンタ、2・・・時間カウンタ
、3・・・マイクロコンピュータ、31・・・測定モー
ド発生手段、32・・・測定モード保持手段、33・・
・回数設定手段、34・・・測定終了確認手段、35・
・・平均値算出手段、4・・・基準クロック発振器、5
・・・回数カウンタ、10・・・基準クロックゲート用
のアンドゲート、13・・・測定対象存在期間検出用フ
リップフロップ、14・・・測定終了検出用のフリップ
フロップ、15・・・測定対象切換え用のイクスクルー
シブオアゲート、M・・・メインパルス%al,a2・
・・付帯パルス信号、S・・・測定対象信号、n・・・
Δ−1定対象外信号、pl.p2・・・ワンショットパ
ルス、ts・・・測定対象存在期間、tn・・・測定対
象外存在期間。
DESCRIPTION OF SYMBOLS 1... One shot counter, 2... Time counter, 3... Microcomputer, 31... Measurement mode generation means, 32... Measurement mode holding means, 33...
- Number of times setting means, 34... Measurement completion confirmation means, 35.
... Average value calculation means, 4 ... Reference clock oscillator, 5
. . . Number of times counter, 10 . . . AND gate for reference clock gate, 13 . Exclusive or gate for M...main pulse %al, a2.
...Additional pulse signal, S...Measurement target signal, n...
Δ-1 constant non-target signal, pl. p2: one-shot pulse, ts: measurement target existence period, tn: non-measurement target existence period.

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

第1図は本発明の一実施例に係る信号幅測定装置のブロ
ック図、第2図はその動作タイミングチャート図である
FIG. 1 is a block diagram of a signal width measuring device according to an embodiment of the present invention, and FIG. 2 is an operation timing chart thereof.

Claims (1)

【特許請求の範囲】 メインパルスの立上がり及び立下がりの各側にそれぞれ
付帯して存在する付帯パルス信号を持つ被測定信号にお
ける該立上がり及び立下がり各側の付帯パルス信号のう
ち一方を測定対象信号とし且つ他方を測定対象外信号と
して前記測定対象信号のみの信号幅を測定する信号幅測
定装置であって、 基準クロック信号を設定数だけカウントしたときのカウ
ント動作時間によりその動作時間幅が決定され、前記付
帯パルス信号のパルスでトリガされることによりワンシ
ョットパルスを発生する再トリガ可能なワンショットパ
ルス発生手段と、該ワンショットパルスの立上がり或い
は立下がり時における前記被測定信号のレベルを捕えて
前記メインパルスにおける前記立上がりの存在期間と前
記立下がりの存在期間とを判別することにより、前記測
定対象外信号は存在せずに前記測定対象信号のみが存在
する測定対象存在期間を検出しその存在期間検出信号を
出力する存在期間検出手段と、 該存在期間検出信号に基づいて該測定対象存在期間にお
ける前記ワンショットパルスの発生中のみカウント動作
しそのカウント値を累積する時間カウント手段と、 該時間カウント手段のカウント値が前記測定対象存在期
間の出現回数にして予定回数分に到達したとき測定終了
信号を発生する終了通知手段と、該測定終了信号に応答
して前記時間カウント手段のカウント値を読取りこれに
平均値演算を施して前記信号幅の平均値を求める平均値
算出手段と、を備えている信号幅測定装置。
[Scope of Claims] In a signal under test that has ancillary pulse signals that are present on each side of the rising and falling sides of the main pulse, one of the incidental pulse signals on each of the rising and falling sides is used as the signal to be measured. A signal width measuring device that measures the signal width of only the signal to be measured, with the other being a signal not to be measured, the operating time width being determined by the counting operation time when counting a set number of reference clock signals. , a retriggerable one-shot pulse generating means that generates a one-shot pulse by being triggered by a pulse of the auxiliary pulse signal, and a retriggerable one-shot pulse generating means that captures the level of the signal under test at the rising or falling edge of the one-shot pulse. By determining the period of existence of the rising edge and the period of existence of the falling edge of the main pulse, the period of existence of the measurement object in which only the signal to be measured exists without the non-measurement signal is detected, and its presence is detected. Existence period detection means for outputting a period detection signal; Time counting means for performing a counting operation only during the generation of the one-shot pulse in the measurement object existence period based on the existence period detection signal and accumulating the count value; Completion notifying means for generating a measurement end signal when the count value of the counting means reaches a scheduled number of appearances in the measurement object existing period; and in response to the measurement end signal, the count value of the time counting means is A signal width measuring device comprising: average value calculation means for calculating the average value of the signal width by performing an average value calculation on the read signal.
JP1160284A 1989-06-22 1989-06-22 Signal width measuring instrument Pending JPH0325376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1160284A JPH0325376A (en) 1989-06-22 1989-06-22 Signal width measuring instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1160284A JPH0325376A (en) 1989-06-22 1989-06-22 Signal width measuring instrument

Publications (1)

Publication Number Publication Date
JPH0325376A true JPH0325376A (en) 1991-02-04

Family

ID=15711661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1160284A Pending JPH0325376A (en) 1989-06-22 1989-06-22 Signal width measuring instrument

Country Status (1)

Country Link
JP (1) JPH0325376A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102493440A (en) * 2011-12-14 2012-06-13 盐城市同力新型建材有限公司 Method for connecting piles, and purely mechanical connection structure for method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102493440A (en) * 2011-12-14 2012-06-13 盐城市同力新型建材有限公司 Method for connecting piles, and purely mechanical connection structure for method

Similar Documents

Publication Publication Date Title
US4908784A (en) Method and apparatus for asynchronous time measurement
US7282927B1 (en) Use of a configurable electronic controller for capacitance measurements and cable break detection
TW548421B (en) ATE timing measurement unit and method
US6597205B2 (en) High accuracy method for determining the frequency of a pulse input signal over a wide frequency range
US5123034A (en) Automatic anomalous event detection
JPH0325376A (en) Signal width measuring instrument
JP2000074968A (en) Signal detector
US8255188B2 (en) Fast low frequency jitter rejection methodology
JPH0384479A (en) Measuring device for signal width
JP2643119B2 (en) Flow measurement device
JPH0325377A (en) Signal width measuring instrument
KR910001846B1 (en) Checking machine of velocity of motor
JPH0715359Y2 (en) Counter
JP3600465B2 (en) Time measuring instrument
JPH0325378A (en) Signal measuring instrument
SU824122A1 (en) Device for determination of contact chatter parameters
JPS61207195A (en) Motor controller
CN111123085A (en) Measuring method and circuit
JP2006184048A (en) Pulse characteristic detection circuit based on threshold, and its measurement/evaluation testing method
KR0123115Y1 (en) Automatic test device for wafer handler
SU1670670A1 (en) Device for measuring time of contacting of camera synchronous contact
JPH06102962A (en) Clock hazard detection device
RU2020498C1 (en) Device for control of contacting of integrated circuits
JPH04122374U (en) Chatter detection device
JPH0843464A (en) Measuring apparatus for pulse signal