JPH09186558A - Oscillator - Google Patents
OscillatorInfo
- Publication number
- JPH09186558A JPH09186558A JP8322838A JP32283896A JPH09186558A JP H09186558 A JPH09186558 A JP H09186558A JP 8322838 A JP8322838 A JP 8322838A JP 32283896 A JP32283896 A JP 32283896A JP H09186558 A JPH09186558 A JP H09186558A
- Authority
- JP
- Japan
- Prior art keywords
- switch
- clock signal
- output
- oscillation
- pulse
- 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.)
- Granted
Links
- 230000010355 oscillation Effects 0.000 claims abstract description 56
- 238000001514 detection method Methods 0.000 claims abstract description 18
- 244000145845 chattering Species 0.000 abstract description 24
- 230000007257 malfunction Effects 0.000 abstract description 13
- 239000003990 capacitor Substances 0.000 description 4
- 230000000630 rising effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Electronic Switches (AREA)
Abstract
(57)【要約】
【課題】 スイッチの押下動作によってクロック信号の
発振/停止を行う発振装置において、ノイズ、スイッチ
を操作した場合のチャタリングによる誤動作を防止す
る。
【解決手段】 スイッチ1を1回押すとCR発振回路が
クロック信号22の発振を開始する。このクロック信号
22を分周回路で分周するが、クロック信号24の半周
期をチャタリングが生じている時間、ノイズの時間より
も長くする。そして、クロック信号24の半周期毎に信
号線21のレベルを検出し、この検出信号と、スイッチ
1が押される前の状態とによってCR発振回路の発振を
継続するか停止させるかを制御する。
(57) Abstract: In an oscillator that oscillates / stops a clock signal by pressing a switch, noise and malfunction caused by chattering when the switch is operated are prevented. SOLUTION: When a switch 1 is pressed once, a CR oscillation circuit starts oscillation of a clock signal 22. This clock signal 22 is divided by a frequency dividing circuit, but the half cycle of the clock signal 24 is made longer than the time during which chattering occurs and the noise time. Then, the level of the signal line 21 is detected every half cycle of the clock signal 24, and it is controlled whether the oscillation of the CR oscillation circuit is continued or stopped depending on the detection signal and the state before the switch 1 is pressed.
Description
【0001】[0001]
【産業上の利用分野】本発明は、スイッチ手段からのス
イッチパルスに応じてパルスの発振開始と発振停止を行
う発振装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an oscillating device for starting and stopping oscillation of a pulse in response to a switch pulse from a switch means.
【0002】[0002]
【従来の技術及び発明が解決しようとする課題】プッシ
ュスイッチからのスイッチパルスに応じてパルスの発振
開始と発振停止を行う発振装置は、従来、電子体温計等
の電子機器の動作クロックの供給源として用いられてい
るが、従来のこの種の発振装置においては外来ノイズに
よって誤動作することがあった。2. Description of the Related Art An oscillating device that starts and stops oscillation of a pulse in response to a switch pulse from a push switch has conventionally been used as a supply source of an operation clock of an electronic device such as an electronic thermometer. Although used, the conventional oscillator of this type sometimes malfunctions due to external noise.
【0003】本発明は、上記の課題を解決するものであ
って、プッシュスイッチを押したとき、及び離したとき
のチャタリングによる誤動作を防止すると共に、外来ノ
イズによる誤動作をも防止することによって、プッシュ
スイッチの押下動作の繰り返しにより誤動作なく発振の
開始と停止を繰り返すことができる発振装置を提供する
ことを目的とするものである。The present invention has been made to solve the above-mentioned problems, and prevents a malfunction caused by chattering when a push switch is pressed and released, and also prevents a malfunction caused by extraneous noise. An object of the present invention is to provide an oscillation device capable of repeating start and stop of oscillation without malfunction by repeating a switch pressing operation.
【0004】[0004]
【課題を解決するための手段】上記の目的を達成するた
めに、本発明の発振装置は、スイッチパルスを発生させ
るスイッチ手段と、前記スイッチ手段のスイッチパルス
に基づいてパルスの発振開始と発振停止を行う発振手段
とを備える発振装置であって、前記発振手段から発振さ
れたパルスを計数して所定の周期を有する検出パルスを
出力する検出パルス出力手段と、前記検出パルス出力手
段からの検出パルスに基づいてスイッチパルスが検出パ
ルスの時間持続したか否かを判定する判定手段と、前記
発振手段がパルスを発振している状態を第1の状態、前
記発振手段がパルスの発振を停止している状態を第2の
状態として、第1の状態にある場合に前記判定手段によ
って次のスイッチパルスが所定の時間持続されたことが
判定されたときには前記発振手段の発振を停止して第2
の状態を保持し、第2の状態にある場合に前記判定手段
によって次のスイッチパルスが所定の時間持続されたこ
とが判定されたときには前記発振手段に発振を開始させ
て第1の状態を保持する状態保持手段とを備えることを
特徴とする。In order to achieve the above object, an oscillating device of the present invention includes a switch means for generating a switch pulse, and an oscillation start and an oscillation stop of the pulse based on the switch pulse of the switch means. And a detection pulse output means for counting the pulses oscillated by the oscillation means and outputting a detection pulse having a predetermined cycle, and a detection pulse from the detection pulse output means. Determination means for determining whether or not the switch pulse has continued for the detection pulse time, and a state in which the oscillation means oscillates a pulse as a first state, and the oscillation means stops oscillation of the pulse. When the first switch determines that the next switch pulse has been maintained for a predetermined period of time when the first switch is in the first state, Second stop oscillation of the oscillation means
State is maintained, and when the determination means determines that the next switch pulse has been maintained for a predetermined time in the second state, the oscillation means is caused to start oscillation to maintain the first state. And a state maintaining means for performing the operation.
【0005】[0005]
【発明の実施の形態】以下、図面を参照しつつ発明の実
施の形態について説明する。なお、以下においてはD型
フリップフロップ(以下、単にFFと記す)の二つの出
力のうち、図においてQの上にバーを付した出力につい
ては便宜的にQバー出力と記載することにする。Embodiments of the present invention will be described below with reference to the drawings. In the following, of the two outputs of the D-type flip-flop (hereinafter, simply referred to as FF), the output with a bar above Q in the figure will be referred to as Q bar output for convenience.
【0006】図1は本発明に係る発振装置の一実施形態
を示す図である。この発振装置では、電源電圧Vssに接
続された抵抗2と電源電圧Vddに接続されたプッシュス
イッチ1(以下、単にスイッチ1と記す)の接続点をF
F3及びFF4の各D入力端子と、FF10のR(リセ
ット)入力端子へ与える。FF3のCL(クロック)入
力端子にはFF20のQ出力24が与えられ、FF4の
CL入力端子にはFF20のQ出力24をインバーター
5により反転した信号が与えられる。FIG. 1 is a diagram showing one embodiment of an oscillation device according to the present invention. In this oscillation device, a connection point between a resistor 2 connected to the power supply voltage V ss and a push switch 1 (hereinafter simply referred to as switch 1) connected to the power supply voltage V dd is represented by F
This is applied to the D input terminals of F3 and FF4 and the R (reset) input terminal of FF10. The Q output 24 of the FF 20 is provided to the CL (clock) input terminal of the FF 3, and a signal obtained by inverting the Q output 24 of the FF 20 by the inverter 5 is provided to the CL input terminal of the FF 4.
【0007】FF3のQバー出力25及びFF4のQバ
ー出力26はノア回路6へ与えられ、この出力27がF
F7のR入力端子へ与えられる。FF7のD入力端子に
は電源電圧Vddが導入され、そのCL入力端子にはFF
19のQ出力23が与えられている。FF7のQバー出
力28はFF8のCL入力端子およびノア回路9に与え
られる。FF8のQバー出力はFF8のD入力端子に帰
還されている。即ち、このFF8は1/2分周回路を構
成している。FF8のQ出力29はノア回路9に与えら
れ、このノア回路9の出力30はFF10のD入力端子
へ与えられる。The Q bar output 25 of the FF3 and the Q bar output 26 of the FF4 are supplied to the NOR circuit 6, and this output 27
It is provided to the R input terminal of F7. The power supply voltage Vdd is introduced into the D input terminal of the FF7, and the FF is supplied to the CL input terminal.
Nineteen Q outputs 23 are provided. The Q bar output 28 of the FF 7 is supplied to the CL input terminal of the FF 8 and the NOR circuit 9. The Q bar output of FF8 is fed back to the D input terminal of FF8. That is, the FF 8 constitutes a 1/2 frequency dividing circuit. The Q output 29 of the FF 8 is supplied to the NOR circuit 9, and the output 30 of the NOR circuit 9 is supplied to the D input terminal of the FF 10.
【0008】FF10のCL入力端子にはクロック信号
22が与えられ、このFF10のQ出力31は分周回路
を構成している各FF17〜20の各R入力へ与えられ
る。一方、FF10のQバー出力32はナンド回路11
へ与えられる。A clock signal 22 is supplied to a CL input terminal of the FF 10, and a Q output 31 of the FF 10 is supplied to each R input of each of the FFs 17 to 20 constituting a frequency dividing circuit. On the other hand, the Q bar output 32 of the FF 10 is connected to the NAND circuit 11.
Given to.
【0009】このナンド回路11、インバーター12、
13、14、抵抗15及びコンデンサー16はCR発振
回路を構成しており、このCR発振回路のインバーター
14から出力されたクロック信号22がFF17〜20
で構成される分周回路に供給され、分周される。即ち、
FF17のCL入力端子にはクロック信号22が入力さ
れ、FF17のQバー出力はFF17のD入力端子に帰
還され、そのQ出力はFF18のCL入力端子に与えら
れる。同様に、FF18のQバー出力はFF18のD入
力端子に帰還され、そのQ出力は次段のFFのCL入力
端子に与えられる。The NAND circuit 11, the inverter 12,
13, 14, the resistor 15 and the capacitor 16 constitute a CR oscillation circuit, and the clock signal 22 output from the inverter 14 of the CR oscillation circuit is supplied to the FFs 17 to 20.
, And is divided. That is,
The clock signal 22 is input to the CL input terminal of the FF 17, the Q bar output of the FF 17 is fed back to the D input terminal of the FF 17, and the Q output is provided to the CL input terminal of the FF 18. Similarly, the Q-bar output of the FF 18 is fed back to the D input terminal of the FF 18, and its Q output is given to the CL input terminal of the FF in the next stage.
【0010】同様の接続が繰り返され、FF19のCL
入力端子には前段のFFのQ出力が入力され、そのQバ
ー出力はFF19のD入力端子に帰還され、そのQ出力
23は次段のFF20のCL入力端子と、FF7のCL
入力端子に与えられる。FF20のQバー出力はFF2
0のD入力端子に帰還され、そのQ出力24は、FF3
のCL入力端子及びインバーター5を介してFF4のC
L入力端子に与えられる。The same connection is repeated, and the FF 19 CL
The Q output of the previous stage FF is input to the input terminal, the Q bar output is fed back to the D input terminal of the FF19, and the Q output 23 is connected to the CL input terminal of the next stage FF20 and the CL output terminal of the FF7.
It is given to the input terminal. Q bar output of FF20 is FF2
0 is fed back to the D input terminal and its Q output 24 is
Of the FF4 via the CL input terminal of the FF4 and the inverter 5
It is provided to the L input terminal.
【0011】なお、図1ではCR発振回路は、FF10
のQバー出力32がハイレベルのときにクロック信号2
2を発振するものとする。また、図1には図示していな
いが、CR発振回路の出力であるクロック信号22は、
当該発振装置が搭載される電子体温計等の電子機器の動
作クロックとして供給されるものであることは当然であ
る。In FIG. 1, the CR oscillation circuit includes an FF 10
Clock signal 2 when the Q bar output 32 of
2 oscillate. Although not shown in FIG. 1, the clock signal 22 output from the CR oscillation circuit is:
Naturally, it is supplied as an operation clock of an electronic device such as an electronic thermometer on which the oscillation device is mounted.
【0012】以上の構成において、スイッチ1は本発明
におけるスイッチ手段を形成するものであり、ナンド回
路11、インバーター12、13、14、抵抗15及び
コンデンサー16からなるCR発振回路は本発明におけ
る発振手段を形成するものであり、FF17〜FF20
からなる分周回路は本発明における検出パルス出力手段
を形成するものであり、FF3、FF4、インバーター
5及びノア回路6は本発明における判定手段を形成する
ものであり、FF7、FF8、ノア回路9、FF10は
本発明における状態保持手段を形成するものである。こ
れらの意味は後述する動作の説明からより明らかになる
であろう。In the above structure, the switch 1 forms the switching means of the present invention, and the CR oscillation circuit composed of the NAND circuit 11, the inverters 12, 13, 14, the resistor 15 and the capacitor 16 is the oscillation means of the present invention. To form FF17 to FF20
The frequency dividing circuit is composed of the detection pulse output means in the present invention, and the FF3, FF4, the inverter 5 and the NOR circuit 6 form the judgment means in the present invention, and the FF7, FF8 and the NOR circuit 9 are provided. , FF10 form the state holding means in the present invention. These meanings will become more apparent from the following description of the operation.
【0013】図1に示す発振装置の動作を図2に示すタ
イミングチャートを参照して説明する。The operation of the oscillator shown in FIG. 1 will be described with reference to a timing chart shown in FIG.
【0014】いま、CR発振回路がクロック信号22を
発振していないとし、この状態においてスイッチ1を押
したとすると、信号線21のレベルはスイッチパルスに
よってハイレベルとなるので、この立ち上がりのタイミ
ングでFF10がリセットされ、FF10のQバー出力
32がハイレベルとなってCR発振回路はクロック信号
22の発振を開始する。即ち、このスイッチ操作によっ
てナンド回路11がアクティブ状態となり、ナンド回路
11、インバーター12、13、14、抵抗15、コン
デンサー16で構成されるCR発振回路が発振状態とな
るのである。If it is assumed that the CR oscillation circuit is not oscillating the clock signal 22 and the switch 1 is pressed in this state, the level of the signal line 21 becomes high by the switch pulse. Is reset, the Q bar output 32 of the FF 10 becomes high level, and the CR oscillation circuit starts oscillating the clock signal 22. That is, the NAND circuit 11 is activated by this switch operation, and the CR oscillation circuit composed of the NAND circuit 11, the inverters 12, 13, 14, the resistor 15, and the capacitor 16 is oscillated.
【0015】そして、このとき同時にFF10のQ出力
31はローレベルとなり、分周回路を構成するFF17
〜20のリセットが解除されるので、FF17〜20か
らなる分周回路はクロック信号22の分周を開始する。At this time, the Q output 31 of the FF 10 goes low at the same time, and the FF 17
Since the reset of 〜20 is released, the frequency dividing circuit including the FFs 17 to 20 starts frequency division of the clock signal 22.
【0016】FF3はFF20のQ出力であるクロック
信号24をクロック入力とし、クロック信号24の立ち
下がりエッジでD入力端子のレベルを読み込むようにな
されている。従って、スイッチ1が押されている状態で
は、信号線21はハイレベルであり、従ってFF3のD
入力端子はハイレベルとなるので、クロック信号24の
立ち下がりエッジでハイレベルが読み込まれ、FF3の
Qバー出力25はローレベルとなる。つまり、このFF
3は、クロック信号24の立ち下がりエッジのときに信
号線21のレベルを検出しているということができる。The FF 3 receives the clock signal 24, which is the Q output of the FF 20, as a clock input, and reads the level of the D input terminal at the falling edge of the clock signal 24. Therefore, when the switch 1 is pressed, the signal line 21 is at the high level, and accordingly, the D of the FF3 is high.
Since the input terminal is at the high level, the high level is read at the falling edge of the clock signal 24, and the Q bar output 25 of the FF3 is at the low level. That is, this FF
3 indicates that the level of the signal line 21 is detected at the falling edge of the clock signal 24.
【0017】FF4は、FF20のQ出力であるクロッ
ク信号24をインバーター5で反転したものをクロック
入力とし、そのクロック入力の立ち下がりエッジでD入
力端子のレベルを読み込むようになされている。従っ
て、スイッチ1が押されている状態では、FF4のD入
力端子はハイレベルなので、クロック入力の立ち下がり
エッジでハイレベルが読み込まれ、FF4のQバー出力
26はローレベルとなる。つまり、このFF4は、クロ
ック入力の立ち下がりエッジのときに信号線21のレベ
ルを検出しているということができる。The FF 4 has a clock input obtained by inverting the clock signal 24, which is the Q output of the FF 20, by the inverter 5, and reads the level of the D input terminal at the falling edge of the clock input. Therefore, when the switch 1 is pressed, the D input terminal of the FF4 is at the high level, so that the high level is read at the falling edge of the clock input, and the Q bar output 26 of the FF4 becomes the low level. That is, it can be said that this FF 4 detects the level of the signal line 21 at the falling edge of the clock input.
【0018】ところで、FF4のクロック入力はクロッ
ク信号24を反転したものであるので、FF4ではクロ
ック信号24の立ち上がりエッジのときの信号線21の
レベルを検出しているということができる。一方、FF
3はクロック信号24の立ち下がりエッジのときの信号
線21のレベルを検出しているのであるから、FF3と
FF4ではクロック信号24の半周期毎に信号線21の
レベルが検出されるということができる。Since the clock input of the FF 4 is obtained by inverting the clock signal 24, it can be said that the FF 4 detects the level of the signal line 21 at the rising edge of the clock signal 24. On the other hand, FF
3 detects the level of the signal line 21 at the falling edge of the clock signal 24, so that the FF3 and FF4 detect the level of the signal line 21 every half cycle of the clock signal 24. it can.
【0019】ノア回路6は、FF3のQバー出力25と
FF4のQバー出力26とのノア(NOR)を取るもの
である。従って、信号線21のレベルがクロック信号2
4の1周期よりも長い時間ハイレベルまたはローレベル
に保持されている場合には、ノア回路6の出力27は同
じレベルに保持されることになる。The NOR circuit 6 takes the NOR of the Q-bar output 25 of FF3 and the Q-bar output 26 of FF4. Therefore, the level of the signal line 21 is the clock signal 2
If the signal is held at the high level or the low level for a period longer than one cycle of No. 4, the output 27 of the NOR circuit 6 is held at the same level.
【0020】このことから、クロック信号24の1周期
を適当に選ぶことによって、スイッチ1を押したとき、
あるいは離したときのチャタリングを防止できることが
分かる。つまり、クロック信号24の半周期をスイッチ
1のチャタリングが生じている時間より長くすれば、ス
イッチ1を押したとき、あるいは離したときにチャタリ
ングが生じたとしても、そのチャタリングによってノア
回路6の出力27が何度も変化することを回避すること
ができ、チャタリングによる誤動作を防止できるのであ
る。From this, by appropriately selecting one cycle of the clock signal 24, when the switch 1 is pressed,
It can also be seen that chattering when separated can be prevented. In other words, if the half cycle of the clock signal 24 is longer than the time during which the switch 1 is chattering, even if the switch 1 is pressed or released, even if chattering occurs, the output of the NOR circuit 6 is generated by the chattering. 27 can be prevented from changing many times, and malfunction due to chattering can be prevented.
【0021】このことは図1に示す回路構成の動作を詳
細に検討すれば明らかである。例えば、クロック信号2
4の半周期をスイッチ1のチャタリングが生じている時
間より長くすれば、図2に示すクロック信号24の最初
の立ち上がりの時点ではチャタリングは既に収まってい
るから、このクロック信号24の最初の立ち上がりエッ
ジにおいてFF4はチャタリングによる影響を受けるこ
となくD入力端子のハイレベルを読み込むことができる
のである。This is clear from a detailed study of the operation of the circuit configuration shown in FIG. For example, clock signal 2
4 is longer than the time during which the chattering of the switch 1 occurs, the chattering has already stopped at the first rising edge of the clock signal 24 shown in FIG. In FF4, the high level of the D input terminal can be read without being affected by chattering.
【0022】さて、スイッチ1が押されている状態では
ノア回路6の出力27はハイレベルとなるので、FF7
はリセットされ、そのQバー出力28はローレベルから
ハイレベルとなる。このFF7のQバー出力28はFF
8のCL入力端子に供給されるが、FF8はクロック入
力の立ち下がりエッジで状態を反転するようになされて
いるので、このときにはFF8の状態は変化せず、その
Q出力29は前のレベルを保持する。この場合にはロー
レベルを保持する。When the switch 1 is pressed, the output 27 of the NOR circuit 6 is at a high level.
Is reset, and its Q output 28 goes from low to high. The Q bar output 28 of this FF7 is FF
8 is supplied to the CL input terminal, but the state of the FF 8 does not change at this time since the state of the FF 8 is inverted at the falling edge of the clock input. Hold. In this case, the low level is maintained.
【0023】以上のように、FF7のQバー出力28は
ハイレベルであり、FF8のQ出力29はローレベルで
あるので、このときにはノア回路9の出力30はローレ
ベルとなる。As described above, the Q output 28 of the FF 7 is at the high level and the Q output 29 of the FF 8 is at the low level. At this time, the output 30 of the NOR circuit 9 is at the low level.
【0024】FF10は、クロック信号22の立ち下が
りエッジでD入力端子のレベルを読み込むようになされ
ているので、このときにはクロック信号22の立ち下が
りエッジでD入力端子のローレベルを読み込むことにな
り、そのQバー出力32はハイレベルとなるので、CR
発振回路はクロック信号22の発振を継続することにな
る。Since the FF 10 reads the level of the D input terminal at the falling edge of the clock signal 22, the FF 10 reads the low level of the D input terminal at the falling edge of the clock signal 22. Since the Q bar output 32 becomes high level,
The oscillation circuit continues to oscillate the clock signal 22.
【0025】以上のようにして、スイッチ1が押されて
いる間はCR発振回路はクロック信号22の発振を継続
する。As described above, the CR oscillation circuit continues to oscillate the clock signal 22 while the switch 1 is pressed.
【0026】次に、CR発振回路が発振を停止している
ときにスイッチ1を押し、ある時間押し続けた後にスイ
ッチ1を離した場合の動作について説明する。Next, the operation when the switch 1 is pressed when the CR oscillation circuit stops oscillating, and when the switch 1 is released after the switch 1 is kept pressed for a certain period of time will be described.
【0027】スイッチ1を離すと信号線21のレベルは
VSS、即ちローレベルになるが、スイッチ1を離した直
後のクロック信号24の最初の立ち上がりエッジまたは
立ち下がりエッジによって、FF3のQバー出力25、
FF4のQバー出力26の一方は必ずハイレベルとな
り、ノア回路6の出力27はローレベルとなる。そし
て、それ以降スイッチ1が離され続けている間はFF3
のQバー出力25、FF4のQバー出力26は共にハイ
レベルとなるので、ノア回路6の出力27はローレベル
を保持することになる。When the switch 1 is released, the level of the signal line 21 becomes V SS , that is, a low level. However, the first rising edge or the falling edge of the clock signal 24 immediately after the switch 1 is released causes the Q bar output of the FF 3 to change. 25,
One of the Q bar outputs 26 of the FF 4 is always at a high level, and the output 27 of the NOR circuit 6 is at a low level. Then, while the switch 1 is kept released thereafter, FF3
Since both the Q bar output 25 and the Q bar output 26 of the FF 4 are at the high level, the output 27 of the NOR circuit 6 holds the low level.
【0028】スイッチ1を離したときにチャタリングが
生じた場合にも同様である。その例を図3に示す。ここ
ではFF3を例にとって説明する。The same applies when chattering occurs when the switch 1 is released. An example is shown in FIG. Here, FF3 will be described as an example.
【0029】いま、クロック信号24が図3の(a)の
ようであったとする。また、クロック信号24の半周期
がスイッチ1のチャタリングが生じている時間より長く
設定されているものとする。そして、図3(b)のよう
にt1 のときに押し続けていたスイッチ1を離したと
し、そのときに破線で示す期間チャタリングが発生して
いてt3 のときにチャタリングが収まったとする。Now, it is assumed that the clock signal 24 is as shown in FIG. It is also assumed that the half cycle of the clock signal 24 is set to be longer than the time during which the chattering of the switch 1 occurs. Then, the releases the switch 1 continues to push at t 1 as shown in FIG. 3 (b), and chattering subsides when the time period chattering indicated by a broken line have occurred in t 3.
【0030】この場合、FF3はt2 のときに信号線2
1のレベルを読み込むのであるが、このときFF3が認
識する信号線21のレベルはハイレベルかローレベルの
何れかである。ハイレベルになるか、ローレベルになる
かはチャタリングの発生の態様によって変わるが、何れ
にしてもハイレベルかローレベルになる。[0030] In this case, FF3 the signal line at the time of t 2 2
At this time, the level of the signal line 21 recognized by the FF 3 is either a high level or a low level. Whether it becomes high level or low level depends on the mode of occurrence of chattering, but in any case, it becomes high level or low level.
【0031】そして、t2 の時点でFF3が信号線21
のレベルをローレベルと認識すれば、FF3のQバー出
力25は図3(c)に示すようにハイレベルとなるが、
t2の時点でハイレベルと認識すれば、FF3のQバー
出力25は図3(d)のようにクロック信号24の次の
立ち下がり(t5 )でハイレベルとなる。このようにF
F3のQバー出力25がローレベルからハイレベルにな
るタイミングはチャタリングの発生の仕方によって変わ
るものの、何れにしても誤動作無くハイレベルになるの
である。これがクロック信号24の半周期をスイッチ1
のチャタリングが発生している時間より長くすることの
効用であり、このことは図1に示す回路構成の動作を詳
細に検討すれば明らかである。At time t 2 , the FF 3 is connected to the signal line 21.
Is recognized as a low level, the Q bar output 25 of the FF 3 becomes a high level as shown in FIG.
If recognized as a high level at time t 2, Q-bar output 25 of FF3 becomes a high level at the next falling edge of the clock signal 24 as shown in FIG. 3 (d) (t 5) . Thus F
The timing at which the Q bar output 25 of F3 changes from low level to high level changes depending on how chattering occurs, but in any case, it goes high without malfunction. This switches the half cycle of the clock signal 24 to the switch 1
This is an effect of making the time longer than the time during which chattering occurs, and this is apparent from a detailed study of the operation of the circuit configuration shown in FIG.
【0032】このように、クロック信号24の半周期が
スイッチ1のチャタリングが生じている時間より長く設
定されている場合には、FF3はスイッチ1を操作した
ときにチャタリングが発生したとしても、それによって
誤動作することはないのである。このことはFF4につ
いても同様である。As described above, when the half cycle of the clock signal 24 is set longer than the time during which the chattering of the switch 1 occurs, the FF 3 operates even if the chattering occurs when the switch 1 is operated. It does not malfunction. This is the same for FF4.
【0033】さて、ノア回路6の出力27がローレベル
となると、FF7のリセットが解除される。FF7はク
ロック入力であるクロック信号23の立ち下がりエッジ
でD入力端子のレベルVDD、即ちハイレベルを読み込む
ようになされているので、リセットが解除されると、F
F7のQバー出力28はローレベルとなる。即ち、スイ
ッチ1が離されるとFF7のQバー出力28はハイレベ
ルからローレベルに変化するのである。When the output 27 of the NOR circuit 6 goes low, the reset of the FF 7 is released. The FF 7 reads the level V DD of the D input terminal, that is, the high level at the falling edge of the clock signal 23 which is the clock input.
The Q bar output 28 of F7 becomes low level. That is, when the switch 1 is released, the Q bar output 28 of the FF 7 changes from the high level to the low level.
【0034】このことによって、FF8の状態が反転し
て、そのQバー出力29はハイレベルとなり、ノア回路
9の出力30はローレベルを保持する。従って、FF1
0はクロック信号22の立ち下がりエッジでこのローレ
ベルを読み込むので、そのQバー出力32はハイレベル
となりCR発振回路はクロック信号22の発振を継続す
る。また、このときFF10のQ出力31はローレベル
となるので、分周回路はクロック信号22の分周を継続
することになる。As a result, the state of the FF 8 is inverted, the Q output 29 of the FF 8 goes high, and the output 30 of the NOR circuit 9 holds the low level. Therefore, FF1
Since 0 reads this low level at the falling edge of the clock signal 22, the Q bar output 32 goes high, and the CR oscillation circuit continues to oscillate the clock signal 22. Further, at this time, the Q output 31 of the FF 10 becomes low level, so that the frequency dividing circuit continues the frequency division of the clock signal 22.
【0035】以上のように、CR発振回路が発振を停止
しているときにスイッチ1を押し、ある時間押し続けた
後にスイッチ1を離した場合にはクロック信号22の発
振が継続されるのである。As described above, the oscillation of the clock signal 22 is continued when the switch 1 is pushed while the CR oscillation circuit stops oscillating and is released for a certain period of time and then released. .
【0036】次に、CR発振回路がクロック信号22の
発振を継続しているときにスイッチ1を押した場合の動
作について説明する。Next, an operation when the switch 1 is pressed while the CR oscillation circuit continues to oscillate the clock signal 22 will be described.
【0037】このときには信号線21はハイレベルにな
るので、FF10はリセットされ、そのQバー出力32
はハイレベルを保持する。従って、スイッチ1が押され
ているときにはCR発振回路はクロック信号22の発振
を継続する。At this time, since the signal line 21 goes high, the FF 10 is reset and its Q output 32
Holds high level. Therefore, when the switch 1 is pressed, the CR oscillation circuit continues to oscillate the clock signal 22.
【0038】一方、FF3、FF4のD入力端子はハイ
レベルとなり、それらのQバー出力25、26は共にロ
ーレベルとなるのでノア回路6の出力27はハイレベル
となって、FF7はリセットされ、そのQバー出力28
はハイレベルとなる。従って、ノア回路9の出力30は
ローレベルとなる。そして、FF10はクロック信号2
2の立ち下がりエッジでノア回路9の出力30のローレ
ベルを読み込むので、そのQバー出力32はハイレベ
ル、Q出力はローレベルとなる。以上の動作によって、
スイッチ1が押されている状態ではCR発振回路はクロ
ック信号22の発振を継続し、分周回路はクロック信号
22の分周動作を継続する。On the other hand, the D input terminals of FF3 and FF4 are at high level, and their Q bar outputs 25 and 26 are both at low level, so that the output 27 of the NOR circuit 6 is at high level and the FF 7 is reset. Its Q bar output 28
Becomes high level. Therefore, the output 30 of the NOR circuit 9 becomes low level. The FF 10 receives the clock signal 2
Since the low level of the output 30 of the NOR circuit 9 is read at the falling edge of 2, the Q output 32 becomes high level and the Q output becomes low level. By the above operation,
When the switch 1 is pressed, the CR oscillation circuit continues to oscillate the clock signal 22, and the frequency dividing circuit continues the frequency dividing operation of the clock signal 22.
【0039】次に、上記した状態からスイッチ1を離し
た場合の動作について説明する。Next, the operation when the switch 1 is released from the above state will be described.
【0040】このときには信号線21はローレベルとな
るので、FF10はリセットが解除され、FF3、FF
4のD入力端子は共にローレベルとなる。従って、FF
3,FF4のQバー出力25、26は共にハイレベルと
なるので、ノア回路6の出力27はローレベルとなり、
FF7のリセットが解除される。At this time, since the signal line 21 is at the low level, the reset of the FF 10 is released, and the FF 3 and the FF 10 are reset.
4 are both at low level. Therefore, FF
3, since the Q bar outputs 25 and 26 of the FF 4 are both at a high level, the output 27 of the NOR circuit 6 is at a low level,
The reset of the FF 7 is released.
【0041】従って、FF7のQバー出力28は、リセ
ットが解除された後のクロック信号23の最初の立ち下
がりエッジでD入力端子のハイレベルが読み込まれるの
で、ローレベルとなる。つまり、FF7のQバー出力2
8はハイレベルからローレベルに変化する。Therefore, the Q-bar output 28 of the FF 7 goes low since the high level of the D input terminal is read at the first falling edge of the clock signal 23 after the reset is released. That is, Q bar output 2 of FF7
8 changes from a high level to a low level.
【0042】このことによって、FF8の状態が変化す
るので、そのQ出力29はハイレベルからローレベルに
なり、ノア回路9の出力30はハイレベルになる。As a result, the state of the FF 8 changes, so that the Q output 29 changes from high level to low level, and the output 30 of the NOR circuit 9 changes to high level.
【0043】ノア回路9の出力30がハイレベルになる
と、FF10はクロック信号22の立ち下がりエッジで
このハイレベルを読み込むので、そのQ出力31はハイ
レベル、Qバー出力32はローレベルとなり、この結
果、CR発振回路はクロック信号22の発振を停止し、
分周回路はリセットされてクロック信号22の分周動作
を停止する。When the output 30 of the NOR circuit 9 goes high, the FF 10 reads this high level at the falling edge of the clock signal 22, so that the Q output 31 goes high and the Q bar output 32 goes low. As a result, the CR oscillation circuit stops oscillating the clock signal 22,
The frequency dividing circuit is reset to stop the frequency dividing operation of the clock signal 22.
【0044】次に、スイッチ1を離しているがCR発振
回路がクロック信号22の発振を継続しているときにノ
イズが混入して信号線21のレベルがハイレベルになっ
た場合の動作について説明する。Next, a description will be given of the operation when the level of the signal line 21 becomes high due to noise mixing when the switch 1 is released but the CR oscillation circuit continues to oscillate the clock signal 22. I do.
【0045】この外来ノイズがクロック信号24のレベ
ルがハイレベルまたはローレベルに保持されている期間
内に混入したのであれば、当該外来ノイズはFF3、F
F4によっては検出されないので、誤動作が生じること
はない。If this extraneous noise is mixed during the period in which the level of the clock signal 24 is maintained at the high level or the low level, the extraneous noise is supplied to the FF3, F
Since no detection is made by F4, no malfunction occurs.
【0046】外来ノイズによって信号線21がハイレベ
ルになっているときにクロック信号24が立ち下がった
場合、このときにはFF3のQバー出力25はローレベ
ルとなるが、このときFF4のQバー出力26は上述し
たようにハイレベルであるので、ノア回路6の出力27
は依然としてローレベルを保持することになる。従っ
て、FF7のQバー出力28はローレベルを保持し、F
F8のQ出力29はハイレベルを保持するのでノア回路
9の出力30はローレベルを保持し、FF10はクロッ
ク信号22の立ち下がりエッジでそのローレベルを読み
込むのでFF10のQバー出力32はハイレベルを保持
し、CR発振回路はクロック信号22の発振を継続する
ことになる。このことは外来ノイズによって信号線21
がハイレベルになっているときにクロック信号24が立
ち上がった場合においても同様である。When the clock signal 24 falls while the signal line 21 is at a high level due to external noise, the Q bar output 25 of the FF3 at this time goes to a low level, but at this time, the Q bar output 26 of the FF4 goes to a low level. Is the high level as described above, so that the output 27 of the NOR circuit 6
Will still hold the low level. Therefore, the Q bar output 28 of the FF 7 keeps the low level,
Since the Q output 29 of F8 holds a high level, the output 30 of the NOR circuit 9 holds a low level, and the FF 10 reads the low level at the falling edge of the clock signal 22, so that the Q bar output 32 of the FF 10 is at a high level. , And the CR oscillation circuit continues to oscillate the clock signal 22. This is due to external noise caused by the signal line 21.
The same applies to the case where the clock signal 24 rises while is at the high level.
【0047】つまり、外来ノイズが混入しても、その外
来ノイズがクロック信号24の半周期よりも短ければ、
当該外来ノイズによって誤動作することはないのであ
る。That is, even if external noise is mixed, if the external noise is shorter than a half cycle of the clock signal 24,
No malfunction is caused by the external noise.
【0048】以上のように、この発振装置は、クロック
信号24の半周期を外来ノイズ及びチャタリングが生じ
ている時間よりも長くすることによって、スイッチ1を
押したとき、離したときに生じるチャタリングによる誤
動作、外来ノイズによる誤動作を防止することができ、
スイッチ1の押下動作の繰り返しに応じてサイクリック
にクロック信号22の発振の開始と停止を繰り返すこと
ができるのである。As described above, in this oscillation device, by setting the half cycle of the clock signal 24 to be longer than the time during which external noise and chattering occur, chattering occurs when the switch 1 is pressed and released. Malfunction, malfunction due to external noise can be prevented,
The start and stop of the oscillation of the clock signal 22 can be cyclically repeated according to the repetition of the pressing operation of the switch 1.
【0049】[0049]
【発明の効果】以上に説明したように、本発明の発振装
置は、スイッチパルスを発生させるスイッチ手段と、ス
イッチ手段のスイッチパルスに基づいてパルスの発振開
始と発振停止を行う発振手段とを備える発振装置であっ
て、発振手段から発振されたパルスを計数して所定の周
期を有する検出パルスを出力する検出パルス出力手段
と、検出パルス出力手段からの検出パルスに基づいてス
イッチパルスが検出パルスの時間持続したか否かを判定
する判定手段と、発振手段がパルスを発振している状態
を第1の状態、発振手段がパルスの発振を停止している
状態を第2の状態として、第1の状態にある場合に判定
手段によって次のスイッチパルスが所定の時間持続され
たことが判定されたときには発振手段の発振を停止して
第2の状態を保持し、第2の状態にある場合に判定手段
によって次のスイッチパルスが所定の時間持続されたこ
とが判定されたときには発振手段に発振を開始させて第
1の状態を保持する状態保持手段とを備えるので、発振
装置が発振を行っている第1の状態において、外来ノイ
ズあるいはチャタリングによって発振手段が発振を停止
してしまうという誤動作を防止することができ、発振装
置の信頼性を向上させることができる。As described above, the oscillating device of the present invention comprises the switch means for generating the switch pulse and the oscillating means for starting and stopping the oscillation of the pulse based on the switch pulse of the switch means. An oscillating device, which detects a pulse oscillated by the oscillating means and outputs a detection pulse having a predetermined cycle, and a switch pulse which is a detection pulse based on the detection pulse from the detection pulse output means. The determination means for determining whether or not the time has continued, the state in which the oscillating means is oscillating a pulse is a first state, and the state in which the oscillating means stops oscillating a pulse is a second state. When the determination means determines that the next switch pulse has been maintained for a predetermined time in the state of, the oscillation of the oscillation means is stopped and the second state is maintained. In the second state, when the determining means determines that the next switch pulse has been maintained for a predetermined time, the oscillating means is caused to start oscillating and holds the first state. In the first state in which the oscillation device is oscillating, it is possible to prevent a malfunction that the oscillation means stops oscillation due to external noise or chattering, and improve the reliability of the oscillation device.
【0050】更に、発振装置が発振を停止している第2
の状態では、判定手段によってスイッチパルスが検出パ
ルスの時間持続した場合以外には発振装置は発振を開始
しないので、低消費電力を実現できる。Furthermore, the second device in which the oscillating device has stopped oscillating
In this state, the oscillating device does not start oscillating except when the switch pulse continues for the detection pulse time by the determining means, and thus low power consumption can be realized.
【図1】 本発明に係る発振装置の一実施形態を示す回
路図である。FIG. 1 is a circuit diagram showing an embodiment of an oscillator according to the invention.
【図2】 図1に示す発振装置の動作を説明するための
タイミングチャートである。FIG. 2 is a timing chart for explaining the operation of the oscillation device shown in FIG.
【図3】 図1に示す発振装置において、スイッチ1を
離したときにチャタリングが生じた場合の動作を説明す
るためのタイミングチャートである。FIG. 3 is a timing chart for explaining an operation when chattering occurs when a switch 1 is released in the oscillation device shown in FIG. 1;
1…プッシュスイッチ 2…抵抗 3、4…D型フリップフロップ 5…インバーター 6…ノア回路、 7、8…D型フリップフロップ 9…ノア回路 10…D型フリップフロップ 11…ナンド回路 12、13、14…インバーター 15…抵抗 16…コンデンサ 17、18、19、20…D型フリップフロップ DESCRIPTION OF SYMBOLS 1 ... Push switch 2 ... Resistor 3, 4 ... D-type flip-flop 5 ... Inverter 6 ... NOR circuit, 7, 8 ... D-type flip-flop 9 ... NOR circuit 10 ... D-type flip-flop 11 ... NAND circuit 12, 13, 14 ... Inverter 15 ... Resistor 16 ... Capacitor 17, 18, 19, 20 ... D-type flip-flop
Claims (1)
と、 前記スイッチ手段のスイッチパルスに基づいてパルスの
発振開始と発振停止を行う発振手段とを備える発振装置
であって、 前記発振手段から発振されたパルスを計数して所定の周
期を有する検出パルスを出力する検出パルス出力手段
と、 前記検出パルス出力手段からの検出パルスに基づいてス
イッチパルスが検出パルスの時間持続したか否かを判定
する判定手段と、 前記発振手段がパルスを発振している状態を第1の状
態、前記発振手段がパルスの発振を停止している状態を
第2の状態として、第1の状態にある場合に前記判定手
段によって次のスイッチパルスが所定の時間持続された
ことが判定されたときには前記発振手段の発振を停止し
て第2の状態を保持し、第2の状態にある場合に前記判
定手段によって次のスイッチパルスが所定の時間持続さ
れたことが判定されたときには前記発振手段に発振を開
始させて第1の状態を保持する状態保持手段とを備える
ことを特徴とする発振装置。1. An oscillating device comprising switch means for generating a switch pulse and oscillating means for starting and stopping oscillation of the pulse based on the switch pulse of the switch means, wherein the oscillating means oscillates. Detection pulse output means for counting the pulses and outputting a detection pulse having a predetermined cycle, and determination means for determining whether or not the switch pulse has continued for the detection pulse time based on the detection pulse from the detection pulse output means. And a state in which the oscillating means is oscillating a pulse as a first state, and a state in which the oscillating means is oscillating a pulse as a second state, the determining means in the first state. When it is determined that the next switch pulse has been maintained for a predetermined time, the oscillation of the oscillating means is stopped, the second state is maintained, and the second state is set. In a certain case, when the determination means determines that the next switch pulse has been maintained for a predetermined time, the oscillation means is caused to start oscillating, and a state holding means for holding the first state is provided. Oscillator.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8322838A JP2833603B2 (en) | 1996-12-03 | 1996-12-03 | Oscillator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8322838A JP2833603B2 (en) | 1996-12-03 | 1996-12-03 | Oscillator |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP18353884A Division JPS6161526A (en) | 1984-08-31 | 1984-08-31 | Oscillation control circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH09186558A true JPH09186558A (en) | 1997-07-15 |
| JP2833603B2 JP2833603B2 (en) | 1998-12-09 |
Family
ID=18148177
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8322838A Expired - Lifetime JP2833603B2 (en) | 1996-12-03 | 1996-12-03 | Oscillator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2833603B2 (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5467181A (en) * | 1977-11-07 | 1979-05-30 | Fuji Xerox Co Ltd | Method of preventing false operation of controller |
| JPS55124931U (en) * | 1979-02-27 | 1980-09-04 | ||
| JPS59104633U (en) * | 1982-12-28 | 1984-07-14 | 川崎製鉄株式会社 | Multifunctional electronic switch |
-
1996
- 1996-12-03 JP JP8322838A patent/JP2833603B2/en not_active Expired - Lifetime
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5467181A (en) * | 1977-11-07 | 1979-05-30 | Fuji Xerox Co Ltd | Method of preventing false operation of controller |
| JPS55124931U (en) * | 1979-02-27 | 1980-09-04 | ||
| JPS59104633U (en) * | 1982-12-28 | 1984-07-14 | 川崎製鉄株式会社 | Multifunctional electronic switch |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2833603B2 (en) | 1998-12-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2998650B2 (en) | DC sorting circuit for frequency divider | |
| JP3523362B2 (en) | Clock circuit and processor using the same | |
| JP2833603B2 (en) | Oscillator | |
| JP4240657B2 (en) | Counting device and driving method thereof | |
| JPH11312078A (en) | Semiconductor device having random number generating circuit | |
| JP4004668B2 (en) | Data processing circuit | |
| JP3727670B2 (en) | Microcontroller | |
| JP3011047B2 (en) | Phase comparison circuit | |
| JPH0147935B2 (en) | ||
| JPH01295529A (en) | Integrated circuit with switching clock | |
| JPH049336B2 (en) | ||
| JPH11231967A (en) | Clock output circuit | |
| JPH10126231A (en) | Chattering elimination circuit | |
| JP3025702B2 (en) | Lock detection circuit | |
| JPH07326962A (en) | Electronics | |
| JPS6076808A (en) | Clock shaping circuit | |
| JPS6222432B2 (en) | ||
| JPH09145803A (en) | Test mode setting circuit | |
| JP2006190260A (en) | Real-time clock device | |
| JPH09238056A (en) | Pulse width control circuit | |
| JP2002131383A (en) | Semiconductor integrated circuit and inspection method thereof | |
| JPH11134061A (en) | Clock control circuit | |
| JPH10290148A (en) | Phase comparator circuit | |
| JPH11161629A (en) | Microcomputer | |
| JPH01260376A (en) | Test mode selection circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |