JP2008176393A - Electronic controller - Google Patents

Electronic controller Download PDF

Info

Publication number
JP2008176393A
JP2008176393A JP2007007096A JP2007007096A JP2008176393A JP 2008176393 A JP2008176393 A JP 2008176393A JP 2007007096 A JP2007007096 A JP 2007007096A JP 2007007096 A JP2007007096 A JP 2007007096A JP 2008176393 A JP2008176393 A JP 2008176393A
Authority
JP
Japan
Prior art keywords
program rewrite
program
condition
microcomputer
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007007096A
Other languages
Japanese (ja)
Other versions
JP4486653B2 (en
Inventor
Chin Aik Ng
チン エイク エン
Koji Ebata
浩二 江端
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2007007096A priority Critical patent/JP4486653B2/en
Publication of JP2008176393A publication Critical patent/JP2008176393A/en
Application granted granted Critical
Publication of JP4486653B2 publication Critical patent/JP4486653B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Microcomputers (AREA)
  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic controller that can prevent a malfunction of a microcomputer, even if a program rewriting condition is met accidentally. <P>SOLUTION: The electronic controller has the microcomputer 9, a multiple programs rewriting condition determination circuit 8 having a plurality of program rewriting condition determination circuits 5 each for determining whether a program rewriting condition is met according to a combination of a plurality of external input signals, a program rewriting mode output circuit 8 for indicating rewriting of a program to the microcomputer according to the output of the program rewriting condition determination circuit, and a program rewriting condition selector 4. The program rewriting condition selector 4 acquires a level of a program rewriting condition selection voltage input into its own specific input terminal, puts the associated program rewriting condition determination circuit among the plurality of program rewriting condition determination circuits into an enabled state according to the level of the voltage, and puts other program rewriting condition determination circuits into a disabled state. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、マイコンを備えた電子制御装置にかかり、特に複数のプログラム書き換え条件判定回路の中からある特定のプログラム書き換え条件判定回路のみを動作可能(イネーブル)にするプログラム書き換え条件セレクタを備えたオンボード書き換え可能な電子制御装置に関する。   The present invention relates to an electronic control device including a microcomputer, and in particular, an ON having a program rewrite condition selector that enables (enables) only a specific program rewrite condition determination circuit from among a plurality of program rewrite condition determination circuits. The present invention relates to a board rewritable electronic control device.

書き換え可能不揮発性メモリを構成要素とするマイコンを備え、前記書き換え可能不揮発性メモリに記憶された制御プログラムや制御データを装置の完成状態で書き換えることができるオンボード書き換え可能な電子制御装置は既に提案されている(特許文献1,2参照)。   An on-board rewritable electronic control device that has a microcomputer having a rewritable nonvolatile memory as a component and can rewrite the control program and control data stored in the rewritable nonvolatile memory in the completed state of the device has already been proposed (See Patent Documents 1 and 2).

この種の電子制御装置は、通常モード時、マイコンは書き換え可能不揮発性メモリに記憶された制御プログラムを実行し、制御対象をコントロールするための制御処理を行う。   In this type of electronic control device, in the normal mode, the microcomputer executes a control program stored in the rewritable nonvolatile memory and performs a control process for controlling a control target.

また、プログラム書き換えモード時には、制御装置外部からの入力信号を判定回路で判定し、その判定結果にしたがって、マイコンの動作状態をプログラム書き換えモードに切り換え、プログラム書き換えが実行される。   In the program rewrite mode, an input signal from the outside of the control device is determined by the determination circuit, and the operation state of the microcomputer is switched to the program rewrite mode according to the determination result, and the program rewrite is executed.

プログラム書き換えのための制御装置外部からの入力信号は、アプリケーションごとに異なるため、その判定回路もアプリケーションごとに用意されている。
特開平11−272498号公報 特開平12−284892号公報
Since the input signal from the outside of the control device for program rewriting differs for each application, the determination circuit is also prepared for each application.
JP-A-11-272498 JP-A-12-284892

単一の電子制御装置を各々のアプリケーションに適用する場合、アプリケーションごとに異なるプログラム書き換え条件判定回路が必要とされる。このような場合、生産性の低下を防止するためには、適用されるアプリケーションごとの製造工程に変更を加えないことが望ましい。   When a single electronic control unit is applied to each application, a different program rewrite condition determination circuit is required for each application. In such a case, in order to prevent a decrease in productivity, it is desirable not to change the manufacturing process for each application to be applied.

このため、複数のプログラム書き換え条件判定回路(前記異なるプログラム書き換え条件を判定する回路)を共存させるような製品設計が行われる。この場合、入力信号として実制御に使用する信号(センサの検出信号等)を用いると、次のような問題が発生する。   For this reason, product design is performed such that a plurality of program rewrite condition determination circuits (circuits for determining different program rewrite conditions) coexist. In this case, if a signal used for actual control (such as a sensor detection signal) is used as an input signal, the following problem occurs.

すなわち、複数のプログラム書き換え条件判定回路が存在すると、アプリケーションとして、書き換えモードを許可してはならない場合において、他のプログラム書き換え条件判定回路により、プログラム書き換えモードが許可される場合が発生する。このような場合には制御プログラムのセキュリティ上の問題が発生する。   That is, when there are a plurality of program rewrite condition determination circuits, the program rewrite mode may be permitted by another program rewrite condition determination circuit when the rewrite mode should not be permitted as an application. In such a case, a security problem of the control program occurs.

書き換え条件判定回路がプログラム書き換え条件が成立したと判定した場合、判定信号はマイコンの動作モードを書き換えモードにセレクトする。また、前記判定信号は、制御装置内部のシステムリセット信号を書き換え動作中に発生させないため、リセット回路に対しリセット信号の発生をディセイブル(無効)する。   When the rewrite condition determination circuit determines that the program rewrite condition is satisfied, the determination signal selects the microcomputer operation mode as the rewrite mode. Further, since the determination signal does not generate the system reset signal inside the control device during the rewriting operation, the generation of the reset signal is disabled (invalidated) for the reset circuit.

前記書き換え条件の判定に用いる入力信号は、実制御においても使用される信号であるため、アプリケーションとして仕様上書き換えモードを許可しない条件においても、リセット信号の発生をディセイブルさせてしまう。このため、ウォッチドッグタイマがその機能を停止させてしまい、マイコンの暴走を監視することが不可能となることがある。   Since the input signal used for the determination of the rewrite condition is a signal that is also used in actual control, the generation of the reset signal is disabled even under the condition that the rewrite mode is not permitted in the specification as an application. For this reason, the watchdog timer stops its function, and it may be impossible to monitor the microcomputer runaway.

本発明はこれらの問題点に鑑みてなされたもので、プログラム書き換え条件が誤って成立した場合においても、マイコンの誤動作を防止することのできる電子制御装置を提供するものである。   The present invention has been made in view of these problems, and it is an object of the present invention to provide an electronic control device capable of preventing a malfunction of a microcomputer even when a program rewrite condition is falsely established.

本発明は上記課題を解決するため、次のような手段を採用した。   In order to solve the above problems, the present invention employs the following means.

入力された複数の外部入力信号の組み合わせにしたがって動作するマイコンと、前記複数の外部入力信号の組み合わせにしたがってそれぞれプログラム書き換え条件の成立を判定するプログラム書き換え条件判定回路を複数備えた複数プログラム書き換え条件判定回路と、前記複数プログラム書き換え条件判定回路出力にしたがって前記マイコンにプログラムの書き換えを指示するプログラム書き換えモード出力回路と、プログラム書き換え条件セレクタを備え、該プログラム書き換え条件セレクタは、自己の特定入力端子に入力されるプログラム書き換え条件選定用電圧のレベルを取得し、取得した電圧のレベルに応じて前記複数のプログラム書き換え条件判定回路のうち対応付けられたプログラム書き換え条件判定回路をイネイブル状態とし、他のプログラム書き換え条件の判定回路をディセイブル状態とする。   Multiple program rewrite condition determination comprising a microcomputer that operates according to a combination of a plurality of input external input signals and a plurality of program rewrite condition determination circuits that determine whether a program rewrite condition is satisfied according to the combination of the plurality of external input signals. A program rewrite mode output circuit for instructing the microcomputer to rewrite the program according to the output of the multiple program rewrite condition determination circuit, and a program rewrite condition selector, the program rewrite condition selector being input to its own specific input terminal The level of the program rewrite condition selection voltage to be acquired is acquired, and the associated program rewrite condition determination circuit among the plurality of program rewrite condition determination circuits is enabled according to the acquired voltage level And, the decision circuit of another program rewrite condition and a disabled state.

本発明は、以上の構成を備えるため、プログラム書き換え条件が誤って成立した場合においても、マイコンの誤動作を防止することのできる電子制御装置を提供することができる。   Since the present invention has the above-described configuration, it is possible to provide an electronic control device that can prevent a malfunction of a microcomputer even when a program rewrite condition is falsely established.

以下、最良の実施形態を添付図面を参照しながら説明する。図1は、本発明の実施形態にかかる電子制御装置20を説明する図である。図において、マイコン9は、電子制御装置20の外部スイッチ14からの入力信号BS1、BS2、BS3にしたがって制御対象をコントロールする。   Hereinafter, the best embodiment will be described with reference to the accompanying drawings. FIG. 1 is a diagram illustrating an electronic control device 20 according to an embodiment of the present invention. In the figure, the microcomputer 9 controls the controlled object in accordance with input signals BS1, BS2, BS3 from the external switch 14 of the electronic control unit 20.

入力信号BS1、BS2、BS3は実制御信号として用いられるほか、プログラム書き換え条件としても用いられる。入力信号BS1、BS2、BS3によりプログラム書き換えを実行する際には、複数プログラム書き換え条件判定回路5において、ユーザがプログラム書き換えを行おうとしている可否かを判断し、判断結果にしたがってプログラム書き換えモード出力回路8から出力されるプログラム書き換えモード信号PMの論理をコントロールする。   The input signals BS1, BS2, BS3 are used as actual control signals and also as program rewrite conditions. When program rewriting is executed by the input signals BS1, BS2, BS3, the plural program rewriting condition determination circuit 5 determines whether or not the user is going to rewrite the program, and the program rewriting mode output circuit according to the determination result 8 controls the logic of the program rewrite mode signal PM output from the control unit 8.

プログラム書き換えモード信号PMがプログラム書き換えモードを示す場合、マイコン9は書き換え許可モードとなり、ブート領域12からプログラムを起動する。このプログラムは、ユーザ領域11に格納されているプログラムとは異なり、リセット回路13にウォッチドッグタイマ用のパルスPRを出力し続けることができない。   When the program rewrite mode signal PM indicates the program rewrite mode, the microcomputer 9 enters the rewrite permission mode and starts the program from the boot area 12. Unlike the program stored in the user area 11, this program cannot continue to output the watchdog timer pulse PR to the reset circuit 13.

リセット回路13は、前記パルスが入力されない場合システムリセット信号を発生するように設定されている。なお、このシステムリセット信号は、プログラム書き換えモード出力回路8からリセット回路13にプログラム書き換えモード信号PMを供給することにより抑制することができる。これにより、プログラム書き換え時にマイコン9がリセットされることなく、プログラム書き換えが可能となる。   The reset circuit 13 is set to generate a system reset signal when the pulse is not input. The system reset signal can be suppressed by supplying the program rewrite mode signal PM from the program rewrite mode output circuit 8 to the reset circuit 13. As a result, the program can be rewritten without resetting the microcomputer 9 when the program is rewritten.

ところで、単一の電子制御装置20を、例えば複数(3個)のアプリケーションに適用する場合、アプリケーションごとに異なるプログラム書き換え条件が必要となる。このため、本実施形態ではプログラム書き換え条件判定回路を複数(5−1〜5−3)備える。   By the way, when the single electronic control unit 20 is applied to, for example, a plurality (three) of applications, different program rewriting conditions are required for each application. For this reason, in this embodiment, a plurality (5-1 to 5-3) of program rewrite condition determination circuits are provided.

なお、異なるアプリケーションごとに部品実装仕様を変更した電子制御装置を制作することは、製品の生産性を低下させる要因となる。このため、図1に示すように、アプリケーションごとの製造工程を変更することなく同一の電子制御装置を制作し、制作した各電子制御装置のそれぞれに、複数プログラム書き換え条件判定回路5(複数の異なるプログラム書き換え条件を判定する書き換え条件判定回路5−1ないし5−3)を実装し、共存させる。これにより生産性を上げることができる。   It should be noted that producing an electronic control device in which the component mounting specifications are changed for each different application becomes a factor of reducing product productivity. For this reason, as shown in FIG. 1, the same electronic control device is produced without changing the manufacturing process for each application, and a plurality of program rewrite condition determination circuits 5 (a plurality of different ones are provided for each produced electronic control device. Rewrite condition determination circuits 5-1 to 5-3) for determining a program rewrite condition are mounted and coexist. Thereby, productivity can be raised.

前述のように、プログラム書き換え条件は、電子制御装置20の各アプリケーションによって異なる。また、入力信号BS1、BS2、BS3は常時変化する。このため、ある特定のアプリケーションとして仕様上書き換えモードに移行することを許可してはならない場合において、他のアプリケーション用のプログラム書き換え条件の判定回路により、プログラム書き換えモード信号PMがプログラム書き換えモードの論理になることがあり得る。すなわち、生産性向上のため複数プログラム書き換え条件の判定回路を共存させることは、マイコン9の動作モードおよびウォッチドッグタイマの抑制を誤って設定してしまう可能性があると言える。   As described above, the program rewriting condition varies depending on each application of the electronic control unit 20. Further, the input signals BS1, BS2, BS3 constantly change. For this reason, when it is not permitted to shift to the rewrite mode as a specific application, the program rewrite mode signal PM is changed to the logic of the program rewrite mode by the program rewrite condition determination circuit for another application. Can be. That is, it can be said that coexistence of a determination circuit for a plurality of program rewrite conditions for improving productivity may erroneously set the operation mode of the microcomputer 9 and suppression of the watchdog timer.

そこで、本実施形態では、プログラム書き換え条件セレクタ4を用い、セレクタ4で設定した閾値電圧とプログラム書き換え条件選定用電圧V2とを比較し、比較結果にしたがって複数のプログラム書き換え条件判定回路のうちのいずれか一つを選択し、選択した書き換え条件判定回路のみを動作可能とする。   Therefore, in the present embodiment, the program rewrite condition selector 4 is used, the threshold voltage set by the selector 4 is compared with the program rewrite condition selection voltage V2, and any of the plurality of program rewrite condition determination circuits is determined according to the comparison result. One of them is selected, and only the selected rewrite condition determination circuit can be operated.

図2は、プログラム書き換え条件セレクタ4の構成を示す図である。図に示すように、電源電圧Vccを抵抗R1、R2、R3で分圧し、その分圧比に基づいて、コンパレータCP1、CP2の判定閾値を設定する。図2の例では、コンパレータCP1の閾値Vc1はVcc*(R2+R3)/(R1+R2+R3)であり、コンパレータCP2の閾値Vc2はVcc*R3/(R1+R2+R3)である。   FIG. 2 is a diagram showing the configuration of the program rewrite condition selector 4. As shown in the figure, the power supply voltage Vcc is divided by resistors R1, R2, and R3, and the determination threshold values of the comparators CP1 and CP2 are set based on the voltage division ratio. In the example of FIG. 2, the threshold value Vc1 of the comparator CP1 is Vcc * (R2 + R3) / (R1 + R2 + R3), and the threshold value Vc2 of the comparator CP2 is Vcc * R3 / (R1 + R2 + R3).

これによりプログラム書き換えセレクタ4は、プログラム書き換え条件選定用電圧V2が、Vc1以上、Vc1以下でVc2以上、Vc2以下のいずれの電圧範囲内にあるかを判定することができる。例えば、プログラム書き換え条件選定用電圧V2がVc1以上と判定された場合、プログラム書き換え条件Iの判定回路5−1がオン(動作可能)にされると同時に、プログラム書き換え条件IIの判定回路5−2とプログラム書き換え条件IIIの判定回路5−3の判定回路がオフ(動作不能)にされることになる。   Thus, the program rewrite selector 4 can determine whether the program rewrite condition selection voltage V2 is within a voltage range of Vc1 or more and Vc1 or less and Vc2 or more and Vc2 or less. For example, when the program rewrite condition selection voltage V2 is determined to be equal to or higher than Vc1, the determination circuit 5-1 for the program rewrite condition I is turned on (operable) and at the same time, the determination circuit 5-2 for the program rewrite condition II Thus, the determination circuit of the determination circuit 5-3 for the program rewrite condition III is turned off (inoperable).

このとき、入力信号BS1とBS3の信号がプログラム書き換え条件Iを満足すると、複数プログラム書き換え条件判定回路5のセレクタ4によりオンとされたプログラム書き換え条件判定回路5−1で判定されたプログラム書き換えモードのみが許可される。   At this time, when the signals of the input signals BS1 and BS3 satisfy the program rewrite condition I, only the program rewrite mode determined by the program rewrite condition determination circuit 5-1 turned on by the selector 4 of the plural program rewrite condition determination circuit 5 is used. Is allowed.

このように、プログラム書き換え条件セレクタ4のエンコード結果により選択された判定回路のみが機能し、選択されない判定回路は機能しないようにした。このため、他のプログラム書き換え条件判定回路によりプログラム書き換えモードが許可されることを防止することができる。   In this way, only the determination circuit selected based on the encoding result of the program rewrite condition selector 4 functions, and the determination circuit that is not selected does not function. Therefore, it is possible to prevent the program rewrite mode from being permitted by another program rewrite condition determination circuit.

ところで、前記プログラム書き換え条件セレクタ4の追加によっても回避することができない問題がある。   However, there is a problem that cannot be avoided even by adding the program rewrite condition selector 4.

すなわち、通常動作モード時、前記プログラム書き換え条件セレクタ4により、当該アプリケーションに適用されるプログラム書き換え条件判定回路5−1〜5−3のいずれか一つのみをオン(動作可能)にし、適用されない残りの判定回路をオフ(動作不能)にしても、制御上常時変化する入力信号BS1、BS2、BS3の組み合せが、前記オンとされた判定回路の条件を満足した場合、プログラム書き換えモード出力回路8はプログラム書き換えモード信号PMを出力してしまう。   That is, in the normal operation mode, only one of the program rewrite condition determination circuits 5-1 to 5-3 applied to the application is turned on (operable) by the program rewrite condition selector 4, and the remaining is not applied. If the combination of the input signals BS1, BS2, and BS3 that constantly change in control satisfies the conditions of the turned-on determination circuit even when the determination circuit is turned off (inoperable), the program rewrite mode output circuit 8 The program rewrite mode signal PM is output.

マイコン9は、起動時のみ動作モード端子の論理(プログラム書き換えモード信号PMの論理)にしたがって、ユーザ領域11またはブート領域12のプログラムを選択して起動する。なお、起動後はプログラム書き換えモード信号PMの論理が変化しても、この変化はマイコン9の機能上、キャンセルされる。しかし、リセット回路13中のウォッチドッグタイマの機能は停止されるため、マイコン9のプログラム暴走監視は不可能となる。   The microcomputer 9 selects and starts the program in the user area 11 or the boot area 12 according to the logic of the operation mode terminal (the logic of the program rewrite mode signal PM) only at the time of startup. Even if the logic of the program rewrite mode signal PM changes after startup, this change is canceled due to the function of the microcomputer 9. However, since the function of the watchdog timer in the reset circuit 13 is stopped, the program runaway monitoring of the microcomputer 9 becomes impossible.

このため、本実施形態では、通常動作モードで実行されるユーザ領域11内のプログラムに、プログラム書き換えモード出力回路8に対して書き換えモード信号PMの出力をキャンセルする書き換えモード出力キャンセル信号C1を出力する機能を付加する。これにより、通常動作モード時にプログラム書き換えモード出力回路8の機能を停止させることができる。   For this reason, in this embodiment, a rewrite mode output cancel signal C1 for canceling the output of the rewrite mode signal PM is output to the program rewrite mode output circuit 8 to the program in the user area 11 executed in the normal operation mode. Add functionality. Thereby, the function of the program rewrite mode output circuit 8 can be stopped in the normal operation mode.

これにより、通常動作モード時に何れかのアプリケーションに適用されるプログラム書き換え条件が入力信号BS1〜BS3の何れかの組み合せで成立しても、ウォッチドッグタイマの機能が誤って停止されることない。このため、マイコン9の暴走を監視することができ、電子制御装置として正規かつ安全な動作を果たすことが可能となる。   Thereby, even if the program rewrite condition applied to any application in the normal operation mode is established by any combination of the input signals BS1 to BS3, the function of the watchdog timer is not erroneously stopped. For this reason, the runaway of the microcomputer 9 can be monitored, and it becomes possible to perform regular and safe operation as an electronic control device.

以上説明したように、本実施形態によれば、プログラム書き換え条件の選定用信号(プログラム書き換え条件選定用電圧)をプログラム書き換え条件セレクタに入力し、該プログラム書き換え条件セレクタは前記選定信号を判断し、その判断結果に基づいてある特定のアプリケーションのプログラム書き換え条件判定回路のみイネイブルする。これによって、他のプログラム書き換え条件によるプログラム書き換えモードの発生が抑止することが可能である。   As described above, according to the present embodiment, a program rewrite condition selection signal (program rewrite condition selection voltage) is input to the program rewrite condition selector, and the program rewrite condition selector determines the selection signal, Only the program rewrite condition determination circuit for a specific application is enabled based on the determination result. As a result, the occurrence of the program rewrite mode due to other program rewrite conditions can be suppressed.

また、マイコンが通常動作モードにおいて制御プログラムを実行している場合、マイコンからプログラム書き換えモード出力回路に対して常時、書き換えモード信号PMをディセイブルする信号(キャンセル信号C1)を送信する。このため、通常動作モードにおいてプログラム書き換え条件が成立して書き換えモードが許可されても、プログラム書き換えモード信号PMがマイコンやリセット回路に出力されることはない。このため、ウォッチドッグタイマの機能が誤って停止されることを避けることができる。   When the microcomputer is executing the control program in the normal operation mode, the microcomputer always transmits a signal (cancel signal C1) for disabling the rewrite mode signal PM to the program rewrite mode output circuit. For this reason, even if the program rewrite condition is satisfied and the rewrite mode is permitted in the normal operation mode, the program rewrite mode signal PM is not output to the microcomputer or the reset circuit. For this reason, it can be avoided that the function of the watchdog timer is stopped by mistake.

実施形態にかかる電子制御装置20を説明する図である。It is a figure explaining electronic control unit 20 concerning an embodiment. プログラム書き換え条件セレクタ4の構成を示す図である。It is a figure which shows the structure of the program rewriting condition selector.

符号の説明Explanation of symbols

4 プログラム書き換え条件セレクタ
5 複数プログラム書き換え条件判定回路
5−1 プログラム書き換え条件Iの判定回路
5−2 プログラム書き換え条件IIの判定回路
5−3 プログラム書き換え条件IIIの判定回路
8 プログラム書き換えモード出力回路
9 マイコン
10 CPU
11 ユーザ領域
12 ブート領域
13 リセット回路
14 外部スイッチ
20 電子制御装置
PM プログラム書き換えモード信号
C1 キャンセル信号
V2 プログラム書き換え条件選定用電圧
4 Program Rewrite Condition Selector 5 Multiple Program Rewrite Condition Judgment Circuit 5-1 Program Rewrite Condition I Judgment Circuit 5-2 Program Rewrite Condition II Judgment Circuit 5-3 Program Rewrite Condition III Judgment Circuit 8 Program Rewrite Mode Output Circuit 9 Microcomputer 10 CPU
11 User area 12 Boot area 13 Reset circuit 14 External switch 20 Electronic controller PM Program rewrite mode signal C1 Cancel signal V2 Program rewrite condition selection voltage

Claims (3)

入力された複数の外部入力信号の組み合わせにしたがって動作するマイコンと、
前記複数の外部入力信号の組み合わせにしたがってそれぞれプログラム書き換え条件の成立を判定するプログラム書き換え条件判定回路を複数備えた複数プログラム書き換え条件判定回路と、
前記複数プログラム書き換え条件判定回路出力にしたがって前記マイコンにプログラムの書き換えを指示するプログラム書き換えモード出力回路と、
プログラム書き換え条件セレクタを備え、
該プログラム書き換え条件セレクタは、自己の特定入力端子に入力されるプログラム書き換え条件選定用電圧のレベルを取得し、取得した電圧のレベルに応じて前記複数のプログラム書き換え条件判定回路のうち対応付けられたプログラム書き換え条件判定回路をイネイブル状態とし、他のプログラム書き換え条件の判定回路をディセイブル状態とすることを特徴とする電子制御装置。
A microcomputer that operates according to a combination of a plurality of external input signals input;
A plurality of program rewrite condition determination circuits each including a plurality of program rewrite condition determination circuits for determining whether a program rewrite condition is satisfied according to a combination of the plurality of external input signals;
A program rewrite mode output circuit for instructing the microcomputer to rewrite the program according to the plurality of program rewrite condition determination circuit outputs;
A program rewrite condition selector
The program rewrite condition selector acquires a level of a program rewrite condition selection voltage input to its specific input terminal, and is associated with one of the plurality of program rewrite condition determination circuits according to the acquired voltage level. An electronic control device characterized in that a program rewrite condition determining circuit is enabled and another program rewriting condition determining circuit is disabled.
請求項1記載の電子制御装置において、
前記プログラム書き換え条件セレクタによってイネイブルにされたプログラム書き換え条件判定回路がプログラム書き換え条件の成立を表す判定信号をプログラム書き換えモード出力回路に出力したとき、
プログラム書き換えモード出力回路は、プログラム書き換えモード信号を前記マイコンに送信し、前記マイコンの動作モードをプログラム書き換えモードに切り換えるとともに、前記プログラム書き換えモード信号を用いてウオッチドッグタイマ機能を停止させ、プログラム書き換えモードを許可する条件でリセット信号が発生しないようにしたことを特徴とする電子制御装置。
The electronic control device according to claim 1,
When the program rewrite condition determination circuit enabled by the program rewrite condition selector outputs a determination signal indicating establishment of the program rewrite condition to the program rewrite mode output circuit,
The program rewrite mode output circuit transmits a program rewrite mode signal to the microcomputer, switches the operation mode of the microcomputer to the program rewrite mode, stops the watchdog timer function using the program rewrite mode signal, and sets the program rewrite mode. An electronic control device characterized in that a reset signal is not generated under a condition permitting the operation.
請求項1記載の電子制御装置において、
前記マイコンは、通常動作モードにあるとき前記プログラム書き換えモード出力回路の機能を停止させ、プログラム書き換え条件判定回路の出力が入力されても、前記プログラム書き換えモード出力回路がプログラム書き換えモード信号を出力しないようにしたことを特徴とする電子制御装置。
The electronic control device according to claim 1,
The microcomputer stops the function of the program rewrite mode output circuit when in the normal operation mode, so that the program rewrite mode output circuit does not output the program rewrite mode signal even when the output of the program rewrite condition determination circuit is input. An electronic control device characterized by that.
JP2007007096A 2007-01-16 2007-01-16 Electronic control unit Active JP4486653B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007007096A JP4486653B2 (en) 2007-01-16 2007-01-16 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007007096A JP4486653B2 (en) 2007-01-16 2007-01-16 Electronic control unit

Publications (2)

Publication Number Publication Date
JP2008176393A true JP2008176393A (en) 2008-07-31
JP4486653B2 JP4486653B2 (en) 2010-06-23

Family

ID=39703392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007007096A Active JP4486653B2 (en) 2007-01-16 2007-01-16 Electronic control unit

Country Status (1)

Country Link
JP (1) JP4486653B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101098398B1 (en) 2009-01-06 2011-12-26 미쓰비시덴키 가부시키가이샤 Semiconductor device having plurality of operation modes
JP5653507B1 (en) * 2013-10-31 2015-01-14 三菱電機株式会社 Electronic control unit to which program tool is connected
JP2017123106A (en) * 2016-01-08 2017-07-13 トヨタ自動車株式会社 Electronic control apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101098398B1 (en) 2009-01-06 2011-12-26 미쓰비시덴키 가부시키가이샤 Semiconductor device having plurality of operation modes
US8120983B2 (en) 2009-01-06 2012-02-21 Mitsubishi Electric Corporation Semiconductor device having plurality of operation modes
JP5653507B1 (en) * 2013-10-31 2015-01-14 三菱電機株式会社 Electronic control unit to which program tool is connected
JP2017123106A (en) * 2016-01-08 2017-07-13 トヨタ自動車株式会社 Electronic control apparatus

Also Published As

Publication number Publication date
JP4486653B2 (en) 2010-06-23

Similar Documents

Publication Publication Date Title
JP4665846B2 (en) Microcomputer and electronic control device
US20130131837A1 (en) Prioritized Controller Arbitration
US9329210B1 (en) Voltage monitoring circuit
JP5374295B2 (en) Electronic control device for vehicle
US10496062B2 (en) Programmable controller for controlling automatic machines, having CPU to received control with respect to own apparatus, when external storage is authenticated based on authentication information
JP2011022960A (en) Power supply apparatus, power supply unit diagnostic apparatus and method for controlling power supply apparatus
JP4486653B2 (en) Electronic control unit
US8803654B2 (en) Safety apparatus and fault detection method
JP4883357B2 (en) In-vehicle device controller
JP5944243B2 (en) Plant safety device and operation method thereof
WO2018096776A1 (en) Power source circuit
JP5584527B2 (en) Voltage detection system and control method thereof
JP4606881B2 (en) Boundary scan circuit with integrated sensor for sensing physical operating parameters
CN105496331A (en) Dish washer and control method thereof
CN104850464A (en) Load-control backup signal generation circuit
KR100339257B1 (en) Voltage detecting circuit
JP5769403B2 (en) Monitoring device and electronic device
JP2010049367A (en) Control device and control method therefor
JP5392058B2 (en) Processing apparatus and control method
JP2011134063A (en) Watchdog timer
JP2010063312A (en) Method and apparatus for switching control of power supply device
JP6443928B2 (en) RECORDING PROCESSING CONTROL DEVICE, RECORDING DEVICE, RECORDING PROCESSING CONTROL METHOD, AND PROGRAM
WO2020039523A1 (en) Programmable logic controller, cpu unit, function unit, method, and program
JP2007261818A (en) Safety device of working machine
KR101280525B1 (en) System for measuring conditions of wind turbine, and systems including thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081021

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20100114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100301

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: 20100309

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100326

R150 Certificate of patent or registration of utility model

Ref document number: 4486653

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130402

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140402

Year of fee payment: 4

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350