JPH03104312A - Chattering preventing circuit - Google Patents

Chattering preventing circuit

Info

Publication number
JPH03104312A
JPH03104312A JP1240704A JP24070489A JPH03104312A JP H03104312 A JPH03104312 A JP H03104312A JP 1240704 A JP1240704 A JP 1240704A JP 24070489 A JP24070489 A JP 24070489A JP H03104312 A JPH03104312 A JP H03104312A
Authority
JP
Japan
Prior art keywords
output
circuit
clock
register
decode
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
JP1240704A
Other languages
Japanese (ja)
Inventor
Yutaka Shinozaki
豊 篠崎
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1240704A priority Critical patent/JPH03104312A/en
Publication of JPH03104312A publication Critical patent/JPH03104312A/en
Pending legal-status Critical Current

Links

Landscapes

  • Keying Circuit Devices (AREA)
  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE:To reduce the scale of the hardware by allowing a logic circuit decoding the output of a digital switch to detect the presence of the relation between decode input and output, and latching specifically a decode output in response to its detection output. CONSTITUTION:An output comprising plural bits of a digital switch is decoded by a logic circuit 2 and the presence of a relation between decode output and input is detected by the circuit 2. Moreover, an output of the circuit 2 is latched by a 1st latch circuit 3 synchronously with the clock and a part corresponding to the relevantly detected decode input output among outputs of the circuit 3 and the clock are inputted to a gate circuit 5, from which the clock is outputted only when the relation exists. Then the part corresponding to the decode output among the outputs of the circuit 3 is latched by a 2nd latch circuit 4 synchronously with the circuit 5 to reduce one stage of the register.

Description

【発明の詳細な説明】 〔概要〕 種々の装置の動作モードの設定等に使用するディジタル
スイッチのチャタリングを防止するチャタリング防止回
路に関し、 ハードウエアの規模を縮小することを目的とし、複数の
ビットを有するディジタルスイッチの出力をデコードす
ると共に、該デコード出力とデコード前の入力との対応
の有無を検出する機能を有する論理回路と、前記論理回
路の出力をクロックに同期してラッチする第1のラッチ
回路と、前記第1のラッチ回路の出力のうち、前記デコ
ード入出力の対応の有無の検出に対応する部分と前記ク
ロックとを入力して、該対応が有りのときにのみ、該ク
ロックを出力するゲート回路と、前記第1のラッチ回路
の出力のうち、前記デコード出力に対応する部分を、前
記ゲート回路の出力に同期してラッチする第2のラッチ
回路とを有してなるように構或する。
[Detailed Description of the Invention] [Summary] This invention relates to a chattering prevention circuit that prevents chattering in digital switches used to set the operating modes of various devices, and aims to reduce the scale of hardware by using multiple bits. a logic circuit having a function of decoding the output of the digital switch having the switch and detecting whether or not the decoded output corresponds to the input before decoding; and a first latch that latches the output of the logic circuit in synchronization with a clock. A circuit, a portion of the output of the first latch circuit that corresponds to detecting whether or not there is correspondence between the decode input and output, and the clock are inputted, and the clock is output only when there is correspondence. and a second latch circuit that latches a portion of the output of the first latch circuit that corresponds to the decoded output in synchronization with the output of the gate circuit. There is.

〔産業上の利用分野〕[Industrial application field]

本発明は、種々の装置の動作モードの設定等に使用する
ディジタルスイッチのチャタリングを防止するチャタリ
ング防止回路に関する。
The present invention relates to a chattering prevention circuit that prevents chattering of digital switches used for setting operation modes of various devices.

種々の装置の動作モードの設定に、ディジタルスイッチ
を使用することが多い。このようなディジタルスイッチ
の設定は、一般に、装置内部のディジタル回路により読
み取られるが、誤入力を避けるため、スイッチのチャタ
リングを防止する必要がある。
Digital switches are often used to set the operating modes of various devices. The setting of such a digital switch is generally read by a digital circuit inside the device, but it is necessary to prevent the switch from chattering in order to avoid erroneous input.

