[go: up one dir, main page]

JP2004334794A - Microcomputer with built-in pll - Google Patents

Microcomputer with built-in pll Download PDF

Info

Publication number
JP2004334794A
JP2004334794A JP2003133546A JP2003133546A JP2004334794A JP 2004334794 A JP2004334794 A JP 2004334794A JP 2003133546 A JP2003133546 A JP 2003133546A JP 2003133546 A JP2003133546 A JP 2003133546A JP 2004334794 A JP2004334794 A JP 2004334794A
Authority
JP
Japan
Prior art keywords
circuit
clock signal
signal
output
externally generated
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
JP2003133546A
Other languages
Japanese (ja)
Inventor
Yukiisa Fujita
行功 藤田
Shinsuke Abe
信介 阿部
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.)
Renesas Technology Corp
Original Assignee
Renesas Technology 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 Renesas Technology Corp filed Critical Renesas Technology Corp
Priority to JP2003133546A priority Critical patent/JP2004334794A/en
Publication of JP2004334794A publication Critical patent/JP2004334794A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a microcomputer with a built-in PLL, having a simple structure and a small exclusive circuit area, being capable of stopping input of a clock signal from an external oscillation circuit when detecting stop of the external oscillation circuit. <P>SOLUTION: The microcomputer is equipped with an edge detection circuit 20, a PLL circuit 10, a counter 30, a detection part 50 of an external generation clock signal stop and a circuit of the external generation clock signal stop for stopping input of the external generation clock signal to the edge detection circuit 20 and a PLL circuit 10 while the external clock stop detection signal is output. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
この発明は、マイクロコンピュータの外部に接続され、マイクロコンピュータのクロック源となる外部発振回路の発振が停止したことを検出した際に外部発振回路からの発振を入力させない回路を備えるPLL内蔵マイクロコンピュータに関するものである。
【0002】
【従来の技術】
自動車などの人命に関わる機械に用いられるマイクロコンピュータシステムでは、高い信頼性とともにフェールセーフの考え方が重要なポイントとなる。フェールセーフとは、システムの或る部分が異常になったときに、それを検知し、適切な補助手段への切り換えを行うことである。このような異常事態の一つとして、マイクロコンピュータ(以下マイコンという)の外部発振回路の発振停止がある。この外部発振回路の発振停止は、例えば、外部発振回路のオープン,ショートなどにより発生する。
【0003】
このような外部発振回路の発振停止が発生したときに、マイコンがそれを検知し、内部クロックを、外部発振回路の接続端子側から内部のリングオシレータなどの内部発振回路に切り換える仕組みがマイコンに搭載されている。
【0004】
この発振停止検出回路はマイクロコンピュータのチップに内蔵されており、発振停止検出回路は、外部発振回路の接続端子から入力される外部生成クロック信号のエッジを検出し、この検出に応答して充放電制御用パルス信号を発生するクロックエッジ検出回路を備えている。
【0005】
また、発振停止検出回路はRC時定数をもつ充電回路を徐々に充電していく動作と、充放電制御用パルス信号によって放電動作を行う充放電回路を備えている。外部生成クロック信号が正常発振時には、充電が完了する前に充放電制御用パルス信号による放電が定期的に行われる。しかし、外部生成クロック信号が停止すると、充放電制御用パルス信号も発生されなくなるので、充放電回路で放電が行われなくなるため、充電が完了してしまう。充放電回路はこの充電の完了を外部発振回路の発振停止として検出し、この検出に応答して、発振停止割り込みなどを発生する。
【0006】
さらに、発振停止割り込み信号によって、切り換え部が、マイコンのメインクロックを外部生成クロック信号から、内部のリングオシレータの発振信号に切り換えることにより、外部生成クロック信号停止後もマイコンが動作することを可能としている。これにより、必要なフェールセーフ処理を実行することが可能となる。
【0007】
この従来の発振停止検出回路に用いられる充放電回路は、抵抗Rと容量Cで構成されており、特に容量Cがレイアウト的に大きな面積を占めることになり、チップの小面積化の妨げとなる。また、発振停止を検出したときのみに使用する、内部生成クロック発振源としてのリングオシレータ回路も余分に必要となる。また、RCによる時定数は、半導体の製造プロセスや使用条件の変動で大きく変化するため、正確な発振停止を検出するためには、設計的にも細心の注意を払ったチューニングを行う必要があり、設計ミスの原因にもなりやすい。
【0008】
また、特許文献1に記載の異常発振検出回路は、基準発振回路部、カウンタ、記憶回路部と比較回路部で構成されており、発振周波数を変更したシステムクロックの発振周波数の異常を検出している。
【0009】
この異常発振検出回路においては、基準発振回路部が予め設定された発振周波数の基準クロックを生成し出力している。そして、カウンタは基準発振回路部から出力される基準クロック信号をカウントし、その時々のカウント値を出力するとともに、システムクロック信号を入力し、そのシステムクロック信号に基づいてカウント値をクリアしている。
【0010】
また、記憶回路部には基準クロック信号の発振周波数に応じた規定値が予め設定されており、比較回路部は、カウンタから出力されるカウント値と記憶回路部に記憶されている規定値とを比較し、その比較結果に基づいた検出信号を出力している。そして、この検出信号によって発振周波数の異常を検出している。
【0011】
【特許文献1】
特開平8−76877号公報(第1,3,7頁)
【0012】
【発明が解決しようとする課題】
このように、前者の従来技術では、RCによる時定数は、半導体の製造プロセスや使用条件によりばらつきが大きくなる問題がある。また、大きなCR時定数を確保するためと、専用の内部生成クロック発生源を内蔵しなければならないことなどから、レイアウト面積が増加する問題があった。
【0013】
また、後者の従来技術によれば、発振周波数の異常を検出するための回路構成が大型化し、専有回路面積が増え、チップの小面積化の妨げとなる。さらに、発振周波数の異常を検出した後、発振周波数を変更したクロックの発振を停止する方法は開示されていない。
【0014】
この発明は上記に鑑みてなされたもので、簡単な構成でかつ小さな専有回路面積で、外部発振回路の停止を検出した際、外部発振回路からの(外部生成)クロック信号の入力を停止させることが可能なPLL内蔵マイクロコンピュータを得ることを目的とする。
【0015】
【課題を解決するための手段】
上述した課題を解決し、目的を達成するために、本発明にかかるPLL内蔵マイクロコンピュータにあっては、入力された外部生成クロック信号のエッジを検出するエッジ検出回路と、入力された外部生成クロック信号を自ら出力するクロック信号と位相同期しかつ、該位相同期した信号をn逓倍してマイクロコンピュータ内部で使用する内部クロック信号として出力するPLL回路と、前記エッジ検出回路の出力によってクリアされ、前記PLL回路から出力される内部クロック信号をカウントソースとしてカウント動作を行うカウンタと、前記カウンタの出力が所定の設定値を越えると、これを前記外部生成クロック信号の停止として検出し、外部クロック停止検出信号を出力し続ける外部生成クロック信号停止検出部と、外部クロック停止検出信号が出力されている間、前記エッジ検出回路および前記PLL回路への外部生成クロック信号の入力を停止させる外部生成クロック停止回路と、を備えることを特徴とする。
【0016】
この発明によれば、簡単な構成でかつ小さな専有回路面積で、外部発振回路の停止を検出した際、外部発振回路からマイクロコンピュータへの外部生成クロック信号XINの入力を停止させることができる。
【0017】
【発明の実施の形態】
以下に添付図面を参照して、この発明にかかるPLL内蔵マイクロコンピュータの好適な実施の形態を詳細に説明する。なお、この実施の形態により発明が限定されるものではない。
【0018】
実施の形態1.
図1は、この発明の実施の形態1にかかるPLL内蔵マイクロコンピュータにおける発振停止検出回路の構成を示すブロック図である。この図1に示す発振停止検出回路は、PLLが内蔵されるワンチップマイクロコンピュータに搭載されるものである。
【0019】
この図1に示す発振停止検出回路は、外部発振回路(図示せず)からの外部生成クロック信号XINの停止を検出する発振停止検出回路100と、外部生成クロック信号XINを自ら出力するクロック信号と位相同期し、この位相同期した信号をn逓倍するPLL回路10と、外部発振回路の停止を検出した場合に外部発振回路から発振停止検出回路100へ入力する外部生成クロック信号XINを停止させる外部生成クロック停止回路200からなる。
【0020】
外部生成クロック停止回路200は、外部生成クロック信号XINが停止した場合に発振停止検出回路100から出力される外部クロック停止検出信号CT11を反転させるノット回路60と、外部生成クロック信号XINとノット回路60で反転した外部クロック停止検出信号CT11の否定論理積をとるナンド回路70と、ナンド回路70から出力される信号を反転させるノット回路80とを備えている。
【0021】
ノット回路60は、外部生成クロック信号XINが停止して外部クロック停止検出信号CT11の出力“H”が発生した時、この出力“H”を反転させて出力“L”をナンド回路70に入力する。一方、外部生成クロック信号XINが動作中で外部クロック停止検出信号CT11の出力が“L”の時、この出力“L”を反転させて出力“H”をナンド回路70に入力する。
【0022】
ナンド回路70は、ノット回路60からの出力“L”が入力されることによってもう一方の外部生成クロック信号XINからの入力信号に関係なく“H”を出力し、ノット回路80は、ナンド回路70から“H”が出力された場合にはこれを反転させて“L”を出力する。一方、ナンド回路70にノット回路60からの出力“H”が入力される場合、ナンド回路70は外部生成クロック信号XINからの入力信号を反転させてこれを出力する。
【0023】
したがって、外部クロック停止検出信号CT11が発生するとPLL回路10には“L”が入力されて外部生成クロック信号XINが完全に入力されない状態となる。
【0024】
図2は、この発明にかかるPLL内蔵マイクロコンピュータにおける発振停止検出回路100の構成を示す図である。この図2に示す発振停止検出回路100は、外部発振回路の接続端子から入力される外部生成クロック信号XINのエッジを検出し、エッジ検出信号XEDGEを出力するエッジ検出回路20と、エッジ検出信号XEDGEと初期化信号INITIALの論理和をとるオア回路40と、PLL回路10のVCO14から出力される内部クロック信号SCLKをカウントソースとしてカウントクロック端子に入力し、オア回路40の出力CT_CLRをクリア端子に入力するカウンタ30と、カウンタ30の2ビットの出力の論理積をとるアンド回路51と論理積によって出力される1ビットの情報を一時的に記憶するオア回路52およびフリップフロップ53で構成される外部生成クロック信号停止検出部50とを備えている。また、外部発振回路の接続端子から入力される外部生成クロック信号XINはPLL回路10へ入力され、PLL回路10が出力する内部クロック信号SCLKがカウンタ30へ入力するよう接続されている。
【0025】
エッジ検出回路20は、この場合、外部生成クロック信号XINを遅延させる遅延回路21と、外部生成クロック信号XINと遅延回路21の出力との排他的論理和をとる排他的論理和ゲート22とを有し、これらの構成によって外部生成クロック信号XINの両エッジ(立ち下がりエッジおよび立ち上がりエッジ)を検出して、これら両エッジ検出のときに例えば“H”になるエッジ検出信号XEDGEを出力する。
【0026】
オア回路40は、エッジ検出信号XEDGEと、システムリセット時にアサートされる初期化信号INITIALとの論理和をとって、その出力CT_CLRをカウンタ30のクリア端子に入力する。
【0027】
PLL回路10は、位相比較器11,チャージポンプ12,キャパシタ13,VCO(電圧制御発振器)14および分周器15を備えている。位相比較器11は、PLL回路10の分周器15から出力される出力クロックCLKと、外部発振回路の接続端子から入力される外部生成クロック信号XINとの位相を比較する。位相比較器11は、この位相のずれに従った位相進み信号または位相遅れ信号をチャージポンプ12に出力する。チャージポンプ12は、この位相進み/遅れ信号により、キャパシタ13に電荷を充電/放電する。
【0028】
位相比較器11での位相比較の結果、外部生成クロック信号XINの周波数よりもPLL回路10の出力クロックCLKの発振周波数のほうが低い場合は、位相比較器11−チャージポンプ12のペアは、出力ノードのキャパシタ13に電荷を注入する(出力ノードの電位VCNTをあげる)方向に動作する。逆に、外部生成クロック信号XINの周波数よりもPLL回路10の出力クロックCLKの発振周波数のほうが高い場合は、位相比較器11−チャージポンプ12のペアは、出力ノードのキャパシタ13から電荷を引き抜く(ノードの電位VCNTを下げる)方向に動作する。
【0029】
VCO(電圧制御発振器)14は、チャージポンプ12の出力電圧(出力ノードの電位VCNT)に従った周波数を出力する発振器である。VCO14は、出力ノードの電位VCNTの電位が高ければ、発振周波数が高くなり、出力ノードの電位VCNTの電位が低ければ発振周波数が低くなる発振信号を出力する。この発振信号は、内部クロック信号SCLKとして出力され、マイクロコンピュータ内のCPU(図示せず)などの各回路で使用される。VCO14から出力される内部クロック信号SCLKは分周器15でn(この場合はn=2)分周された後、位相比較器11に入力され、外部生成クロック信号XINと位相が比較される。
【0030】
このフィードバックループでは、VCO14の出力をn分周する分周器15を挿入しているので、位相比較器11では、VCO14の出力の1/nの周波数の信号を比較信号として、外部生成クロック信号XINと比較することになり、これらの位相が同期されることになる。この結果、VCO14からは、最終的には、外部生成クロック信号XINのn(この場合n=2)逓倍の周波数で同期発振した内部クロック信号SCLKを取得することができる。
【0031】
図3のグラフはVCO14の一般的な特性を示すものである。この特性で、注目すべきは、VCO14は出力ノードの電位VCNTがグランドレベルになったとしても、低い特定の周波数fcで発振を続けているという点である。このため、外部生成クロック信号XINが停止したとしても、PLL回路10からは、特定の周波数fcの発振信号を取り出すことができる。
【0032】
カウンタ30は、この場合、2ビットのカウンタで構成されている。カウンタ30は、内部クロック信号SCLKをカウントソースとしてカウントアップを行うと共に、XINのエッジまたはシステムリセット時にアサートされる初期化信号INITIALによってクリアされる。なお、この場合は、VCO14は、外部生成クロック信号XINの2逓倍の内部クロック信号SCLKを生成し、またエッジ検出回路20は、外部生成クロック信号XINの両エッジを検出しているので、エッジ検出回路20からのエッジ検出信号XEDGE(CT_CLR)は、内部クロック信号SCLKの1周期に1回発生する。
【0033】
外部生成クロック信号停止検出部50は、アンド回路51、オア回路52、フリップフロップ53を備えている。アンド回路51はカウンタ30の2ビットの出力の論理積をとり、オア回路52とフリップフロップ53はアンド回路51から出力される1ビットの情報を一時的に記憶するとともに外部クロック停止検出信号CT11を出力する。この場合、カウンタ30の2ビット出力が双方とも“H”になったとき、外部クロック停止検出信号CT11を出力するものである。そして、この外部クロック停止検出信号CT11が発生されたときに、外部生成クロック信号XINの停止と判定される。外部生成クロック停止回路200は、この外部クロック停止検出信号CT11を利用してPLL回路10に“L”を入力し、外部生成クロック信号XINを完全に停止させることを可能としている。さらに、この外部クロック停止検出信号CT11を利用して、CPUからリード可能な状態フラグをセットしたり、あるいはCPUに対してリセット割り込みを発生させることで、外部生成クロック信号XINの発振が停止したことをCPUに知らせることができる。
【0034】
つぎに、図4および図5に示すタイムチャートに従って図1および図2の各部の動作を説明する。まず、図4に従って、外部生成クロック信号XINが正常に発振を行っているときの動作を説明する。
【0035】
図4に示すように、VCO14は、外部生成クロック信号XINの2逓倍の内部クロック信号SCLKを生成し、またエッジ検出回路20は、外部生成クロック信号XINの両エッジを検出しているので、エッジ検出回路20からのエッジ検出信号XEDGE(CT_CLR)は、内部クロック信号SCLKの1周期に1回発生している。よって、カウンタ30は、00→01の遷移を行い、01になった直後にクリアされる動作を繰り返す。外部クロック停止検出信号CT11は、カウンタ30の値が「11」になったときに“H”となる信号であるので、図4に示す外部生成クロック信号XINの正常時は、常に“L”である。
【0036】
つぎに、図5に従って外部生成クロック信号XINが停止したときの動作を説明する。外部生成クロック信号XINの発振が停止すると、チャージポンプ12は出力ノードの電位VCNTの電位を低下させる方向に動作するが、図2のグラフに示したように、出力ノードの電位VCNTの電位が仮にグランドレベルまで下がったとしても、内部クロック信号SCLKが停止することはなく、カウンタ30はカウントアップを続ける。そして、ある一定の時間の後には(この場合はXIN停止後3クロック経過後)、カウンタ出力が「11」になり、外部クロック停止検出信号が“H”となる。
【0037】
そして、アンド回路51から外部クロック停止検出信号CT11の出力“H”が発生すると、オア回路52とフリップフロップ53によってこの出力“H”が一時的に記憶される状態を維持するとともに外部クロック停止検出信号CT11を出力する。そして、ノット回路60によってこの外部クロック停止検出信号CT11の出力“H”を反転させて出力“L”をナンド回路70に入力する。これにより、ナンド回路70は”H“の出力を維持し、ノット回路80は“L”の出力を維持することとなる。
【0038】
このように、外部クロック停止検出信号CT11の出力“H”が発生すると、PLL回路10にはノット回路80からの“L”が入力される状態が続くこととなる。これによって、PLL回路10へは外部生成クロック信号XINの入力がなされないこととなる。そして、マイコンの内部クロックへはVCO14からn逓倍の内部クロック信号SCLKを出力する。
【0039】
また、この外部クロック停止検出信号CT11を利用して、CPUからリード可能な状態フラグをセットしたり、あるいはCPUに対してリセット割り込みを発生させることで、外部生成クロック信号XINが停止したことをCPUに知らせることができる。
【0040】
さらに、この後外部生成クロック信号XINが異常発振した場合であっても外部生成クロック信号XINはPLL回路10に入力されないためPLL回路10は外部生成クロック信号XINの影響を受けることなく安定して特定の周波数fcの内部クロック信号SCLKを発振することができる。また、内部クロック信号SCLKが発振を続けているため、外部生成クロック信号XINが停止しても、特に別の内部クロック信号に切り換えることなく、CPUは動作を続けることができ、適切なフェールセーフ措置をとることができる。
【0041】
上記の実施の形態1では、XIN停止後3クロック経過後に、外部クロック停止検出信号CT11を発生させる例を示したが、カウンタのビット数をもっと増やし、外部クロック停止検出信号CT11信号を生成するタイミングを任意に選択することができるような構成にしておけば、4,5,6,…といった任意のクロック数を待ち時間として設定することも可能となる。
【0042】
なお、図示しないCPU内のソフトウェアによって状態フラグを参照あるいは割り込みにより外部生成クロック停止回路200のナンド回路70へ制御信号を生ずる構成としてXINの入力を停止させてもよい。
【0043】
さらに、図示しない外部端子からの信号によって状態フラグを参照あるいは割り込みにより外部生成クロック停止回路200のナンド回路70へ制御信号を生ずる構成としてXINの入力を停止させてもよい。
【0044】
このようにこの実施の形態1によれば、発振停止検出回路100から外部クロック停止検出信号CT11が出力された場合に外部生成クロック停止回路200から“L”を出力し続けるため、外部生成クロック信号XINがPLL回路10に入力されることはない。したがってPLL回路10の電圧制御発振器(VCO)14は外部生成クロック信号XINの影響を受けることなく安定した状態で特定の周波数fcの内部クロック信号SCLKを出力することができる。
【0045】
また、PLL内蔵マイクロコンピュータにおいて、外部生成クロック信号XINが停止した場合ノット回路60,ナンド回路70,ノット回路80という極めて簡単な構成および小さな専有面積で、外部生成クロック信号XINのPLL回路10への入力を停止し続けることができる。
【0046】
また、位相同期および逓倍信号生成という本来のPLLの機能を損なうことなく、外部生成クロック信号XINのPLL回路10への入力を停止し続けることができる。さらに、内部に別の基準発信源を設けることなく、外部生成クロック信号XINが停止したときのフェールセーフ措置を安定した状態で行うことができる。
【0047】
実施の形態2.
図6を用いてこの発明の実施の形態2について説明する。図6は、この発明の実施の形態2にかかるPLL内蔵マイクロコンピュータにおける発振停止検出回路の構成を示すブロック図であり、図6の各構成要素のうち図1および図2に示す実施の形態1のPLL内蔵マイクロコンピュータにおける発振停止検出回路と同一の機能を達成する構成要素については同一番号を付しており、重複する説明は省略する。
【0048】
この図6に示す発振停止検出回路101は、PLLが内蔵されるワンチップマイクロコンピュータに搭載される。図6において発振停止検出回路101はソースまたはドレインの一方が接地されているトランジスタ90を備えている。トランジスタ90は、外部生成クロック信号XINが停止して外部クロック停止検出信号CT11から“H”が出力されるとこの信号を反転させて信号“L”を出力する。また、この信号“L”はPLL回路10のキャパシタ13に入力される構成としている。
【0049】
したがって、外部生成クロック信号XINが停止して外部生成クロック信号停止検出部50から外部クロック停止検出信号CT11の出力“H”が発生すると、PLL回路10のキャパシタ13にはトランジスタ90から信号“L”が入力される状態が続くこととなり、VCO14は出力ノードの電位VCNTの電位変化による影響を受けないこととなる。これによってPLL回路10は外部生成クロック信号XINのクロック周波数が高くなった場合でもその影響を受けないこととなり、特定の周波数fcの内部クロック信号SCLKを安定して出力することができることとなる。
【0050】
なお、図示しないCPU内のソフトウェアによって状態フラグを参照あるいは割り込みによりトランジスタ90へ制御信号を生ずる構成としてトランジスタ90の機能を停止させてもよい。
【0051】
さらに、図示しない外部端子からの信号によって状態フラグを参照あるいは割り込みによりトランジスタ90へ制御信号を生ずる構成としてトランジスタ90の機能を停止させてもよい。
【0052】
このように、実施の形態2によれば、発振停止検出回路101から外部クロック停止検出信号CT11が出力された場合にトランジスタ90から“L”を出力し続けるため、PLL回路10のVCO14はXINの影響を受けることなく安定した状態で特定の周波数fcの内部クロック信号SCLKを出力することができる。
【0053】
また、PLL内蔵マイクロコンピュータにおいて、外部生成クロック信号XINが停止した場合、PLL内蔵マイクロコンピュータがトランジスタ90を備えるという極めて簡単な構成および小さな専有面積で、VCO14が出力ノードの電位VCNTの電位変化による影響を受けない状態を続けることができる。
【0054】
また、位相同期および逓倍信号生成という本来のPLLの機能を損なうことなく、VCO14が出力ノードの電位VCNTの電位変化による影響を受けない状態を続けることができる。さらに、内部に別の基準発信源を設けることなく、外部生成クロック信号XINが停止したときのフェールセーフ措置を安定した状態で行うことができる。
【0055】
【発明の効果】
以上説明したとおり、この発明によれば、簡単な構成でかつ小さな専有回路面積で、外部発振回路の停止を検出した際、外部発振回路からマイクロコンピュータへの外部生成クロック信号XINの入力を停止させため、安定した状態でフェールセーフ措置をとることができるという効果を奏する。
【図面の簡単な説明】
【図1】この発明の実施の形態1にかかるPLL内蔵マイクロコンピュータの構成を示すブロック図である。
【図2】発振停止検出回路を示す回路ブロック図である。
【図3】VCO入力VCNTとVCO出力の関係を示すグラフである。
【図4】外部生成クロック信号XINが正常に発振を行っているときの各部の動作を示すタイムチャートである。
【図5】外部生成クロック信号XINが停止したときの各部の動作を示すタイムチャートである。
【図6】この発明の実施の形態2にかかるPLL内蔵マイクロコンピュータの構成を示すブロック図である。
【符号の説明】
10 PLL回路、11 位相比較器、12 チャージポンプ、13 キャパシタ、14 電圧制御発振器(VCO)、15 分周器、20 エッジ検出回路、21 遅延回路、22 排他的論理和ゲート、30 カウンタ、40,52 オア回路、50 外部生成クロック信号停止検出部、51 アンド回路、53 フリップフロップ 60,80 ノット回路、70 ナンド回路、90 トランジスタ90、100 発振停止検出回路、200 外部生成クロック停止回路、CT11 外部クロック停止検出信号、SCLK 内部クロック信号、XIN 外部生成クロック信号。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a microcomputer with a built-in PLL that is connected to the outside of a microcomputer and that does not receive oscillation from the external oscillation circuit when detecting that oscillation of an external oscillation circuit serving as a clock source of the microcomputer has stopped. Things.
[0002]
[Prior art]
In microcomputer systems used for machines related to human life such as automobiles, the concept of fail-safe as well as high reliability is important. Fail safe is to detect when a part of the system becomes abnormal and to switch to an appropriate auxiliary means. As one of such abnormal situations, there is an oscillation stop of an external oscillation circuit of a microcomputer (hereinafter referred to as a microcomputer). The oscillation stop of the external oscillation circuit occurs, for example, when the external oscillation circuit is opened or short-circuited.
[0003]
The microcomputer detects when such external oscillation circuit oscillation stops and switches the internal clock from the connection terminal side of the external oscillation circuit to the internal oscillation circuit such as the internal ring oscillator. Have been.
[0004]
This oscillation stop detection circuit is built in the microcomputer chip. The oscillation stop detection circuit detects the edge of the externally generated clock signal input from the connection terminal of the external oscillation circuit, and charges and discharges in response to this detection. A clock edge detection circuit for generating a control pulse signal is provided.
[0005]
The oscillation stop detection circuit includes an operation of gradually charging a charging circuit having an RC time constant, and a charging / discharging circuit for performing a discharging operation by a charging / discharging control pulse signal. When the externally generated clock signal oscillates normally, discharging by the charge / discharge control pulse signal is periodically performed before charging is completed. However, when the externally generated clock signal stops, the charge / discharge control pulse signal is not generated, so that the discharge is not performed in the charge / discharge circuit, and the charging is completed. The charge / discharge circuit detects the completion of the charging as the oscillation stop of the external oscillation circuit, and generates an oscillation stop interrupt or the like in response to the detection.
[0006]
Furthermore, the switching unit switches the main clock of the microcomputer from the externally generated clock signal to the oscillation signal of the internal ring oscillator by the oscillation stop interrupt signal, thereby enabling the microcomputer to operate even after the externally generated clock signal is stopped. I have. This makes it possible to execute necessary fail-safe processing.
[0007]
The charge / discharge circuit used in this conventional oscillation stop detection circuit is composed of a resistor R and a capacitor C. In particular, the capacitor C occupies a large area in layout, which hinders a reduction in chip area. . Further, an extra ring oscillator circuit as an internally generated clock oscillation source, which is used only when the oscillation stop is detected, is required. In addition, since the time constant due to RC greatly changes due to fluctuations in the semiconductor manufacturing process and operating conditions, it is necessary to tune the design with extreme care in order to detect an accurate oscillation stop. , Which can easily cause design errors.
[0008]
The abnormal oscillation detection circuit described in Patent Document 1 includes a reference oscillation circuit section, a counter, a storage circuit section, and a comparison circuit section, and detects an abnormality in the oscillation frequency of the system clock whose oscillation frequency has been changed. I have.
[0009]
In this abnormal oscillation detection circuit, a reference oscillation circuit section generates and outputs a reference clock having an oscillation frequency set in advance. The counter counts the reference clock signal output from the reference oscillation circuit unit, outputs the count value at each time, inputs the system clock signal, and clears the count value based on the system clock signal. .
[0010]
Further, a prescribed value corresponding to the oscillation frequency of the reference clock signal is preset in the storage circuit unit, and the comparison circuit unit compares the count value output from the counter with the prescribed value stored in the storage circuit unit. And outputs a detection signal based on the comparison result. Then, the abnormality of the oscillation frequency is detected by the detection signal.
[0011]
[Patent Document 1]
JP-A-8-76877 (pages 1, 3, 7)
[0012]
[Problems to be solved by the invention]
As described above, in the former conventional technique, there is a problem that the time constant due to RC varies greatly depending on the semiconductor manufacturing process and use conditions. In addition, there is a problem that the layout area increases because a large CR time constant is required and a dedicated internally generated clock generation source must be built in.
[0013]
Further, according to the latter conventional technique, the circuit configuration for detecting an abnormality in the oscillation frequency becomes large, the occupied circuit area increases, and it becomes difficult to reduce the area of the chip. Furthermore, there is no disclosure of a method of stopping oscillation of a clock whose oscillation frequency has been changed after detecting an abnormality in the oscillation frequency.
[0014]
The present invention has been made in view of the above, and has a simple configuration and a small occupied circuit area, and when a stop of an external oscillation circuit is detected, stopping the input of an (externally generated) clock signal from the external oscillation circuit. It is an object of the present invention to obtain a microcomputer with a built-in PLL capable of performing the following.
[0015]
[Means for Solving the Problems]
In order to solve the above-described problems and achieve the object, in a microcomputer with a built-in PLL according to the present invention, an edge detection circuit for detecting an edge of an input externally generated clock signal; A PLL circuit for synchronizing a signal with a clock signal that outputs the signal by itself and multiplying the phase-synchronized signal by n to output the signal as an internal clock signal used inside the microcomputer; A counter that performs a count operation using an internal clock signal output from a PLL circuit as a count source; and, when the output of the counter exceeds a predetermined set value, detects this as a stop of the externally generated clock signal. An externally generated clock signal stop detector that keeps outputting signals, and an external clock To between the externally generated clock stop circuit for stopping the input of the externally generated clock signal to the edge detection circuit and the PLL circuit, comprising: a the stop detection signal is outputted.
[0016]
According to the present invention, the input of the externally generated clock signal XIN from the external oscillation circuit to the microcomputer can be stopped when the stop of the external oscillation circuit is detected with a simple configuration and a small dedicated circuit area.
[0017]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, preferred embodiments of a microcomputer with a built-in PLL according to the present invention will be described in detail with reference to the accompanying drawings. The invention is not limited by the embodiment.
[0018]
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of the oscillation stop detection circuit in the microcomputer with a built-in PLL according to the first embodiment of the present invention. The oscillation stop detection circuit shown in FIG. 1 is mounted on a one-chip microcomputer having a built-in PLL.
[0019]
The oscillation stop detection circuit shown in FIG. 1 includes an oscillation stop detection circuit 100 that detects the stop of the externally generated clock signal XIN from an external oscillation circuit (not shown), a clock signal that outputs the externally generated clock signal XIN by itself, A PLL circuit 10 that synchronizes the phase and multiplies the phase-synchronized signal by n; and an external generation circuit that stops the externally generated clock signal XIN input from the external oscillation circuit to the oscillation stop detection circuit 100 when the external oscillation circuit is detected to be stopped. It comprises a clock stop circuit 200.
[0020]
The externally generated clock stop circuit 200 includes a knot circuit 60 for inverting the external clock stop detection signal CT11 output from the oscillation stop detection circuit 100 when the externally generated clock signal XIN stops, an externally generated clock signal XIN and the knot circuit 60. And a NOT circuit 80 for inverting a signal output from the NAND circuit 70.
[0021]
When the externally generated clock signal XIN is stopped and the output “H” of the external clock stop detection signal CT11 is generated, the knot circuit 60 inverts the output “H” and inputs the output “L” to the NAND circuit 70. . On the other hand, when the externally generated clock signal XIN is operating and the output of the external clock stop detection signal CT11 is “L”, the output “L” is inverted and the output “H” is input to the NAND circuit 70.
[0022]
The NAND circuit 70 outputs “H” regardless of the input signal from the other externally generated clock signal XIN when the output “L” from the knot circuit 60 is input. When "H" is output from, this is inverted and "L" is output. On the other hand, when the output “H” from the knot circuit 60 is input to the NAND circuit 70, the NAND circuit 70 inverts the input signal from the externally generated clock signal XIN and outputs it.
[0023]
Therefore, when the external clock stop detection signal CT11 is generated, "L" is input to the PLL circuit 10, and the externally generated clock signal XIN is not completely input.
[0024]
FIG. 2 is a diagram showing a configuration of the oscillation stop detection circuit 100 in the microcomputer with a built-in PLL according to the present invention. The oscillation stop detection circuit 100 shown in FIG. 2 detects an edge of an externally generated clock signal XIN input from a connection terminal of the external oscillation circuit, and outputs an edge detection signal XEDGE, and an edge detection signal XEDGE. And an internal circuit signal SCLK output from the VCO 14 of the PLL circuit 10 is input to a count clock terminal as a count source, and an output CT_CLR of the OR circuit 40 is input to a clear terminal. And an AND circuit 51 for ANDing a 2-bit output of the counter 30 with an OR circuit 52 and a flip-flop 53 for temporarily storing 1-bit information output by the AND. And a clock signal stop detection unit 50. The externally generated clock signal XIN input from the connection terminal of the external oscillation circuit is input to the PLL circuit 10, and the internal clock signal SCLK output from the PLL circuit 10 is input to the counter 30.
[0025]
In this case, the edge detection circuit 20 has a delay circuit 21 for delaying the externally generated clock signal XIN, and an exclusive OR gate 22 for obtaining an exclusive OR of the externally generated clock signal XIN and the output of the delay circuit 21. With these configurations, both edges (falling edge and rising edge) of the externally generated clock signal XIN are detected, and an edge detection signal XEDGE which becomes, for example, "H" when both edges are detected is output.
[0026]
The OR circuit 40 performs a logical OR operation of the edge detection signal XEDGE and the initialization signal INITIAL asserted at the time of system reset, and inputs the output CT_CLR to the clear terminal of the counter 30.
[0027]
The PLL circuit 10 includes a phase comparator 11, a charge pump 12, a capacitor 13, a VCO (voltage controlled oscillator) 14, and a frequency divider 15. The phase comparator 11 compares the phase of the output clock CLK output from the frequency divider 15 of the PLL circuit 10 with the phase of the externally generated clock signal XIN input from the connection terminal of the external oscillation circuit. The phase comparator 11 outputs a phase advance signal or a phase delay signal according to the phase shift to the charge pump 12. The charge pump 12 charges / discharges the capacitor 13 with the phase lead / lag signal.
[0028]
As a result of the phase comparison by the phase comparator 11, when the oscillation frequency of the output clock CLK of the PLL circuit 10 is lower than the frequency of the externally generated clock signal XIN, the pair of the phase comparator 11 and the charge pump 12 In the direction of injecting charges into the capacitor 13 (increasing the potential VCNT of the output node). Conversely, when the oscillation frequency of the output clock CLK of the PLL circuit 10 is higher than the frequency of the externally generated clock signal XIN, the pair of the phase comparator 11 and the charge pump 12 extracts the charge from the capacitor 13 at the output node ( It operates in the direction of lowering the potential VCNT of the node).
[0029]
The VCO (voltage controlled oscillator) 14 is an oscillator that outputs a frequency according to the output voltage of the charge pump 12 (the potential VCNT at the output node). The VCO 14 outputs an oscillation signal whose oscillation frequency increases when the potential of the output node potential VCNT is high, and whose oscillation frequency decreases when the potential of the output node potential VCNT is low. This oscillation signal is output as an internal clock signal SCLK, and is used in each circuit such as a CPU (not shown) in the microcomputer. The internal clock signal SCLK output from the VCO 14 is frequency-divided by n (n = 2 in this case) by the frequency divider 15 and then input to the phase comparator 11, where the phase is compared with the externally generated clock signal XIN.
[0030]
In this feedback loop, a frequency divider 15 for dividing the output of the VCO 14 by n is inserted. Therefore, the phase comparator 11 uses a signal having a frequency of 1 / n of the output of the VCO 14 as a comparison signal and outputs an externally generated clock signal. XIN will be compared and these phases will be synchronized. As a result, the internal clock signal SCLK synchronously oscillated at the frequency of n (in this case, n = 2) times the externally generated clock signal XIN can be finally obtained from the VCO 14.
[0031]
The graph of FIG. 3 shows general characteristics of the VCO 14. It should be noted that the VCO 14 continues to oscillate at a low specific frequency fc even when the potential VCNT of the output node becomes the ground level. Therefore, even if the externally generated clock signal XIN is stopped, an oscillation signal having a specific frequency fc can be extracted from the PLL circuit 10.
[0032]
In this case, the counter 30 is configured by a 2-bit counter. The counter 30 counts up using the internal clock signal SCLK as a count source, and is cleared by an edge of XIN or an initialization signal INITIAL asserted at the time of system reset. In this case, the VCO 14 generates an internal clock signal SCLK that is twice the externally generated clock signal XIN, and the edge detection circuit 20 detects both edges of the externally generated clock signal XIN. The edge detection signal XEDGE (CT_CLR) from the circuit 20 is generated once in one cycle of the internal clock signal SCLK.
[0033]
The externally generated clock signal stop detection unit 50 includes an AND circuit 51, an OR circuit 52, and a flip-flop 53. The AND circuit 51 calculates the logical product of the two-bit output of the counter 30, and the OR circuit 52 and the flip-flop 53 temporarily store the 1-bit information output from the AND circuit 51 and generate the external clock stop detection signal CT11. Output. In this case, when both the 2-bit outputs of the counter 30 become "H", the external clock stop detection signal CT11 is output. When the external clock stop detection signal CT11 is generated, it is determined that the externally generated clock signal XIN stops. The externally generated clock stop circuit 200 uses this external clock stop detection signal CT11 to input “L” to the PLL circuit 10 to completely stop the externally generated clock signal XIN. Further, the oscillation of the externally generated clock signal XIN is stopped by using the external clock stop detection signal CT11 to set a readable state flag from the CPU or to generate a reset interrupt to the CPU. Can be notified to the CPU.
[0034]
Next, the operation of each unit in FIGS. 1 and 2 will be described according to the time charts shown in FIGS. First, an operation when the externally generated clock signal XIN oscillates normally will be described with reference to FIG.
[0035]
As shown in FIG. 4, the VCO 14 generates an internal clock signal SCLK that is twice the externally generated clock signal XIN, and the edge detection circuit 20 detects both edges of the externally generated clock signal XIN. The edge detection signal XEDGE (CT_CLR) from the detection circuit 20 is generated once in one cycle of the internal clock signal SCLK. Therefore, the counter 30 makes a transition from 00 to 01, and repeats the operation of being cleared immediately after the transition to 01. Since the external clock stop detection signal CT11 is a signal which becomes “H” when the value of the counter 30 becomes “11”, it is always “L” when the externally generated clock signal XIN shown in FIG. 4 is normal. is there.
[0036]
Next, the operation when the externally generated clock signal XIN stops will be described with reference to FIG. When the oscillation of the externally generated clock signal XIN stops, the charge pump 12 operates in the direction of decreasing the potential of the potential VCNT of the output node. However, as shown in the graph of FIG. Even if the voltage drops to the ground level, the internal clock signal SCLK does not stop, and the counter 30 continues counting up. Then, after a certain time (in this case, three clocks after XIN stop), the counter output becomes “11” and the external clock stop detection signal becomes “H”.
[0037]
When the output “H” of the external clock stop detection signal CT11 is generated from the AND circuit 51, the OR circuit 52 and the flip-flop 53 maintain the state in which the output “H” is temporarily stored, and detect the external clock stop. The signal CT11 is output. Then, the output “H” of the external clock stop detection signal CT11 is inverted by the knot circuit 60 and the output “L” is input to the NAND circuit 70. As a result, the NAND circuit 70 maintains the "H" output, and the knot circuit 80 maintains the "L" output.
[0038]
As described above, when the output “H” of the external clock stop detection signal CT11 occurs, the state where the “L” from the knot circuit 80 is input to the PLL circuit 10 continues. As a result, the externally generated clock signal XIN is not input to the PLL circuit 10. The VCO 14 outputs an internal clock signal SCLK multiplied by n to the internal clock of the microcomputer.
[0039]
The external clock stop detection signal CT11 is used to set a readable state flag from the CPU, or to generate a reset interrupt to the CPU to notify the CPU that the externally generated clock signal XIN has stopped. You can let me know.
[0040]
Furthermore, even if the externally generated clock signal XIN oscillates abnormally thereafter, the externally generated clock signal XIN is not input to the PLL circuit 10, so that the PLL circuit 10 is stably specified without being affected by the externally generated clock signal XIN. The internal clock signal SCLK having the frequency fc can be oscillated. Further, since the internal clock signal SCLK continues to oscillate, even if the externally generated clock signal XIN stops, the CPU can continue to operate without switching to another internal clock signal, and appropriate fail-safe measures can be taken. Can be taken.
[0041]
In the above-described first embodiment, an example has been described in which the external clock stop detection signal CT11 is generated three clocks after the XIN stop, but the number of bits of the counter is further increased to generate the external clock stop detection signal CT11 signal. Can be arbitrarily selected, an arbitrary number of clocks such as 4, 5, 6,... Can be set as the waiting time.
[0042]
The input of XIN may be stopped by a configuration in which a control signal is generated to the NAND circuit 70 of the externally generated clock stop circuit 200 by referring to the state flag or by interruption by software in the CPU (not shown).
[0043]
Further, the input of XIN may be stopped by referring to the status flag by a signal from an external terminal (not shown) or generating a control signal to the NAND circuit 70 of the externally generated clock stop circuit 200 by interruption.
[0044]
According to the first embodiment, when the external clock stop detection signal CT11 is output from the oscillation stop detection circuit 100, the externally generated clock stop circuit 200 continues to output “L”. XIN is not input to the PLL circuit 10. Therefore, voltage-controlled oscillator (VCO) 14 of PLL circuit 10 can output internal clock signal SCLK of specific frequency fc in a stable state without being affected by externally generated clock signal XIN.
[0045]
Further, in the microcomputer with a built-in PLL, when the externally generated clock signal XIN is stopped, the externally generated clock signal XIN is supplied to the PLL circuit 10 with a very simple configuration of the knot circuit 60, the NAND circuit 70, and the knot circuit 80 and a small occupied area. You can keep stopping the input.
[0046]
Further, the input of the externally generated clock signal XIN to the PLL circuit 10 can be continuously stopped without impairing the original functions of the PLL such as the phase synchronization and the generation of the multiplied signal. Further, without providing another reference transmission source inside, fail-safe measures when the externally generated clock signal XIN stops can be performed in a stable state.
[0047]
Embodiment 2 FIG.
Embodiment 2 of the present invention will be described with reference to FIG. FIG. 6 is a block diagram showing a configuration of an oscillation stop detection circuit in a microcomputer with a built-in PLL according to a second embodiment of the present invention. Among the components shown in FIG. 6, the first embodiment shown in FIGS. Components that achieve the same function as the oscillation stop detecting circuit in the PLL built-in microcomputer of FIG.
[0048]
The oscillation stop detection circuit 101 shown in FIG. 6 is mounted on a one-chip microcomputer having a built-in PLL. 6, the oscillation stop detection circuit 101 includes a transistor 90 having one of a source and a drain grounded. When the externally generated clock signal XIN stops and the external clock stop detection signal CT11 outputs “H”, the transistor 90 inverts this signal and outputs a signal “L”. Further, the signal “L” is configured to be input to the capacitor 13 of the PLL circuit 10.
[0049]
Therefore, when the externally generated clock signal XIN is stopped and the output “H” of the external clock stop detection signal CT11 is generated from the externally generated clock signal stop detection unit 50, the signal “L” is output from the transistor 90 to the capacitor 13 of the PLL circuit 10. Continues, and the VCO 14 is not affected by the potential change of the potential VCNT of the output node. As a result, even if the clock frequency of the externally generated clock signal XIN is increased, the PLL circuit 10 is not affected by the increase, and can stably output the internal clock signal SCLK having the specific frequency fc.
[0050]
The function of the transistor 90 may be stopped by referring to the status flag by software in the CPU (not shown) or generating a control signal to the transistor 90 by interruption.
[0051]
Further, the function of the transistor 90 may be stopped by referring to a state flag by a signal from an external terminal (not shown) or generating a control signal to the transistor 90 by interruption.
[0052]
As described above, according to the second embodiment, when the external clock stop detection signal CT11 is output from the oscillation stop detection circuit 101, the transistor 90 continues to output “L”, so that the VCO 14 of the PLL circuit 10 An internal clock signal SCLK having a specific frequency fc can be output in a stable state without being affected.
[0053]
When the externally generated clock signal XIN is stopped in the microcomputer with a built-in PLL, the VCO 14 has an extremely simple configuration in which the microcomputer with a built-in PLL has a transistor 90 and has a small occupied area. You can continue to not receive.
[0054]
Further, the VCO 14 can be kept in a state where the VCO 14 is not affected by the potential change of the potential VCNT of the output node without impairing the original functions of the PLL such as the phase synchronization and the generation of the multiplied signal. Furthermore, the fail-safe measure when the externally generated clock signal XIN stops can be performed in a stable state without providing another reference transmission source inside.
[0055]
【The invention's effect】
As described above, according to the present invention, when the stop of the external oscillation circuit is detected with a simple configuration and with a small dedicated circuit area, the input of the externally generated clock signal XIN from the external oscillation circuit to the microcomputer is stopped. Therefore, there is an effect that a fail-safe measure can be taken in a stable state.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a microcomputer with a built-in PLL according to a first embodiment of the present invention;
FIG. 2 is a circuit block diagram illustrating an oscillation stop detection circuit.
FIG. 3 is a graph showing a relationship between a VCO input VCNT and a VCO output.
FIG. 4 is a time chart showing the operation of each unit when the externally generated clock signal XIN oscillates normally.
FIG. 5 is a time chart showing the operation of each unit when the externally generated clock signal XIN stops.
FIG. 6 is a block diagram illustrating a configuration of a microcomputer with a built-in PLL according to a second embodiment of the present invention;
[Explanation of symbols]
Reference Signs List 10 PLL circuit, 11 phase comparator, 12 charge pump, 13 capacitor, 14 voltage controlled oscillator (VCO), 15 divider, 20 edge detection circuit, 21 delay circuit, 22 exclusive OR gate, 30 counter, 40, 52 OR circuit, 50 externally generated clock signal stop detection section, 51 AND circuit, 53 flip-flop 60, 80 knot circuit, 70 NAND circuit, 90 transistor 90, 100 oscillation stop detection circuit, 200 externally generated clock stop circuit, CT11 external clock Stop detection signal, SCLK internal clock signal, XIN externally generated clock signal.

