JPH0590902A - Digital Filter - Google Patents
Digital FilterInfo
- Publication number
- JPH0590902A JPH0590902A JP3251235A JP25123591A JPH0590902A JP H0590902 A JPH0590902 A JP H0590902A JP 3251235 A JP3251235 A JP 3251235A JP 25123591 A JP25123591 A JP 25123591A JP H0590902 A JPH0590902 A JP H0590902A
- Authority
- JP
- Japan
- Prior art keywords
- output
- state
- parallel
- shift register
- shift
- 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
Links
Landscapes
- Manipulation Of Pulses (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、入力信号中に混入され
ているノイズを除去したり、あるいはスイッチ操作時に
発生するチャッタリングを防止するのに好適とされたデ
ィジタルフィルタに関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital filter suitable for removing noise mixed in an input signal or preventing chattering which occurs when a switch is operated.
【0002】[0002]
【従来の技術】これまでのノイズ除去用のフィルタの構
成に関しては、「実用電子回路ハンドブック4」(昭和
57年11月1日、CQ出版株式会社発行、第25頁)
に記載されているように、シュミット型IC、コンデン
サおよび抵抗の組合せによるアナログ型のものが専ら使
用されているのが実情である。2. Description of the Related Art As for the structure of a filter for noise removal up to now, "Practical Electronic Circuit Handbook 4" (November 1, 1982, CQ Publishing Co., Ltd., page 25).
As described in the above, in reality, the Schmitt type IC, the analog type by the combination of the capacitor and the resistor are used exclusively.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、これま
でのアナログ型のフィルタ構成では、入力側の信号レベ
ルのレベル変動によって誤動作する虞があるばかりか、
出力側のラインドライブ能力の点について考慮されてお
らず、トーテンポール型出力のドライバを使用する上で
問題があったものである。However, in the conventional analog type filter configuration, not only there is a possibility of malfunction due to level fluctuation of the signal level on the input side,
The line drive capability on the output side was not taken into consideration, and there was a problem in using a totem pole type output driver.
【0004】本発明の目的は、入力側の信号レベルのレ
ベル変動によって誤動作する虞がなく、しかも出力側で
のラインドライブ能力について考慮する必要がないディ
ジタルフィルタを供するにある。An object of the present invention is to provide a digital filter which does not have a possibility of malfunction due to the level fluctuation of the signal level on the input side and which does not need to consider the line drive capability on the output side.
【0005】[0005]
【課題を解決するための手段】上記目的は、入力信号が
シフトクロックによってシフトインされるnビットシフ
ト容量のシフトレジスタと、そのシフトレジスタにおけ
るパラレルQ出力ビット、あるいはパラレル反転Q出力
ビットが全て“1”状態および“0”状態にあることを
検出するゲート回路と、このゲート回路からの検出出力
によってセット状態、リセット状態が制御されるRSフ
リップフロップとから構成することで達成される。SUMMARY OF THE INVENTION The above object is to provide an n-bit shift capacity shift register in which an input signal is shifted in by a shift clock and a parallel Q output bit or a parallel inverted Q output bit in the shift register. This can be achieved by including a gate circuit that detects the "1" state and the "0" state, and an RS flip-flop whose set state and reset state are controlled by the detection output from this gate circuit.
【0006】[0006]
【作用】入力信号はシフトクロックによりそのクロック
周期でサンプリングされた上、サンプリングされたデー
タ状態はそのクロック周期で順次シフトレジスタにシフ
トイン記憶されるが、その際、シフトレジスタからのパ
ラレルQ出力、あるいはパラレル反転Q出力を監視する
ことによって、シフトレジスタへの入力信号をディジタ
ル的にフィルタリングし得るものである。即ち、そのシ
フトレジスタにおけるパラレルQ出力ビットが全て
“1”状態、“0”状態にある場合には、入力信号はそ
れぞれ“1”状態、“0”状態にあると判定し得るもの
である。パラレルQ出力ビットの相補出力であるパラレ
ル反転Q出力ビットを同様に監視することによっても、
シフトレジスタへの入力信号の状態を判定し得るが、こ
れら判定結果をしてRSフリップフロップをセット・リ
セット制御する場合は、入力側の信号レベルのレベル変
動によって誤動作する虞がなく、しかも出力側でのライ
ンドライブ能力について考慮する必要がないディジタル
フィルタが容易に得られるものである。The input signal is sampled at the clock cycle by the shift clock, and the sampled data state is sequentially shifted in and stored in the shift register at the clock cycle. At that time, the parallel Q output from the shift register, Alternatively, the input signal to the shift register can be digitally filtered by monitoring the parallel inverted Q output. That is, when all the parallel Q output bits in the shift register are in the "1" state and the "0" state, the input signal can be determined to be in the "1" state and the "0" state, respectively. Similarly, by monitoring the parallel inverted Q output bit which is the complementary output of the parallel Q output bit,
It is possible to judge the state of the input signal to the shift register. However, when the RS flip-flop is set / reset controlled based on these judgment results, there is no risk of malfunction due to the level fluctuation of the signal level at the input side, and at the output side. This makes it easy to obtain a digital filter that does not need to consider the line drive capability in.
【0007】[0007]
【実施例】以下、本発明を図1により説明する。図1は
その本発明によるディジタルフィルタの一例での構成を
示したものである。これによる場合、nビットシフト容
量のシフトレジスタ1には入力信号(ディジタル的で
も、アナログ的なものでも可)DATAおよびシフトク
ロックCLKが入力されているが、これにより入力信号
DATAはシフトクロックCLKによりそのシフトクロ
ックCLK周期でサンプリングされた上、サンプリング
されたデータ状態はそのシフトクロックCLK周期で順
次シフトレジスタ1にシフトイン記憶されるようになっ
ている。シフトイン記憶された入力信号の状態はシフト
レジスタ1からQ出力および反転Q出力としてパラレル
出力されているが、これらパラレル出力を監視すること
によっては、シフトレジスタ1への入力信号DATAの
入力状態を確実に判定し得るものである。本例ではシフ
トレジスタ1からは反転Q出力も併せて得られているこ
とから、パラレル出力監視用ゲート回路として最も一般
的なアンドゲートが使用し得るものとなっている。アン
ドゲート2ではパラレルQ出力が全て“1”状態にある
ことが検出されている一方では、アンドゲート3ではパ
ラレル反転Q出力が全て“1”状態にあることが検出さ
れ得るものとなっている。しかして、アンドゲート2か
らの検出出力によってRSフリップフロップ4をセット
状態におく一方では、アンドゲート3からの検出出力に
よってRSフリップフロップ4をリセット状態におくよ
うにすれば、RSフリップフロップ4のQ出力からはデ
ィジタル的にフィルタリング処理された出力OUTが得
られるものである。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to FIG. FIG. 1 shows the configuration of an example of the digital filter according to the present invention. In this case, the input signal (whether digital or analog) DATA and the shift clock CLK are input to the shift register 1 having the n-bit shift capacity. As a result, the input signal DATA is changed by the shift clock CLK. After being sampled in the shift clock CLK cycle, the sampled data state is sequentially shifted in and stored in the shift register 1 in the shift clock CLK cycle. The state of the input signal stored in shift-in is output in parallel from the shift register 1 as a Q output and an inverted Q output. By monitoring these parallel outputs, the input state of the input signal DATA to the shift register 1 can be checked. It can be surely determined. In this example, since the inverted Q output is also obtained from the shift register 1, the most common AND gate can be used as the parallel output monitoring gate circuit. While the AND gate 2 detects that all the parallel Q outputs are in the "1" state, the AND gate 3 can detect that all the parallel inverted Q outputs are in the "1" state. .. Therefore, if the RS flip-flop 4 is set in the set state by the detection output from the AND gate 2, and the RS flip-flop 4 is set in the reset state by the detection output from the AND gate 3, A digitally filtered output OUT is obtained from the Q output.
【0008】因みに、ここで、入力信号DATAに対す
る遮断周波数fc について言及すれば、遮断周波数fc
はシフトクロックCLKの周波数fとシフトレジスタ1
のnビットシフト容量から以下の式より求められるもの
となっている。Incidentally, referring to the cutoff frequency fc for the input signal DATA, the cutoff frequency fc will be described below.
Is the frequency f of the shift clock CLK and the shift register 1
Is calculated from the n-bit shift capacity of
【0009】[0009]
【数1】 [Equation 1]
【0010】以上、基本的な構成のディジタルフィルタ
について説明したが、回路構成としてはその構成に限定
されることなく、種々な変形が考えられるものとなって
いる。即ち、パラレルQ出力、パラレル反転Q出力が全
て“0”状態にあることをオアゲートやノアゲートによ
って検出することによって、それら検出出力によってR
Sフリップフロップ4での状態がセット/リセット制御
されてもよいものである。また、シフトレジスタ1全体
がいわゆるICとして構成されている場合には、入出力
ピン数の制限からしてパラレル反転Q出力が得ることが
困難な場合には、パラレルQ出力のみからRSフリップ
フロップ4がセット/リセット制御され得るものとなっ
ている。パラレルQ出力が全て“1”状態にあることは
アンドゲートやナンドゲートにより、また、パラレルQ
出力が全て“0”状態(この状態は、パラレル反転Q出
力が全て“1”状態にあることに相当する)にあること
はオアゲートやノアゲートによって検出可能であるから
である。Although the digital filter having the basic structure has been described above, the circuit structure is not limited to the structure and various modifications can be considered. That is, by detecting that the parallel Q output and the parallel inverted Q output are all in the "0" state by the OR gate or the NOR gate, R is detected by these detection outputs.
The state of the S flip-flop 4 may be set / reset controlled. Further, when the shift register 1 is entirely configured as a so-called IC, when it is difficult to obtain the parallel inverted Q output due to the limitation of the number of input / output pins, the RS flip-flop 4 is provided only from the parallel Q output. Can be set / reset controlled. The fact that all the parallel Q outputs are in the "1" state is due to the AND gate and NAND gate.
This is because it can be detected by the OR gate or NOR gate that all the outputs are in the "0" state (this state corresponds to that all the parallel inverted Q outputs are in the "1" state).
【0011】[0011]
【発明の効果】以上、説明したように、請求項1〜3に
よる場合は、入力側の信号レベルのレベル変動によって
誤動作する虞がなく、しかも出力側でのラインドライブ
能力について考慮する必要がないディジタルフィルタが
得られる。As described above, according to the first to third aspects, there is no possibility of malfunction due to the level fluctuation of the signal level on the input side, and it is not necessary to consider the line drive capability on the output side. A digital filter is obtained.
【図1】図1は、本発明によるディジタルフィルタの一
例での構成を示す図FIG. 1 is a diagram showing a configuration of an example of a digital filter according to the present invention.
1…シフトレジスタ、2,3…アンドゲート、4…RS
フリップフロップ1 ... Shift register, 2, 3 ... AND gate, 4 ... RS
flip flop
Claims (3)
トインされるn(n:2以上の整数、以下、同様)ビッ
トシフト容量のシフトレジスタと、該シフトレジスタに
おけるパラレルQ出力ビット、あるいはパラレル反転Q
出力ビットが全て“1”状態および“0”状態にあるこ
とを検出するゲート回路と、該ゲート回路からの検出出
力によってセット状態、リセット状態が制御されるRS
フリップフロップとからなる構成のディジタルフィル
タ。1. A shift register having n (n: an integer of 2 or more, and the same) bit shift capacity in which an input signal is shifted in by a shift clock, and a parallel Q output bit or a parallel inversion Q in the shift register.
A gate circuit that detects that all output bits are in a "1" state and a "0" state, and an RS whose set state and reset state are controlled by the detection output from the gate circuit
A digital filter composed of a flip-flop.
トインされるnビットシフト容量のシフトレジスタと、
該シフトレジスタにおけるパラレルQ出力ビットが全て
“1”状態にあることを検出する第1のゲート回路と、
該シフトレジスタにおけるパラレル反転Q出力ビットが
全て“1”状態にあることを検出する第2のゲート回路
と、上記第1,第2のゲート回路各々からの検出出力に
よってそれぞれセット状態、リセット状態におかれるR
Sフリップフロップとからなる構成のディジタルフィル
タ。2. A shift register having an n-bit shift capacity, in which an input signal is shifted in by a shift clock,
A first gate circuit for detecting that all the parallel Q output bits in the shift register are in a "1"state;
A second gate circuit that detects that all the parallel inverted Q output bits in the shift register are in the "1" state, and a detection output from each of the first and second gate circuits causes a set state and a reset state, respectively. R placed
A digital filter composed of an S flip-flop.
トインされるnビットシフト容量のシフトレジスタと、
該シフトレジスタにおけるパラレルQ出力ビットが全て
“0”状態にあることを検出する第1のゲート回路と、
該シフトレジスタにおけるパラレル反転Q出力ビットが
全て“0”状態にあることを検出する第2のゲート回路
と、上記第1,第2のゲート回路各々からの検出出力に
よってそれぞれリセット状態、セット状態におかれるR
Sフリップフロップとからなる構成のディジタルフィル
タ。3. A shift register having an n-bit shift capacity, in which an input signal is shifted in by a shift clock,
A first gate circuit for detecting that all the parallel Q output bits in the shift register are in a "0"state;
A second gate circuit that detects that all the parallel inverted Q output bits in the shift register are in the "0" state, and a detection output from each of the first and second gate circuits causes a reset state and a set state, respectively. R placed
A digital filter composed of an S flip-flop.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3251235A JPH0590902A (en) | 1991-09-30 | 1991-09-30 | Digital Filter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3251235A JPH0590902A (en) | 1991-09-30 | 1991-09-30 | Digital Filter |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0590902A true JPH0590902A (en) | 1993-04-09 |
Family
ID=17219730
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3251235A Pending JPH0590902A (en) | 1991-09-30 | 1991-09-30 | Digital Filter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0590902A (en) |
-
1991
- 1991-09-30 JP JP3251235A patent/JPH0590902A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6469544B2 (en) | Device for detecting abnormality of clock signal | |
| JPH05143211A (en) | Input interface circuit | |
| EP0327767A2 (en) | Programmable comparator output filter | |
| JPS633230Y2 (en) | ||
| JP2606458Y2 (en) | Signal level monitoring circuit | |
| JPH0749879Y2 (en) | Binary signal output device | |
| JP2003078397A (en) | Method and apparatus for filtering noise in a digital logic input signal | |
| KR0153911B1 (en) | Digital Sequential Random Walk Filter for Clock Recovery | |
| JPH0348468B2 (en) | ||
| JP2583446B2 (en) | Clock signal stop detection circuit | |
| JPH0129094B2 (en) | ||
| JPH0515989B2 (en) | ||
| JPH02179115A (en) | digital signal processing circuit | |
| JPS57124928A (en) | Edge detection circuit | |
| JPH0591148A (en) | Signal loss detection circuit | |
| JPH01212113A (en) | Input noise removing circuit | |
| JP2564812B2 (en) | Counting circuit | |
| JPH0392016A (en) | Parity circuit | |
| JPH03119598A (en) | Shift register driving circuit and microcomputer provided with the circuit | |
| GB2288956A (en) | Error detection circuit | |
| JPH05236026A (en) | Digital signal monitoring circuit | |
| JPH0514144A (en) | Digital noise filter | |
| JPS5943782B2 (en) | Maximum value detection circuit device | |
| JPS5925416A (en) | Waiting circuit | |
| JPH07107236A (en) | Parallel-serial conversion integrated circuit |