〔従来の技術および発明が解決しようとする課題〕第4
図は、従来のチャタリング防止回路の構威の1例を示す
図である。
[Prior art and problems to be solved by the invention] No. 4
FIG. 1 is a diagram showing an example of the structure of a conventional chattering prevention circuit.

第4図において、1はディジタルスイッチ、31,32
,および33はレジスタ、34はOR回路、35は照合
回路、そして、36はデコード回路である。
In Fig. 4, 1 is a digital switch, 31, 32
, and 33 are registers, 34 is an OR circuit, 35 is a collation circuit, and 36 is a decoding circuit.

ディジタルスイッチ1の複数ビットの出力は、クロック
の立ち上がりのタイごングでレジスタ31にラッチされ
、次の立ち上がりのタイミングでレジスタ32にラッチ
される。そして、富亥レジスタ32の出力は、レジスタ
33の入力端子に印加される。
The output of a plurality of bits of the digital switch 1 is latched in the register 31 at the timing of the rising edge of the clock, and latched in the register 32 at the timing of the next rising edge. Then, the output of the wealth register 32 is applied to the input terminal of the register 33.

照合回路35には、上記のレジスタ31の出力とレジス
タ32の出力とが入力され、両者が一致するかどうかが
判定される。もし、一致するならば、該照合回路35よ
りLレベルのイネーブル信号ENが出力される。該イネ
ープル信号ENは、一方の入力として前記クロックを印
加するOR回路回路34の他方の入力として印加される
The output of the register 31 and the output of the register 32 described above are input to the collation circuit 35, and it is determined whether the two match. If they match, the matching circuit 35 outputs an enable signal EN at L level. The enable signal EN is applied as the other input of the OR circuit 34, which applies the clock as one input.

該OR回路回路34の出力は、レジスタ33の入力端子
に印加された前記レジスタ32の出力が該レジスタ33
にラッチされるタイミングを与える。すなわち、上記の
照合回路35が出力するイネーブル信号ENがLとなら
ない限り、ディジタルスイッチ1の出力はレジスタ33
にはラッチされない。
The output of the OR circuit 34 is the output of the register 32 applied to the input terminal of the register 33.
gives the timing to be latched to. That is, unless the enable signal EN outputted from the collation circuit 35 becomes L, the output of the digital switch 1 will be output from the register 33.
is not latched.

ディジタルスイッチ1の出力が安定して、上記の照合回
路35の出力がLとなると、該ディジタルスイッチ1の
出力はレジスタ33にラッチされ、該レジスタ33の出
力は、さらに、デコード回路36にてデコードされ、デ
ィジタルスイッチlに設定された動作モードが解読され
て、装置内部で対応する制御信号となる。
When the output of the digital switch 1 becomes stable and the output of the matching circuit 35 becomes L, the output of the digital switch 1 is latched in the register 33, and the output of the register 33 is further decoded by the decoding circuit 36. The operation mode set in the digital switch l is decoded and becomes a corresponding control signal inside the device.

しかしながら、第4図の構戒はハードウエアの規模が大
きいという問題がある。
However, the structure shown in FIG. 4 has a problem in that the scale of the hardware is large.

本発明は、上記の問題点に鑑み、なされたもので、ハー
ドウエアの規模を縮小したチャタリング防止回路を提供
することを目的とするものである.〔課題を解決するた
めの手段〕 第1図は本発明の基本構戒図である. 第1図において、lはディジタルスイッチ、2は論理回
路、3および4は、それぞれ第1および第2のラッチ回
路、そして、5はゲート回路である。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a chattering prevention circuit with reduced hardware scale. [Means for solving the problem] Figure 1 shows the basic structure of the present invention. In FIG. 1, l is a digital switch, 2 is a logic circuit, 3 and 4 are first and second latch circuits, respectively, and 5 is a gate circuit.

論理回路2は、複数のビットを有するディジタルスイッ
チ1の出力をデコードすると共に、該デコード出力とデ
コード前の入力との対応の有無を検出する機能を有する
The logic circuit 2 has a function of decoding the output of the digital switch 1 having a plurality of bits and detecting whether or not the decoded output corresponds to the input before decoding.

第1のラッチ回路3は、前記論理回路2の出力をクロッ
クに同期してラッチする。
The first latch circuit 3 latches the output of the logic circuit 2 in synchronization with a clock.

ゲート回路5は、前記第1のラッチ回路3の出力のうち
、前記デコード入出力の対応の有無の検出に対応する部
分と前記クロックとを入力して、該対応が有りのときに
のみ、該クロックを出力する。
The gate circuit 5 inputs the clock and a portion of the output of the first latch circuit 3 that corresponds to the detection of the presence or absence of correspondence between the decode input and output, and detects the correspondence only when the correspondence exists. Output clock.

第2のラッチ回路4は、前記第1のラッチ回路3の出力
のうち、前記デコード出力に対応する部分を、前記ゲー
ト回路5の出力に同期してラッチするものである。
The second latch circuit 4 latches a portion of the output of the first latch circuit 3 that corresponds to the decoded output in synchronization with the output of the gate circuit 5.

〔作用〕[Effect]

第1図の構戒の動作は、前述の第4図の構戒の動作とほ
ぼ同様であるが、第1図の構威においては、第4図のデ
コード回路36の機能と照合回路35の機能とが1つの
論理回路2にまとめられ、さらにレジスタも1段少なく
なっている。
The operation of the structure shown in FIG. 1 is almost the same as that of the structure shown in FIG. 4 described above, but in the structure shown in FIG. functions are combined into one logic circuit 2, and the number of registers is also reduced by one stage.

したがって、ハードウェア規模が縮小される。Therefore, the hardware scale is reduced.

〔実施例〕〔Example〕

第2図は、本発明の実施例の構或を示すものである。 FIG. 2 shows the structure of an embodiment of the present invention.

第2図において、21は4ビットのディジタルスイッチ
、22はROM、23および24はレジスタ、そして、
25はOR回路である。
In FIG. 2, 21 is a 4-bit digital switch, 22 is a ROM, 23 and 24 are registers, and
25 is an OR circuit.

ROM22は第1図の論理回路2を実現し、レジスタ2
3および24は、それぞれ、第1図の第1および第2の
ラッチ回路3および4を実現し、OR回路25は第1図
のゲート回路5を実現する.ディジタルスイッチ2lの
4ビットの出力はROM22の第O〜3ビットに印加さ
れ、ROM22は該4ビットの内容をデコードして、こ
の例では第1〜6の6ビット出力(デコード)信号とし
て出力する。該6ビットのデコード信号は、クロックに
同期してレジスタ23にラッチされ、該レジスタ23の
出力のうち、咳6ビットに対応する部分は、再び、RO
M22の第4〜9ビットの入力として印加される。
The ROM 22 implements the logic circuit 2 shown in FIG.
3 and 24 respectively realize the first and second latch circuits 3 and 4 in FIG. 1, and the OR circuit 25 realizes the gate circuit 5 in FIG. The 4-bit output of the digital switch 2l is applied to the 0th to 3rd bits of the ROM 22, and the ROM 22 decodes the content of the 4 bits and outputs it as a 6-bit output (decoded) signal, which is the 1st to 6th bits in this example. . The 6-bit decode signal is latched in the register 23 in synchronization with the clock, and the portion of the output of the register 23 corresponding to the 6-bit cough is again output to the RO.
It is applied as input to the 4th to 9th bits of M22.