Claims (7)

入力された外部生成クロック信号のエッジを検出するエッジ検出回路と、
入力された外部生成クロック信号を自ら出力するクロック信号と位相同期しかつ、該位相同期した信号をn逓倍してマイクロコンピュータ内部で使用する内部クロック信号として出力するPLL回路と、
前記エッジ検出回路の出力によってクリアされ、前記PLL回路から出力される内部クロック信号をカウントソースとしてカウント動作を行うカウンタと、
前記カウンタの出力が所定の設定値を越えると、これを前記外部生成クロック信号の停止として検出し、外部クロック停止検出信号を出力し続ける外部生成クロック信号停止検出部と、
外部クロック停止検出信号が出力されている間、前記エッジ検出回路および前記PLL回路への外部生成クロック信号の入力を停止させる外部生成クロック停止回路と、
を備えることを特徴とするPLL内蔵マイクロコンピュータ。
An edge detection circuit for detecting an edge of the input externally generated clock signal;
A PLL circuit for synchronizing the input externally generated clock signal with a clock signal to be output by itself, multiplying the phase-synchronized signal by n, and outputting the multiplied signal as an internal clock signal used inside the microcomputer;
A counter that is cleared by an output of the edge detection circuit and performs a count operation using an internal clock signal output from the PLL circuit as a count source;
When the output of the counter exceeds a predetermined set value, an externally generated clock signal stop detection unit that detects this as a stop of the externally generated clock signal and continues to output an external clock stop detection signal,
An externally generated clock stop circuit that stops inputting an externally generated clock signal to the edge detection circuit and the PLL circuit while the external clock stop detection signal is being output;
A microcomputer with a built-in PLL, comprising:
入力された外部生成クロック信号のエッジを検出するエッジ検出回路と、
入力された外部生成クロック信号を自ら出力するクロック信号と位相同期しかつ、該位相同期した信号をn逓倍してマイクロコンピュータ内部で使用する内部クロック信号として出力するPLL回路と、
前記エッジ検出回路の出力によってクリアされ、前記PLL回路から出力される内部クロック信号をカウントソースとしてカウント動作を行うカウンタと、
前記カウンタの出力が所定の設定値を越えると、これを前記外部生成クロック信号の停止として検出し、外部クロック停止検出信号を出力し続ける外部生成クロック信号停止検出部と、
外部クロック停止検出信号が出力されている間、前記位相同期した信号を接地電位にする接地電位提供部と、
を備えることを特徴とするPLL内蔵マイクロコンピュータ。
An edge detection circuit for detecting an edge of the input externally generated clock signal;
A PLL circuit for synchronizing the input externally generated clock signal with a clock signal to be output by itself, multiplying the phase-synchronized signal by n, and outputting the multiplied signal as an internal clock signal used inside the microcomputer;
A counter that is cleared by an output of the edge detection circuit and performs a count operation using an internal clock signal output from the PLL circuit as a count source;
When the output of the counter exceeds a predetermined set value, an externally generated clock signal stop detection unit that detects this as a stop of the externally generated clock signal and continues to output an external clock stop detection signal,
While the external clock stop detection signal is being output, a ground potential providing unit that sets the phase-synchronized signal to a ground potential,
A microcomputer with a built-in PLL, comprising:
前記外部クロック停止検出信号によってリセット割り込みを発生させることを特徴とする請求項1または2に記載のPLL内蔵マイクロコンピュータ。3. The microcomputer with a built-in PLL according to claim 1, wherein a reset interrupt is generated by the external clock stop detection signal. 前記外部クロック停止検出信号によって、CPUが読み出し可能な所定の状態フラグをセットすることを特徴とする請求項1〜3のいずれか一つに記載のPLL内蔵マイクロコンピュータ。4. The microcomputer with a built-in PLL according to claim 1, wherein a predetermined state flag readable by a CPU is set by the external clock stop detection signal. 前記外部生成クロック信号停止検出部での設定値は、任意の値に設定可能であることを特徴とする請求項1〜4のいずれか一つに記載のPLL内蔵マイクロコンピュータ。The microcomputer with a built-in PLL according to any one of claims 1 to 4, wherein a set value in the externally generated clock signal stop detection unit can be set to an arbitrary value. 前記外部生成クロック停止回路を用いるか否かの選択を行うことができるソフトウェアまたは外部端子をさらに備えることを特徴とする請求項1、3〜5のいずれか一つに記載のPLL内蔵マイクロコンピュータ。The microcomputer with a built-in PLL according to any one of claims 1 to 3, further comprising software or an external terminal capable of selecting whether to use the externally generated clock stop circuit. 前記接地電位提供部を用いるか否かの選択を行うことができるソフトウェアまたは外部端子をさらに備えることを特徴とする請求項2〜5のいずれか一つに記載のPLL内蔵マイクロコンピュータ。The microcomputer with a built-in PLL according to any one of claims 2 to 5, further comprising software or an external terminal capable of selecting whether or not to use the ground potential providing unit.
JP2003133546A 2003-05-12 2003-05-12 Microcomputer with built-in pll Pending JP2004334794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003133546A JP2004334794A (en) 2003-05-12 2003-05-12 Microcomputer with built-in pll

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003133546A JP2004334794A (en) 2003-05-12 2003-05-12 Microcomputer with built-in pll

Publications (1)

Publication Number Publication Date
JP2004334794A true JP2004334794A (en) 2004-11-25

Family

ID=33508052

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003133546A Pending JP2004334794A (en) 2003-05-12 2003-05-12 Microcomputer with built-in pll

Country Status (1)

Country Link
JP (1) JP2004334794A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006287736A (en) * 2005-04-01 2006-10-19 Nec Electronics Corp Detection circuit and semiconductor device
US7872505B2 (en) 2008-11-27 2011-01-18 Renesas Electronics Corporation Semiconductor apparatus and anomaly detection method of the same
US10298816B2 (en) 2013-04-22 2019-05-21 Sanofi-Aventis Deutschland Gmbh Method of assembling a supplemental device comprising a camera module for an injection pen and said supplemental device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006287736A (en) * 2005-04-01 2006-10-19 Nec Electronics Corp Detection circuit and semiconductor device
US7872505B2 (en) 2008-11-27 2011-01-18 Renesas Electronics Corporation Semiconductor apparatus and anomaly detection method of the same
US7986168B2 (en) 2008-11-27 2011-07-26 Renesas Electronics Corporation Semiconductor apparatus and anomaly detection method of the same
US8081014B2 (en) 2008-11-27 2011-12-20 Renesas Electronics Corporation Apparatus for detecting presence or absence of oscillation of clock signal
US8269526B2 (en) 2008-11-27 2012-09-18 Renesas Electronics Corporation Apparatus for detecting presence or absence of oscillation of clock signal
US8466714B2 (en) 2008-11-27 2013-06-18 Renesas Electronics Corporation Apparatus for detecting presence or absence of oscillation of clock signal
US10298816B2 (en) 2013-04-22 2019-05-21 Sanofi-Aventis Deutschland Gmbh Method of assembling a supplemental device comprising a camera module for an injection pen and said supplemental device

