JP3583683B2 - Micro control unit and control method thereof - Google Patents
Micro control unit and control method thereof Download PDFInfo
- Publication number
- JP3583683B2 JP3583683B2 JP2000082582A JP2000082582A JP3583683B2 JP 3583683 B2 JP3583683 B2 JP 3583683B2 JP 2000082582 A JP2000082582 A JP 2000082582A JP 2000082582 A JP2000082582 A JP 2000082582A JP 3583683 B2 JP3583683 B2 JP 3583683B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- signal
- detection
- power save
- power
- 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 - Fee Related
Links
Images
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
- Power Sources (AREA)
- Control Of Electrical Variables (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、マイクロコントロールユニット(MCU:Micro Control Unit)及びその制御方法に関するもので、特に車載用のMCUに係るものである。
【0002】
【従来の技術】
近年のディジタル回路技術の発展にはめざましいものがあり、多くの機器にマイクロコンピュータが搭載されている。自動車も例外ではなく、例えばエンジンの点火のタイミングや燃料噴射量等は全てマイクロコンピュータによって制御されている。
【0003】
従来、エンジン等の制御のために、自動車にはワンチップの制御ユニットとしてMCUが搭載されている。MCUには、クロックによって動作しエンジン等の制御を行うCPU(Central Processing Unit)、CPUに内部バスによって接続され、制御データ等を記憶するRAM(Random Access Memory)等の記憶装置、CPUに電源を供給する電源IC、CPUに供給するクロックを生成する発振回路等が含まれている。
【0004】
一般に、CPUは2つのモードを有しており、一方は動作モード、他方はパワーセーブモードと呼ばれるものである。動作モードは、動作に必要な高い電圧とクロックを供給されてCPUが動作している状態、すなわち自動車の場合はエンジンの駆動時である。これに対しパワーセーブモードは、CPUに動作モード時より低い電圧が供給されクロックが供給されず、CPUが動作していない状態、すなわちエンジンの停止時である。パワーセーブモードではCPUが動作していないためMCUの消費電力を大幅に抑えることが出来る。エンジン停止時における消費電力を抑えることはバッテリーの負担軽減という観点からも望ましいものである。
【0005】
このMCUをパワーセーブモードにするための信号がパワーセーブ信号(PS)である。パワーセーブ信号はMCUの外部から入力され、電源ICを介して発振回路に入力される。パワーセーブ信号を受けた発振回路はクロックの発振を停止し、また電源ICもCPUに供給する電圧を低減させることでMCUがパワーセーブモードに移行する。
【0006】
外部から入力される信号としては他にリセット信号(RS)等がある。リセット信号はCPU等の初期化の命令信号である。
【0007】
通常、自動車のエンジンの停止はイグニッションスイッチをオフにすることによって行う。この際、イグニッションスイッチからは消費電力を抑えるためにMCUをパワーセーブモードに移行させるパワーセーブ信号とリセット信号が電源ICへ送られる。すると上述したように、発振回路がクロックの発振を停止するのでMCUはパワーセーブモードへと移行する。この際、CPUへのクロックの入力は停止するが、電源ICからは通常より低い電圧が供給されている。このように、CPUへの電源の供給を完全に停止しないのは、学習制御などのために制御データをMCU内部のRAMに保持させ続けるためである。また、エンジンを始動する場合はイグニッションスイッチをオンにすることによって、パワーセーブ信号とリセット信号を解除し、MCUを動作モードに移行させることが出来る。
【0008】
このように、MCUはエンジンの状態に合わせて、動作モードとパワーセーブモードを繰り返す。そして、このMCUの動作状態を制御するのはイグニッションスイッチより送られるパワーセーブ信号とリセット信号を受ける電源ICによって行われるのが一般的である。
【0009】
ところで、イグニッションスイッチから送られたパワーセーブ信号とリセット信号のMCU内の伝送線にはノイズ除去用のフィルタ回路が付加されていることが多い。このフィルタ回路は例えば複数段にわたって設けられたフリップフロップ(F/F)であり、発振回路で生成されたクロックを受けて動作する。しかし、MCUへの電源の投入直後は、このフリップフロップの論理状態がその性質上定まらないため、MCUの状態も不安定である。すなわち、エンジンの動作/非動作に関わらずMCUがパワーセーブモードと動作モードのどちらのモードをも取り得るのである。これは、このフィルタ回路のフリップフロップは原理的に初期化できないということに起因している。つまり、外部端子からの入力信号のフィルタ通過後にこのフィルタ回路内のフリップフロップをリセットすると、入力信号そのものが解除されてしまうためである。従って、従来フィルタ回路内のフリップフロップの状態が確定するのは、MCUへ電源が投入されてからフリップフロップに数クロックが供給された後であった。
【0010】
さて、自動車の製造時に初めてバッテリー等の電源をMCUに接続した場合、上記したことから次のような問題が発生する。
【0011】
バッテリーを接続することでMCUに電源が供給されるが、エンジンが停止しているため電源ICはMCUをパワーセーブモードにしようとする。また、前述したように電源ICはパワーセーブモード時においてはその電力供給能力を落とすように設計されていることがある。しかしMCUは電源投入直後であるためパワーセーブ信号、リセット信号の伝送線に設けられたフィルタ回路内のフリップフロップの状態は確定していない。ここで、もしフィルタ回路の初期状態の出力が動作モードであった場合、エンジンが停止しているにもかかわらず発振回路はクロックを発生させる。このクロックがフィルタ回路にも供給されることでフィルタ回路内のフリップフロップの状態が確定し、この時点で改めてMCUがパワーセーブモードになる。このように、わずかの時間ではあるが発振回路がクロックを発生すると、CPUが動作するため動作電流が増加し、電源ICの供給能力をオーバーする。それにより電源ICの出力電圧が低下することで発振回路のクロックが停止し、CPUもその動作を停止するので、電源ICの電圧は復帰する。しかし、フィルタ回路内のフリップフリップの初期化ができないため、フィルタ回路出力は相変わらず動作モードにあり、発振回路はクロックを発生させる。その後はこの繰り返しで、MCUはいつまでもパワーセーブモードになれずCPUには電流が流れ続けるのでバッテリーを消耗してしまうという問題があった。
【0012】
また、MCUでは内部動作の高速化のために、アドレスを実際のデータに対して先に読み込むというシステムを取っていることがある。すなわち、実際にデータを読み込む時間に対して例えば1クロック前の時間にアドレスを周辺回路でラッチするというものである。本来、周辺回路にラッチされたアドレスは互いに排他的であるので、複数の周辺回路から同時にデータが出力されることはない。しかし、MCUへの電源投入直後はフィルタ回路内のフリップフロップの状態が確定しないため、場合によってはリセット信号が発生せず、周辺回路にラッチされたアドレスが不確定のままになることがある。すると、複数の周辺回路のデータが出力状態になり、データバスを通じて大電流が流れるのでバッテリーを消耗したり、MCUの劣化を生じさせるという問題があった。
【0013】
【発明が解決しようとする課題】
上記のように、従来のMCU及びそのパワーセーブ方法では、MCUへの電源投入直後はパワーセーブ信号、リセット信号を伝送する伝送路に付加されたフィルタ回路内のフリップフロップの状態が確定していない。更に、フィルタ回路内のフリップフリップの初期化ができないため、もしフィルタ回路出力が動作モードにあると、MCUは動作モードとパワーセーブモードを繰り返し、MCUはパワーセーブモードで安定できない。そのため、CPUには電流が流れ続けるので電池を消耗してしまうという問題があった。
【0014】
また、MCUへの電源投入直後はリセット信号のフィルタ回路内のフリップフロップの状態が確定しないため、周辺回路にラッチされたアドレスが不確定のままになることがある。そのため、複数の周辺回路のデータが出力状態になり、データバスを通じて大電流が流れるので電池を消耗したり、MCUの劣化を生じさせるという問題があった。
【0015】
この発明は、上記事情に鑑みてなされたもので、その目的は、消費電力を低減し、また性能劣化を防止できるマイクロコントロールユニット及びその制御方法を提供することにある。
【0016】
【課題を解決するための手段】
この発明の請求項1に記載したマイクロコントロールユニットは、電源電圧の低下、及び最初の電源投入を検出し、検出出力を保持する検出手段と、パワーセーブ信号が入力される第1のフィルタ手段と、前記検出手段で検出出力が保持されているときは、前記パワーセーブ信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第1のフィルタ手段の出力信号を選択する第1の選択手段と、前記第1の選択手段の出力信号に基づいて通常動作モードとパワーセーブモードが切り替え制御され、前記検出手段に保持されている検出出力が前記電源電圧の低下、及び最初の電源投入に相当する場合、モードの切り替え後に該検出出力をクリアするCPUとを具備することを特徴としている。
【0017】
また、請求項2に記載したように、請求項1記載のマイクロコントロールユニットにおいて、リセット信号が入力される第2のフィルタ手段と、前記検出手段で検出出力が保持されているときは、前記リセット信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第2のフィルタ手段の出力信号を選択する第2の選択手段と、前記第1の選択手段の出力信号と前記第2の選択手段の出力信号との論理積を取り、この論理積信号によって前記CPUのモードを切り替える論理手段とを更に具備することを特徴としている。
【0018】
更に、請求項3に記載したように、請求項1記載のマイクロコントロールユニットにおいて、クロック信号を発生して前記CPUに供給する発振器を更に具備し、前記パワーセーブ信号で前記発振器の発振動作を制御することにより、前記CPUのモードを切り替えることを特徴としている。
【0019】
請求項4に記載したように、請求項2記載のマイクロコントロールユニットにおいて、クロック信号を発生して前記CPUに供給する発振器を更に具備し、前記論理手段から出力される論理積信号で前記発振器の発振動作を制御することにより、前記CPUのモードを切り替えることを特徴としている。
【0020】
また、この発明の請求項5に記載したマイクロコントロールユニットの制御方法は、電源電圧の低下及び最初の電源投入を検出し、検出出力を保持する検出手段と、外部よりパワーセーブ信号を受ける第1のフィルタ手段と、前記第1のフィルタ手段の出力または前記パワーセーブ信号を直接選択する第1の選択手段と、前記第1の選択手段の出力を受けてクロックを生成する発振器と、前記発振器の生成するクロックを受けて自動車の駆動制御を行うCPUと、前記CPUが処理するためのデータを保持する記憶装置とを具備するマイクロコントロールユニットの制御方法において、電源電圧の低下及び最初の電源投入を検出した検出出力を、前記CPUによるクリア命令を受けるまで前記検出手段は保持し、少なくとも外部のイグニッションスイッチをオフすることによりセット、オンすることにより前記パワーセーブ信号はクリアされ、前記検出手段で検出出力が保持されているときは、前記パワーセーブ信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第1のフィルタ手段の出力信号を前記第1の選択手段は選択し、前記第1の選択手段の出力を受けて、前記パワーセーブ信号がクリアされているときに前記発振器はクロックを生成し、セットされているときにクロックを生成しないことで、前記CPUの通常動作モードとパワーセーブモードとを切り替え制御することを特徴としている。
【0021】
更に、この発明の請求項6に記載したマイクロコントロールユニットの制御方法は、電源電圧の低下及び最初の電源投入を検出し、検出出力を保持する検出手段と、外部よりパワーセーブ信号を受ける第1のフィルタ手段と、外部よりリセット信号を受ける第2のフィルタ手段と、前記第1のフィルタ手段の出力または前記パワーセーブ信号を直接選択する第1の選択手段と、前記第2のフィルタ手段の出力または前記リセット信号を直接選択する第2の選択手段と、前記第1、第2の選択手段の出力の論理積を取る論理手段と、前記論理手段の出力を受けてクロックを生成する発振器と、前記発振器の生成するクロックを受けて自動車の駆動制御を行うCPUと、前記CPUが処理するためのデータを保持する記憶装置とを具備するマイクロコントロールユニットの制御方法において、電源電圧の低下及び最初の電源投入を検出した検出出力を、前記CPUによるクリア命令を受けるまで前記検出手段は保持し、少なくとも外部のイグニッションスイッチをオフすることによりセット、オンすることにより前記パワーセーブ信号及びリセット信号はクリアされ、前記検出手段で検出出力が保持されているときは、前記パワーセーブ信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第1のフィルタ手段の出力信号を前記第1の選択手段は選択し、前記検出手段で検出出力が保持されているときは、前記リセット信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第2のフィルタ手段の出力信号を前記第2の選択手段は選択し、前記第1、第2の選択手段の出力の論理積を取る前記論理手段の出力を受けて、前記論理手段の出力がクリアされているときに前記発振器はクロックを生成し、セットされているときにクロックを生成しないことで、前記CPUの通常動作モードとパワーセーブモードとを切り替え制御することを特徴としている。
【0022】
請求項7に記載したように、請求項5または6記載のマイクロコントロールユニットの制御方法において、前記CPUは、通常動作モードに切り替えられた時に、前記検出手段の検出出力をチェックし、前記検出出力が電源電圧の低下及び最初の電源投入に相当する場合には、前記記憶装置を初期化し、前記検出出力をクリアすることを特徴としている。
【0023】
請求項1、3、5のような構成及び方法によれば、電源電圧の変化、特に一定電圧以下への低下または、電源投入を検出し、当該検出出力を保持する電圧検出手段を備えている。更にパワーセーブ信号の伝送線には第1のフィルタ手段を設け、また、第1のフィルタ手段を介してのパワーセーブ信号の入力と、直接のパワーセーブ信号の入力とを選択する第1の選択手段を備えている。そして、前記検出手段が当該検出出力を保持している場合には、第1の選択手段によりパワーセーブ信号を直接伝送するため、状態の定まらない不安定なフィルタ出力の影響を回避できる。また、それ以外の場合、すなわち過去に電源電圧の低下が起きていないか、または電源投入時で無い場合には、第1のフィルタ手段を介してパワーセーブ信号が伝送されるので、外来ノイズの影響を回避できる。そのためCPUの動作の切り替えが確実に行われ、MCUのモード変更を常時安定して行うことが出来、MCUの消費電力を低減できる。また、CPUにクロックを供給する発振器を更に設け、この発振動作をパワーセーブ信号により制御してもよい。
【0024】
請求項2、4、6のような構成及び方法によれば、リセット信号の伝送線には第2のフィルタ手段を設け、また、第2のフィルタ手段を介してのリセット信号の入力と、直接のリセット信号の入力とを選択する第2の選択手段を設けている。そして、パワーセーブ信号と同様に、検出手段が、電源電圧が一定電圧以下へ低下または、電源投入直後の状態を示す検出出力を保持している場合には、第2の選択手段によりフィルタを介さずに直接入力されるリセット信号が選択されるため、不安定なフィルタ出力の影響を回避できる。また、それ以外の通常動作時にはフィルタを介して入力されるリセット信号が選択されるので、外来ノイズの影響を回避できる。更に、リセット信号を確実に入力できるため周辺回路にラッチされたアドレスの消去等を確実に行うことが出来、MCUの劣化を防止できる。また、CPUのモードの移行をパワーセーブ信号とリセット信号の論理積信号によって行うことで、電源電圧低下時及び電源投入時のフィルタの初期化を確実に行うことが出来るので、MCUを安定して動作させることが出来る。また、パワーセーブ信号とリセット信号との論理積をとる論理手段と、CPUにクロックを供給する発振器を更に設け、発振器の発振動作を論理手段の出力により制御してもよい。
【0025】
請求項7のような方法によれば、CPUは通常動作モードに移行した直後に、まず検出手段の検出出力をチェックする。そして、検出出力が電源電圧の低下、または最初の電源投入に相当する場合、記憶装置を初期化した後、当該検出出力をクリアする。そのため、CPUが通常動作モードに移行する前の状態が、電源電圧が一定電圧以下へ低下または、電源投入直後の状態であった場合でも、第1、第2のフィルタ手段の出力が確定させた後に、検出出力をクリアすることで、パワーセーブ信号及びリセット信号をフィルタを介して入力できるので、外来ノイズの影響を回避できる。
【0026】
【発明の実施の形態】
以下、この発明の実施形態を図面を参照して説明する。この説明に際し、全図にわたり、共通する部分には共通する参照符号を付す。
【0027】
図1はこの発明の一実施形態に係るMCUについて説明するためのもので、車載用のMCUの一部の回路図を示している。図示するように、MCU10は、外部に設けられたパワーセーブ信号入力端子20、リセット信号入力端子21から入力される各信号を伝送する為のパワーセーブ信号伝送線22、22’、リセット信号伝送線23、23’、この伝送線22’、23’に設けられたディジタルフィルタ24(第1のフィルタ手段)、25(第2のフィルタ手段)、パワーセーブ信号伝送線22、22’とリセット信号伝送線23、23’の各々の2本の伝送線の内の1つを選択するマルチプレクサ26(第1の選択手段)、27(第2の選択手段)、マルチプレクサ26、27によって選択された信号線が伝送するパワーセーブ信号とリセット信号の論理積を取るAND回路28(論理手段)、このAND回路28からの出力を内部パワーセーブ信号とし、この信号に基づいてクロックの生成を行う水晶発振器29’をMCU10外部に備えた発振回路29(発振器)、発振回路29の生成したクロック(CLK)により動作し、エンジンの点火のタイミングや燃料噴射量などの制御を行うCPU30、CPU30に内部バス31によって接続され制御データ等を記憶するRAM32、同様に内部バス31によってCPU30に接続され図示しない電源ICの電源電圧Vddの電圧降下を検出するパワーダウン検出回路(PDD:Power Down Detector:検出手段)33を備えている。なお、マルチプレクサ27で選択されたリセット信号は、図示しない伝送線により、直接RAM32やディジタルフィルタ24、25、そして周辺回路へと伝送される。
【0028】
パワーダウン検出回路33は電源ICの電源電圧Vddを監視しており、通常は常時“low”レベルのパワーダウン出力(PDD出力)を保持している。しかし、なんらかの原因により電源電圧Vddが一定電圧以下に低下したり、MCU10への電源投入を検知すると、パワーダウン検出回路33はこのPDD出力を反転させ、“high”を出力する。一旦PDD出力が“high”にセットされると、CPU30のクリア命令が無い限りパワーダウン検出回路33は“high”のPDD出力を保持し続ける。
【0029】
マルチプレクサ26、27は上記PDD出力に基づいて伝送線の選択を行う。すなわち、PDD出力が“high”の場合はパワーセーブ信号とリセット信号を直接伝送する伝送線22、23を選択し、PDD出力が“low”の場合はディジタルフィルタ24、25が付加された伝送線22’、23’を選択する。
【0030】
このディジタルフィルタ24、25は従来同様に、例えば複数段に設けられたフリップフロップであり、発振回路29で生成されたクロックによって動作する。
【0031】
マルチプレクサ26、27で選択された伝送線により伝送されるパワーセーブ信号とリセット信号はAND回路28によって論理積が取られる。この論理積の結果が内部パワーセーブ信号となり発振回路29に入力される。すなわち、パワーセーブ信号とリセット信号の両者が“high”の時のみ、内部パワーセーブ信号となるAND出力が“high”となりパワーセーブモードが選択され、それ以外の場合は“low”となり動作モードが選択される。ただし、ここで説明した回路では、内部パワーセーブ信号は入力端子20、21から入力されたパワーセーブ信号とリセット信号との論理積となっているが、必ずしも両者の論理積を取る必要はなく、マルチプレクサ26で選択された伝送線で伝送されたパワーセーブ信号を発振回路29に直接入力してもかまわない。
【0032】
発振回路29はAND回路28の出力結果に基づいてクロックを生成し、そのクロックをCPU30、ディジタルフィルタ24、25等に出力する。上記したように、パワーセーブ信号とリセット信号の両者が“high”の時のみ内部パワーセーブ信号が“high”となるので、この場合はクロックの生成、出力を停止(パワーセーブモード)し、それ以外の場合では常時クロックを生成して出力(動作モード)する。
【0033】
さて、従来問題となっていた、自動車製造時にMCU10に電源が投入された場合について図2を用いて説明する。図2は電源投入時以降のMCUにおけるPDD出力(PDD)、パワーセーブ信号(PS)、リセット信号(RS)、AND回路28の出力(AND)、クロック(CLK)のタイミングチャートである。
【0034】
まず、図2に示した時刻t0において、自動車の製造後初めてMCU10に電源を投入したとする。電源投入時であるため、パワーダウン検出回路は“high”にセットされたPDD出力を保持している。また、自動車のエンジンは当然停止しているため、MCU10には外部からパワーセーブ信号及びリセット信号が入力されている(PS=“high”、RS=“high”)。これらのパワーセーブ信号及びリセット信号は、PDD出力が“high”であることから、マルチプレクサ26、27により、MCU10内にフィルタを介さず直接入力されている。また、パワーセーブ信号及びリセット信号が“high”にセットされているため、AND回路28の出力は当然“high”にセットされており、発振回路29はクロックを出力しておらず、CPU30はパワーセーブモードにある。尚、この時点ではディジタルフィルタ24、25の出力は確定せずに不安定な状態にある。それは発振回路29がクロックの生成、出力を行っておらず、ディジタルフィルタ24、25にもクロックが入力されていないためである。しかし、この場合はディジタルフィルタ24、25を備えていない伝送線22、23を選択しているため、その影響を受けずに済む。
【0035】
次に、時刻t1において、自動車の製造後初めてエンジンを始動したとする。エンジンの始動は通常イグニッションスイッチをオンにすることで行われる。すると、イグニッションスイッチからの命令によりパワーセーブ信号、リセット信号が解除、すなわちパワーセーブ信号及びリセット信号は“low”にセットされる。通常、エンジン始動時にはまずパワーセーブ信号が“low”になり、その数ms後にリセット信号が“low”になるのが一般的である。この時点では、CPU30からのクリア命令が出力されていないため、PDD出力は“high”を保ったままである。そのため、“low”にセットされたパワーセーブ信号と“high”を保持するリセット信号は直接MCU10内に伝送され、AND回路28に入力される。その結果、AND回路28による論理積の結果は“high”から“low”に変化し、内部パワーセーブ信号がクリアされる。内部パワーセーブ信号がクリアされたことにより、発振回路29はクロックを生成、出力を開始し、CPU30が動作を始める。
【0036】
時刻t1から数ms後の時刻t2には、リセット信号も解除されて“low”にセットされる。パワーセーブ信号及びリセット信号が解除されたことにより、MCU10は動作モードに移行する。このパワーセーブ信号とリセット信号が“low”にセットされる間(時間Δt)に、ディジタルフィルタ24、25の状態が確定する。通常、クロックの周波数は数十MHzであるのでその周期は数百nsオーダーである。それに対してパワーセーブ信号とリセット信号が“low”になる時間差は数msオーダーであるため、この時間内にディジタルフィルタ24、25を初期化するために十分なクロックを入力することが出来る。
【0037】
次に、動作を開始したCPU30の初期化ルーチンについて、図3を用いて説明する。図3はCPU30の処理フローである。
【0038】
パワーセーブ信号が解除されて動作を開始したCPU30は、まずPDD出力をチェックする(ステップS1)。上記電源投入直後においては、PDD出力は“high”になっている(ステップS2)。すると、CPU30はRAM32のデータが破壊されているものとしてRAM32のデータを初期化する(ステップS3)。その後、PDD出力を“low”に反転させて(ステップS4)、次の処理に進む(ステップS5)。
【0039】
上記CPU30の初期化ルーチンによりPDD出力が“low”に反転した時刻をt3とする。PDD出力が“low”に切り替わることで、マルチプレクサ26、27はパワーセーブ信号、リセット信号をディジタルフィルタ24、25を介して伝送する伝送線22’、23’を選択する。この時刻t3には、既に相当数のクロックがディジタルフィルタ24、25に入力されており、ディジタルフィルタの出力は確定し、安定した出力が可能な状態となっている。なお、PDD出力が“low”に切り替わるのは動作モードに移行してから数ms〜数十ms後である。この間、マルチプレクサ26、27はパワーセーブ信号、リセット信号を直接伝送する伝送線22、23を選択しているため、外来ノイズによりCPUが誤動作する恐れはあるものの、非常に短い時間であるため実使用上は問題とならない。
【0040】
その後、RAM32には個々のエンジンの特性や経時変化による制御データが保存される。
【0041】
次に、時刻t4でエンジンを停止させたとする。エンジンの停止はイグニッションスイッチをオフにすることで行われる。すると、パワーセーブ信号とリセット信号が“high”にセットされるため、MCUはパワーセーブモードに移行し、クロックの発振が停止する。ただし、クロックの発振は停止するが、MCUには電源が供給されているので、極めて消費電力を抑えつつ、RAM32に保存された制御データは保持される。また、PDD出力は、電源電圧が低下しない限り“low”に保持され続けるので、パワーセーブ信号、リセット信号はディジタルフィルタ24、25を介してMCU内に伝送される。
【0042】
以降は電池(バッテリー等)をはずしたり、電池の放電等により電圧低下を起こさない限りはPDD出力は“high”にセットされず、RAM32のデータが初期化されることも無いので、次のエンジン始動時にはRAM32の制御データを使って制御される。
【0043】
上記のようなMCUの構成及び制御方法によれば、ディジタルフィルタ24、25の出力が不安定な電源投入直後の状態では、パワーダウン検出回路33の出力(PDD出力)に基づいて、ディジタルフィルタ24、25の出力を用いずに、MCU10内に各信号を直接伝送している。そのため、ディジタルフィルタ24、25を構成するフリップフロップの影響を受けずに済み、確実にパワーセーブ信号及びリセット信号を伝送できる。すなわち、従来のように電源投入直後のパワーセーブモードにおいて、短時間でもクロックが発振されることがないので、電源投入時でも安定にパワーセーブモードを得ることができる。また電源投入直後のみならず、電源ICの電源電圧Vddの低下が過去に一度でも起きていれば、やはりPDD出力は“high”を保持し、ディジタルフィルタ24、25の出力を用いずに、MCU10内に各信号を直接伝送するので、MCU10を安定してパワーセーブモードにすることができる。
【0044】
また、MCUが動作モードに移行する際には、CPUがPDD出力をチェックすることで、過去に電源電圧の低下が起きていたか、または電源投入直後であるかを確認し、該当する場合(PDD出力=“high”)にはディジタルフィルタ24、25の出力の確定後にPDD出力をクリアし(PDD出力=“low”)、それ以後はフィルタを介した信号を選択するようになるので、外来ノイズによる影響を回避できる。このディジタルフィルタ24、25の出力は、イグニッションスイッチをオンすることで、パワーセーブ信号が“low”になってからリセット信号が“low”になるまでの間に完全に安定化させることが出来る。この処理はPDD出力が反転するよりも十分速い時間に行われるため、前述のパワーセーブモードにする場合と同様にディジタルフィルタ24、25の不安定な出力状態の影響を回避することが出来る。
【0045】
更に、上記のようにディジタルフィルタ24、25の出力が確定していない状態では、パワーセーブ信号と同様にリセット信号もディジタルフィルタ25を介さず直接入力されるため、周辺回路の初期化を確実に行うことができる。そのため、複数の周辺回路のデータが出力状態になり、データバスを通じて大電流が流れるので電池を消耗したり、MCUの劣化を生じさせることがない。
【0046】
以上説明したように、本実施形態によるMCU及びその制御方法によれば、外部から入力されるパワーセーブ信号とリセット信号について、フィルタを介しての入力と直接の入力とをPDD出力に基づいて選択している。その選択基準は、PDD出力が“high”の場合、すなわち電源電圧が過去に一度でも低下し、それ以降一度もエンジンが駆動されていない状態、またはMCUに初めて電源が投入された後の状態では、各信号をフィルタを介さずに直接入力する。逆にPDD出力が“low”の通常の場合は、フィルタを介しての入力を選択するというものである。このように、フィルタの安定していない状態では各信号を直接入力し、フィルタが安定した時のみフィルタ出力を用いているので、信号を常時安定して伝送できる。そのため、MCUの動作を安定して行うことが出来るので消費電力を低減し、またMCUの劣化を防止できる。
【0047】
また、従来の車載用MCUの構造をほぼそのまま流用できるため経済的にも効率的である。すなわちパワーダウン検出器33は、従来よりMCU10内に組み込まれているため、このPDD出力によって動作するマルチプレクサ26、27と、パワーセーブ信号とリセット信号を直接伝送する伝送線22、23を従来に組み込むのみで、本実施形態で説明したMCUが容易に実現できる。
【0048】
無論、本発明は車載用のMCUに限られるものではなく、本発明の主旨を逸脱しない範囲で適宜変形して実施することが出来る。
【0049】
【発明の効果】
以上説明したように、この発明によれば、消費電力を低減し、また性能劣化を防止できるマイクロコントロールユニット及びその制御方法を提供できる。
【図面の簡単な説明】
【図1】この発明の一実施形態に係るマイクロコントロールユニット及びその制御方法について説明するためのもので、車載用のMCUの一部の回路図。
【図2】この発明の一実施形態に係るマイクロコントロールユニット及びその制御方法について説明するためのもので、MCUへの電源投入直後の各信号のタイミングチャート。
【図3】この発明の一実施形態に係るマイクロコントロールユニット及びその制御方法について説明するためのもので、MCUの動作を示すフローチャート。
【符号の説明】
10…MCU
20…パワーセーブ信号入力端子
21…リセット信号入力端子
22、22’…パワーセーブ信号伝送線
23、23’…リセット信号伝送線
24、25…ディジタルフィルタ
26、27…マルチプレクサ
28…AND回路
29…発振回路
29’…水晶発振器
30…CPU
31…内部バス
32…RAM
33…パワーダウン検出回路[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a micro control unit (MCU) and a control method therefor, and more particularly to an in-vehicle MCU.
[0002]
[Prior art]
The development of digital circuit technology in recent years has been remarkable, and many devices are equipped with microcomputers. Automobiles are no exception, and for example, the ignition timing of the engine, the fuel injection amount, and the like are all controlled by a microcomputer.
[0003]
2. Description of the Related Art Conventionally, an automobile is equipped with an MCU as a one-chip control unit for controlling an engine or the like. The MCU includes a CPU (Central Processing Unit) that operates by a clock and controls an engine and the like, a storage device such as a RAM (Random Access Memory) connected to the CPU by an internal bus, and stores control data and the like, and a power supply to the CPU. A power supply IC to be supplied, an oscillation circuit to generate a clock to be supplied to the CPU, and the like are included.
[0004]
Generally, a CPU has two modes, one is an operation mode and the other is a power save mode. The operation mode is a state in which the CPU is operated by supplying a high voltage and a clock necessary for the operation, that is, in the case of an automobile, when the engine is driven. On the other hand, the power save mode is a state in which a voltage lower than that in the operation mode is supplied to the CPU, no clock is supplied, and the CPU is not operating, that is, when the engine is stopped. In the power save mode, the power consumption of the MCU can be significantly reduced because the CPU is not operating. Reducing power consumption when the engine is stopped is also desirable from the viewpoint of reducing the load on the battery.
[0005]
A signal for setting this MCU to the power save mode is a power save signal (PS). The power save signal is input from outside the MCU and is input to the oscillation circuit via the power supply IC. The oscillation circuit that has received the power save signal stops oscillation of the clock, and the power supply IC also reduces the voltage supplied to the CPU, whereby the MCU shifts to the power save mode.
[0006]
Other signals input from the outside include a reset signal (RS) and the like. The reset signal is a command signal for initializing the CPU or the like.
[0007]
Normally, the engine of a vehicle is stopped by turning off an ignition switch. At this time, a power save signal for resetting the MCU to the power save mode and a reset signal are sent from the ignition switch to the power supply IC in order to suppress power consumption. Then, as described above, since the oscillation circuit stops the oscillation of the clock, the MCU shifts to the power save mode. At this time, the input of the clock to the CPU is stopped, but a voltage lower than usual is supplied from the power supply IC. The reason why the supply of power to the CPU is not completely stopped is to keep the control data in the RAM inside the MCU for learning control and the like. When the engine is started, by turning on the ignition switch, the power save signal and the reset signal are released, and the MCU can be shifted to the operation mode.
[0008]
Thus, the MCU repeats the operation mode and the power save mode according to the state of the engine. The operation state of the MCU is generally controlled by a power supply IC that receives a power save signal and a reset signal sent from an ignition switch.
[0009]
By the way, a transmission line in the MCU for the power save signal and the reset signal transmitted from the ignition switch is often provided with a filter circuit for removing noise. The filter circuit is, for example, a flip-flop (F / F) provided in a plurality of stages, and operates by receiving a clock generated by an oscillation circuit. However, immediately after the power supply to the MCU is turned on, the logic state of the flip-flop is not determined by its nature, so that the state of the MCU is unstable. That is, the MCU can take either the power save mode or the operation mode regardless of the operation / non-operation of the engine. This is because the flip-flop of this filter circuit cannot be initialized in principle. That is, if the flip-flop in the filter circuit is reset after the input signal from the external terminal passes through the filter, the input signal itself is released. Therefore, the state of the flip-flop in the conventional filter circuit is determined after several clocks are supplied to the flip-flop after the power is supplied to the MCU.
[0010]
Now, when a power source such as a battery is connected to the MCU for the first time during the manufacture of a car, the following problems occur from the above.
[0011]
Power is supplied to the MCU by connecting the battery, but since the engine is stopped, the power supply IC attempts to put the MCU into the power save mode. Also, as described above, the power supply IC may be designed to reduce its power supply capability in the power save mode. However, since the MCU has just been turned on, the state of the flip-flop in the filter circuit provided on the transmission line for the power save signal and the reset signal is not determined. Here, if the output of the initial state of the filter circuit is the operation mode, the oscillation circuit generates the clock even though the engine is stopped. This clock is also supplied to the filter circuit to determine the state of the flip-flop in the filter circuit. At this point, the MCU enters the power save mode again. As described above, when the oscillation circuit generates a clock for a short time, the operating current increases because the CPU operates, thereby exceeding the supply capability of the power supply IC. As a result, the output voltage of the power supply IC decreases, the clock of the oscillation circuit stops, and the CPU also stops its operation, so that the voltage of the power supply IC returns. However, since the flip-flop in the filter circuit cannot be initialized, the output of the filter circuit is still in the operation mode, and the oscillation circuit generates a clock. After that, there is a problem that the MCU cannot be put into the power save mode forever and current continues to flow to the CPU, so that the battery is consumed.
[0012]
In some cases, the MCU adopts a system in which an address is read before actual data in order to speed up the internal operation. That is, the address is latched by the peripheral circuit at a time one clock before the actual data reading time, for example. Originally, the addresses latched in the peripheral circuits are mutually exclusive, so that data is not output from a plurality of peripheral circuits at the same time. However, since the state of the flip-flop in the filter circuit is not determined immediately after the power supply to the MCU, the reset signal is not generated in some cases, and the address latched in the peripheral circuit may remain undefined. Then, the data of the plurality of peripheral circuits is output, and a large current flows through the data bus, so that there is a problem that the battery is consumed and the MCU is deteriorated.
[0013]
[Problems to be solved by the invention]
As described above, in the conventional MCU and its power saving method, the state of the flip-flop in the filter circuit added to the transmission path for transmitting the power save signal and the reset signal is not determined immediately after the MCU is powered on. . Furthermore, since the flip-flop in the filter circuit cannot be initialized, if the output of the filter circuit is in the operation mode, the MCU repeats the operation mode and the power save mode, and the MCU cannot be stabilized in the power save mode. Therefore, there is a problem that the battery is consumed because the current continues to flow through the CPU.
[0014]
Immediately after turning on the power to the MCU, the state of the flip-flop in the filter circuit of the reset signal is not determined, so that the address latched by the peripheral circuit may remain undefined. Therefore, there is a problem that the data of a plurality of peripheral circuits is output and a large current flows through the data bus, so that the battery is consumed and the MCU is deteriorated.
[0015]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a micro control unit capable of reducing power consumption and preventing performance degradation, and a control method therefor.
[0016]
[Means for Solving the Problems]
According to a first aspect of the present invention, there is provided a micro control unit for detecting a decrease in a power supply voltage and an initial power-on, and holding a detection output, and a first filter for receiving a power save signal. When the detection output is held by the detection means, the power save signal is directly selected, and when the detection output held by the detection means is cleared, the output signal of the first filter means is cleared. And a switching control between a normal operation mode and a power save mode based on an output signal of the first selection means, and a detection output held by the detection means decreases the power supply voltage. And a CPU that clears the detection output after the mode is switched when the power is turned on for the first time.
[0017]
According to a second aspect of the present invention, in the micro control unit according to the first aspect, the second filter unit to which a reset signal is input and the reset unit when the detection output is held by the detection unit. A second selection means for directly selecting a signal and selecting an output signal of the second filter means when a detection output held by the detection means is cleared; and an output of the first selection means. And a logical means for calculating a logical product of a signal and an output signal of the second selecting means, and for switching a mode of the CPU according to the logical product signal.
[0018]
Further, as described in claim 3, the microcontroller unit according to
[0019]
As described in
[0020]
According to a fifth aspect of the present invention, there is provided a control method for a microcontroller unit, which detects a decrease in a power supply voltage and a first power-on, and holds a detection output and a power save signal from an external device. Filter means, an output of the first filter means or a first selection means for directly selecting the power save signal, an oscillator for receiving the output of the first selection means and generating a clock, In a control method of a microcontroller unit including a CPU that controls driving of an automobile in response to a generated clock and a storage device that retains data to be processed by the CPU, the power supply voltage may be reduced and the power may be turned on for the first time. The detection means holds the detected output until a clear command is received from the CPU, and at least an external ignition The power save signal is cleared by turning on and off the power switch, and when the detection output is held by the detection means, the power save signal is directly selected and held by the detection means. When the detected output is cleared, the first selection means selects the output signal of the first filter means, and upon receiving the output of the first selection means, the power save signal is cleared. The oscillator generates a clock when it is set, and does not generate a clock when it is set, thereby controlling switching between the normal operation mode and the power save mode of the CPU.
[0021]
Further, the control method of the micro control unit according to claim 6 of the present invention detects the decrease of the power supply voltage and the first power-on, and the detecting means for holding the detection output, and the first power receiving signal from the outside. Filter means, a second filter means for receiving a reset signal from the outside, a first selection means for directly selecting the output of the first filter means or the power save signal, and an output of the second filter means Or a second selecting means for directly selecting the reset signal, a logical means for performing a logical product of outputs of the first and second selecting means, and an oscillator for receiving an output of the logical means and generating a clock, A microphone comprising: a CPU that controls driving of an automobile in response to a clock generated by the oscillator; and a storage device that stores data to be processed by the CPU. In the control method of the control unit, the detection means holds a detection output that has detected a decrease in power supply voltage and an initial power-on until receiving a clear command from the CPU, and sets by turning off at least an external ignition switch. By turning on, the power save signal and the reset signal are cleared, and when the detection output is held by the detection means, the power save signal is directly selected and the detection output held by the detection means is cleared. When the detection signal is output, the first selection means selects the output signal of the first filter means, and when the detection output is held by the detection means, directly selects the reset signal, and When the detection output held in the second filter means is cleared, the output signal of the second filter means is changed to the second signal. The selection means receives the output of the logic means for selecting and taking the logical product of the outputs of the first and second selection means. When the output of the logic means is cleared, the oscillator generates a clock. By not generating a clock when set, the CPU is controlled to switch between the normal operation mode and the power save mode.
[0022]
According to a seventh aspect of the present invention, in the micro control unit control method according to the fifth or sixth aspect, the CPU checks a detection output of the detection means when the CPU is switched to a normal operation mode, and the CPU outputs the detection output. Is equivalent to a decrease in the power supply voltage and a first power-on, the storage device is initialized and the detection output is cleared.
[0023]
According to the configuration and the method according to the first, third, and fifth aspects, the power supply apparatus includes the voltage detection unit that detects a change in the power supply voltage, particularly, a decrease to a certain voltage or less or a power-on, and holds the detection output. . Further, a first filter means is provided on the transmission line of the power save signal, and a first selection for selecting the input of the power save signal via the first filter means and the input of the direct power save signal. Means. When the detection means holds the detection output, the power saving signal is directly transmitted by the first selection means, so that the influence of an unstable filter output whose state cannot be determined can be avoided. In other cases, that is, when the power supply voltage has not dropped in the past or when the power supply has not been turned on, the power save signal is transmitted through the first filter means, so that the external noise The effect can be avoided. Therefore, the operation of the CPU is reliably switched, the mode of the MCU can be constantly changed, and the power consumption of the MCU can be reduced. Further, an oscillator for supplying a clock to the CPU may be further provided, and this oscillation operation may be controlled by a power save signal.
[0024]
According to the configuration and method according to the second, fourth, and sixth aspects, the transmission line for the reset signal is provided with the second filter means, and the input of the reset signal through the second filter means is directly performed. And a second selection means for selecting the input of the reset signal. Then, as in the case of the power save signal, when the detecting means holds the detection output indicating the state immediately after the power supply voltage is reduced to a certain voltage or less or the power supply voltage is turned on, the second selecting means passes the filter through the filter. Therefore, the reset signal that is directly input without being selected is selected, so that the influence of the unstable filter output can be avoided. In other normal operations, the reset signal input through the filter is selected, so that the influence of external noise can be avoided. Further, since the reset signal can be input reliably, the address latched by the peripheral circuit can be surely erased and the like, and deterioration of the MCU can be prevented. In addition, since the mode of the CPU is shifted by the logical product signal of the power save signal and the reset signal, the filter can be securely initialized when the power supply voltage drops and when the power is turned on. Can work. Further, a logic means for calculating a logical product of the power save signal and the reset signal and an oscillator for supplying a clock to the CPU may be further provided, and the oscillation operation of the oscillator may be controlled by an output of the logic means.
[0025]
According to the method as described in claim 7, the CPU first checks the detection output of the detection means immediately after shifting to the normal operation mode. If the detected output corresponds to a drop in the power supply voltage or the first power-on, the storage device is initialized, and then the detected output is cleared. Therefore, even when the state before the CPU shifts to the normal operation mode is a state in which the power supply voltage is reduced to a certain voltage or less or immediately after the power is turned on, the outputs of the first and second filter means are determined. By clearing the detection output later, the power save signal and the reset signal can be input through the filter, so that the influence of external noise can be avoided.
[0026]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In this description, common parts are denoted by common reference symbols throughout the drawings.
[0027]
FIG. 1 is a diagram for explaining an MCU according to an embodiment of the present invention, and shows a circuit diagram of a part of an in-vehicle MCU. As shown in the figure, the
[0028]
The power-
[0029]
The
[0030]
The
[0031]
The power save signal and the reset signal transmitted by the transmission lines selected by the
[0032]
The
[0033]
Now, a case where the power is turned on to the
[0034]
First, the time t shown in FIG. 0 In this example, it is assumed that the
[0035]
Next, at time t 1 Suppose that the engine is started for the first time after the automobile is manufactured. Normally, the engine is started by turning on an ignition switch. Then, the power save signal and the reset signal are released by an instruction from the ignition switch, that is, the power save signal and the reset signal are set to “low”. Normally, when the engine is started, the power save signal first becomes “low”, and after a few ms, the reset signal generally becomes “low”. At this time, since the clear instruction from the
[0036]
Time t 1 Time t several ms after 2 , The reset signal is also released and set to “low”. When the power save signal and the reset signal are released, the
[0037]
Next, an initialization routine of the
[0038]
The
[0039]
The time when the PDD output is inverted to “low” by the initialization routine of the
[0040]
After that, the RAM 32 stores control data based on characteristics of individual engines and changes with time.
[0041]
Next, at time t 4 Suppose the engine was stopped by. The engine is stopped by turning off an ignition switch. Then, since the power save signal and the reset signal are set to “high”, the MCU shifts to the power save mode, and the clock oscillation stops. However, although the oscillation of the clock is stopped, since the power is supplied to the MCU, the control data stored in the RAM 32 is retained while the power consumption is extremely reduced. Further, the PDD output is kept at “low” unless the power supply voltage decreases, so that the power save signal and the reset signal are transmitted to the MCU via the
[0042]
Thereafter, as long as the battery (battery or the like) is not removed or the voltage drops due to the discharge of the battery, the PDD output is not set to “high” and the data in the RAM 32 is not initialized. At the time of starting, control is performed using the control data of the RAM 32.
[0043]
According to the above-described MCU configuration and control method, in a state immediately after power-on, in which the outputs of the
[0044]
When the MCU shifts to the operation mode, the CPU checks the PDD output to determine whether the power supply voltage has been reduced in the past or immediately after the power is turned on. When the output of the
[0045]
Further, when the outputs of the
[0046]
As described above, according to the MCU and the control method thereof according to the present embodiment, for the power save signal and the reset signal input from the outside, the input through the filter and the direct input are selected based on the PDD output. are doing. The selection criterion is that when the PDD output is “high”, that is, when the power supply voltage has decreased at least once in the past and the engine has not been driven at all, or after the MCU has been powered on for the first time. , Each signal is directly input without passing through a filter. Conversely, when the PDD output is “low” in general, the input via the filter is selected. As described above, in the state where the filter is not stable, each signal is directly input, and the filter output is used only when the filter is stable, so that the signal can always be stably transmitted. Therefore, since the operation of the MCU can be performed stably, power consumption can be reduced and deterioration of the MCU can be prevented.
[0047]
Further, the structure of the conventional in-vehicle MCU can be diverted almost as it is, which is economically efficient. That is, since the power-
[0048]
Of course, the present invention is not limited to an in-vehicle MCU, and can be appropriately modified and implemented without departing from the gist of the present invention.
[0049]
【The invention's effect】
As described above, according to the present invention, it is possible to provide a micro control unit and a control method thereof that can reduce power consumption and prevent performance degradation.
[Brief description of the drawings]
FIG. 1 is a circuit diagram of a part of an on-vehicle MCU for explaining a micro control unit and a control method thereof according to an embodiment of the present invention.
FIG. 2 is a timing chart of each signal immediately after power-on to an MCU for describing a micro control unit and a control method thereof according to an embodiment of the present invention.
FIG. 3 is a flowchart for explaining a micro control unit and a control method thereof according to an embodiment of the present invention, and showing an operation of an MCU.
[Explanation of symbols]
10 MCU
20: Power save signal input terminal
21 ... Reset signal input terminal
22, 22 '... power save signal transmission line
23, 23 '... reset signal transmission line
24, 25 ... Digital filter
26, 27 ... multiplexer
28… AND circuit
29 ... oscillation circuit
29 '… Crystal oscillator
30 ... CPU
31 ... Internal bus
32 ... RAM
33 ... Power down detection circuit
Claims (7)
パワーセーブ信号が入力される第1のフィルタ手段と、
前記検出手段で検出出力が保持されているときは、前記パワーセーブ信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第1のフィルタ手段の出力信号を選択する第1の選択手段と、
前記第1の選択手段の出力信号に基づいて通常動作モードとパワーセーブモードが切り替え制御され、前記検出手段に保持されている検出出力が前記電源電圧の低下、及び最初の電源投入に相当する場合、モードの切り替え後に該検出出力をクリアするCPUと
を具備することを特徴とするマイクロコントロールユニット。Detecting means for detecting a drop in power supply voltage and initial power-on, and holding a detection output;
First filter means to which a power save signal is input;
When the detection output is held by the detection means, the power save signal is directly selected, and when the detection output held by the detection means is cleared, the output signal of the first filter means is output. First selecting means for selecting,
Switching between a normal operation mode and a power save mode based on an output signal of the first selecting means, and a detection output held by the detecting means corresponds to a decrease in the power supply voltage and an initial power-on. And a CPU that clears the detection output after the mode is switched.
前記検出手段で検出出力が保持されているときは、前記リセット信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第2のフィルタ手段の出力信号を選択する第2の選択手段と、
前記第1の選択手段の出力信号と前記第2の選択手段の出力信号との論理積を取り、この論理積信号によって前記CPUのモードを切り替える論理手段と
を更に具備する
ことを特徴とする請求項1記載のマイクロコントロールユニット。Second filter means to which a reset signal is input;
When the detection output is held by the detection means, the reset signal is directly selected, and when the detection output held by the detection means is cleared, the output signal of the second filter means is selected. Second selecting means for performing
And a logic means for calculating a logical product of an output signal of the first selecting means and an output signal of the second selecting means, and switching a mode of the CPU according to the logical product signal. Item 7. The microcontrol unit according to Item 1.
前記パワーセーブ信号で前記発振器の発振動作を制御することにより、前記CPUのモードを切り替える
ことを特徴とする請求項1記載のマイクロコントロールユニット。An oscillator that generates a clock signal and supplies the clock signal to the CPU;
2. The micro control unit according to claim 1, wherein the mode of the CPU is switched by controlling the oscillation operation of the oscillator by the power save signal.
前記論理手段から出力される論理積信号で前記発振器の発振動作を制御することにより、前記CPUのモードを切り替える
ことを特徴とする請求項2記載のマイクロコントロールユニット。An oscillator that generates a clock signal and supplies the clock signal to the CPU;
3. The microcontroller unit according to claim 2, wherein a mode of said CPU is switched by controlling an oscillation operation of said oscillator by an AND signal output from said logic means.
電源電圧の低下及び最初の電源投入を検出した検出出力を、前記CPUによるクリア命令を受けるまで前記検出手段は保持し、
少なくとも外部のイグニッションスイッチをオフすることによりセット、オンすることにより前記パワーセーブ信号はクリアされ、
前記検出手段で検出出力が保持されているときは、前記パワーセーブ信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第1のフィルタ手段の出力信号を前記第1の選択手段は選択し、
前記第1の選択手段の出力を受けて、前記パワーセーブ信号がクリアされているときに前記発振器はクロックを生成し、セットされているときにクロックを生成しないことで、前記CPUの通常動作モードとパワーセーブモードとを切り替え制御する
ことを特徴とするマイクロコントロールユニットの制御方法。Detecting means for detecting a drop in the power supply voltage and initial power-on and holding a detection output; first filter means for receiving a power save signal from the outside; and an output of the first filter means or the power save signal. First selecting means for directly selecting, an oscillator for generating a clock in response to the output of the first selecting means, a CPU for controlling driving of the vehicle in response to the clock generated by the oscillator, and And a storage device for holding data for performing the control method of the micro control unit,
The detection unit holds a detection output that has detected a decrease in the power supply voltage and an initial power-on until receiving a clear command from the CPU,
The power save signal is cleared by turning on and off at least an external ignition switch,
When the detection output is held by the detection means, the power save signal is directly selected, and when the detection output held by the detection means is cleared, the output signal of the first filter means is output. The first selecting means selects,
In response to the output of the first selecting means, the oscillator generates a clock when the power save signal is cleared, and does not generate a clock when the power save signal is set. And controlling the switching between a power save mode and a micro control unit.
電源電圧の低下及び最初の電源投入を検出した検出出力を、前記CPUによるクリア命令を受けるまで前記検出手段は保持し、
少なくとも外部のイグニッションスイッチをオフすることによりセット、オンすることにより前記パワーセーブ信号及びリセット信号はクリアされ、
前記検出手段で検出出力が保持されているときは、前記パワーセーブ信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第1のフィルタ手段の出力信号を前記第1の選択手段は選択し、
前記検出手段で検出出力が保持されているときは、前記リセット信号を直接選択し、前記検出手段に保持されている検出出力がクリアされたときに、前記第2のフィルタ手段の出力信号を前記第2の選択手段は選択し、
前記第1、第2の選択手段の出力の論理積を取る前記論理手段の出力を受けて、前記論理手段の出力がクリアされているときに前記発振器はクロックを生成し、セットされているときにクロックを生成しないことで、前記CPUの通常動作モードとパワーセーブモードとを切り替え制御する
ことを特徴とするマイクロコントロールユニットの制御方法。Detecting means for detecting a drop in power supply voltage and initial power-on and holding a detection output, first filter means for receiving a power save signal from the outside, second filter means for receiving a reset signal from the outside, A first selecting means for directly selecting an output of the first filter means or the power save signal; a second selecting means for directly selecting an output of the second filter means or the reset signal; Logic means for taking the logical product of the outputs of the second selection means, an oscillator for receiving the output of the logic means and generating a clock, a CPU for controlling the driving of the vehicle in response to the clock generated by the oscillator, A control method for a microcontroller unit comprising: a storage device for storing data to be processed by a CPU;
The detection unit holds a detection output that has detected a decrease in the power supply voltage and an initial power-on until receiving a clear command from the CPU,
The power save signal and the reset signal are cleared by turning on and off at least an external ignition switch,
When the detection output is held by the detection means, the power save signal is directly selected, and when the detection output held by the detection means is cleared, the output signal of the first filter means is output. The first selecting means selects,
When the detection output is held by the detection means, the reset signal is directly selected, and when the detection output held by the detection means is cleared, the output signal of the second filter means is reset. The second selection means selects,
The oscillator generates a clock when the output of the logic means is cleared when the output of the logic means is ANDed with the output of the first and second selection means. Controlling the switching between a normal operation mode and a power save mode of the CPU by not generating a clock.
前記検出手段の検出出力をチェックし、
前記検出出力が電源電圧の低下及び最初の電源投入に相当する場合には、前記記憶装置を初期化し、
前記検出出力をクリアする
ことを特徴とする請求項5または6記載のマイクロコントロールユニットの制御方法。When the CPU is switched to the normal operation mode,
Check the detection output of the detection means,
When the detection output corresponds to a decrease in power supply voltage and first power-on, the storage device is initialized,
7. The control method for a micro control unit according to claim 5, wherein the detection output is cleared.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000082582A JP3583683B2 (en) | 2000-03-23 | 2000-03-23 | Micro control unit and control method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000082582A JP3583683B2 (en) | 2000-03-23 | 2000-03-23 | Micro control unit and control method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2001273045A JP2001273045A (en) | 2001-10-05 |
| JP3583683B2 true JP3583683B2 (en) | 2004-11-04 |
Family
ID=18599369
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000082582A Expired - Fee Related JP3583683B2 (en) | 2000-03-23 | 2000-03-23 | Micro control unit and control method thereof |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3583683B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6160822B2 (en) * | 2013-08-09 | 2017-07-12 | コニカミノルタ株式会社 | I/O expansion device group and I/O expansion device |
-
2000
- 2000-03-23 JP JP2000082582A patent/JP3583683B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2001273045A (en) | 2001-10-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8046615B2 (en) | Microcomputer system with reduced power consumption | |
| KR100447771B1 (en) | Semiconductor integrated circuit | |
| JP4535170B2 (en) | Microcomputer system | |
| JP3437174B2 (en) | Power saving integrated circuit and control method of power saving integrated circuit | |
| US20080065920A1 (en) | Microcontroller and arts related thereto | |
| US20030131268A1 (en) | Dynamic power control in integrated circuits | |
| US6101144A (en) | Integrated circuit memory devices having automatically induced standby modes and methods of operating same | |
| US7449926B2 (en) | Circuit for asynchronously resetting synchronous circuit | |
| JP5513359B2 (en) | Semiconductor device and control system for automobile | |
| US7848718B2 (en) | Method apparatus comprising integrated circuit and method of powering down such circuit | |
| US20030189862A1 (en) | Backup memory control unit with | |
| JP3583683B2 (en) | Micro control unit and control method thereof | |
| JP2008052699A (en) | Microcomputer and control system | |
| US5734878A (en) | Microcomputer in which a CPU is operated on the basis of a clock signal input into one of two clock terminals | |
| US6631467B1 (en) | Microcomputer timing control circuit provided with internal reset signal generator triggered by external reset signal | |
| US7889570B2 (en) | Memory device input buffer, related memory device, controller and system | |
| US8271820B2 (en) | Micro-processor | |
| KR100613446B1 (en) | Internal voltage generation circuit | |
| JP2002063150A (en) | Microcomputer | |
| JP5640508B2 (en) | In-vehicle ECU | |
| JP4673551B2 (en) | Control circuit | |
| JP2006350930A (en) | Control circuit and information processor | |
| EP1844474B1 (en) | Nonvolatile latch | |
| JP2007140878A (en) | System clock generation circuit | |
| JP3128435B2 (en) | Computer system with resume function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040511 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040727 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040729 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070806 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080806 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090806 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090806 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100806 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100806 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110806 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110806 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120806 Year of fee payment: 8 |
|
| LAPS | Cancellation because of no payment of annual fees |