ROM22は、上記のデコード機能と共に、照合回路と
しての機能をも有し、その第1〜6ビットの出力と第4
〜9ビットの人力とが一致するかどうかを判定する。も
し、一致するならば、出力の第8ビットをLレベルとし
、該第8ビットは、レジスタ23にラッチされた後、イ
ネーブル信号として、OR回路25の一方の入力として
印加される。
In addition to the decoding function described above, the ROM 22 also has a function as a verification circuit, and outputs the first to sixth bits and the fourth bit.
~ Determine whether the 9 bits of human power match. If they match, the eighth bit of the output is set to L level, and after being latched in the register 23, it is applied as an enable signal to one input of the OR circuit 25.

OR回路25の他方の入力としては、クロックが印加さ
れ、該OR回路25の出力は、レジスタ24のエッジト
リガ入力端子に印加されている。
A clock is applied to the other input of the OR circuit 25, and the output of the OR circuit 25 is applied to the edge trigger input terminal of the register 24.

したがって、レジスタ24は、上記のイネープル信号が
Lレベルのときにのみ、該エッジトリガ入力端子にクロ
ックを受け、該クロックのタイミングで入力端子に印加
されるデータをラッチすることができる。
Therefore, the register 24 can receive a clock at the edge trigger input terminal only when the enable signal is at L level, and can latch data applied to the input terminal at the timing of the clock.

こうして、ディジタルスイッチ1の出力が安定して、上
記のROM22の出力の第8ビットがLとなるときにの
み、該ディジタルスイッチ1の出力はレジスタ24にラ
ッチされ出力として現れる。
In this way, the output of the digital switch 1 is latched in the register 24 and appears as an output only when the output of the digital switch 1 becomes stable and the eighth bit of the output of the ROM 22 becomes L.

該レジスタ33の出力は、先に、ROM22においてデ
コードされたデコード信号であるので、ディジタルスイ
ッチ1に設定された動作モードが解読されて、装置内部
で対応する制御信号となる。
Since the output of the register 33 is a decoded signal that was previously decoded in the ROM 22, the operating mode set in the digital switch 1 is decoded and becomes a corresponding control signal within the device.

第3図は、第2図の構威のタイミングのl例を示すもの
である。
FIG. 3 shows an example of the timing of the configuration shown in FIG.

第3図には、ディジタルスイッチ21の出力がAからC
に変化する途中で、゜“B”で示されるチャタリングを
生じている場合の動作のタイミングが示されている。
In FIG. 3, the output of the digital switch 21 is changed from A to C.
The timing of the operation is shown when chattering indicated by ゜“B” occurs during the change to .

ROM22の前記イネーブル信号に対応する出力ENは
、ROM22の前記デコード出力と、レジスタ23の対
応する出力とが一致するときのみLであるので、レジス
タ23のイネーブル信号ENに対応する出力は、上記の
一致が得られない区間が終了した後、クロックの次の立
ち上がりでLとなる。そして、クロックのさらに次の立
ち上がりのタイミングで、このとき初めて上記の変化し
たスイッチ出力Cに対応するデコード出力C′は、レジ
スタ24にラッチされる(該ラッチのタイξングまでは
レジスタ24の出力は、上記の変化前のスイッチ出力A
に対応するデコード出力A′のままである). 〔発明の効果〕 本発明のチャタリング防止回路によれば、ハードウエア
の規模を縮小することができる。
Since the output EN of the ROM 22 corresponding to the enable signal is L only when the decoded output of the ROM 22 and the corresponding output of the register 23 match, the output corresponding to the enable signal EN of the register 23 is as described above. After the period in which no match is obtained ends, it becomes L at the next rising edge of the clock. Then, at the timing of the next rising edge of the clock, the decode output C' corresponding to the changed switch output C is latched in the register 24 (until the timing of the latch is reached, the output of the register 24 is is the switch output A before the above change
remains the decoded output A' corresponding to ). [Effects of the Invention] According to the chattering prevention circuit of the present invention, the scale of hardware can be reduced.

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

