JP2557490B2 - Pulse detection circuit - Google Patents

Pulse detection circuit

Info

Publication number
JP2557490B2
JP2557490B2 JP63216835A JP21683588A JP2557490B2 JP 2557490 B2 JP2557490 B2 JP 2557490B2 JP 63216835 A JP63216835 A JP 63216835A JP 21683588 A JP21683588 A JP 21683588A JP 2557490 B2 JP2557490 B2 JP 2557490B2
Authority
JP
Japan
Prior art keywords
current
contact
flop
flip
output
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 - Fee Related
Application number
JP63216835A
Other languages
Japanese (ja)
Other versions
JPH0264900A (en
Inventor
文彦 多田
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
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP63216835A priority Critical patent/JP2557490B2/en
Publication of JPH0264900A publication Critical patent/JPH0264900A/en
Application granted granted Critical
Publication of JP2557490B2 publication Critical patent/JP2557490B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は電気・ガス・水道等の単位使用量ごとに出力
される接点パルスを検出して遠隔検針する装置のパルス
検出回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Object of the Invention (Industrial field of application) The present invention detects a pulse of a contact pulse that is output for each unit usage amount of electricity, gas, water, etc., and remotely detects the pulse of a device. Regarding the circuit.

(従来の技術) 従来、この種の遠隔検針装置に用いられるパルス検出
回路として第10図に示すものがある。このものは、単位
使用ごとにパルス出力を発生する接点1に対して電流制
御検出部の抵抗2により電圧が印加されており、接点1
が開の状態ではフィルタ3を介して検出部4には“H"レ
ベルが入力され、接点1が閉となると抵抗2を介して接
点1に電流が流れ、フィルタ3を介して検出部4には
“L"レベルが入力される。この場合、検出部4では接点
1の状態が“H",“L"レベルで検出されるためICカウン
タ等により容易にパルス計数することができる。ところ
が、接点1が閉の状態では常時抵抗2を介して電流が流
れるため、消費電流が大きくなる。そこで、消費電流を
低下させるために抵抗2の値を大きくすることが考えら
れるが、抵抗値を大きくすると接点電流が減少するた
め、ノイズに対するS/Nが低下するという問題が発生す
る。
(Prior Art) Conventionally, there is one shown in FIG. 10 as a pulse detection circuit used in this type of remote meter-reading device. In this device, a voltage is applied to a contact 1 that generates a pulse output for each unit use by a resistor 2 of a current control detection unit.
When is open, “H” level is input to the detection unit 4 through the filter 3, and when the contact 1 is closed, a current flows through the contact 1 through the resistor 2 to the detection unit 4 through the filter 3. “L” level is input. In this case, the detection unit 4 detects the state of the contact 1 at the "H" or "L" level, so that pulse counting can be easily performed by an IC counter or the like. However, when the contact 1 is closed, the current always flows through the resistor 2, so that the current consumption increases. Therefore, it is conceivable to increase the value of the resistor 2 in order to reduce the current consumption, but if the resistance value is increased, the contact current decreases, which causes a problem that the S / N against noise decreases.

次に第11図は従来の他の例を示すものである。この場
合、接点1には電流制御検出部の抵抗2を介して電圧が
印加されるが、電流の帰路は開閉部5により開閉される
ため、接点電流は開閉部5が閉のときのみ流れる。そし
て、接点状態を取り込む場合には、開閉部5を閉状態と
し、接点1が開の場合には“H"レベル、接点1が閉の場
合には“L"レベルをフィルタ3を介してサンプリング部
6に与えられる。サンプリング部6では開閉部5を閉と
した後、フィルタ3を信号が追加するのに十分な時間を
取って、フィルタ3を介した接点状態を入力し、前回サ
ンプリング値との比較により接点状態の変化を検知し、
パルスを検出するようになっている。この場合、接点電
流はサンプンリング時のみ流れるので、消費電流の低減
効果はあるが、サンプリング間隔は検出するパルスの最
小パルス幅よりも短くする必要がある。このため、検出
するパルス幅範囲が広い場合には、閉時間の長いパルス
に対しても短い周期のサンプリングにより接点電流を流
す回数が多くなるため、やはり無駄な電流消費が大きく
なる欠点がある。
Next, FIG. 11 shows another conventional example. In this case, a voltage is applied to the contact 1 through the resistor 2 of the current control detection unit, but the return path of the current is opened and closed by the opening / closing unit 5, so the contact current flows only when the opening / closing unit 5 is closed. Then, when capturing the contact state, the opening / closing section 5 is closed, and when the contact 1 is open, the “H” level is sampled, and when the contact 1 is closed, the “L” level is sampled through the filter 3. Given to part 6. In the sampling unit 6, after closing the opening / closing unit 5, it takes a sufficient time for the signal to be added to the filter 3 and the contact state via the filter 3 is input. Detect changes,
It is designed to detect pulses. In this case, the contact current flows only during sampling, which has an effect of reducing current consumption, but the sampling interval must be shorter than the minimum pulse width of the detected pulse. For this reason, when the pulse width range to be detected is wide, the number of times the contact current is flown by sampling in a short cycle even for a pulse having a long closing time, resulting in a disadvantage that wasteful current consumption also increases.

次に、第12図は従来の異なる例を示すものである。こ
のものは、接点1と検出部4をフォトカプラ7により絶
縁するようにしている。この場合、接点1には接点電流
低減のため抵抗値の高い抵抗8からフォトカプラ7のLE
Dと電流制限用の抵抗9を通して電圧が印加される。そ
して、フォトカプラ7を駆動するためには電流値を大き
くする必要があるため、接点1が開時に電源11より抵抗
8を介してコンデンサ10を充電しておき、接点1が閉に
なった瞬間にコンデンサ10の電荷がフォトカプラ7のLE
Dと抵抗9を通り接点1へ電流が流れ、電流が流れたこ
とをフォトカプラ7のフォトトランジスタ側で検知して
フィルタ3を通って検出部4で検出する。この場合に
は、接点1が閉状態でも接点電流は高抵抗8により小さ
くし、接点状態が閉になったことを検出するのにコンデ
ンサ10に充電された電荷を使用して大きな電流値で検出
するため放電電流制限抵抗9を小さくすることによりS/
Nの低下は防げるが、フィルタ3を通過させる信号を得
るためには、コンデンサ10の容量を大きくして放電電流
制限抵抗9の値とコンデンサ10の値により決まる放電時
間を大きくする必要がある。しかし、コンデンサ10の値
を大きくすると接点1が開の間に電源11より高抵抗8を
通してコンデンサ10を充電する時間が長くなり、電流低
減のために抵抗8の値を大きくする程追従性が悪くなる
という問題点があった。
Next, FIG. 12 shows a different conventional example. In this device, the contact 1 and the detector 4 are insulated by a photocoupler 7. In this case, the contact 1 is connected to the LE of the photocoupler 7 from the resistor 8 having a high resistance value in order to reduce the contact current.
A voltage is applied through D and the current limiting resistor 9. Since the current value needs to be increased to drive the photocoupler 7, the capacitor 10 is charged from the power supply 11 via the resistor 8 when the contact 1 is opened, and the moment the contact 1 is closed. The charge of the capacitor 10 is LE of the photocoupler 7.
A current flows through the contact point 1 through D and the resistor 9, and the fact that the current flows is detected by the phototransistor side of the photocoupler 7 and then detected by the detection section 4 through the filter 3. In this case, the contact current is reduced by the high resistance 8 even when the contact 1 is closed, and the electric charge stored in the capacitor 10 is used to detect that the contact is closed and detected with a large current value. Therefore, by reducing the discharge current limiting resistor 9, S /
Although a decrease in N can be prevented, in order to obtain a signal that passes through the filter 3, it is necessary to increase the capacitance of the capacitor 10 and increase the discharge time determined by the values of the discharge current limiting resistor 9 and the capacitor 10. However, if the value of the capacitor 10 is increased, the time for charging the capacitor 10 through the higher resistance 8 than the power supply 11 becomes longer while the contact 1 is open, and as the value of the resistance 8 is increased to reduce the current, the followability becomes worse. There was a problem that

(発明が解決しようとする課題) 電気・ガス・水道等の使用量を遠隔検針する装置で
は、ICカウンターやCPUを使用してICメモリら計量値を
記憶する場合が多くなっており、しかも停電時に計量値
の保持をするだけでなく計量動作も実行させる要求が強
い。そこで、最近のものは電池による停電補償や装置自
体を電池駆動する手段が採られている。この場合、低消
費電流のC-MOSIC等の利用により回路の低消費電流化が
進められているが、この反面、前述の耐ノイズ性のため
のS/N向上や計量器の発信方式の違いによるパルス幅の
違いに広く対応するために、パルス検出回路の消費電流
が占める割合が全体の消費電流に対して大きなものとな
っており、電池の容量削減による装置の小型化や低価格
化の大きな障害となっている。
(Problems to be solved by the invention) In a device for remote meter reading of the amount of electricity, gas, water, etc. used, the IC counter and CPU are often used to store the measured values from the IC memory, and there is a power failure. At times, there is a strong demand for not only holding the measured value but also executing the measuring operation. Therefore, in recent years, means for compensating for power failure by a battery and driving the device itself by a battery have been adopted. In this case, the current consumption of the circuit is being reduced by using a low current consumption C-MOS IC, etc., but on the other hand, the improvement of S / N for noise resistance and the difference of the measuring instrument transmission method are mentioned. The current consumption of the pulse detection circuit occupies a large proportion of the total current consumption in order to widely deal with the difference in pulse width due to the difference in the pulse width. It is a big obstacle.

本発明は上記の問題点を解決するために、耐ノイズ性
に優れ消費電流が非常に小さいにもかかわらず、幅広い
パルス幅のパルス検出が可能なパルス検出回路を提供す
ることを目的とする。
In order to solve the above problems, it is an object of the present invention to provide a pulse detection circuit which is excellent in noise resistance and consumes a very small current, but is capable of detecting a pulse having a wide pulse width.

[発明の構成] (問題点を解決するための手段) 本発明は、接点の状態を検出するために接点へ電流を
供給するとともに、電流が流れたか流れないかを検出す
る電流制御検出部と、電流検出結果信号から接点のチャ
タリングや外来ノイズの影響を除去するフィルタと、接
点が閉状態で接点へ電流が流れた状態で動作が起動され
あらかじめ決められた時間が経過すると電流制御検出部
の信号がフィルタを通過するよりも長く有限の時間出力
がなさされるタイマと、接点が閉状態で接点へ電流が流
れたことが検出されると電流制御検出部から接点へ電流
を流さないようにするとともに、タイマが起動されて一
定時間経過して出力される信号により電流制御検出部か
ら接点へ電流を流す状態に反転させ、タイマからの有限
時間の出力が終了した時点で接点に電流が流れたことが
が検出されていれば電流制御検出部から接点へ電流を流
せない状態にさせ、もし接点に電流が流れたことが検出
されていなければ電流制御検出部から電流を流せる状態
にさせる信号を出力するフリップフロップと、電流制御
検出部からの電流検出信号あるいはフリップフロップの
状態信号により接点の開閉回数を計数する検出部よりな
っている。
[Structure of the Invention] (Means for Solving Problems) The present invention provides a current control detection unit that supplies current to a contact in order to detect the state of the contact and detects whether or not the current flows. , A filter that removes the influence of chattering and external noise of the contact from the current detection result signal, and the operation of the current control detector when the operation is started with the contact closed and current flows to the contact. A timer that outputs a signal for a finite time longer than when the signal passes through the filter and a current control detector that prevents current from flowing to the contact when it is detected that current has flowed to the contact when the contact is closed. When the timer is activated and the signal output after a certain period of time has passed, the current control detector reverses the state in which current flows to the contact, and when the output of the finite time from the timer ends. If it is detected that a current has flowed to the contact, the current control detection unit disables the current flow to the contact.If no current is detected to the contact, the current control detection unit detects the current It comprises a flip-flop that outputs a signal that causes the current to flow, and a detector that counts the number of times the contacts are opened and closed by the current detection signal from the current control detector or the state signal of the flip-flop.

(作用) 接点が開状態では、電流制御検出部は電流が流せる状
態にあるが、接点が開であるため電流の消費はない。接
点が開から閉へ変化すると電流制御検出部から耐ノイズ
に対して十分なS/Nを確保できる電流が接点を流れる。
通常電流値としては10mA〜20mA程度が使用されるが、使
用目的や使用環境により任意に決定してかまわない。接
点に電流が流れると電流制御検出部により検出され、検
出信号がフィルタを通過するとフリップフロップが反転
されるので電流制御検出部からの電流供給が停止され、
電流の消費が無くなる。ここで、電流が消費されるのは
電流を流れたことを検出した信号がフィルタを通過する
のに必要最低限の時間のみであり、電流消費の無駄がな
い。また、接点のチャタリングは接点の切替り時に発生
するものであり、フィルタは接点の切替り時以外で印加
されるノイズを除去できるものであればチャタリングが
除去できなくても使用可能であり、さらにフィルタを通
過する時間を短くして消費電流を下げることも可能であ
る。何故なら、接点が開から閉に切替わった瞬間が検出
できれば電流供給を断ってしまうため、その後のチャタ
リングは動作に影響を与えない。また、タイマの出力は
接点が開となってから次に閉となるまでの最小時間より
も短く設定しておけばよいので、通常チャタリング時間
よりも長く設定することが可能であり、フリップフロッ
プを反転する時点ではすでに接点が開から閉へ切替る時
のチャタリングは終了していることになる。逆に、タイ
マが作動してフリップフロップを反転する時点で接点が
閉から開へ切替る時のチャタリングが存在していた場合
には、チャタリング中に接点が閉と判定しても、接点が
閉となってから次に開となるまでの最小時間よりも短く
設定されている次のタイマ作動時間時点で接点開を検出
できるし、逆にチャタリング中に接点が開と判定しても
接点が閉から開への切替り中であり、開と判定して問題
ない。ただし、接点が開と判定した直後にチャタリング
により接点が開から閉への切替り検出をすることがある
ため、フィルタの出力を直接カウンタ等で計数すると誤
計数の恐れがあるため、検出部の前段にチャタリングを
除去できるフィルタを設ける必要がある。しかし、この
ようなフィルタは接点電流とは無関係であり、低消費電
流化が可能である。
(Function) When the contact is in the open state, the current control detector is in a state in which the current can flow, but since the contact is open, the current is not consumed. When the contact changes from open to closed, a current that allows sufficient S / N for noise resistance to flow from the current control detector flows through the contact.
Normally, a current value of about 10mA to 20mA is used, but it may be arbitrarily determined depending on the purpose of use and environment of use. When a current flows through the contact, it is detected by the current control detection unit, and when the detection signal passes through the filter, the flip-flop is inverted, so that the current supply from the current control detection unit is stopped,
It consumes no current. Here, the current is consumed only for the minimum time necessary for the signal that detects that the current has flowed to pass through the filter, and there is no waste of current. Further, the chattering of the contact occurs when the contact is switched, and the filter can be used even if the chattering cannot be removed as long as it can remove the noise applied except when the contact is switched. It is also possible to reduce the current consumption by shortening the time for passing through the filter. Because the current supply is cut off if the moment when the contact is switched from open to closed can be detected, the chattering thereafter does not affect the operation. Also, the timer output can be set longer than the normal chattering time, because it can be set shorter than the minimum time from when the contact opens until the contact closes next. Chattering when the contact switches from open to closed has already been completed at the time of reversal. Conversely, if there is chattering when the contact switches from closed to open when the timer operates and flips the flip-flop, even if it is determined that the contact is closed during chattering, the contact will close. The contact open can be detected at the next timer operating time which is set to be shorter than the minimum time from when the contact opens to the next, and conversely the contact closes even if it is determined that the contact is open during chattering. It is in the process of switching from to open, and there is no problem to judge it as open. However, switching from open to closed may be detected by chattering immediately after the contact is determined to be open.Therefore, counting the output of the filter directly with a counter, etc. may cause erroneous counting. It is necessary to provide a filter that can remove chattering in the previous stage. However, such a filter is irrelevant to the contact current and can reduce current consumption.

接点が開から閉への切替りが検出されるとタイマが起
動され、接点が開となってから次に閉となるまでの最小
時間よりも短く設定されている時間が経過するとフリッ
プフロップを反転させて電流制御検出部から接点へ電流
供給を可能とさせる。ここで接点が開となっていれば電
流検出信号が得られないのでフリップフロップはこの状
態にラッチされる。ここで接点が閉となていれば電流検
出信号が得られるので電流検出信号とタイマ出力の双方
がフリップフロップへ入力されることになる。フリップ
フロップは電流検出信号とタイマ出力の双方が入力され
ている場合には電流制御検出部から電流供給をさせる信
号を出力し、接点に電流が流れて電流制御検出部からフ
ィルタを通過して電流検出信号が得られる。そして、タ
イマ出力が終了すると、電流検出信号のみがフリップフ
ロップへ入力される。従ってフリップフロップは出力を
反転させて電流制御検出部は電流供給を停止しタイマは
再起動される。従って、接点が閉状態が続いた場合に接
点へ電流を供給するのはタイマの出力時間のみであり、
この出力時間は電流検出信号がフィルタを通過するのに
必要最限の時間を要するのみであるから、接点が閉とな
っている時間に比べて十分小さくできる。一般に電気・
ガス・水道等の計量器から出力される接点パルスは、パ
ルス周期中接点が閉じている時間が半分の場合と、一定
時間だけ接点が閉となるものがほとんどであり、パルス
周期自体も通常、数分間に1パルス程度となるため、一
旦接点が閉となった後に開となったことを検出するまで
の時間は十分長く取ることができる。従って、接点が閉
となった状態が続いていても、タイマが作動する周期に
比べてタイマの出力時間は十分小さくなり、タイマの出
力時間に接点へ電流が流れても全体としての電流消費は
十分小さくなる。
The timer is started when the switch from open to closed is detected, and the flip-flop is inverted when the time set to be shorter than the minimum time from when the contact is opened to when the contact is closed next has elapsed. Thus, the current can be supplied from the current control detector to the contacts. If the contact is open, the flip-flop is latched in this state because the current detection signal cannot be obtained. If the contact is closed here, the current detection signal is obtained, so that both the current detection signal and the timer output are input to the flip-flop. When both the current detection signal and the timer output are input, the flip-flop outputs a signal that causes the current control detection unit to supply current, and the current flows through the contact point and the current control detection unit passes through the filter to pass the current. A detection signal is obtained. Then, when the timer output ends, only the current detection signal is input to the flip-flop. Therefore, the flip-flop inverts the output, the current control detector stops the current supply, and the timer is restarted. Therefore, it is only the output time of the timer that supplies current to the contact when the contact remains closed.
Since this output time only requires the minimum time necessary for the current detection signal to pass through the filter, it can be made sufficiently smaller than the time when the contacts are closed. Electricity in general
The contact pulse output from measuring instruments such as gas and water is such that the contact is closed for half of the pulse period and the contact is closed for a certain period of time. Since it takes about 1 pulse for several minutes, it is possible to take a sufficiently long time until it is detected that the contact is once closed and then opened. Therefore, even if the contact is kept closed, the output time of the timer is sufficiently smaller than the cycle in which the timer operates, and even if current flows to the contact during the output time of the timer, the total current consumption is Small enough.

以上の動作を繰り返すことにより、フィルタから得ら
れる出力は接点パルス発信部での接点開閉回数と同じパ
ルス信号が得られる。ここで、フィルタから得られるパ
ルス信号は、接点が開から閉へ切替った場合にはフィル
タを通過する時間だけ遅れてパルス信号が変化するが、
接点が閉から開へ切替った場合には、最大でタイマの動
作時間だけ遅れることになるので、フィルタから得られ
るパルス信号波形は接点からの発信パルス波形とは一致
しない。しかし、電気・ガス・水道等の計量器のパルス
を検出する目的は、発信パルス数の計数であるため、問
題とはならない。
By repeating the above operation, the output obtained from the filter is the same pulse signal as the number of times of contact opening and closing in the contact pulse transmitting section. Here, the pulse signal obtained from the filter changes when the contact is switched from open to closed, with the pulse signal changing with a delay of the time for passing through the filter.
When the contact is switched from closed to open, the maximum operation time of the timer is delayed, so the pulse signal waveform obtained from the filter does not match the pulse waveform transmitted from the contact. However, since the purpose of detecting pulses of measuring instruments such as electricity, gas, and water is to count the number of transmitted pulses, there is no problem.

(実施例) 以下、本発明の実施例を図面にしたがい説明する。Embodiment An embodiment of the present invention will be described below with reference to the drawings.

第1図は同実施例の回路構成を示すものである。この
場合接点21にはフリップフロップ22の出力で制御される
電流制御検出部23が接続される。そして電流制御検出部
23での電流検出信号はフィルタ24を経てフリップフロッ
プ22のリセット入力端子▲▼に与えられる。一方、
フリップフロップ2の出力端子Qは電流制御検出部23と
タイマA25のトリガ信号端子TRGに接続され、タイマA25
の出力端子▲▼はフリップフロップ22のセット入
力端子▲▼へ接続される。そして、接点21の開閉動
作はフィルタ24の出力信号として検出部26にて計数され
る。
FIG. 1 shows the circuit configuration of the embodiment. In this case, the contact 21 is connected to the current control detector 23 controlled by the output of the flip-flop 22. And the current control detector
The current detection signal at 23 is applied to the reset input terminal ▲ ▼ of the flip-flop 22 via the filter 24. on the other hand,
The output terminal Q of the flip-flop 2 is connected to the current control detector 23 and the trigger signal terminal TRG of the timer A25,
Is connected to the set input terminal ▲ ▼ of the flip-flop 22. Then, the opening / closing operation of the contact 21 is counted by the detection unit 26 as an output signal of the filter 24.

第2図は同実施例で使用されるフリップフロップ22の
入出力論理表であり、セット入力(▲▼入力)およ
びリセット入力(▲▼入力)は負論理で出力(Q出
力)は正論理としてある。しかし、電流制御検出部23で
電流を検出した信号が入力され、タイマ25の出力信号が
入力されていない状態では電流供給を停止させる出力を
行い、タイマ25の出力状態では電流供給をさせる出力を
行い、双方が入力されていない状態では出力を変化させ
ないものであればかまわない。
FIG. 2 is an input / output logic table of the flip-flop 22 used in this embodiment. The set input (▲ ▼ input) and the reset input (▲ ▼ input) are negative logic and the output (Q output) is positive logic. is there. However, when the current detection signal is detected by the current control detector 23 and the output signal of the timer 25 is not input, the current supply is stopped and the current supply is stopped. It does not matter if the output is not changed in the state where both are not input.

第3(a)図は同実施例におけるタイマ25の具体例を
示し、同図(b)図にその動作タイミングを示してい
る。この場合、トリガ信号TRGが入力(第3(b)図で
は“H"から“L"状態への変化)されると一定時間後に出
力信号▲▼(第3(b)図では“L"状態)を発生
するようにしている。
FIG. 3 (a) shows a concrete example of the timer 25 in this embodiment, and FIG. 3 (b) shows its operation timing. In this case, when the trigger signal TRG is input (change from “H” to “L” state in FIG. 3 (b)), the output signal ▲ ▼ (“L” state in FIG. 3 (b)) after a certain period of time. ).

ここでタイマ25が作動する一定時間とは接点が閉から
開になってから次に閉となるまでの最小時間よりも短く
設定される時間である。第3図のものでは、基準クロッ
クCKとフリップフロップの段数nにより決定される。ま
た、タイマ25の出力時間は電流制御検出部23で電流を検
出した信号がフィルタ24を通過するのに必要な時間より
も長く、検出すべき接点パルスの最小接点閉時間からフ
ィルタ24の通過時間を差し引いた時間よりも短く設定さ
れる時間であり、第3図では基準クロックの1周期時間
となる。
Here, the fixed time period in which the timer 25 operates is a time period set to be shorter than the minimum time period from when the contact is closed to when the contact is closed next. In the case of FIG. 3, it is determined by the reference clock CK and the number n of flip-flop stages. Further, the output time of the timer 25 is longer than the time required for the signal whose current is detected by the current control detection unit 23 to pass through the filter 24, and the passing time of the filter 24 from the minimum contact closing time of the contact pulse to be detected. The time is set to be shorter than the time obtained by subtracting, and is one cycle time of the reference clock in FIG.

第4図は同実施における電流制御検出部23の具体例を
示している。この場合、フリップフロップ22の出力Qか
ら抵抗231を介して接点に電流を供給し、抵抗231の接点
21側の電圧レベルを検出して電流が流れたか、流れてな
いかを知るようにしている。
FIG. 4 shows a concrete example of the current control detection unit 23 in the same embodiment. In this case, current is supplied from the output Q of the flip-flop 22 to the contact via the resistor 231 and the contact of the resistor 231
It detects the voltage level on the 21st side and knows whether or not a current flows.

次に、このように構成した実施例の動作を説明する。
第5図において、接点21が開の状態では電流制御検出部
23では電流を検出しないため、フリップフロップ22のリ
セット入力▲▼には“H"が入力されフリップフロッ
プ22の出力Qも“H"となっている。そして、接点21が閉
となると電流制御検出部23から接点21へ電流が流れ、電
流検出信号がフィルタ24を通過するとフリップフロップ
22のリセット入力▲▼が“L"となり、出力Qが“L"
となるため電流制御検出部23は接点21への電流供給を停
止し、タイマ25の動作が起動され、一定時間後にタイマ
25からフリップフロップ22のセット入力▲▼に“L"
が出力されフリップフロップ22の出力Qが“H"となる。
この時点で接点が開となっていれば電流制御検出部23か
らの電流検出信号が“H"となるためフィルタ24の通過時
間後にフリップフロップ22のリセット入力▲▼が
“H"となり出力Qが“H"へ復帰する。この結果、検出部
26では、フリップフロップ22のリセット信号▲▼が
“L"へ切替ったことを検出して計数値を更新するように
なる。
Next, the operation of the embodiment thus configured will be described.
In FIG. 5, when the contact 21 is open, the current control detector
Since no current is detected at 23, "H" is input to the reset input ▲ ▼ of the flip-flop 22 and the output Q of the flip-flop 22 is also "H". When the contact 21 is closed, a current flows from the current control detector 23 to the contact 21, and when the current detection signal passes through the filter 24, the flip-flop
22 reset input ▲ ▼ becomes "L" and output Q becomes "L"
Therefore, the current control detection unit 23 stops the current supply to the contact 21, the operation of the timer 25 is started, and the timer
“L” from 25 to the set input ▲ ▼ of flip-flop 22
Is output and the output Q of the flip-flop 22 becomes "H".
If the contact is open at this point, the current detection signal from the current control detector 23 becomes "H", so that the reset input ▲ ▼ of the flip-flop 22 becomes "H" after the passage time of the filter 24 and the output Q becomes Return to "H". As a result, the detection unit
At 26, it is detected that the reset signal ▲ ▼ of the flip-flop 22 is switched to "L", and the count value is updated.

ちなみに、最小周期が10秒で開と閉の時間が同じ接点
パルスを計数する場合、ノイズやチャタリング除去に10
msのフィルタを必要とすると、従来の第10図で述べたも
のでは、接点に流す電流が10mAであった場合に、平均消
費電流は、下記のようになる。
By the way, when counting contact pulses with a minimum period of 10 seconds and the same opening and closing times, noise and chattering can be eliminated by 10%.
When a ms filter is required, the conventional one described in FIG. 10 has the following average consumption current when the current flowing through the contact is 10 mA.

10[mA]×5[秒]/10[秒]=5[mA] これに対して、第1図で述べた本発明のものでは、同
じ電流と同じフィルタ時間とし、タイマ25の動作時間を
4秒、出力時間を20msとした場合に平均消費電流は、 10[mA]×(0.01+0.02)[秒]/10[秒]=0.03[m
A] となる。つまり、このような条件の下では、第5図に示
すように、接点21が開から閉になると、電流制御検出部
23から接点21に10mAの電流が10msだけ流れ、電流検出信
号がフィルタ24を通過して、フリップフロップ22のリセ
ット入力CLが“L"となり、出力Qが“L"になると、電流
制御検出部23は接点21への電流供給を停止する。この状
態からタイマ25の動作が起動し、一定時間(4秒)を経
過すると、フリップフロップ22のセット入力PRが“L"と
なり、出力Qが“H"となる。この場合、この時点での接
点21は閉のままにあるので、タイマ出力によりフリップ
フロップ22のセット入力PRが“L"で、出力Qが“H"を保
ち、タイマ時間20msの間、電流制御検出部23から接点21
に電流が流れる。そして、タイマ時間が終了し、フィル
タ24を通過する電流検出信号により、フリップフロップ
22のリセット入力CLが“L"となり、出力Qが“L"になる
と、電流制御検出部23は接点21への電流供給を停止し、
タイマ25を再起動する。そして、再び、一定時間(4
秒)を経過すると、フリップフロップ22のセット入力PR
が“L"、出力Qが“H"となるが、この時点で接点21が開
になっているので、これ以降、上述したと同様な動作が
実行されるようになる。
10 [mA] × 5 [sec] / 10 [sec] = 5 [mA] In contrast, in the case of the present invention described in FIG. 1, the same current and the same filter time are used, and the operating time of the timer 25 is When the output time is 4 seconds and the output time is 20 ms, the average current consumption is 10 [mA] x (0.01 + 0.02) [seconds] / 10 [seconds] = 0.03 [m
A]. That is, under such conditions, as shown in FIG. 5, when the contact 21 changes from open to closed, the current control detection unit
When the current of 10mA flows from the contact 23 to the contact 21 for 10ms, the current detection signal passes through the filter 24, the reset input CL of the flip-flop 22 becomes "L" and the output Q becomes "L", the current control detector 23 stops supplying current to the contact 21. From this state, the operation of the timer 25 is started, and when a fixed time (4 seconds) has elapsed, the set input PR of the flip-flop 22 becomes "L" and the output Q becomes "H". In this case, since the contact 21 remains closed at this point, the set input PR of the flip-flop 22 is "L" and the output Q is "H" due to the timer output, and the current control is performed during the timer time of 20 ms. Detection unit 23 to contact 21
Current flows through. Then, when the timer time expires, the flip-flop is activated by the current detection signal passing through the filter 24.
When the reset input CL of 22 becomes “L” and the output Q becomes “L”, the current control detection unit 23 stops the current supply to the contact 21,
Restart timer 25. Then, again, a certain time (4
Seconds), set input PR of flip-flop 22
Becomes "L" and the output Q becomes "H", but since the contact 21 is opened at this point, the same operation as described above is executed thereafter.

従って、このようにすれば、上述した平均消費電流の
計算からも、従来のものより消費電流が1/167も低減さ
れることが明らかである。
Therefore, in this way, it is apparent from the above calculation of the average current consumption that the current consumption is 1/167 lower than that of the conventional one.

次に、第6図は接点信号がノイズの様に短い場合を示
している。この場合、電流検出信号がフィルタ24を通過
することがないため、フリップフロップ22は反転動作す
ることがなく、検出部26での計数は変化しない。
Next, FIG. 6 shows the case where the contact signal is short like noise. In this case, since the current detection signal does not pass through the filter 24, the flip-flop 22 does not perform the inverting operation and the count in the detection unit 26 does not change.

次に、第7図はタイマ25の出力時点で接点21が閉のま
まであった場合を示している。この場合タイマ25からの
出力によりフリップフロップ22のセット入力▲▼が
“L"となる接点21が閉のため電流制限検出部23からの電
流検出信号は“L"のままであり、フリップフロップ22の
リセット入力▲▼もLのままであるため、タイマ25
の出力が終了した時点でフリップフロップ22の出力Qは
“L"へ戻る。また、フリップフロップ22のリセット入力
▲▼は変化しないため、検出部26での計数は行なわ
れることがない。
Next, FIG. 7 shows a case where the contact 21 remains closed at the output of the timer 25. In this case, since the set input ▲ ▼ of the flip-flop 22 becomes “L” by the output from the timer 25 and the contact 21 is closed, the current detection signal from the current limit detection unit 23 remains “L” and the flip-flop 22 Since the reset input ▲ ▼ of is also L, the timer 25
The output Q of the flip-flop 22 returns to "L" at the time when the output of is finished. Further, since the reset input ▲ ▼ of the flip-flop 22 does not change, the detection unit 26 does not count.

次に、本発明の他の実施例を第8図により説明する。 Next, another embodiment of the present invention will be described with reference to FIG.

第8図は同他実施例の回路構成を示すものである。こ
の場合、第8図はタイマ27として一旦トリガされた後は
リセットされるまで周期的に出力が可能なものを使用し
ている。ここでの、タイマ27のトリガ入力TRGはフィル
タ24の出力から得ることが可能であるが、このようなタ
イマ27をフリップフロップ22の出力からトリガしてもか
まわない。
FIG. 8 shows a circuit configuration of the other embodiment. In this case, FIG. 8 uses a timer 27 that is capable of outputting periodically after being once triggered until it is reset. Here, the trigger input TRG of the timer 27 can be obtained from the output of the filter 24, but such a timer 27 may be triggered from the output of the flip-flop 22.

第9(a)図は同他の実施例におけるタイマ27の具体
例であり、同図(b)図にその動作タイミング図を示し
ている。この場合、トリガ信号TRGが入力(第9(b)
図では“L"状態)されると、一定時間周期で出力信号▲
▼を有限時間出力(第9(b)図では“L"状態)
を発生するようにしている。
FIG. 9 (a) is a concrete example of the timer 27 in the other embodiment, and FIG. 9 (b) is an operation timing chart thereof. In this case, the trigger signal TRG is input (9th (b)
When in the “L” state in the figure), the output signal is
▼ is output for a limited time ("L" state in Fig. 9 (b))
Is trying to occur.

その他は第1図と同様であり、同一部分には同符号を
符して説明を詳細する。
Others are the same as those in FIG. 1, and the same portions will be denoted by the same reference numerals and detailed description will be given.

このようにしても上述した実施例と同様の作用を期待
できる。
Even in this case, the same effect as that of the above-described embodiment can be expected.

[発明の効果] 以上説明したように本発明によれば、接点が開状態で
は接点に電流を供給できる状態にあるが、接点が閉とな
ってノイズやチャタリングを除去するのに必要な時間だ
け電流が流れたことを検出すると、接点への電流供給を
停止するとともに、接点が開となるまでは検出すべき接
点の最小開閉周期よりも短い範囲で、なるべく長く設定
した周期にて、フィルタを通過できるななるべく短い時
間だけ電流を流すことにより接点の開閉回数が検出でき
るように構成している。
As described above, according to the present invention, when the contact is in the open state, the current can be supplied to the contact, but the contact is closed for only the time required for removing noise and chattering. When it detects that a current has flown, it stops the current supply to the contact and opens the filter at a cycle set as long as possible within a range shorter than the minimum opening / closing cycle of the contact to be detected until the contact opens. It is configured so that the number of times the contacts are opened and closed can be detected by passing an electric current for the shortest possible time.

これにより、以下に述べる効果が期待できる。 As a result, the following effects can be expected.

(1)接点に電流が流れるのは、接点が開から閉へ切替
った時と接点が閉の状態が続いた場合に、あらかじめ決
められた周期で、ノイズを除去するためのフィルタを通
過させるのに必要な時間だけであり、電流消費を非常に
小さくできる。
(1) The current flows through the contacts by passing through a filter for removing noise at a predetermined cycle when the contacts switch from open to closed and when the contacts remain closed. The current consumption can be very small, since only the time required for

(2)電流が小さくできるため、停電補償や電池駆動の
電池容量を削減でき、装置の小型化や低価格化が図れ
る。
(2) Since the current can be reduced, power outage compensation and battery capacity for battery drive can be reduced, and the device can be downsized and the price can be reduced.

(3)消費電流が小さくなったため、耐ノイズ性向上の
ために接点に流す電流値を大きくしてS/N向上を図る場
合に電池容量等から受ける制約を低減できる。
(3) Since the current consumption is reduced, it is possible to reduce the restrictions imposed by the battery capacity and the like when increasing the value of the current passed through the contacts to improve noise resistance and improve S / N.

(4)閉時間の短いパルスから閉時間が長いパルスまで
同一回路で適用が可能であり、消費電流はパルス幅より
も最大パルス頻度により増大するため電気・ガス・水道
等のパルス頻度が少い計数に適している。
(4) It can be applied to the same circuit from a pulse with a short closing time to a pulse with a long closing time, and the current consumption increases with the maximum pulse frequency rather than the pulse width, so the pulse frequency of electricity, gas, water, etc. is low. Suitable for counting.

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

第1図は本発明の一実施例を示すブロック図、第2図は
同実施例に用いられるフリップフロップの入出力論理を
示す図、第3図は同実施例に用いられるタイマの回路構
成図とその動作タイミング図、第4図は同実施例に用い
られる電流制御検出部を示す回路構成図、第5図ないし
第7図は同実施例の動作を説明するための動作タイミン
グ図、第8図は本発明の他実施例を示すブロック図、第
9図は同他実施例に用いられるタイマの回路構成図とそ
の動作タイミング図、第10図ないし第12図は夫々従来の
パルス検出回路を説明するためのブロック図である。 21……接点、22……フリップフロップ、23……電流制御
検出部、24……フィルタ、25,27……タイマ、26……検
出部。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing input / output logic of a flip-flop used in the same embodiment, and FIG. 3 is a circuit configuration diagram of a timer used in the same embodiment. And its operation timing chart, FIG. 4 is a circuit configuration diagram showing a current control detection unit used in the embodiment, FIGS. 5 to 7 are operation timing charts for explaining the operation of the embodiment, and FIG. FIG. 9 is a block diagram showing another embodiment of the present invention, FIG. 9 is a circuit configuration diagram of a timer used in the other embodiment and its operation timing chart, and FIGS. 10 to 12 are conventional pulse detection circuits, respectively. It is a block diagram for explaining. 21 …… contact, 22 …… flip-flop, 23 …… current control detector, 24 …… filter, 25,27 …… timer, 26 …… detector.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】接点状態を検出するために接点へ電流を供
給するとともに電流の有無を検出する電流制御検出部
と、 この電流制御検出部の電流検出信号から接点のチャタリ
ングや外来ノイズの影響を除去するフィルタと、 前記接点が開状態から閉状態に変化してから一定時間の
後に出力を発生するタイマと、 フリップフロップを有し、前記接点が開状態であり、前
記電流制御検出部から電流を流せる状態にさせる信号を
前記フリップフロップが出力している状態にて、前記接
点が開から閉になり電流検出信号が前記フィルタを通過
して、前記電流制御検出部から電流を流せない状態にさ
せる信号を前記フリップフロップが出力している状態に
反転することと、前記接点が閉から開になった後に前記
タイマが起動された場合に、前記接点に電流が流れたこ
とが検出されないことにより前記電流制御検出部から電
流を流せる状態にさせる信号を前記フリップフロップが
出力している状態に再度反転することを計数する検出部
と を具備したことを特徴とするパルス検出回路。
1. A current control detector for supplying a current to a contact to detect a contact state and detecting the presence or absence of the current, and a current detection signal of the current control detector for detecting the influence of chattering or external noise on the contact. A filter to remove, a timer that generates an output after a fixed time after the contact changes from the open state to the closed state, and a flip-flop, the contact is in the open state, and the current control detection unit outputs a current. In a state in which the flip-flop is outputting a signal that allows the current to flow, the contact is opened to closed, the current detection signal passes through the filter, and the current is not allowed to flow from the current control detection unit. Inversion of the signal that causes the flip-flop to output the current, and when the timer is started after the contact has changed from closed to open, a current is applied to the contact. And a detection unit that counts that a signal that causes the current control detection unit to allow a current to flow when the current has not been detected is again inverted to the state in which the flip-flop is outputting. Pulse detection circuit.
JP63216835A 1988-08-31 1988-08-31 Pulse detection circuit Expired - Fee Related JP2557490B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63216835A JP2557490B2 (en) 1988-08-31 1988-08-31 Pulse detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63216835A JP2557490B2 (en) 1988-08-31 1988-08-31 Pulse detection circuit

Publications (2)

Publication Number Publication Date
JPH0264900A JPH0264900A (en) 1990-03-05
JP2557490B2 true JP2557490B2 (en) 1996-11-27

Family

ID=16694646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63216835A Expired - Fee Related JP2557490B2 (en) 1988-08-31 1988-08-31 Pulse detection circuit

Country Status (1)

Country Link
JP (1) JP2557490B2 (en)

Also Published As

Publication number Publication date
JPH0264900A (en) 1990-03-05

Similar Documents

Publication Publication Date Title
US7015716B2 (en) Method for detecting a power load of a power supply module according to duty cycle detection, and related device
GB2332283A (en) Coulometric battery state of charge metering
US4093871A (en) Correction circuit
JP2557490B2 (en) Pulse detection circuit
US4881072A (en) Device for remote metering
GB2277416A (en) Power supply; Utility meter interface
SU1142815A1 (en) Device for checking relay
SU1734076A1 (en) Device to check a relay
SU448400A1 (en) Digital Terahmmeter
JP2556038B2 (en) Hybrid integrated circuit
JPH0335170A (en) Detecting circuit for ac power supply failure
SU1354126A1 (en) Meter of pulse instantaneous repetition frequency
SU1522041A1 (en) Electromagnetic flowmeter
JP2645197B2 (en) Flow measurement device
RU2047271C1 (en) Pulse counter saving information during interruption of power supply
SU1150584A2 (en) Device for measuring radio receiver real sensitivity
SU842696A1 (en) Device for measuring time intervals
SU864237A1 (en) Electronic stopwatch
SU1022117A1 (en) Device for monitoring time parameters of relay
SU565258A1 (en) Device for measuring and fixing frequency change rate in power system
SU1760481A1 (en) Digital meter of magnetic induction
SU526854A1 (en) Time Meter
JPH0362051B2 (en)
SU690298A1 (en) Flowmeter digital measuring device
SU1335893A1 (en) Phase-to-code commutator converter

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees