JP2833603B2 - Oscillator - Google Patents

Oscillator

Info

Publication number
JP2833603B2
JP2833603B2 JP8322838A JP32283896A JP2833603B2 JP 2833603 B2 JP2833603 B2 JP 2833603B2 JP 8322838 A JP8322838 A JP 8322838A JP 32283896 A JP32283896 A JP 32283896A JP 2833603 B2 JP2833603 B2 JP 2833603B2
Authority
JP
Japan
Prior art keywords
output
switch
pulse
oscillation
circuit
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 - Lifetime
Application number
JP8322838A
Other languages
Japanese (ja)
Other versions
JPH09186558A (en
Inventor
俊幸 保坂
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP8322838A priority Critical patent/JP2833603B2/en
Publication of JPH09186558A publication Critical patent/JPH09186558A/en
Application granted granted Critical
Publication of JP2833603B2 publication Critical patent/JP2833603B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、スイッチ手段からのス
イッチパルスに応じてパルスの発振開始と発振停止を行
う発振装置に関するものである。 【0002】 【従来の技術及び発明が解決しようとする課題】プッシ
ュスイッチからのスイッチパルスに応じてパルスの発振
開始と発振停止を行う発振装置は、従来、電子体温計等
の電子機器の動作クロックの供給源として用いられてい
るが、従来のこの種の発振装置においては外来ノイズに
よって誤動作することがあった。 【0003】本発明は、上記の課題を解決するものであ
って、プッシュスイッチを押したとき、及び離したとき
のチャタリングによる誤動作を防止すると共に、外来ノ
イズによる誤動作をも防止することによって、プッシュ
スイッチの押下動作の繰り返しにより誤動作なく発振の
開始と停止を繰り返すことができる発振装置を提供する
ことを目的とするものである。 【0004】 【課題を解決するための手段】上記の目的を達成するた
めに、本発明の発振装置は、スイッチパルスを発生させ
るプッシュスイッチ手段と、プッシュスイッチ手段から
のスイッチパルスに基づいて所定の周波数のパルスの発
振開始と発振停止を行う発振回路とを備える発振装置で
あって、複数段のフリップフロップにより構成され、発
振回路から発振されたパルスを計数して、半周期が少な
くとも前記プッシュスイッチ手段におけるチャタリング
が生じている時間よりも長くなされた検出パルスを出力
する検出パルス出力手段と、論理回路により構成され、
検出パルス出力手段からの検出パルスの状態と、スイッ
チパルスの状態とにより、スイッチパルスが検出パルス
の時間持続したか否かを判定する判定手段と、論理回路
により構成され、検出パルス出力手段の最終段から1段
前のフリップフロップの出力であって、最終段のフリッ
プフロップの検出パルスを出力する端子と同極性の端子
から出力されるパルスの状態と、判定手段の出力の状態
とによって、発振回路がパルスを発振しているときに判
定手段によって次のスイッチパルスが所定の時間持続さ
れたことが判定されたときには発振回路の発振を停止さ
せてその状態を持続させ、発振回路が発振を停止してい
る状態で前記プッシュスイッチ手段が押されたときは前
記プッシュスイッチ手段が押されたと同時に発振を開始
させ、前記判定手段によって更にスイッチパルスが所定
の時間持続されたことが判定されたときには発振回路の
発振を持続させる状態保持手段とを備えることを特徴と
する。 【0005】 【発明の実施の形態】以下、図面を参照しつつ発明の実
施の形態について説明する。なお、以下においてはD型
フリップフロップ(以下、単にFFと記す)の二つの出
力のうち、図においてQの上にバーを付した出力につい
ては便宜的にQバー出力と記載することにする。 【0006】図1は本発明に係る発振装置の一実施形態
を示す図である。この発振装置では、電源電圧Vssに接
続された抵抗2と電源電圧Vddに接続されたプッシュス
イッチ1(以下、単にスイッチ1と記す)の接続点をF
F3及びFF4の各D入力端子と、FF10のR(リセ
ット)入力端子へ与える。FF3のCL(クロック)入
力端子にはFF20のQ出力24が与えられ、FF4の
CL入力端子にはFF20のQ出力24をインバーター
5により反転した信号が与えられる。 【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入力端子
へ与えられる。 【0008】FF10のCL入力端子にはクロック信号
22が与えられ、このFF10のQ出力31は分周回路
を構成している各FF17〜20の各R入力へ与えられ
る。一方、FF10のQバー出力32はナンド回路11
へ与えられる。 【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入力
端子に与えられる。 【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入力端子に与えられる。 【0011】なお、図1ではCR発振回路は、FF10
のQバー出力32がハイレベルのときにクロック信号2
2を発振するものとする。また、図1には図示していな
いが、CR発振回路の出力であるクロック信号22は、
当該発振装置が搭載される電子体温計等の電子機器の動
作クロックとして供給されるものであることは当然であ
る。 【0012】以上の構成において、スイッチ1は本発明
におけるプッシュスイッチ手段を形成するものであり、
ナンド回路11、インバーター12、13、14、抵抗
15及びコンデンサー16からなるCR発振回路は本発
明における発振回路を形成するものであり、FF17〜
FF20からなる分周回路は本発明における検出パルス
出力手段を形成するものであり、FF3、FF4、イン
バーター5及びノア回路6は本発明における判定手段を
形成するものであり、FF7、FF8、ノア回路9、F
F10は本発明における状態保持手段を形成するもので
ある。これらの意味は後述する動作の説明からより明ら
かになるであろう。 【0013】図1に示す発振装置の動作を図2に示すタ
イミングチャートを参照して説明する。 【0014】いま、CR発振回路がクロック信号22を
発振していないとし、この状態においてスイッチ1を押
したとすると、信号線21のレベルはスイッチパルスに
よってハイレベルとなるので、この立ち上がりのタイミ
ングでFF10がリセットされ、FF10のQバー出力
32がハイレベルとなってCR発振回路はクロック信号
22の発振を開始する。即ち、このスイッチ操作によっ
てナンド回路11がアクティブ状態となり、ナンド回路
11、インバーター12、13、14、抵抗15、コン
デンサー16で構成されるCR発振回路が発振状態とな
るのである。 【0015】そして、このとき同時にFF10のQ出力
31はローレベルとなり、分周回路を構成するFF17
〜20のリセットが解除されるので、FF17〜20か
らなる分周回路はクロック信号22の分周を開始する。 【0016】FF3はFF20のQ出力であるクロック
信号24をクロック入力とし、クロック信号24の立ち
下がりエッジでD入力端子のレベルを読み込むようにな
されている。従って、スイッチ1が押されている状態で
は、信号線21はハイレベルであり、従ってFF3のD
入力端子はハイレベルとなるので、クロック信号24の
立ち下がりエッジでハイレベルが読み込まれ、FF3の
Qバー出力25はローレベルとなる。つまり、このFF
3は、クロック信号24の立ち下がりエッジのときに信
号線21のレベルを検出しているということができる。 【0017】FF4は、FF20のQ出力であるクロッ
ク信号24をインバーター5で反転したものをクロック
入力とし、そのクロック入力の立ち下がりエッジでD入
力端子のレベルを読み込むようになされている。従っ
て、スイッチ1が押されている状態では、FF4のD入
力端子はハイレベルなので、クロック入力の立ち下がり
エッジでハイレベルが読み込まれ、FF4のQバー出力
26はローレベルとなる。つまり、このFF4は、クロ
ック入力の立ち下がりエッジのときに信号線21のレベ
ルを検出しているということができる。 【0018】ところで、FF4のクロック入力はクロッ
ク信号24を反転したものであるので、FF4ではクロ
ック信号24の立ち上がりエッジのときの信号線21の
レベルを検出しているということができる。一方、FF
3はクロック信号24の立ち下がりエッジのときの信号
線21のレベルを検出しているのであるから、FF3と
FF4ではクロック信号24の半周期毎に信号線21の
レベルが検出されるということができる。 【0019】ノア回路6は、FF3のQバー出力25と
FF4のQバー出力26とのノア(NOR)を取るもの
である。従って、信号線21のレベルがクロック信号2
4の1周期よりも長い時間ハイレベルまたはローレベル
に保持されている場合には、ノア回路6の出力27は同
じレベルに保持されることになる。 【0020】このことから、クロック信号24の1周期
を適当に選ぶことによって、スイッチ1を押したとき、
あるいは離したときのチャタリングを防止できることが
分かる。つまり、クロック信号24の半周期をスイッチ
1のチャタリングが生じている時間より長くすれば、ス
イッチ1を押したとき、あるいは離したときにチャタリ
ングが生じたとしても、そのチャタリングによってノア
回路6の出力27が何度も変化することを回避すること
ができ、チャタリングによる誤動作を防止できるのであ
る。 【0021】このことは図1に示す回路構成の動作を詳
細に検討すれば明らかである。例えば、クロック信号2
4の半周期をスイッチ1のチャタリングが生じている時
間より長くすれば、図2に示すクロック信号24の最初
の立ち上がりの時点ではチャタリングは既に収まってい
るから、このクロック信号24の最初の立ち上がりエッ
ジにおいてFF4はチャタリングによる影響を受けるこ
となくD入力端子のハイレベルを読み込むことができる
のである。 【0022】さて、スイッチ1が押されている状態では
ノア回路6の出力27はハイレベルとなるので、FF7
はリセットされ、そのQバー出力28はローレベルから
ハイレベルとなる。このFF7のQバー出力28はFF
8のCL入力端子に供給されるが、FF8はクロック入
力の立ち下がりエッジで状態を反転するようになされて
いるので、このときにはFF8の状態は変化せず、その
Q出力29は前のレベルを保持する。この場合にはロー
レベルを保持する。 【0023】以上のように、FF7のQバー出力28は
ハイレベルであり、FF8のQ出力29はローレベルで
あるので、このときにはノア回路9の出力30はローレ
ベルとなる。 【0024】FF10は、クロック信号22の立ち下が
りエッジでD入力端子のレベルを読み込むようになされ
ているので、このときにはクロック信号22の立ち下が
りエッジでD入力端子のローレベルを読み込むことにな
り、そのQバー出力32はハイレベルとなるので、CR
発振回路はクロック信号22の発振を継続することにな
る。 【0025】以上のようにして、スイッチ1が押されて
いる間はCR発振回路はクロック信号22の発振を継続
する。 【0026】次に、CR発振回路が発振を停止している
ときにスイッチ1を押し、ある時間押し続けた後にスイ
ッチ1を離した場合の動作について説明する。 【0027】スイッチ1を離すと信号線21のレベルは
SS、即ちローレベルになるが、スイッチ1を離した直
後のクロック信号24の最初の立ち上がりエッジまたは
立ち下がりエッジによって、FF3のQバー出力25、
FF4のQバー出力26の一方は必ずハイレベルとな
り、ノア回路6の出力27はローレベルとなる。そし
て、それ以降スイッチ1が離され続けている間はFF3
のQバー出力25、FF4のQバー出力26は共にハイ
レベルとなるので、ノア回路6の出力27はローレベル
を保持することになる。 【0028】スイッチ1を離したときにチャタリングが
生じた場合にも同様である。その例を図3に示す。ここ
ではFF3を例にとって説明する。 【0029】いま、クロック信号24が図3の(a)の
ようであったとする。また、クロック信号24の半周期
がスイッチ1のチャタリングが生じている時間より長く
設定されているものとする。そして、図3(b)のよう
にt1 のときに押し続けていたスイッチ1を離したと
し、そのときに破線で示す期間チャタリングが発生して
いてt3 のときにチャタリングが収まったとする。 【0030】この場合、FF3はt2 のときに信号線2
1のレベルを読み込むのであるが、このときFF3が認
識する信号線21のレベルはハイレベルかローレベルの
何れかである。ハイレベルになるか、ローレベルになる
かはチャタリングの発生の態様によって変わるが、何れ
にしてもハイレベルかローレベルになる。 【0031】そして、t2 の時点でFF3が信号線21
のレベルをローレベルと認識すれば、FF3のQバー出
力25は図3(c)に示すようにハイレベルとなるが、
2の時点でハイレベルと認識すれば、FF3のQバー
出力25は図3(d)のようにクロック信号24の次の
立ち下がり(t5 )でハイレベルとなる。このようにF
F3のQバー出力25がローレベルからハイレベルにな
るタイミングはチャタリングの発生の仕方によって変わ
るものの、何れにしても誤動作無くハイレベルになるの
である。これがクロック信号24の半周期をスイッチ1
のチャタリングが発生している時間より長くすることの
効用であり、このことは図1に示す回路構成の動作を詳
細に検討すれば明らかである。 【0032】このように、クロック信号24の半周期が
スイッチ1のチャタリングが生じている時間より長く設
定されている場合には、FF3はスイッチ1を操作した
ときにチャタリングが発生したとしても、それによって
誤動作することはないのである。このことはFF4につ
いても同様である。 【0033】さて、ノア回路6の出力27がローレベル
となると、FF7のリセットが解除される。FF7はク
ロック入力であるクロック信号23の立ち下がりエッジ
でD入力端子のレベルVDD、即ちハイレベルを読み込む
ようになされているので、リセットが解除されると、F
F7のQバー出力28はローレベルとなる。即ち、スイ
ッチ1が離されるとFF7のQバー出力28はハイレベ
ルからローレベルに変化するのである。 【0034】このことによって、FF8の状態が反転し
て、そのQバー出力29はハイレベルとなり、ノア回路
9の出力30はローレベルを保持する。従って、FF1
0はクロック信号22の立ち下がりエッジでこのローレ
ベルを読み込むので、そのQバー出力32はハイレベル
となりCR発振回路はクロック信号22の発振を継続す
る。また、このときFF10のQ出力31はローレベル
となるので、分周回路はクロック信号22の分周を継続
することになる。 【0035】以上のように、CR発振回路が発振を停止
しているときにスイッチ1を押し、ある時間押し続けた
後にスイッチ1を離した場合にはクロック信号22の発
振が継続されるのである。 【0036】次に、CR発振回路がクロック信号22の
発振を継続しているときにスイッチ1を押した場合の動
作について説明する。 【0037】このときには信号線21はハイレベルにな
るので、FF10はリセットされ、そのQバー出力32
はハイレベルを保持する。従って、スイッチ1が押され
ているときにはCR発振回路はクロック信号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の分周動作を継続する。 【0039】次に、上記した状態からスイッチ1を離し
た場合の動作について説明する。 【0040】このときには信号線21はローレベルとな
るので、FF10はリセットが解除され、FF3、FF
4のD入力端子は共にローレベルとなる。従って、FF
3,FF4のQバー出力25、26は共にハイレベルと
なるので、ノア回路6の出力27はローレベルとなり、
FF7のリセットが解除される。 【0041】従って、FF7のQバー出力28は、リセ
ットが解除された後のクロック信号23の最初の立ち下
がりエッジでD入力端子のハイレベルが読み込まれるの
で、ローレベルとなる。つまり、FF7のQバー出力2
8はハイレベルからローレベルに変化する。 【0042】このことによって、FF8の状態が変化す
るので、そのQ出力29はハイレベルからローレベルに
なり、ノア回路9の出力30はハイレベルになる。 【0043】ノア回路9の出力30がハイレベルになる
と、FF10はクロック信号22の立ち下がりエッジで
このハイレベルを読み込むので、そのQ出力31はハイ
レベル、Qバー出力32はローレベルとなり、この結
果、CR発振回路はクロック信号22の発振を停止し、
分周回路はリセットされてクロック信号22の分周動作
を停止する。 【0044】次に、スイッチ1を離しているがCR発振
回路がクロック信号22の発振を継続しているときにノ
イズが混入して信号線21のレベルがハイレベルになっ
た場合の動作について説明する。 【0045】この外来ノイズがクロック信号24のレベ
ルがハイレベルまたはローレベルに保持されている期間
内に混入したのであれば、当該外来ノイズはFF3、F
F4によっては検出されないので、誤動作が生じること
はない。 【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が立
ち上がった場合においても同様である。 【0047】つまり、外来ノイズが混入しても、その外
来ノイズがクロック信号24の半周期よりも短ければ、
当該外来ノイズによって誤動作することはないのであ
る。 【0048】以上のように、この発振装置は、クロック
信号24の半周期を外来ノイズ及びチャタリングが生じ
ている時間よりも長くすることによって、スイッチ1を
押したとき、離したときに生じるチャタリングによる誤
動作、外来ノイズによる誤動作を防止することができ、
スイッチ1の押下動作の繰り返しに応じてサイクリック
にクロック信号22の発振の開始と停止を繰り返すこと
ができるのである。 【0049】 【発明の効果】以上に説明したように、本発明の発振装
置は、スイッチパルスを発生させるプッシュスイッチ手
段と、プッシュスイッチ手段からのスイッチパルスに基
づいて所定の周波数のパルスの発振開始と発振停止を行
う発振回路とを備える発振装置であって、複数段のフリ
ップフロップにより構成され、発振回路から発振された
パルスを計数して、半周期が少なくとも前記プッシュス
イッチ手段におけるチャタリングが生じている時間より
も長くなされた検出パルスを出力する検出パルス出力手
段と、論理回路により構成され、検出パルス出力手段か
らの検出パルスの状態と、スイッチパルスの状態とによ
り、スイッチパルスが検出パルスの時間持続したか否か
を判定する判定手段と、論理回路により構成され、検出
パルス出力手段の最終段から1段前のフリップフロップ
の出力であって、最終段のフリップフロップの検出パル
スを出力する端子と同極性の端子から出力されるパルス
の状態と、判定手段の出力の状態とによって、発振回路
がパルスを発振しているときに判定手段によって次のス
イッチパルスが所定の時間持続されたことが判定された
ときには発振回路の発振を停止させてその状態を持続さ
せ、発振回路が発振を停止している状態で前記プッシュ
スイッチ手段が押されたときは前記プッシュスイッチ手
段が押されたと同時に発振を開始させ、前記判定手段に
よって更にスイッチパルスが所定の時間持続されたこと
が判定されたときには発振回路の発振を持続させる状態
保持手段とを備えるので、発振回路が発振を行っている
ときに、外来ノイズあるいはチャタリングによって発振
回路が発振を停止してしまうという誤動作を防止するこ
とができ、発振装置の信頼性を向上させることができ
る。 【0050】更に、発振回路が発振を停止しているとき
には、判定手段によってスイッチパルスが検出パルスの
時間持続したと判定された場合以外には発振回路は発振
を開始しないので、低消費電力を実現できる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an oscillating device which starts and stops oscillation of a pulse in response to a switch pulse from a switch means. 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 been conventionally used as an operating clock of an electronic device such as an electronic thermometer. Although used as a supply source, in this type of conventional oscillation device, malfunction may occur due to external noise. 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] In order to achieve the above object, an oscillating apparatus according to the present invention comprises a push switch for generating a switch pulse, and a predetermined switch based on a switch pulse from the push switch. An oscillation device comprising an oscillation circuit for starting and stopping oscillation of a pulse having a frequency, the oscillation device being constituted by a plurality of flip-flops, counting pulses oscillated from the oscillation circuit, and having a half cycle of at least the push switch. Detection pulse output means for outputting a detection pulse made longer than the time during which chattering occurs in the means, and a logic circuit,
Determining means for determining whether or not the switch pulse has continued for the time of the detection pulse based on the state of the detection pulse from the detection pulse output means and the state of the switch pulse; and a logic circuit. Oscillation occurs depending on the state of the pulse output from the terminal of the same polarity as the output of the detection pulse of the last stage flip-flop, which is the output of the flip-flop one stage before the stage, and the state of the output of the determination means. When the determination circuit determines that the next switch pulse has been maintained for a predetermined time while the circuit is oscillating the pulse, the oscillation circuit stops oscillating to maintain the state, and the oscillation circuit stops oscillating. When the push switch means is pressed in a state in which the push switch is pressed, oscillation is started at the same time as the push switch means is pressed, and Further when the switch pulse is determined to have been sustained predetermined time, characterized in that it comprises a state holding means to sustain the oscillation of the oscillation circuit by. 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. 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. 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. 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. 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 the Q output is given to the CL input terminal of the next stage FF. 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. 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. In the above configuration, the switch 1 forms the push switch means in the present invention.
The CR oscillation circuit including the NAND circuit 11, the inverters 12, 13, 14, the resistor 15, and the capacitor 16 forms the oscillation circuit of the present invention, and includes the FFs 17 to
The frequency dividing circuit including the FF 20 forms a detection pulse output unit according to the present invention. The FF3, FF4, the inverter 5, and the NOR circuit 6 form a determining unit according to the present invention. 9, F
F10 forms the state holding means in the present invention. These meanings will become more apparent from the following description of the operation. The operation of the oscillator shown in FIG. 1 will be described with reference to a timing chart shown in FIG. 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. 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. 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. 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. 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. The NOR circuit 6 takes the NOR of the Q bar output 25 of the FF3 and the Q bar output 26 of the FF4. Therefore, the level of the signal line 21 becomes 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. From this, by appropriately selecting one cycle of the clock signal 24, when the switch 1 is pressed,
Or, it can 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. 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. 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. 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. 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. As described above, the CR oscillation circuit continues to oscillate the clock signal 22 while the switch 1 is pressed. 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. 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. 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. 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] 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. 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. 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. 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. 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. As described above, when the switch 1 is pressed while the CR oscillation circuit stops oscillating, and when the switch 1 is released after being kept pressed for a certain time, the oscillation of the clock signal 22 is continued. . Next, an operation when the switch 1 is pressed while the CR oscillation circuit continues to oscillate the clock signal 22 will be described. 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. 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. Next, the operation when the switch 1 is released from the above state will be described. 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. 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. 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. 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 and stops the frequency dividing operation of the clock signal 22. 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. 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. 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. 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. 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. As described above, the oscillating device of the present invention comprises a push switch means for generating a switch pulse, and the oscillation start of a pulse of a predetermined frequency based on the switch pulse from the push switch means. And an oscillation circuit for stopping oscillation, comprising a plurality of flip-flops, counting pulses oscillated from the oscillation circuit, and having a half cycle at least chattering in the push switch means. Detection pulse output means for outputting a detection pulse that is longer than the period of time, and a logic circuit, and the state of the detection pulse from the detection pulse output means and the state of the switch pulse determine the switch pulse time. A determination means for determining whether or not the detection pulse has been sustained; The state of the pulse output from the terminal of the same polarity as the output of the detection pulse of the last stage flip-flop, which is the output of the flip-flop one stage before the last stage of the output unit, Depending on the state, when the determination circuit determines that the next switch pulse has been maintained for a predetermined period of time while the oscillation circuit is oscillating the pulse, the oscillation of the oscillation circuit is stopped and the state is maintained. When the push switch is pressed in a state where the circuit has stopped oscillating, oscillation is started at the same time as the push switch is pressed, and the switch pulse is maintained for a predetermined time by the determination means. A state holding means for maintaining the oscillation of the oscillation circuit when the determination is made is provided. There can be prevented a malfunction that the oscillation circuit will stop the oscillation by chattering, it is possible to improve the reliability of the oscillator. Further, when the oscillation circuit has stopped oscillating, the oscillation circuit does not start oscillating unless the judging means judges that the switch pulse has continued for the duration of the detection pulse, thereby realizing low power consumption. it can.

【図面の簡単な説明】 【図1】 本発明に係る発振装置の一実施形態を示す回
路図である。 【図2】 図1に示す発振装置の動作を説明するための
タイミングチャートである。 【図3】 図1に示す発振装置において、スイッチ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型フリップフロップ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a circuit diagram showing one embodiment of an oscillation device according to the present invention. FIG. 2 is a timing chart for explaining the operation of the oscillation device shown in FIG. 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; [Description of Signs] 1 ... Push switch 2 ... Resistance 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 ... Capacitors 17, 18, 19, 20 ... D-type flip-flop

Claims (1)

(57)【特許請求の範囲】 1.スイッチパルスを発生させるプッシュスイッチ手段
と、 プッシュスイッチ手段からのスイッチパルスに基づいて
所定の周波数のパルスの発振開始と発振停止を行う発振
回路とを備える発振装置であって、 複数段のフリップフロップにより構成され、発振回路か
ら発振されたパルスを計数して、半周期が少なくとも前
記プッシュスイッチ手段におけるチャタリングが生じて
いる時間よりも長くなされた検出パルスを出力する検出
パルス出力手段と、 論理回路により構成され、検出パルス出力手段からの検
出パルスの状態と、スイッチパルスの状態とにより、ス
イッチパルスが検出パルスの時間持続したか否かを判定
する判定手段と、 論理回路により構成され、検出パルス出力手段の最終段
から1段前のフリップフロップの出力であって、最終段
のフリップフロップの検出パルスを出力する端子と同極
性の端子から出力されるパルスの状態と、判定手段の出
力の状態とによって、発振回路がパルスを発振している
ときに判定手段によって次のスイッチパルスが所定の時
間持続されたことが判定されたときには発振回路の発振
を停止させてその状態を持続させ、発振回路が発振を停
止している状態で前記プッシュスイッチ手段が押された
ときは前記プッシュスイッチ手段が押されたと同時に発
振を開始させ、前記判定手段によって更にスイッチパル
スが所定の時間持続されたことが判定されたときには発
振回路の発振を持続させる状態保持手段とを備えること
を特徴とする発振装置。
(57) [Claims] An oscillation device comprising: a push switch means for generating a switch pulse; and an oscillation circuit for starting and stopping oscillation of a pulse having a predetermined frequency based on the switch pulse from the push switch means. A detection pulse output means for counting pulses oscillated from the oscillation circuit and outputting a detection pulse having a half cycle longer than at least chattering in the push switch means; and a logic circuit. Determining means for determining whether or not the switch pulse lasts for the duration of the detection pulse based on the state of the detection pulse from the detection pulse output means and the state of the switch pulse; Output of the flip-flop one stage before the last stage of Depending on the state of the pulse output from the terminal having the same polarity as the terminal outputting the detection pulse of the flip-flop of the stage and the state of the output of the determination means, the determination means determines the following when the oscillation circuit is oscillating the pulse. When it is determined that the switch pulse has been maintained for a predetermined time, the oscillation of the oscillation circuit is stopped to maintain the state, and when the push switch is pressed while the oscillation circuit is not oscillating, State holding means for starting oscillation at the same time as the push switch means is pressed, and for maintaining oscillation of the oscillation circuit when the determination means determines that the switch pulse has been maintained for a predetermined time. Oscillator.
JP8322838A 1996-12-03 1996-12-03 Oscillator Expired - Lifetime JP2833603B2 (en)

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 JPH09186558A (en) 1997-07-15
JP2833603B2 true 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)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
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
JPH09186558A (en) 1997-07-15

Similar Documents

Publication Publication Date Title
KR890017866A (en) Filter circuit
US6049358A (en) Counter control circuit for controlling counter having a pulse period measuring function
JP2833603B2 (en) Oscillator
JP2998650B2 (en) DC sorting circuit for frequency divider
JP4240657B2 (en) Counting device and driving method thereof
JPH08286780A (en) Clock circuit, processor using the circuit and processor operating method
JPH07283727A (en) Phase synchronous detector
JPH11312078A (en) Semiconductor device having random number generating circuit
JP2599759B2 (en) Flip-flop test method
KR100323370B1 (en) Device with a clock output circuit
JP2964704B2 (en) Clock stop circuit
JP3727670B2 (en) Microcontroller
JP2006190260A (en) Real time clock device
JPH09326679A (en) Clock generation circuit
JP2598547Y2 (en) Pattern generator for semiconductor test equipment
JPS6222432B2 (en)
JPS6222433B2 (en)
JPH0147935B2 (en)
KR100206906B1 (en) Timer/counter circuit
JPH11134061A (en) Clock control circuit
JPH09135151A (en) Digital filter device
JPH0450657Y2 (en)
JPH0514234Y2 (en)
JP2827679B2 (en) Semiconductor device
JPS6259942B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term