第1図は本発明の基本構或図、 第2図は本発明の実施例の構戒図、 第3図は第2図の構戒のタイξング図、そして、第4図
は従来のチャタリング防止回路の構或例を示す図である
。 〔符号の説明〕
Figure 1 is a basic configuration diagram of the present invention, Figure 2 is a configuration diagram of an embodiment of the present invention, Figure 3 is a timing diagram of the configuration shown in Figure 2, and Figure 4 is a diagram of the conventional configuration. FIG. 3 is a diagram showing an example of the structure of a chattering prevention circuit. [Explanation of symbols]

Claims (1)

【特許請求の範囲】 1、複数のビットを有するディジタルスイッチ(1)の
出力をデコードすると共に、該デコード出力とデコード
前の入力との対応の有無を検出する機能を有する論理回
路(2)と、 前記論理回路(2)の出力をクロックに同期してラッチ
する第1のラッチ回路(3)と、前記第1のラッチ回路
(3)の出力のうち、前記デコード入出力の対応の有無
の検出に対応する部分と前記クロックとを入力して、該
対応が有りのときにのみ、該クロックを出力するゲート
回路(5)と、 前記第1のラッチ回路(3)の出力のうち、前記デコー
ド出力に対応する部分を、前記ゲート回路(5)の出力
に同期してラッチする第2のラッチ回路(4)とを有し
てなることを特徴とするチャタリング防止回路。
[Claims] 1. A logic circuit (2) having a function of decoding the output of a digital switch (1) having a plurality of bits and detecting whether or not the decoded output corresponds to the input before decoding. , a first latch circuit (3) that latches the output of the logic circuit (2) in synchronization with a clock, and whether or not there is correspondence between the decode input and output of the output of the first latch circuit (3). a gate circuit (5) that inputs the part corresponding to detection and the clock and outputs the clock only when there is a correspondence; A chattering prevention circuit comprising a second latch circuit (4) that latches a portion corresponding to the decoded output in synchronization with the output of the gate circuit (5).
JP1240704A 1989-09-19 1989-09-19 Chattering preventing circuit Pending JPH03104312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1240704A JPH03104312A (en) 1989-09-19 1989-09-19 Chattering preventing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1240704A JPH03104312A (en) 1989-09-19 1989-09-19 Chattering preventing circuit

Publications (1)

Publication Number Publication Date
JPH03104312A true JPH03104312A (en) 1991-05-01

Family

ID=17063465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1240704A Pending JPH03104312A (en) 1989-09-19 1989-09-19 Chattering preventing circuit

Country Status (1)

Country Link
JP (1) JPH03104312A (en)

Similar Documents

Publication Publication Date Title
US8324938B2 (en) Self-timed trigger circuit with single-rail data input
JPS617729A (en) Device for correcting error burst in compressed circulating block code
GB1426671A (en) Data rpocessing circuitry
JPH03104312A (en) Chattering preventing circuit
US4929944A (en) Key input apparatus
KR860000596A (en) Slave interface circuit
JPH04101535A (en) Interface circuit
KR100295647B1 (en) Memory data protection circuit
US6288956B1 (en) Semiconductor device having test function
SU1367164A1 (en) Recurrent sequence decoder
KR100186337B1 (en) Counter reed apparatus
SU1695514A1 (en) Decoder
SU943693A1 (en) Data input device
JPH0490196A (en) Clock pulse detecting circuit
KR970050868A (en) Parallel CRC decoder
JP2871168B2 (en) Error correction code coding circuit
JPS5533356A (en) Error detection circuit
JPH04316113A (en) Clock switching circuit
JPH02118734A (en) Cpu data detection circuit
KR970072833A (en) Line decoder for digital communication
JPS54159140A (en) Error correction circuit
JPH0319431A (en) Demodulator
JPH04256220A (en) Code error detection circuit
JPS6367055A (en) Code rule violation detection circuit
JPH01126572A (en) Test signal generation circuit for lsi