Similar Documents

Publication Publication Date Title
KR940005934B1 (en) Phase difference detecting circuit
US5724007A (en) Adjustable lock detector for a phase-locked loop circuit
JP2682401B2 (en) Clock signal generation circuit
US6711229B1 (en) Method of synchronizing phase-locked loop, phase-locked loop and semiconductor provided with same
JP2011188077A (en) Phase locked loop circuit and control method thereof
JPH11163720A (en) Pll circuit
US8022738B2 (en) Apparatus and method for detecting the loss of an input clock signal for a phase-locked loop
US7529961B2 (en) Semiconductor device with clock failure detection circuitry
US6714083B2 (en) Lock detector and phase locked loop circuit
US6792064B2 (en) Multiple phase-locked loop circuit
JPH04105411A (en) Signal delay circuit, clock signal generating circuit and integrated circuit system
US6686803B1 (en) Integrated circuit incorporating circuitry for determining which of at least two possible frequencies is present on an externally provided reference signal and method therefor
CN107005243B (en) Phase Locked Loop with Subharmonic Lock Prevention
US6686802B2 (en) Microcomputer having built-in phase locked loop circuit synchronized with external clock and detecting an interruption of the external clock by utilizing continuous outputs of the PLL circuit
US6518848B2 (en) Oscillation stop detection circuit
US20080063131A1 (en) Phase-locked loop circuit
CN101300739A (en) PLL control circuit
US6900701B2 (en) Automatic detection, selection and configuration of clock oscillator circuitry
JP2005252447A (en) Lock detection circuit and method
JP2004334794A (en) Microcomputer with built-in pll
US6731708B1 (en) Clock signal control device
CN113193868B (en) Phase lock detection device, phase lock detection method, and phase lock loop
KR101022414B1 (en) Frequency Difference Detection-Based Fixed-State Detector and Phase-Synchronous Loop Circuits Comprising the Same
JP2006157630A (en) Pll circuit
US6177821B1 (en) Microcomputer with frequency multiplication circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060426

A131 Notification of reasons for refusal

Effective date: 20081202

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090331