JP6384393B2 - Microcomputer and electronic control device - Google Patents
Microcomputer and electronic control device Download PDFInfo
- Publication number
- JP6384393B2 JP6384393B2 JP2015087028A JP2015087028A JP6384393B2 JP 6384393 B2 JP6384393 B2 JP 6384393B2 JP 2015087028 A JP2015087028 A JP 2015087028A JP 2015087028 A JP2015087028 A JP 2015087028A JP 6384393 B2 JP6384393 B2 JP 6384393B2
- Authority
- JP
- Japan
- Prior art keywords
- power supply
- supply voltage
- module
- microcomputer
- threshold value
- 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.)
- Active
Links
Images
Landscapes
- Power Sources (AREA)
- Microcomputers (AREA)
Description
本発明は、マイクロコンピュータ及び該マイクロコンピュータを備える電子制御装置に関する。 The present invention relates to a microcomputer and an electronic control device including the microcomputer.
マイクロコンピュータ(以下、マイコンと称する)には、電源電圧の適正範囲が定められている。このため、供給される電源電圧が適正範囲から外れると、マイコンによって制御される電気負荷が誤作動する虞がある。 A microcomputer (hereinafter referred to as a microcomputer) has an appropriate range of power supply voltage. For this reason, if the supplied power supply voltage is out of the proper range, the electric load controlled by the microcomputer may malfunction.
これに対し、たとえば車両用の電子制御装置として、マイコンとともに、マイコンに供給される電源電圧を監視するマイコン監視装置を備える構成が知られている。また、電源電圧を監視する監視回路を内蔵するマイコンも知られている。たとえば特許文献1には、マイコン監視装置を備える電子制御装置が開示されている。
On the other hand, for example, as an electronic control device for a vehicle, a configuration is known that includes a microcomputer monitoring device that monitors a power supply voltage supplied to the microcomputer together with the microcomputer. A microcomputer having a built-in monitoring circuit for monitoring the power supply voltage is also known. For example,
このように電源電圧の監視機能を備える構成では、マイコンに供給される電源電圧が適正範囲から外れるとマイコンがリセットされるため、電気負荷の誤作動を抑制することができる。 As described above, in the configuration having the power supply voltage monitoring function, the microcomputer is reset when the power supply voltage supplied to the microcomputer is out of the proper range, so that malfunction of the electric load can be suppressed.
マイコンに電源電圧を投入する際、通常動作中よりも高負荷となる。そこで、電源電圧の急激な変動(降下)を抑制するために、電源電圧がコンデンサにより安定化される。また、マイコンは、I/0ポート、タイマなどの機能回路を有するモジュールを複数備えている。マイコンへの電源電圧の投入時において、すべてのモジュールを一斉に立ち上げるのではなく、複数のモジュールを1つずつ順番に立ち上げるようにモジュールへの電源電圧の供給タイミングを制御することで、電源電圧の急激な変動を抑制することが考えられる。 When power is supplied to the microcomputer, the load is higher than during normal operation. Therefore, the power supply voltage is stabilized by a capacitor in order to suppress a rapid fluctuation (drop) in the power supply voltage. The microcomputer also includes a plurality of modules having functional circuits such as an I / 0 port and a timer. Instead of starting all the modules at the same time when the power supply voltage is applied to the microcomputer, the power supply voltage is controlled by controlling the power supply voltage supply timing so that multiple modules are started one by one. It is conceivable to suppress rapid fluctuations in voltage.
しかしながら、コンデンサの脱落などにより、電源電圧の負荷変動を抑制する機能が低下すると、各モジュールの立ち上げ終了時において電源電圧が戻りきらず、モジュールの立ち上げごとに電源電圧が低下してしまう。このため、複数のモジュールを立ち上げる途中で電源電圧がリセットのための閾値を下回り、マイコンがリセットする虞がある。 However, if the function of suppressing the load fluctuation of the power supply voltage is reduced due to the removal of the capacitor or the like, the power supply voltage does not return at the end of startup of each module, and the power supply voltage is reduced every time the module is started up. For this reason, the power supply voltage may fall below the threshold for resetting while starting up a plurality of modules, and the microcomputer may be reset.
本発明は上記問題点に鑑み、電源電圧の投入時にリセットするのを抑制することのできるマイクロコンピュータ及び電子制御装置を提供することを目的とする。 In view of the above problems, an object of the present invention is to provide a microcomputer and an electronic control device that can suppress resetting when a power supply voltage is turned on.
ここに開示される発明は、上記目的を達成するために以下の技術的手段を採用する。なお、特許請求の範囲及びこの項に記載した括弧内の符号は、ひとつの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、発明の技術的範囲を限定するものではない。 The invention disclosed herein employs the following technical means to achieve the above object. Note that the reference numerals in parentheses described in the claims and in this section indicate a corresponding relationship with specific means described in the embodiments described later as one aspect, and limit the technical scope of the invention. Not what you want.
開示された発明のひとつは、コンデンサ(13,14)を介して電源電圧が供給されて、所定の処理を実行するマイクロコンピュータであって、
供給される電源電圧を監視する監視回路(20)と、
機能回路をそれぞれ有する複数のモジュール(23)と、
モジュールを動作させるためのモジュールへの電源電圧の供給タイミングを制御するとともに、電源電圧の投入時には複数のモジュールが1つずつ順番に立ち上がって動作を開始するよう供給タイミングを制御する制御部(24)と、を備え、
電源電圧の投入時において、リセットのための第1閾値(Vth1)よりも高い値が設定される所定の第2閾値(Vth2)を、監視回路が監視する電源電圧が下回る場合に、制御部は、次に動作を開始させるモジュールへの電源電圧の供給タイミングを、電源電圧が第2閾値を下回らない場合よりも遅らせることを特徴とする。
One of the disclosed inventions is a microcomputer that performs a predetermined process by being supplied with a power supply voltage via a capacitor (13, 14),
A monitoring circuit (20) for monitoring the supplied power supply voltage;
A plurality of modules (23) each having a functional circuit;
A control unit (24) for controlling the supply timing of the power supply voltage to the module for operating the module, and for controlling the supply timing so that when the power supply voltage is turned on, the plurality of modules rise one by one in order and start operation. And comprising
When the power supply voltage is turned on, when the power supply voltage monitored by the monitoring circuit falls below a predetermined second threshold (Vth2) that is set higher than the first threshold (Vth1) for resetting, the control unit The supply timing of the power supply voltage to the module that starts the operation next is delayed from the case where the power supply voltage does not fall below the second threshold value.
これによれば、電源投入時に電源電圧が第2閾値を下回ると、次に動作を開始させるモジュールへの電源電圧の供給タイミングを、電源電圧が第2閾値を下回らない場合、すなわち通常時よりも遅らせることができる。このように電源電圧を少なからず復帰させてから次のモジュールを立ち上げる。これにより、たとえばコンデンサが外れることで、電源電圧の負荷変動を抑制する機能が低下しても、複数のモジュールを順番に立ち上げる途中でマイコンがリセットするのを抑制することができる。 According to this, when the power supply voltage falls below the second threshold when the power is turned on, the supply timing of the power supply voltage to the module to start the operation next is set to the time when the power supply voltage does not fall below the second threshold, that is, from the normal time. Can be delayed. In this way, the power supply voltage is restored to some extent, and then the next module is started. Thereby, for example, even if the function of suppressing the load fluctuation of the power supply voltage is reduced due to the removal of the capacitor, the microcomputer can be prevented from being reset in the middle of starting up the plurality of modules in order.
以下、本発明の実施形態を図に基づいて説明する。なお、各実施形態において、共通乃至関連する要素には同一の符号を付与するものとする。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In each embodiment, common or related elements are given the same reference numerals.
(第1実施形態)
先ず、図1に基づき、本実施形態に係る電子制御装置の概略構成を説明する。本実施形態の電子制御装置は、エンジンECU(Electronic Control Unit)として構成されている。
(First embodiment)
First, a schematic configuration of the electronic control device according to the present embodiment will be described with reference to FIG. The electronic control device of the present embodiment is configured as an engine ECU (Electronic Control Unit).
図1に示す電子制御装置10は、イグニッションスイッチ(図示略)が搭乗者によってオンされると、電源リレー(図示略)を介してバッテリ100から電力の供給を受けて動作する。そして、図示しないエンジンが出力すべき目標トルクを算出する。また、電子制御装置10は、エンジンが要求される目標トルクを生じるために、スロットルバルブの開度、燃料噴射量、及び点火タイミングなどを制御する。
When an ignition switch (not shown) is turned on by a passenger, the
この電子制御装置10は、マイコン11と、電源IC12と、コンデンサ13,14と、を備えている。
The
マイコン11は、CPU、ROM、RAM、レジスタ、及びI/Oポートなどを備えて構成されたマイクロコンピュータである。マイコン11において、CPUが、RAMやレジスタの一時記憶機能を利用しつつ、ROMに予め記憶された制御プログラム、バスを介して取得した各種データなどに応じて信号処理を行う。また、この信号処理で得られた信号を、バスに出力したりする。このようにして、マイコン11は、上記した各種機能を実行する。たとえばマイコン11は、電気負荷101の駆動を制御する。
The
電源IC12は、車両に搭載されたバッテリ100から供給される直流電圧(以下、単にバッテリ電圧と示す)を降圧し、マイコン11が動作するための電源電圧として、マイコン11に供給する。たとえば、電源IC12により、12Vのバッテリ電圧が5Vまで降圧される。このような電源IC12としては、周知の構成のもの、たとえばスイッチング電源回路やシリーズ電源回路を有するものを採用することができる。電源電圧は、コンデンサ14により安定化されて、マイコン11に供給される。バッテリ電圧は、コンデンサ13により安定化される。このため、電源電圧は、コンデンサ13によっても安定化される。
The
マイコン11は、図1に示すように、監視回路20と、リセット回路21と、異常検出回路22と、複数のモジュール23と、制御部24と、を備えている。
As shown in FIG. 1, the
監視回路20は、コンデンサ14を介して電源IC12からマイコン11に供給される電源電圧を監視する。監視回路20は、供給される電源電圧と予め設定された閾値とを比較する。監視回路20は、電源電圧が予め所定の第1閾値Vth1を下回ると、マイコン11をリセットさせるためのリセット信号を出力する。第1閾値Vth1は、言うなればリセット電圧閾値である。第1閾値Vth1としては、マイコン11の動作を保証する下限の値である動作保証下限値(たとえば3V)よりも高い値(たとえば3.3V)が設定される。リセット信号がリセット回路21に入力されることで、マイコン11がリセット状態となる。
The
また、監視回路20は、マイコン11への電源電圧の投入時において、電源電圧が予め設定された第2閾値Vth2を下回ると、フェールセーフ信号を出力する。本実施形態では、監視回路20からフェールセーフ信号が出力されると、制御部24がモジュール23に対して通常時(フェールセーフ信号が出力されないとき)とは異なる制御を実行する。第2閾値Vth2は、言うなればフェールセーフ電圧閾値である。第2閾値Vth2としては、第1閾値Vth1よりも高い値(たとえば3.5V〜3.7V)が設定される。
In addition, when the power supply voltage is applied to the
フェールセーフ信号は、異常検出回路22にも出力される。異常検出回路22は、フェールセーフ信号(たとえばHレベルの信号)が入力されると、外部機器(図示略)に対してダイアグ信号を出力する。なお、マイコン11は、図示しないパワーオンリセット回路を備えている。したがって、電源電圧が投入されてマイコン11のリセットが解除されてから所定の期間、すなわちリセット解除直後の期間を、マイコン11への電源投入時とする。
The fail safe signal is also output to the
複数のモジュール23は、それぞれ機能回路を有している。マイコン11は、スイッチやセンサからの入力や表示器への出力のためのI/Oポート機能、シリアル通信するための機能、時間を管理するためのタイマ機能、A/D変換機能などの周辺機能回路(インターフェース回路)を備えている。各モジュール23は、上記した周辺機能回路の少なくとも1つを有している。周辺機能回路は、マイコン11の種類に応じて適宜選択が可能なように、モジュール化されている。モジュール23の個数は複数(2以上)であればよい。本実施形態において、マイコン11はn個(n≧4)のモジュール23の群を備えている。図1において、第1モジュール23は1番目に立ち上げられるモジュール23を示し、第nモジュール23はn番目に立ち上げられるモジュール23を示している。たとえば、第1モジュール23はI/Oポート機能を有し、第2モジュール23はタイマ機能を有している。
Each of the plurality of
制御部24は、モジュール23を動作させるためのモジュール23への電源電圧の供給タイミングを制御する。したがって、制御部24は、モジュール起動シーケンス制御部とも言える。制御部24は、マイコン11への電源電圧の投入時において、複数のモジュール23が1つずつ順番に立ち上がって動作を開始するよう供給タイミングを制御する。制御部24は、監視回路20から出力される信号に基づいて、モジュール23への電源電圧の供給タイミングを制御する。
The
各モジュール23の入力側には、バッファ25がそれぞれ設けられている。制御部24が、立ち上げる順番のモジュール23に対応するバッファ25に指示信号を出力すると、電源電圧がバッファ25を介して対応するモジュール23に供給される。たとえばモジュール1を立ち上げる順番においては、モジュール1に対応するバッファ25を介して電源電圧が供給される。また、制御部24は、各モジュール23から立ち上げの終了を示す信号を取得する。これにより、制御部24は、複数のモジュール23を1つずつ順番に立ち上げることができる。
A
次に、図2及び図3に基づき、制御部24が実行する処理と、該処理にともなう電源電圧、モジュール23の動作状態などの変化について説明する。図3では、一例として、コンデンサ14が脱落しており、第2モジュール23の立ち上げ途中に電源電圧が第2閾値Vth2を下回る場合について説明する。
Next, based on FIGS. 2 and 3, processing executed by the
マイコン11に電源電圧が投入されてマイコン11のリセットが解除されると、制御部24は以下に示す処理を実行する。先ず制御部24は、カウンタに初期値としてX=1を設定する(ステップS10)。次いで制御部24は、現在設定されているカウント値Xに対応するモジュール23に電源電圧を供給して立ち上げるために、対応するバッファ25に指示信号を出力する(ステップS20)。カウント値Xに対応するモジュール23を、第Xモジュール23とも称する。はじめはカウンタにX=1が設定されているため、第1モジュール23に電源電圧が供給される。図3に示す時刻T10において、第1モジュール23の立ち上げが始まる。第1モジュール23を立ち上げるため、マイコン11全体に流れる電流は増加するとともに、電源電圧は立ち上げ前よりも低下する。
When the power supply voltage is applied to the
次いで制御部24は、電源電圧が第2閾値Vth2を下回るか否かを判定する(ステップS30)。制御部24は、監視回路20から出力される信号に基づいて判定を実行する。監視回路20からの信号がHレベルの信号、すなわちフェールセーフ信号の場合、制御部24は、電源電圧が第2閾値Vth2を下回っている(電源電圧<Vth2)と判定し、次いでステップS40の処理を実行する。一方、監視回路20からの信号がLレベルの信号の場合、制御部24は、電源電圧が第2閾値Vth2を下回っていない、すなわち電源電圧≧Vth2であると判定し、次いでステップS50の処理を実行する。図3に示すように、第1モジュール23の立ち上げ途中において、電源電圧>Vth2であるため、制御部24は、次いでステップS50の処理を実行する。
Next, the
ステップS50において、制御部24は、第Xモジュール23の立ち上げが終了したか否かを判定する。各モジュール23は、電源電圧の立ち上げが終了すると、終了を知らせる信号を制御部24に出力する。第Xモジュール23の立ち上げ終了を示す信号が入力されない場合、制御部24は、ステップS30に戻ってステップS30以降の処理を再び実行する。
In step S50, the
一方、第Xモジュール23の立ち上げ終了を示す信号が入力されると、制御部24は、カウンタのカウント値をインクリメント(+1)する(ステップS60)。図3に示すように、時刻T20において、第1モジュール23の立ち上げが終了すると、制御部24はカウンタにX=2を設定する。コンデンサ14が脱落しているため電源電圧は急激に降下し、第1モジュール23の立ち上げ終了時においても、十分に復帰しない。
On the other hand, when a signal indicating the end of startup of the
次いで、制御部24は、カウンタのカウント値がX=(n+1)であるか否かを判定する(ステップS70)。第nモジュール23まで立ち上げが終了すると、ステップS60でカウンタのカウント値はインクリメントされて、X=(n+1)となる。すなわち、ステップS70では、すべてのモジュール23の立ち上げが終了したか否かを判定する。時刻T20ではX=2であるため、ステップS20に戻り、以降の処理を実行する。一方、X=(n+1)の場合、すべてのモジュール23の立ち上げが終了のため、一連の処理を終了する。
Next, the
次いで制御部24は、ステップS20の処理を実行する。X=2が設定されているため、制御部24は、第2モジュール23に電源電圧を供給して立ち上げるために、第2モジュール23に対応するバッファ25に指示信号を出力する。これにより、第2モジュール23に電源電圧が供給される。第2モジュール23の立ち上げ開始は、第1モジュール23の立ち上げ終了とほぼ同じ、すなわち時刻T20である。第2モジュール23を立ち上げるため、マイコン11全体に流れる電流はさらに増加する。また、電源電圧もさらに低下する。
Next, the
次いで制御部24は、ステップS30を実行する。図3に示すように、第2モジュール23の立ち上げ途中、具体的には時刻T30で、電源電圧が第2閾値Vth2を下回る。制御部24は、電源電圧が第2閾値Vth2を下回ったと判定してから所定時間t1待機する(ステップS40)。所定時間t1は、任意のモジュール23の立ち上げの終了と、次のモジュール23の立ち上げとの間に所定の待機時間が形成されるように設定される。所定時間t1としては、たとえば数msが設定される。所定時間t1の間に、時刻T40において、第2モジュール23の立ち上げが終了する。しかしながら、所定時間t1が経過していないため、時刻T40において第3モジュール23の立ち上げは開始されない。図3に示すように、所定時間t1の待機によって電源電圧は大きく復帰する。
Next, the
所定時間t1が経過すると、次いで制御部24は、ステップS50を実行する。第2モジュール23の立ち上げは完了しているため、次いで制御部24は、ステップS60を実行し、カウンタのカウント値をインクリメントする。これにより、X=3となる。ステップS70では、NO判定となり、制御部24は再びステップS20を実行する。
When the predetermined time t1 has elapsed, the
X=3が設定されているため、制御部24は、第3モジュール23に電源電圧を供給して立ち上げるために、第3モジュール23に対応するバッファ25に指示信号を出力する。これにより、第3モジュール23に電源電圧が供給される。時刻T50において、第3モジュール23の立ち上げが始まる。第3モジュール23を立ち上げるため、マイコン11全体に流れる電流はさらに増加する。また、電源電圧も低下するが、上記した所定時間t1の待機により、立ち上げ開始時の電圧が十分に復帰(たとえば5V付近)しているため、第3モジュール23を立ち上げても、電源電圧は第2閾値Vth2、ひいてはマイコン11がリセットされる第1閾値Vth1まで低下しない。
Since X = 3 is set, the
したがって、制御部24は、ステップS50〜S70の処理を実行する。第3モジュール23から立ち上げ終了を示す信号が入力されると、制御部24は、カウンタのカウント値をインクリメントしてX=4にする。そして、X=4がX=(n+1)でないため、制御部24は、再びステップS20を実行する。
Therefore, the
X=4が設定されているため、制御部24は、第4モジュール23に電源電圧を供給して立ち上げるために、第4モジュール23に対応するバッファ25に指示信号を出力する。これにより、第4モジュール23に電源電圧が供給される。時刻T60において、第4モジュール23の立ち上げが始まる。第4モジュール23を立ち上げるため、マイコン11全体に流れる電流はさらに増加する。また、電源電圧も低下するが、上記した所定時間t1の待機により、第4モジュール23を立ち上げても、電源電圧は第2閾値Vth2、ひいてはマイコン11がリセットされる第1閾値Vth1まで低下しない。
Since X = 4 is set, the
制御部24は、上記した処理を、ステップS70において、カウンタのカウント値がX=(n+1)であると判定するまで、繰り返し実行する。
The
次に、上記したマイコン11及び電子制御装置10の効果について説明する。
Next, effects of the
図4及び図5は、参考例(比較例)を示している。参考例の説明についても、本実施形態の要素と関連する要素に同じ名称を付与する。参考例では、監視回路の監視結果に関係なく、制御部は、電源電圧の投入時には複数のモジュールが1つずつ順番に立ち上がって動作を開始するよう電源電圧の供給タイミングを制御する。図4は、コンデンサが外れておらず、電源電圧の負荷変動を抑制する機能が正常な状態を示している。図4に示すように、電源電圧の負荷変動を抑制する機能が正常であれば、待機時間を設けることなく、モジュールを連続して順番に立ち上げても、電源電圧は第1閾値Vth1まで低下しない。すなわち、マイコンはリセットしない。 4 and 5 show a reference example (comparative example). In the description of the reference example, the same name is given to an element related to the element of this embodiment. In the reference example, regardless of the monitoring result of the monitoring circuit, the control unit controls the supply timing of the power supply voltage so that when a power supply voltage is turned on, a plurality of modules rises one by one in order and starts operation. FIG. 4 shows a state in which the capacitor is not detached and the function of suppressing the load fluctuation of the power supply voltage is normal. As shown in FIG. 4, if the function for suppressing the load fluctuation of the power supply voltage is normal, the power supply voltage is reduced to the first threshold value Vth1 even if the modules are sequentially started up without providing a standby time. do not do. That is, the microcomputer is not reset.
しかしながら、たとえばコンデンサが外れることで、電源電圧の負荷変動を抑制する機能が低下した状態では、図5に示すように、各モジュールの立ち上げ終了時において電源電圧が戻りきらず、モジュールの立ち上げごとに電源電圧が低下してしまう。このため、複数のモジュールを立ち上げる途中で電源電圧が第1閾値Vth1を下回り、マイコンがリセットしてしまう。図5では、第3モジュールの立ち上げ途中で、電源電圧が第1閾値Vth1を下回り、マイコンがリセットする例を示している。 However, for example, in a state where the function of suppressing the load fluctuation of the power supply voltage is reduced due to the removal of the capacitor, as shown in FIG. 5, the power supply voltage does not return at the end of the start-up of each module. The power supply voltage will drop. For this reason, the power supply voltage falls below the first threshold value Vth1 while starting up the plurality of modules, and the microcomputer is reset. FIG. 5 shows an example in which the power supply voltage falls below the first threshold value Vth1 and the microcomputer resets during the startup of the third module.
これに対し、本実施形態では、制御部24が、監視回路20から出力される信号に基づいて、電源電圧の通常時と制御時とで異なる制御を実行する。マイコン11への電源投入時に電源電圧が第2閾値Vth2を下回ると、制御部24が、次に動作を開始させるモジュール23への電源電圧の供給タイミングを、電源電圧が第2閾値Vthを下回らない場合よりも遅らせる。特に本実施形態では、電源電圧が第2閾値Vth2を下回ったと判定した時点から所定時間t1が経過するのを待って、次のモジュール23に電源電圧を供給する。すなわち、現在立ち上げているモジュール23の終了タイミングと、次に立ち上げるモジュールの立ち上げ開始タイミングとの間に所定の待機時間を設ける。これにより、コンデンサ14が外れることで電源電圧の負荷変動を抑制する機能が低下していても、待機時間の分、電源電圧が復帰(上昇)する。したがって、電源電圧の負荷変動を抑制する機能が低下していても、複数のモジュール23を順番に立ち上げることにより急激な電圧降下が生じて、マイコン11がリセットするのを抑制することができる。
On the other hand, in the present embodiment, the
(第2実施形態)
本実施形態において、第1実施形態に示したマイコン11及び電子制御装置10と共通する部分についての説明は割愛する。
(Second Embodiment)
In the present embodiment, descriptions of parts common to the
第1実施形態では、電源電圧が第2閾値Vth2を下回ったと判定した時点から所定時間t1が経過するのを待って、次のモジュール23に電源電圧を供給する例を示した。これに対し、本実施形態では、電源電圧が第2閾値Vth2を下回ったと判定したときに立ち上げ中であるモジュール23の立ち上げが終了してから所定時間経過するのを待って、次のモジュール23に電源電圧を供給する。
In the first embodiment, an example in which the power supply voltage is supplied to the
図6に示すように、制御部24は、第1実施形態(図2)同様、ステップS10〜S30の処理を実行する。ステップS30において、電源電圧が第2閾値Vth2を下回ったと判定すると、制御部24は、第Xモジュール23の立ち上げが終了したか否かを判定する(ステップS41)。第Xモジュール23の立ち上げ終了を示す信号が入力されるまで、繰り返しステップS41を実行する。第Xモジュール23の立ち上げ終了を示す信号が入力されると、制御部24は、所定時間t2待機する(ステップ42)。所定時間t2は、任意のモジュール23の立ち上げの終了と、次のモジュール23の立ち上げとの間に所定の待機状態が形成されるように設定される。所定時間t2としては、たとえば数msが設定される。
As illustrated in FIG. 6, the
所定時間t2が経過すると、次いで制御部24は、ステップS60を実行する。また、ステップS30において、電源電圧≧第2閾値Vth2と判定した場合、第1実施形態同様ステップS50を実施する。それ以外の点については、第1実施形態と同じである。
When the predetermined time t2 has elapsed, the
図7では、第1実施形態(図3)同様、コンデンサ14が脱落しており、第2モジュール23の立ち上げ途中、具体的には第2モジュール23の立ち上げ途中である時刻T30に、電源電圧が第2閾値Vth2を下回る場合を示している。上記したように、本実施形態では、電源電圧が第2閾値Vth2を下回ったと判定したときに立ち上げ中である第2モジュール23の立ち上げが終了してから所定時間t2が経過するのを待って、次の第3モジュール23に電源電圧を供給する。すなわち、現在立ち上げている第2モジュール23の終了タイミングと、次に立ち上げる第3モジュールの立ち上げ開始タイミングとの間に所定の待機時間を設ける。これにより、コンデンサ14が外れることで電源電圧の負荷変動を抑制する機能が低下していても、待機時間の分、電源電圧が復帰(上昇)する。したがって、電源電圧の負荷変動を抑制する機能が低下していても、複数のモジュール23を順番に立ち上げることにより急激な電圧降下が生じて、マイコン11がリセットするのを抑制することができる。
In FIG. 7, as in the first embodiment (FIG. 3), the capacitor 14 has dropped off, and the power supply is turned on at the time T30 during the start-up of the
特に本実施形態では、電源電圧が第2閾値Vth2を下回ったと判定したときに立ち上げ中であるモジュール23の立ち上げが終了してから所定時間t2が経過するのを待って、次のモジュール23に電源電圧を供給する。したがって、現在立ち上げているモジュール23の終了タイミングと、次に立ち上げるモジュールの立ち上げ開始タイミングとの間に、より確実に所定の待機時間を設けることができる。これにより、マイコン11がリセットするのをより効果的に抑制することができる。
In particular, in the present embodiment, when it is determined that the power supply voltage has fallen below the second threshold value Vth2, the
(第3実施形態)
本実施形態において、第2実施形態に示したマイコン11及び電子制御装置10と共通する部分についての説明は割愛する。
(Third embodiment)
In the present embodiment, descriptions of parts common to the
本実施形態では、電源電圧が第2閾値Vth2を下回った後、電源電圧が第2閾値Vth2まで復帰してから所定時間経過するのを待って、次のモジュール23に電源電圧を供給する。
In this embodiment, after the power supply voltage falls below the second threshold value Vth2, the power supply voltage is supplied to the
図8に示すように、制御部24は、第1実施形態(図2)同様、ステップS10〜S30の処理を実行する。ステップS30において、電源電圧が第2閾値Vth2を下回ったと判定すると、制御部24は、電源電圧が第2閾値Vth2以上であるか否かを判定する(ステップS43)。すなわち、電源電圧が第2閾値Vth2まで復帰したか否かを判定する。電源電圧が第2閾値Vth2以上であると判定されるまで、繰り返しステップS43を実行する。電源電圧が第2閾値Vth2以上であると判定されると、制御部24は、所定時間t3待機する(ステップS44)。所定時間t3は、任意のモジュール23の立ち上げの終了と、次のモジュール23の立ち上げとの間に所定の待機状態が形成されるように設定される。所定時間t3としては、たとえば数msが設定される。
As illustrated in FIG. 8, the
所定時間t3が経過すると、次いで制御部24は、第2実施形態同様、ステップS60を実行する。それ以外の点については、第2実施形態と同じである。
When the predetermined time t3 has elapsed, the
図9では、第1実施形態(図3)同様、コンデンサ14が脱落しており、第2モジュール23の立ち上げ途中、具体的には第2モジュール23の立ち上げ途中である時刻T30に、電源電圧が第2閾値Vth2を下回る場合を示している。また、第2モジュール立ち上げが終了する時刻T40後の時刻T41で、電源電圧が第2閾値Vth2に復帰する。上記したように、本実施形態では、電源電圧が第2閾値Vth2を下回った後、電源電圧が第2閾値Vth2まで復帰してから所定時間t3が経過するのを待って、次の第3モジュール23に電源電圧を供給する。すなわち、現在立ち上げている第2モジュール23の終了タイミングと、次に立ち上げる第3モジュールの立ち上げ開始タイミングとの間に所定の待機時間を設ける。これにより、コンデンサ14が外れることで電源電圧の負荷変動を抑制する機能が低下していても、待機時間の分、電源電圧が復帰(上昇)する。したがって、電源電圧の負荷変動を抑制する機能が低下していても、複数のモジュール23を順番に立ち上げることにより急激な電圧降下が生じて、マイコン11がリセットするのを抑制することができる。
In FIG. 9, as in the first embodiment (FIG. 3), the capacitor 14 has fallen off, and the power supply is at the time T30 during the start-up of the
特に本実施形態では、電源電圧が第2閾値Vth2まで復帰してから所定時間t3が経過するのを待って、次のモジュール23に電源電圧を供給する。したがって、所定時間t3により、電源電圧を第2閾値Vth2に対して確実に上昇させることができる。これにより、マイコン11がリセットするのをより効果的に抑制することができる。
In particular, in this embodiment, the power supply voltage is supplied to the
(第4実施形態)
本実施形態において、第2実施形態に示したマイコン11及び電子制御装置10と共通する部分についての説明は割愛する。
(Fourth embodiment)
In the present embodiment, descriptions of parts common to the
本実施形態では、電源電圧が第2閾値Vth2を下回った後、電源電圧が第2閾値Vth2よりも高い値が設定される所定の第3閾値Vth3まで復帰すると、次のモジュール23に電源電圧を供給する。
In the present embodiment, after the power supply voltage falls below the second threshold value Vth2, when the power supply voltage returns to a predetermined third threshold value Vth3 that is set to a value higher than the second threshold value Vth2, the power supply voltage is supplied to the
図10に示すように、制御部24は、第1実施形態(図2)同様、ステップS10〜S30の処理を実行する。ステップS30において、電源電圧が第2閾値Vth2を下回ったと判定すると、制御部24は、電源電圧が第3閾値Vth3以上であるか否かを判定する(ステップS45)。すなわち、電源電圧が第3閾値Vth3まで復帰したか否かを判定する。第3閾値Vth3は、言うなれば電圧安定閾値である。第3閾値Vth3としては、第2閾値Vth2よりも高い値(たとえば4V)が設定される。
As illustrated in FIG. 10, the
電源電圧が第3閾値Vth3以上であると判定されるまで、繰り返しステップS45を実行する。電源電圧が第3閾値Vth3以上であると判定されると、制御部24は、第1実施形態同様、ステップS50を実行する。それ以外の点については、第1実施形態と同じである。
Step S45 is repeatedly executed until it is determined that the power supply voltage is equal to or higher than the third threshold value Vth3. When it is determined that the power supply voltage is equal to or higher than the third threshold value Vth3, the
図11では、第1実施形態(図3)同様、コンデンサ14が脱落しており、第2モジュール23の立ち上げ途中、具体的には第2モジュール23の立ち上げ途中である時刻T30に、電源電圧が第2閾値Vth2を下回る場合を示している。上記したように、本実施形態では、電源電圧が第2閾値Vth2を下回った後、電源電圧が第3閾値Vth3まで復帰(上昇)するのを待って、次の第3モジュール23に電源電圧を供給する。これにより、コンデンサ14が外れることで電源電圧の負荷変動を抑制する機能が低下していても、第3閾値Vth3まで電源電圧が復帰(上昇)する。したがって、電源電圧の負荷変動を抑制する機能が低下していても、複数のモジュール23を順番に立ち上げることにより急激な電圧降下が生じて、マイコン11がリセットするのを抑制することができる。
In FIG. 11, as in the first embodiment (FIG. 3), the capacitor 14 has been dropped, and the power supply is turned on at the time T30 during the start-up of the
特に本実施形態では、電源電圧が第3閾値Vth3まで復帰するのを待って、次のモジュール23に電源電圧を供給する。すなわち、電源電圧が所定値まで復帰してから次のモジュール23を立ち上げる。これにより、マイコン11がリセットするのをより効果的に抑制することができる。
In particular, in the present embodiment, the power supply voltage is supplied to the
以上、本発明の好ましい実施形態について説明したが、本発明は上記実施形態になんら制限されることなく、本発明の主旨を逸脱しない範囲において、種々変形して実施することが可能である。 The preferred embodiments of the present invention have been described above, but the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the spirit of the present invention.
電子制御装置10としては、エンジンECUに限定されない。
The
バッファ25については、制御部24内に設けることもできる。
The
コンデンサ14が外れることで、電源電圧の負荷変動を抑制する機能が低下する例を示した。しかしながら、コンデンサ13が外れても、電源電圧の負荷変動を抑制する機能が低下する。すなわち、コンデンサ13,14の少なくとも一方が外れると、電源電圧の負荷変動を抑制する機能が低下する。また、経年劣化などバッテリ100の性能が低下することによっても、電源電圧の負荷変動を抑制する機能が低下する。
The example in which the function of suppressing the load fluctuation of the power supply voltage is reduced by removing the capacitor 14 is shown. However, even if the
10…電子制御装置、11…マイコン、12…電源IC、13,14…コンデンサ、20…監視回路、21…異常検出回路、22…リセット回路、23…モジュール、24…制御部、25…バッファ、100…バッテリ、101…電気負荷
DESCRIPTION OF
Claims (6)
供給される前記電源電圧を監視する監視回路(20)と、
機能回路をそれぞれ有する複数のモジュール(23)と、
前記モジュールを動作させるための前記モジュールへの前記電源電圧の供給タイミングを制御するとともに、前記電源電圧の投入時には複数の前記モジュールが1つずつ順番に立ち上がって動作を開始するよう前記供給タイミングを制御する制御部(24)と、を備え、
前記電源電圧の投入時において、リセットのための第1閾値(Vth1)よりも高い値が設定される所定の第2閾値(Vth2)を、前記監視回路が監視する前記電源電圧が下回る場合に、前記制御部は、次に動作を開始させる前記モジュールへの前記電源電圧の供給タイミングを、前記電源電圧が前記第2閾値を下回らない場合よりも遅らせることを特徴とするマイクロコンピュータ。 A microcomputer that is supplied with a power supply voltage via a capacitor (13, 14) and executes a predetermined process,
A monitoring circuit (20) for monitoring the supplied power supply voltage;
A plurality of modules (23) each having a functional circuit;
Controls the supply timing of the power supply voltage to the module for operating the module, and controls the supply timing so that when the power supply voltage is turned on, the plurality of modules start up one after another in sequence. A control unit (24) for performing,
When the power supply voltage monitored by the monitoring circuit falls below a predetermined second threshold value (Vth2) that is set higher than the first threshold value for resetting (Vth1) at the time of turning on the power supply voltage, The microcomputer is characterized in that the control unit delays the supply timing of the power supply voltage to the module to start the operation next than the case where the power supply voltage does not fall below the second threshold value.
前記電源電圧を出力する電源回路(12)と、
前記電源電圧を安定化させるためのコンデンサ(13,14)と、
を備えることを特徴とする電子制御装置。 A microcomputer (11) according to any one of claims 1 to 5,
A power supply circuit (12) for outputting the power supply voltage;
Capacitors (13, 14) for stabilizing the power supply voltage;
An electronic control device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015087028A JP6384393B2 (en) | 2015-04-21 | 2015-04-21 | Microcomputer and electronic control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015087028A JP6384393B2 (en) | 2015-04-21 | 2015-04-21 | Microcomputer and electronic control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016206906A JP2016206906A (en) | 2016-12-08 |
JP6384393B2 true JP6384393B2 (en) | 2018-09-05 |
Family
ID=57487845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015087028A Active JP6384393B2 (en) | 2015-04-21 | 2015-04-21 | Microcomputer and electronic control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6384393B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7226303B2 (en) * | 2019-12-26 | 2023-02-21 | 株式会社デンソー | Control device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004120971A (en) * | 2002-09-30 | 2004-04-15 | Nec Engineering Ltd | Power supply apparatus |
US7170315B2 (en) * | 2003-07-31 | 2007-01-30 | Actel Corporation | Programmable system on a chip |
JP4423468B2 (en) * | 2004-03-01 | 2010-03-03 | 富士電機システムズ株式会社 | Power start circuit, start / stop order control device, and start / stop order control method |
JP2006082407A (en) * | 2004-09-16 | 2006-03-30 | Fuji Xerox Co Ltd | Image forming device and power-saving control method |
US7630841B2 (en) * | 2007-03-30 | 2009-12-08 | Texas Instruments Incorporated | Supervising and sequencing commonly driven power supplies with digital information |
-
2015
- 2015-04-21 JP JP2015087028A patent/JP6384393B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016206906A (en) | 2016-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5743932B2 (en) | ECU abnormality monitoring circuit | |
JP4665846B2 (en) | Microcomputer and electronic control device | |
US9477542B2 (en) | Electronic control unit | |
JP7269359B2 (en) | electronic controller | |
JP6384393B2 (en) | Microcomputer and electronic control device | |
JP2016222187A (en) | Electronic control device | |
JP6142849B2 (en) | Battery monitoring system | |
JP5555472B2 (en) | Electronic control system for vehicles | |
JP6183229B2 (en) | Electronic control unit | |
JP2015042072A5 (en) | ||
JP6321421B2 (en) | Vehicle power supply | |
US9599644B2 (en) | Semiconductor device | |
JP5800358B2 (en) | Power switch protection circuit and in-vehicle equipment | |
JP2007041824A (en) | Resetting circuit for electronic control unit | |
JP6181011B2 (en) | Control device for internal combustion engine | |
JP6332048B2 (en) | Electronic control unit | |
JP6236325B2 (en) | Processor control apparatus and control method | |
JP6447268B2 (en) | Electronic control unit | |
JP6172040B2 (en) | Electronic control unit | |
JP5949576B2 (en) | Load drive circuit | |
JP4419671B2 (en) | Reset control circuit | |
JP2016032989A (en) | Load controller | |
JP2008088921A (en) | On-vehicle electronic equipment control system | |
JP2008210096A (en) | Memory check system of electronic control unit | |
JP6477535B2 (en) | Electronic control unit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170725 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180628 |
|
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: 20180710 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180723 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6384393 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |