JPH0145670B2 - - Google Patents
Info
- Publication number
- JPH0145670B2 JPH0145670B2 JP58014117A JP1411783A JPH0145670B2 JP H0145670 B2 JPH0145670 B2 JP H0145670B2 JP 58014117 A JP58014117 A JP 58014117A JP 1411783 A JP1411783 A JP 1411783A JP H0145670 B2 JPH0145670 B2 JP H0145670B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- flip
- output
- flop
- signal
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/24—Resetting means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Electronic Switches (AREA)
- Selective Calling Equipment (AREA)
Description
【発明の詳細な説明】
〔技術分野〕
本発明は入力信号の変化を検出しその変化状態
を記憶しておくようにした信号入力回路に関する
ものである。DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a signal input circuit that detects a change in an input signal and stores the state of the change.
第1図は従来例回路を示し、2段のDフリツプ
フロツプ1,2及びノアゲート3,4、RSフリ
ツプフロツプ5よりなるノイズ除去回路6と、D
フリツプフロツプ7及び排他的オア回路8よりな
る変化検出回路9と、SRラツチ10とより構成
され、ノイズ除去回路6の第1段のDフリツプフ
ロツプ1のD入力端に入力信号を入力するととも
にSRラツチ10のQ出力端より変化データ信号
を出力するようにしてあり、各Dフリツプフロツ
プ1,2,7のクロツク入力端CKにはサンプル
クロツク信号が、リセツト入力端Rには電源投入
リセツト信号が夫々入力されるようにしてある。
第2図は第1図回路のタイムチヤートを示し、同
図中aは電源投入リセツト信号POC、bはサン
プルクロツク信号、cは入力信号、dは第1のD
フリツプフロツプ1のQ出力、eは第2のDフリ
ツプフロツプ2のQ出力、fはノイズ除去回路6
の出力、gは変化検出回路9のDフリツプフロツ
プ7のQ出力、hは排他的オア回路8の出力、i
はSRラツチ10のQ出力である変化データ信号
を示すものである。ところでこの第2図のタイム
チヤートは、回路の電源投入時に入力信号が
“H”になつている場合の第1図回路の動作を示
しているものであるが、この第2図タイムチヤー
トより明らかなように、電源投入時に電源投入リ
セツト信号により全てのDフリツプフロツプ1,
2,7がリセツトされているにもかかわらず、電
源投入時の入力信号が“H”であるだけで、変化
があつたことを誤検出し変化データ信号が“H”
になつてしまい、誤動作を生じる問題を有するも
のであり、これは電源投入時に各Dフリツプフロ
ツプ1,2,7をセツトするようにした場合に
も、入力信号がこのとき“L”であると同様に変
化検出をして変化データ信号が出力されてしまう
問題を有するものである。
FIG. 1 shows a conventional circuit, which includes a noise removal circuit 6 consisting of two stages of D flip-flops 1 and 2, NOR gates 3 and 4, and an RS flip-flop 5;
It is composed of a change detection circuit 9 consisting of a flip-flop 7 and an exclusive OR circuit 8, and an SR latch 10. An input signal is input to the D input terminal of the D flip-flop 1 in the first stage of the noise removal circuit 6, and the SR latch 10 A changing data signal is output from the Q output terminal of each D flip-flop, and a sample clock signal is input to the clock input terminal CK of each D flip-flop 1, 2, and 7, and a power-on reset signal is input to the reset input terminal R of each D flip-flop. It is designed so that it will be done.
Figure 2 shows a time chart of the circuit in Figure 1, in which a is the power-on reset signal POC, b is the sample clock signal, c is the input signal, and d is the first D
Q output of flip-flop 1, e is Q output of second D flip-flop 2, f is noise removal circuit 6
, g is the Q output of the D flip-flop 7 of the change detection circuit 9, h is the output of the exclusive OR circuit 8, i
indicates a changing data signal which is the Q output of SR latch 10. By the way, the time chart in Figure 2 shows the operation of the circuit in Figure 1 when the input signal is "H" when the circuit is powered on. As shown, when the power is turned on, all D flip-flops 1,
Even though 2 and 7 have been reset, even if the input signal is "H" when the power is turned on, a change will be erroneously detected and the changed data signal will be "H".
This has the problem of causing malfunctions, and even if the D flip-flops 1, 2, and 7 are set when the power is turned on, the same problem occurs if the input signal is "L" at this time. This has the problem that a change is detected and a changed data signal is output.
従つて第1図のような従来例回路にあつては、
入力信号の状態によつては電源投入の直後に実際
には入力信号の変化がないにもかかわらず変化デ
ータ信号を誤出力してしまうものであり、このた
め多数の端末器を1台の主操作盤で監視制御する
ようなシステムにおいてこれら端末器からの信号
を第1図の信号入力回路を介して主操作盤に入力
するように構成されており、端末器からの入力信
号に変化が生じたとき主操作盤に割り込みがかけ
られるようになつている場合、電源投入時に多数
の割り込みが多数発生し、その処理に長時間を要
し、主操作盤の機能を阻害する問題があつた。 Therefore, in the conventional example circuit as shown in Fig. 1,
Depending on the state of the input signal, a changing data signal may be output incorrectly immediately after the power is turned on, even though there is actually no change in the input signal. In a system that is monitored and controlled from an operation panel, signals from these terminals are input to the main operation panel via the signal input circuit shown in Figure 1, and changes occur in the input signals from the terminals. If the main operation panel is configured to receive interrupts, a large number of interrupts will occur when the power is turned on, and the processing of these interrupts will take a long time, impeding the functions of the main operation panel.
本発明は電源投入直後における誤つた変化検出
出力が生じないようにし、常に安定した変化検出
出力が得られるようにした信号入力回路を提供す
ることを目的とするものである。
SUMMARY OF THE INVENTION An object of the present invention is to provide a signal input circuit that can prevent erroneous change detection outputs from occurring immediately after power is turned on, and can always provide stable change detection outputs.
(実施例)
第3図は本発明の一実施例の回路図を示し、前
述の第1図従来例のものにおいて、Dフリツプフ
ロツプ1,2,7に対する電源投入リセツト信号
によるリセツトR入力を外すとともに、3ビツト
のカウンタ11及びRSフリツプフロツプ12よ
りなるリセツト回路13を設けたものであり、サ
ンプルクロツク信号をカウンタ11のCK端に入
力してそのQ3出力をRSフリツプフロツプ12の
リセツト入力端に入力し、電源投入リセツト信号
をカウンタ11のR端とRSフリツプフロツプ1
2をセツト入力端に入力し、このRSフリツプフ
ロツプ12のQ出力をSRラツチ10のリセツト
入力端に入力してある。
(Embodiment) FIG. 3 shows a circuit diagram of an embodiment of the present invention. In the conventional example shown in FIG. , a reset circuit 13 consisting of a 3-bit counter 11 and an RS flip-flop 12 is provided.The sample clock signal is input to the CK terminal of the counter 11, and its Q3 output is input to the reset input terminal of the RS flip-flop 12. , the power-on reset signal is connected to the R terminal of the counter 11 and the RS flip-flop 1.
2 is input to the set input terminal, and the Q output of this RS flip-flop 12 is input to the reset input terminal of the SR latch 10.
(動作)
第4図は第3図実施例のタイムチヤートを示
し、同図中aは電源投入リセツト信号、bはサン
プルクロツク信号、cは入力信号、dは第1のD
フリツプフロツプ1のQ出力、qは第2のDフリ
ツプフロツプ2のQ出力、fはノイズ除去回路6
の出力、gは変化検出回路9のDフリツプフロツ
プ7のQ出力、hは排他的オア回路8の出力、i
はカウンタ11の出力、jはリセツト回路13の
出力、kは変化データ信号である。かくてこの第
4図よりも明らかなように、電源投入時における
入力信号が“H”である場合においても、この入
力状態が取り込まれて変化点検出パルスが出力さ
れる第4図中の時刻t0のタイミングまでの時間
は、最大でもサンプルクロツク信号の3周期分で
ある。そこで第3図実施例においては、このサン
プルクロツク信号の3周期分に相当する時間だけ
出力用のSRラツチ10を強制的にリセツトして
おくようにし、これにより電源投入直後における
誤つた変化データ出力を生じないようにしたもの
である。即ちリセツト回路13において、電源投
入リセツト信号によりRSフリツプフロツプ12
をセツトするとともにカウンタ11をリセツト
し、この後このカウンタ11はサンプルクロツク
信号をカウントし、このカウンタ11がカウント
アツプしたとき、上記RSフリツプフロツプ12
をリセツトするものであり、このRSフリツプフ
ロツプ12がセツト状態にあるとき、そのQ出力
によりSRラツチ10を強制的にリセツトするよ
うにしてある。従つてサンプルクロツク信号の4
個目でリセツトは解除され、入力信号が変化した
ときにのみ変化データ信号が出力されることにな
る。(Operation) FIG. 4 shows a time chart of the embodiment of FIG. 3, in which a is a power-on reset signal, b is a sample clock signal, c is an input signal, and d is the first D
Q output of flip-flop 1, q is Q output of second D flip-flop 2, f is noise removal circuit 6
, g is the Q output of the D flip-flop 7 of the change detection circuit 9, h is the output of the exclusive OR circuit 8, i
is the output of the counter 11, j is the output of the reset circuit 13, and k is the change data signal. As is clear from FIG. 4, even if the input signal is "H" when the power is turned on, the time in FIG. 4 at which this input state is captured and the change point detection pulse is output is The time up to the timing t 0 is at most three periods of the sample clock signal. Therefore, in the embodiment shown in FIG. 3, the output SR latch 10 is forcibly reset for a period of time corresponding to three cycles of this sample clock signal. It is designed so that no output is generated. That is, in the reset circuit 13, the RS flip-flop 12 is activated by the power-on reset signal.
and resets the counter 11. After that, this counter 11 counts the sample clock signal, and when this counter 11 counts up, the above-mentioned RS flip-flop 12
When the RS flip-flop 12 is in the set state, the SR latch 10 is forcibly reset by its Q output. Therefore, the sample clock signal 4
The reset is canceled at the second time, and a changed data signal is output only when the input signal changes.
本発明は上述のように、サンプルクロツク信号
を適数個カウントするカウンタを有し電源投入時
から上記カウンタがカウントアツプするまでの間
SRラツチを強制的にリセツトするリセツト回路
を具備するものであるから、入力信号の状態にか
かわりなく電源投入の直後に誤つた変化検出を行
うようなことがなく、常に安定した変化検出を行
うことができる効果を有するものである。
As described above, the present invention has a counter that counts an appropriate number of sample clock signals, and the period from when the power is turned on until the counter counts up.
Since it is equipped with a reset circuit that forcibly resets the SR latch, there will be no erroneous change detection immediately after the power is turned on, regardless of the state of the input signal, and stable change detection will always be possible. This has the effect of making it possible.
第1図は従来例の回路図、第2図は同上のタイ
ムチヤート、第3図は本発明一実施例の回路図、
第4図は同上のタイムチヤートであり、1,2は
夫々Dフリツプフロツプ、6はノイズ除去回路、
7はDフリツプフロツプ、8は排他的オア回路、
9は変化検出回路、10はSRラツチ、11はカ
ウンタ、13はリセツト回路である。
FIG. 1 is a circuit diagram of a conventional example, FIG. 2 is a time chart of the same as above, and FIG. 3 is a circuit diagram of an embodiment of the present invention.
Figure 4 is the same time chart as above, 1 and 2 are D flip-flops, 6 is a noise removal circuit,
7 is a D flip-flop, 8 is an exclusive OR circuit,
9 is a change detection circuit, 10 is an SR latch, 11 is a counter, and 13 is a reset circuit.
Claims (1)
ノイズ除去回路と、別のDフリツプフロツプ及び
排他的オア回路よりなり上記ノイズ除去回路の出
力を入力する変化検出回路と、この変化検出回路
の出力をラツチし変化データ信号を出力するSR
ラツチとを有し、上記各Dフリツプフロツプのク
ロツク入力端にサンプルクロツク信号を入力する
ようにした信号入力回路において、上記サンプル
クロツク信号を適数個カウントするカウンタを有
し電源投入時から上記カウンタがカウントアツプ
するまでの間上記SRラツチを強制的にリセツト
するリセツト回路を具備して成ることを特徴とす
る信号入力回路。1. A noise removal circuit having one or more stages of D flip-flops, a change detection circuit consisting of another D flip-flop and an exclusive OR circuit, which receives the output of the noise removal circuit, and latches the output of this change detection circuit to detect changes. SR that outputs data signals
The signal input circuit has a latch and inputs a sample clock signal to the clock input terminal of each of the D flip-flops. A signal input circuit comprising a reset circuit for forcibly resetting the SR latch until the counter counts up.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58014117A JPS59140553A (en) | 1983-01-31 | 1983-01-31 | Signal input circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58014117A JPS59140553A (en) | 1983-01-31 | 1983-01-31 | Signal input circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59140553A JPS59140553A (en) | 1984-08-11 |
| JPH0145670B2 true JPH0145670B2 (en) | 1989-10-04 |
Family
ID=11852172
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58014117A Granted JPS59140553A (en) | 1983-01-31 | 1983-01-31 | Signal input circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59140553A (en) |
-
1983
- 1983-01-31 JP JP58014117A patent/JPS59140553A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59140553A (en) | 1984-08-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA1176716A (en) | Duty cycle monitor circuit | |
| JP3080341B2 (en) | Data match detection circuit | |
| JPH0145670B2 (en) | ||
| JP2682520B2 (en) | Edge detection circuit | |
| JPH04101535A (en) | Interface circuit | |
| JP2606458Y2 (en) | Signal level monitoring circuit | |
| JPS6243409Y2 (en) | ||
| JPH02181518A (en) | Rink counter circuit | |
| JPH0799805B2 (en) | Latch circuit with reset function | |
| JPH04135309A (en) | Monostable multivibrator circuit | |
| JP2602404Y2 (en) | Counter circuit | |
| JP3201445B2 (en) | Chattering prevention circuit | |
| JP2638337B2 (en) | Error counter circuit | |
| JPH0470208A (en) | Noise removal circuit | |
| JPH0668280A (en) | Reset circuit | |
| JPH0546105Y2 (en) | ||
| JPH0779317B2 (en) | Alarm detection circuit | |
| JP2564812B2 (en) | Counting circuit | |
| JPH01123518A (en) | Jitter detecting circuit | |
| JP2000224014A (en) | Edge-detecting circuit | |
| JPH02123813A (en) | Chattering removal circuit | |
| JPH03136516A (en) | Phase comparison circuit | |
| JPH0563738A (en) | Data loss detection circuit | |
| JPH03119598A (en) | Shift register driving circuit and microcomputer provided with the circuit | |
| JPH0685628A (en) | Clock loss detection circuit |