JPH0113655B2 - - Google Patents
Info
- Publication number
- JPH0113655B2 JPH0113655B2 JP54009996A JP999679A JPH0113655B2 JP H0113655 B2 JPH0113655 B2 JP H0113655B2 JP 54009996 A JP54009996 A JP 54009996A JP 999679 A JP999679 A JP 999679A JP H0113655 B2 JPH0113655 B2 JP H0113655B2
- Authority
- JP
- Japan
- Prior art keywords
- flip
- input
- 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
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K5/00—Manipulating of pulses not covered by one of the other main groups of this subclass
- H03K5/125—Discriminating pulses
- H03K5/1252—Suppression or limitation of noise or interference
- H03K5/1254—Suppression or limitation of noise or interference specially adapted for pulses generated by closure of switches, i.e. anti-bouncing devices
Landscapes
- Physics & Mathematics (AREA)
- Nonlinear Science (AREA)
- Manipulation Of Pulses (AREA)
- Electronic Switches (AREA)
- Dc Digital Transmission (AREA)
Description
本発明は接点スイツチを経由したスイツチ信号
から、接点スイツチのチヤタリングを除去するた
めの電子回路に関する。
接点スイツチからの信号にはチヤタリングが含
まれるので、これを各種装置に取込には信号から
このチヤタリング部分を除去する必要がる。この
ための従来例回路を第1図に示す。この回路は、
カウンタ11およびその出力を入力とするフリツ
プフロツプ12とからなり、チヤタリングを含む
入力信号INが到来すると、カウンタ11はクロ
ツクを計数して、一般に信号頭部にチヤタリング
が起る時間を経過させた後に、フリツプフロツプ
12を反転させるように構成されている。また入
力信号の後尾では入力信号に短い断があると、直
ちに出力を断とするように構成されている。
この回路によれば、入力信号の頭部または後尾
にチヤタリングがあるときには、信号から有効に
チヤタリングを除くことができるが、入力信号の
途中持続時間中にチヤタリングがあると、出力
OUTが途切れる欠点がある。
すなわち、第2図にその波形図を示すように、
入力信号INの頭部のチヤタリングCh1および後尾
のチヤタリングCh3は、出力OUTに現われない
が、途中のチヤタリングCh2については、出力
OUTの断となつて現われる。一般に接点スイツ
チが手動操作ボタンであるときなどに、途中のチ
ヤタリングCh2が発生することがあり、この場合
にはこの従来例回路では2回の信号であるように
誤認することになる。
本発明はこれを改良するもので、入力信号の途
中持続時間中にチヤタリングが発生する場合に
も、このチヤタリングを除去することのできる回
路を提供することを目的とする。
本発明は、2個のフリツプフロツプを備え、第
1のフリツプフロツプで入力信号の頭部および後
尾のチヤタリングを除去するとともに、第2のフ
リツプフロツプでは入力信号の停止後一定の時間
だけ出力を保持するように動作させ、入力信号持
続中に一定時間以下の断であつても、これが出力
に影響しないように構成されたことを特徴とす
る。
実施例図面により詳しく説明する。
第3図は本発明実施例回路図である。フリツプ
フロツプ21のデータ入力には入力信号INが接
続され、同クロツク入力にはクロツク信号CLが
接続されている。ゲート回路22の一方の入力に
は上記入力信号INが接続されている。このゲー
ト回路22の出力と、上記フリツプフロツプ21
の出力はゲート回路23の入力に導かれ、その出
力はフリツプフロツプ24のデータ入力に接続さ
れている。また、フリツプフロツプ24のクロツ
ク入力には上記クロツク信号CLが与えられ、フ
リツプフロツプ24の出力は、上記ゲート回路2
2の他方の入力と、ゲート回路25の一方の入力
に接続されている。このゲート回路25の他方の
入力には上記入力信号INが与えられ、その出力
は上記フリツプフロツプ21のリセツト入力に接
続されている。
この回路の動作を第4図に示す動作波形図を用
いて説明する。第4図INは接点スイツチを経由
したチヤタリングのある入力信号で、CLはクロ
ツク信号、Qはフリツプフロツプ21の出力、
OUTはこの回路の出力である。
チヤタリングのある入力信号INが与えられる
と、フリツプフロツプ21はチヤタリングが無く
なつてから最初のクロツク信号CLの立下りで反
転される。これにより次のクロツク信号CLの立
下りで、フリツプフロツプ24が反転され出力
OUTが立上る。ここで途中で入力信号INにチヤ
タリングCh2が発生すると、フリツプフロツプ2
1は直ちに反転しその出力Qは途切れ、次のクロ
ツク信号CLの立下りで再び反転する。しかしフ
リツプフロツプ24は、その出力OUTがゲート
回路22および23を介して帰還されているの
で、フリツプフロツプ21の出力Qが途切れて
も、次のクロツク信号CLの立下りまでは反転す
ることがない。従つて、チヤタリングCh2による
断の時間が、クロツク信号CLの1周期以下であ
るならば、出力OUTにこの影響が現われない。
入力信号の後尾で、チヤタリングCh3が発生
し、この発生時間が経過し、さらにクロツク信号
1周期分の時間が経過すると、フリツプフロツプ
24は復旧する。
クロツク信号CLの周期は、入力信号のチヤタ
リング発生の状況、その継続時間、および出力
OUTの使用される回路の応答状況等により適切
に定めることがよい。
ゲート回路22または23,25、およびフリ
ツプフロツプ21の真理値表を第1表〜第3表に
示す。なお、第3表においてクロツク入力CLの
「上」は立上りを、「下」は立下りをそれぞれ表わ
す。
以上述べように、本発明によれば入力信号に含
まれる頭部および後尾のチヤタリングのほか、途
中に発生するチヤタリングをも除去することので
きる優れた回路が得られる。本発明を実施するこ
とにより、一回の接点動作により確実に一回の出
力信号が得られ、誤動作が著しく減少する優れた
効果がある。
The present invention relates to an electronic circuit for removing chattering of a contact switch from a switch signal passed through the contact switch. Since the signal from the contact switch includes chattering, it is necessary to remove this chattering portion from the signal in order to incorporate it into various devices. A conventional circuit for this purpose is shown in FIG. This circuit is
It consists of a counter 11 and a flip-flop 12 whose output is input. When an input signal IN containing chattering arrives, the counter 11 counts the clocks, and after the time period during which chattering generally occurs at the head of the signal has elapsed, The flip-flop 12 is configured to be inverted. Furthermore, if there is a short break in the input signal at the tail end of the input signal, the output is immediately cut off. According to this circuit, when there is chattering at the beginning or end of the input signal, it can be effectively removed from the signal, but if there is chattering during the middle duration of the input signal, the output
There is a drawback that OUT is interrupted. That is, as shown in the waveform diagram in Fig. 2,
The head chatter Ch 1 and tail chatter Ch 3 of the input signal IN do not appear on the output OUT, but the mid-chattering Ch 2 does not appear on the output OUT.
It appears as a break in OUT. Generally, when the contact switch is a manually operated button, intermediate chattering Ch 2 may occur, and in this case, this conventional circuit will misidentify it as two signals. The present invention improves on this, and aims to provide a circuit that can eliminate chattering even when it occurs during the intermediate duration of an input signal. The present invention has two flip-flops, the first flip-flop removes the leading and trailing chatter of the input signal, and the second flip-flop holds the output for a certain period of time after the input signal stops. The device is characterized in that it is configured so that even if the input signal is interrupted for a certain period of time or less while the input signal is being operated, this does not affect the output. This will be explained in detail with reference to the drawings. FIG. 3 is a circuit diagram of an embodiment of the present invention. An input signal IN is connected to the data input of the flip-flop 21, and a clock signal CL is connected to the clock input thereof. The input signal IN is connected to one input of the gate circuit 22. The output of this gate circuit 22 and the flip-flop 21
The output of gate circuit 23 is led to the input of gate circuit 23, the output of which is connected to the data input of flip-flop 24. Further, the clock signal CL is applied to the clock input of the flip-flop 24, and the output of the flip-flop 24 is provided to the clock input of the flip-flop 24.
2 and one input of the gate circuit 25. The input signal IN is applied to the other input of this gate circuit 25, and its output is connected to the reset input of the flip-flop 21. The operation of this circuit will be explained using the operational waveform diagram shown in FIG. In Figure 4, IN is an input signal with chatter via a contact switch, CL is a clock signal, Q is the output of flip-flop 21,
OUT is the output of this circuit. When a chattering input signal IN is applied, the flip-flop 21 is inverted at the first fall of the clock signal CL after the chattering ceases. As a result, at the next fall of the clock signal CL, the flip-flop 24 is inverted and output.
OUT rises. If chattering Ch 2 occurs in the input signal IN on the way, flip-flop 2
1 is immediately inverted, its output Q is interrupted, and it is inverted again at the next fall of the clock signal CL. However, since the output OUT of the flip-flop 24 is fed back through the gate circuits 22 and 23, even if the output Q of the flip-flop 21 is interrupted, it will not be inverted until the next fall of the clock signal CL. Therefore, if the disconnection time due to chattering Ch 2 is less than one period of the clock signal CL, this effect will not appear on the output OUT. Chattering Ch 3 occurs at the tail end of the input signal, and when the time for which this occurs has elapsed and the time corresponding to one cycle of the clock signal has elapsed, the flip-flop 24 is restored. The period of the clock signal CL depends on the situation where chattering occurs in the input signal, its duration, and the output
It is best to determine it appropriately depending on the response situation of the circuit where OUT is used. Truth tables for gate circuit 22 or 23, 25 and flip-flop 21 are shown in Tables 1 to 3. In Table 3, the "top" of the clock input CL represents a rising edge, and the "bottom" thereof represents a falling edge. As described above, according to the present invention, an excellent circuit can be obtained that can eliminate not only the head and tail chattering included in the input signal but also the chattering that occurs in the middle of the input signal. By implementing the present invention, one output signal can be reliably obtained by one contact operation, and there is an excellent effect that malfunctions are significantly reduced.
【表】【table】
【表】【table】
【表】【table】
【表】【table】
第1図は従来例の回路図。第2図は従来例回路
の動作波形図。第3図は本発明実施例回路図。第
4図は本発明実施例回路の動作波形図。
FIG. 1 is a circuit diagram of a conventional example. FIG. 2 is an operating waveform diagram of a conventional circuit. FIG. 3 is a circuit diagram of an embodiment of the present invention. FIG. 4 is an operational waveform diagram of the circuit according to the embodiment of the present invention.
Claims (1)
るクロツク信号をクロツク入力とする第1のフリ
ツプフロツプ21と、上記入力信号を1個の入力
とするANDゲート回路22と、このANDゲート
回路の出力および上記フリツプフロツプの出力を
入力とする第1のORゲート回路23と、この
ORゲート回路の出力をデータ入力とし上記クロ
ツク信号をクロツク入力としその出力を上記
ANDゲート回路22の他の1個の入力とする第
2のフリツプフロツプ24と、この第2のフリツ
プフロツプの出力および上記入力信号を入力とし
その出力を上記第1のフリツプフロツプのリセツ
ト入力に与える第2のORゲート回路25とを備
え、該第2のフリツプフロツプの出力をチヤタリ
ングの除去された信号として用いることを特徴と
するチヤタリング除去回路。1. A first flip-flop 21 which takes an input signal as a data input and a clock signal given from the outside as a clock input, an AND gate circuit 22 which takes the above input signal as one input, and an output of this AND gate circuit and the above flip-flop. A first OR gate circuit 23 whose input is the output of
The output of the OR gate circuit is used as data input, the above clock signal is used as clock input, and the output is used as above.
A second flip-flop 24 serves as the other input of the AND gate circuit 22, and a second flip-flop receives the output of the second flip-flop and the above input signal and supplies its output to the reset input of the first flip-flop. 1. A chattering removal circuit comprising an OR gate circuit 25, and using the output of the second flip-flop as a signal from which chattering has been removed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP999679A JPS55102927A (en) | 1979-01-31 | 1979-01-31 | Chattering removal circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP999679A JPS55102927A (en) | 1979-01-31 | 1979-01-31 | Chattering removal circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS55102927A JPS55102927A (en) | 1980-08-06 |
| JPH0113655B2 true JPH0113655B2 (en) | 1989-03-07 |
Family
ID=11735455
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP999679A Granted JPS55102927A (en) | 1979-01-31 | 1979-01-31 | Chattering removal circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS55102927A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0763146B2 (en) * | 1983-07-12 | 1995-07-05 | セイコーエプソン株式会社 | Standby circuit |
| IT1243301B (en) * | 1990-05-25 | 1994-05-26 | Sgs Thomson Microelectronics | FILTERING CIRCUIT OF A LOGIC SIGNAL AFFECTED BY SWITCHING SPIKES |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS4928206A (en) * | 1972-07-08 | 1974-03-13 | ||
| JPS5169974A (en) * | 1974-12-16 | 1976-06-17 | Oki Electric Ind Co Ltd | KIKANKEIRITO KUSEIGYOKAIRO |
| JPS5733653Y2 (en) * | 1976-08-20 | 1982-07-24 |
-
1979
- 1979-01-31 JP JP999679A patent/JPS55102927A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS55102927A (en) | 1980-08-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4198579A (en) | Input circuit for portable electronic devices | |
| JPH0113655B2 (en) | ||
| JPS57108923A (en) | Data input circuit | |
| JPH0117867Y2 (en) | ||
| JPH0713655A (en) | Semiconductor integrated circuit | |
| SU1282125A1 (en) | Priority interruption device | |
| JPH02205940A (en) | Watchdog timer device | |
| JPS63227213A (en) | Pulse generation circuit | |
| JPH0633617Y2 (en) | Switching prevention circuit for switching | |
| KR920003883B1 (en) | Manual shock / reset drive circuit | |
| JPS60254214A (en) | Semiconductor integrated circuit | |
| JPH0465407B2 (en) | ||
| JPS59147249U (en) | Microprocessor runaway monitoring circuit | |
| JPH0221804Y2 (en) | ||
| SU1003347A1 (en) | Sensory switching device | |
| JPS5827533B2 (en) | signal reader | |
| SU1142822A1 (en) | Timer | |
| KR820000014B1 (en) | Chattering immune circuit | |
| JPS62243018A (en) | Reset control system | |
| JPS5871516A (en) | Chattering removing circuit for switch circuit | |
| JPS60137120A (en) | Digital signal discriminating circuit | |
| JPH0437307A (en) | Noise removal device | |
| JPS63174117A (en) | Clocking circuit for microprocessor | |
| JPS6026673U (en) | Disc playback device pause time limit device | |
| JPS5922534U (en) | Chattering prevention circuit |