[go: up one dir, main page]

JPH11212870A - Electronic control unit - Google Patents

Electronic control unit

Info

Publication number
JPH11212870A
JPH11212870A JP1225298A JP1225298A JPH11212870A JP H11212870 A JPH11212870 A JP H11212870A JP 1225298 A JP1225298 A JP 1225298A JP 1225298 A JP1225298 A JP 1225298A JP H11212870 A JPH11212870 A JP H11212870A
Authority
JP
Japan
Prior art keywords
cpu
input port
signal
writing
erasing
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.)
Ceased
Application number
JP1225298A
Other languages
Japanese (ja)
Inventor
Kazuya Ikeda
田 和 也 池
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1225298A priority Critical patent/JPH11212870A/en
Publication of JPH11212870A publication Critical patent/JPH11212870A/en
Ceased legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)
  • Storage Device Security (AREA)
  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】 【課題】 フラッシュメモリ内蔵のCPUの場合、フラ
ッシュメモリの書き込み許可/禁止制御を外部の制御信
号で行うため、コネクタのピンがそのために使用され、
本来の制御用に不足するのを防止し、また誤って消去/
書き込みモードとなるのを防止し、信頼性を高める。 【解決手段】 CPU3のフラッシュメモリ4の消去/
書き込みを許可/禁止する入力ポート5を、CPU3の
出力ポート6から制御信号を出力して、CPU3自らが
制御する。また、CPU3が自らフラッシュメモリの消
去/書き込みを許可/禁止するポートを制御する場合で
あっても、CPU3が暴走などの異常状態に陥った時
は、入力ポートの消去/書き込み信号を禁止側とする電
気回路を、抵抗9の代わりに設けてもよい。
(57) [Summary] [PROBLEMS] In the case of a CPU with a built-in flash memory, the write enable / prohibit control of the flash memory is performed by an external control signal.
Prevent shortage for the original control and delete /
Prevents the writing mode and enhances reliability. SOLUTION: Erasing of a flash memory 4 of a CPU 3 /
A control signal is output from the output port 6 of the CPU 3 to the input port 5 for permitting / prohibiting the writing, and the CPU 3 controls itself. Further, even when the CPU 3 controls a port for permitting / prohibiting erasing / writing of the flash memory by itself, if the CPU 3 falls into an abnormal state such as a runaway, the erasing / writing signal of the input port is set to the prohibited side. An electric circuit may be provided instead of the resistor 9.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、フラッシュメモリ
内蔵CPUを用いた電子制御装置、例えば自動車用電子
制御装置(Electronic Control Unit)におけるフラッシ
ュメモリの消去/書き込み制御に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an erasing / writing control of a flash memory in an electronic control unit using a CPU with a built-in flash memory, for example, an electronic control unit for an automobile.

【0002】[0002]

【従来の技術】フラッシュメモリを内蔵したCPUは、
外部から容易に電気的にプログラム内容の消去/書き込
みが可能であり、プログラム完成からこのCPUを搭載
した制御機器を量産するまでのターンアラウンドタイム
を短縮することが可能である。また、ROMをCPUに
内蔵しているため、回路規模が小さくなり、制御装置を
小型化することに適している。このフラッシュメモリ内
蔵のCPUを自動車用電子制御装置に搭載し、制御装置
の生産ライン、または実車搭載後にオンボードでフラッ
シュメモリの内容を書き換えて、不具合の修正やメンテ
ナンス性の向上を図っている。
2. Description of the Related Art CPUs with built-in flash memory
The contents of the program can be easily electrically and externally erased / written from outside, and the turnaround time from completion of the program to mass production of a control device equipped with the CPU can be shortened. Further, since the ROM is incorporated in the CPU, the circuit scale is reduced, which is suitable for reducing the size of the control device. The CPU with the built-in flash memory is mounted on an electronic control unit for an automobile, and the contents of the flash memory are rewritten on the production line of the control unit or on-board after the vehicle is mounted on an actual vehicle, thereby correcting defects and improving maintainability.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、フラッ
シュメモリを消去/書き込みするためには、外部からC
PUに入力される電気信号を禁止側から許可側へ切り換
える入力信号を必要であり、また、プログラムを消去/
書き込み動作へ遷移させるためのトリガ信号が必要とな
る。これらの信号を制御装置に付属しているコネクタか
ら入力すると、コネクタのピンのうち数本を消去/書き
込み動作の制御信号で占めることになり、本来の制御機
能に使用するためのピン数が減少し、制御信号だけです
でにコネクタピンのほとんどが占められている状態で
は、ピン数の不足が生じる。また、フラッシュメモリを
消去/書き込みする電気信号の入力がコネクタにより外
部に開放されていることから、誤って消去/書き込みモ
ードとなる可能性がある。
However, in order to erase / write the flash memory, an external C
An input signal for switching the electrical signal input to the PU from the prohibition side to the permission side is required.
A trigger signal for transition to the write operation is required. When these signals are input from the connector attached to the control device, several of the connector pins are occupied by the control signals for the erase / write operation, and the number of pins used for the original control function is reduced. However, when most of the connector pins are already occupied only by the control signal, the number of pins is insufficient. Further, since the input of the electric signal for erasing / writing the flash memory is opened to the outside by the connector, there is a possibility that the erasing / writing mode is erroneously set.

【0004】本発明は、このような従来の問題を解決す
るものであり、コネクタのピンを有効活用できるととも
に、誤って消去/書き込みモードとなることを防止でき
る信頼性の高い電子制御装置を提供することを目的とす
る。
The present invention solves such a conventional problem, and provides a highly reliable electronic control device that can effectively use the pins of a connector and prevent an erroneous erase / write mode. The purpose is to do.

【0005】[0005]

【課題を解決するための手段】本発明は、上記目的を達
成するために、CPUのフラッシュメモリの消去/書き
込みを許可/禁止する入力ポートを、CPUの出力ポー
トから制御信号を出力して、CPU自らが制御するよう
に構成したものであり、外部からの制御信号を追加する
ことなく、オンボード書き込みが可能な電子制御装置を
実現することができる。
According to the present invention, in order to achieve the above object, an input port for permitting / prohibiting erasing / writing of a flash memory of a CPU is controlled by outputting a control signal from an output port of the CPU. The configuration is such that the CPU controls itself, and an electronic control device capable of on-board writing can be realized without adding an external control signal.

【0006】本発明はまた、CPUのフラッシュメモリ
の消去/書き込み動作の許可を行う入力ポートが、CP
Uが異常動作をした時には、ウオッチドッグタイマによ
り強制的に禁止側となるように電気回路を構成したもの
であり、CPUが自らフラッシュメモリの消去/書き込
みを許可/禁止するポートを制御する場合であっても、
CPUが暴走などの異常状態に陥った時は、入力ポート
の消去/書き込み信号を禁止側とすることができる。
According to the present invention, an input port for permitting an erasing / writing operation of a flash memory of a CPU is provided with a CP.
When the U performs an abnormal operation, an electric circuit is configured to be forcibly set to the prohibition side by a watchdog timer, and the CPU controls a port for permitting / prohibiting erasing / writing of the flash memory by itself. Even so,
When the CPU falls into an abnormal state such as runaway, the erase / write signal of the input port can be set to the inhibit side.

【0007】[0007]

【発明の実施の形態】本発明の請求項1に記載の発明
は、電気的に消去/書き込み可能なフラッシュメモリを
内蔵して外部から入力ポートに入力された電気信号によ
り前記フラッシュメモリの消去/書き込みを許可/禁止
する機能を有するCPUを備え、前記入力ポートと前記
CPUの出力ポートとを電気回路で接続し、前記CPU
が、別の入力ポートに入力された特定の信号をトリガと
して、消去/書き込みモードへ遷移するとともに、前記
出力ポートから出力した制御信号により前記入力ポート
の消去/書き込みを許可側とする電子制御装置であり、
外部からの制御信号を追加することなく、オンボード書
き込みが可能な電子制御装置を実現することができると
いう作用を有する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention according to claim 1 of the present invention has a built-in electrically erasable / writable flash memory, and the erasing / erasing of the flash memory is performed by an electric signal input to an input port from the outside. A CPU having a function of permitting / prohibiting writing; connecting the input port to an output port of the CPU by an electric circuit;
An electronic control unit that, when triggered by a specific signal input to another input port, transitions to an erase / write mode, and uses a control signal output from the output port to permit erasing / writing of the input port. And
This has the effect that an electronic control device capable of on-board writing can be realized without adding an external control signal.

【0008】本発明の請求項2に記載の発明は、CPU
にウオッチドッグタイマを接続して一定時間毎にクリア
するとともに、前記CPUの異常動作により前記ウオッ
チドッグタイマがオーバーフローした時は、その信号と
前記出力ポートから出力した制御信号により前記入力ポ
ートの消去/書き込みを禁止側とする請求項1記載の電
子制御装置であり、CPUが暴走などの異常状態に陥っ
た時は、入力ポートの消去/書き込みを禁止できるとい
う作用を有する。
According to a second aspect of the present invention, a CPU
A watchdog timer is connected to the CPU to clear the input port at regular intervals, and when the watchdog timer overflows due to an abnormal operation of the CPU, the signal and the control signal output from the output port erase / clear the input port. 2. The electronic control device according to claim 1, wherein the writing is prohibited, and when the CPU falls into an abnormal state such as runaway, the erasing / writing of the input port can be prohibited.

【0009】本発明の請求項3に記載の発明は、出力ポ
ートから出力した制御信号とウオッチドッグタイマから
のオーバーフロー信号とをAND回路に入力し、その出
力により入力ポートの消去/書き込みを禁止側とする請
求項2記載の電子制御装置であり、CPUが暴走などの
異常状態に陥った時は、入力ポートの消去/書き込みを
禁止できるという作用を有する。
According to a third aspect of the present invention, a control signal output from an output port and an overflow signal from a watchdog timer are input to an AND circuit, and the output thereof inhibits erasing / writing of the input port. 3. The electronic control device according to claim 2, wherein an erasing / writing operation of the input port can be prohibited when the CPU falls into an abnormal state such as runaway.

【0010】本発明の請求項4に記載の発明は、CPU
にウオッチドッグタイマを接続して一定時間毎にクリア
するとともに、前記CPUの異常動作により前記ウオッ
チドッグタイマがオーバーフローした時は、その信号に
より前記CPUをリセット状態に保持し、結果的に入力
ポートの消去/書き込みを禁止側とする請求項1記載の
電子制御装置であり、CPUが暴走などの異常状態に陥
った時は、入力ポートの消去/書き込みを禁止できると
いう作用を有する。
According to a fourth aspect of the present invention, a CPU
When a watchdog timer is connected to the CPU and the timer is cleared at regular intervals, and when the watchdog timer overflows due to abnormal operation of the CPU, the signal is used to hold the CPU in a reset state. 2. The electronic control device according to claim 1, wherein erasing / writing is prohibited, and when the CPU falls into an abnormal state such as runaway, erasing / writing of the input port can be prohibited.

【0011】本発明の請求項5に記載の発明は、別の入
力ポートに入力された特定の信号が、ディーラーサービ
ス用のチェック信号である請求項1から4のいずれかに
記載の電子制御装置であり、特定の信号として一般的な
信号を用いることができるという作用を有する。
According to a fifth aspect of the present invention, in the electronic control device according to any one of the first to fourth aspects, the specific signal input to the other input port is a check signal for a dealer service. This has the effect that a general signal can be used as the specific signal.

【0012】本発明の請求項6に記載の発明は、別の入
力ポートに入力された特定の信号が、シリアル通信回路
から入力されたコマンドである請求項1から4のいずれ
かに記載の電子制御装置であり、特定の信号として一般
的な信号を用いることができるという作用を有する。以
下、本発明の実施の形態を図面を参照して説明する。
According to a sixth aspect of the present invention, in the electronic device according to any one of the first to fourth aspects, the specific signal input to another input port is a command input from a serial communication circuit. This is a control device and has an effect that a general signal can be used as a specific signal. Hereinafter, embodiments of the present invention will be described with reference to the drawings.

【0013】(実施の形態1)図1は本発明の第1の実
施の形態における自動車用電子制御装置(以下、ECU
と略す。)の概略構成を示している。図1において、1
はECU全体を示しており、2はECU1と外部の装置
とを接続するコネクタである。3はCPUであり、フラ
ッシュメモリ4を内蔵している。5はフラッシュメモリ
4の消去/書き込み許可信号入力ポート、6は出力ポー
ト、7はディーラーサービス用のチェック信号入力ポー
ト、8はシリアル通信入力ポートである。消去/書き込
み許可信号入力ポート5と出力ポート6とは電気回路と
しての抵抗9で接続されている。ディーラーサービス用
のチェック信号入力ポート7は、インターフェース回路
10を経由してコネクタ2のディーラーサービス用のチ
ェック信号入力ピンに接続されている。またシリアル通
信入力ポート8は、インターフェース回路11を経由し
てコネクタ2のシリアル通信信号ピンに接続されてい
る。
(Embodiment 1) FIG. 1 shows an electronic control unit (hereinafter referred to as an ECU) for a vehicle according to a first embodiment of the present invention.
Abbreviated. 3) shows a schematic configuration. In FIG. 1, 1
Denotes an entire ECU, and 2 denotes a connector for connecting the ECU 1 to an external device. Reference numeral 3 denotes a CPU, which has a built-in flash memory 4. Reference numeral 5 denotes an erase / write permission signal input port of the flash memory 4, reference numeral 6 denotes an output port, reference numeral 7 denotes a check signal input port for dealer service, and reference numeral 8 denotes a serial communication input port. The erase / write enable signal input port 5 and output port 6 are connected by a resistor 9 as an electric circuit. The dealer service check signal input port 7 is connected to a dealer service check signal input pin of the connector 2 via the interface circuit 10. The serial communication input port 8 is connected to a serial communication signal pin of the connector 2 via the interface circuit 11.

【0014】次に上記のように構成されたECU1の動
作について説明する。CPU3のディーラーサービス用
のチェック信号入力ポート7が、インターフェース回路
10からの信号により規定の論理となると、これをトリ
ガ信号として消去/書き込みモードへ遷移し、図2のフ
ローチャートで示されるプログラムが起動する。図2に
おいて、CPU3は、ステップS1で出力ポート6から
制御信号を出力することにより、フラッシュメモリ4に
対する消去/書き込み許可信号入力ポート5を消去/書
き込み許可側とし、ステップS2でシリアル通信入力ポ
ート8を経由して外部から書き込みデータを受信し、ス
テップS3でフラッシュメモリ4を消去し、受信したデ
ータを書き換える。そしてステップS4で全領域のデー
タ書き換えが終了するまでこの処理を繰り返す。
Next, the operation of the ECU 1 configured as described above will be described. When the check signal input port 7 for the dealer service of the CPU 3 is set to a prescribed logic by a signal from the interface circuit 10, the control transits to the erase / write mode using this as a trigger signal, and the program shown in the flowchart of FIG. . In FIG. 2, the CPU 3 outputs a control signal from the output port 6 in step S1, thereby setting the erase / write permission signal input port 5 for the flash memory 4 to the erase / write permission side, and in step S2, the serial communication input port 8 Then, in step S3, the flash memory 4 is erased and the received data is rewritten. Then, in step S4, this process is repeated until the data rewriting of all areas is completed.

【0015】このように、本実施の形態1では、消去/
書き込みモードへ遷移させるための専用のトリガ信号と
して、インターフェース回路10から出力されたチェッ
ク信号を使用するので、トリガ信号がコネクタ2のピン
の一部を占めることもなく、コネクタ2を有効活用する
ことができる。また、フラッシュメモリ4の消去/書き
込みを許可/禁止する電気信号入力が、コネクタ2によ
り外部に開放されていないので、誤って消去/書き込み
モードとなる可能性もなく、信頼性の高いECU1を実
現することができる。
As described above, in the first embodiment, the erase /
Since the check signal output from the interface circuit 10 is used as a dedicated trigger signal for transitioning to the write mode, the trigger signal does not occupy a part of the pins of the connector 2 and the connector 2 is effectively used. Can be. Further, since the electrical signal input for permitting / prohibiting erasing / writing of the flash memory 4 is not opened to the outside by the connector 2, there is no possibility that the erasing / writing mode is erroneously set, and the highly reliable ECU 1 is realized. can do.

【0016】(実施の形態2)図3は本発明の第2の実
施の形態におけるECUの構成を示している。図3にお
いて、21はECU全体を示しており、22はECU2
1と外部の装置とを接続するコネクタである。23はC
PUであり、フラッシュメモリ24を内蔵している。2
5はフラッシュメモリ24の消去/書き込み許可信号入
力ポート、26は出力ポート、27はディーラーサービ
ス用のチェック信号入力ポート、28はシリアル通信入
力ポートである。ディーラーサービス用のチェック信号
入力ポート27は、インターフェース回路29を経由し
てコネクタ22のディーラーサービス用のチェック信号
入力ピンに接続される。またシリアル通信入力ポート2
8は、インターフェース回路30を経由してコネクタ2
2のシリアル通信信号ピンに接続されている。そしてC
PU23に設けられたウオッチドッグタイマリセットパ
ルス出力ポート31には、ウオッチドッグタイマ32が
接続され、ウオッチドッグタイマ32と出力ポート26
が、ANDゲート33の入力側に接続され、ANDゲー
ト33の出力側が、消去/書き込み許可信号入力ポート
25に接続されている。
(Embodiment 2) FIG. 3 shows a configuration of an ECU according to a second embodiment of the present invention. In FIG. 3, reference numeral 21 denotes the entire ECU, and reference numeral 22 denotes the ECU 2
1 and a connector for connecting the external device. 23 is C
It is a PU and has a built-in flash memory 24. 2
Reference numeral 5 denotes an erase / write permission signal input port of the flash memory 24, 26 denotes an output port, 27 denotes a check signal input port for a dealer service, and 28 denotes a serial communication input port. The check signal input port 27 for dealer service is connected to a check signal input pin for dealer service of the connector 22 via the interface circuit 29. Also, serial communication input port 2
8 is a connector 2 via the interface circuit 30.
2 serial communication signal pins. And C
A watchdog timer 32 is connected to the watchdog timer reset pulse output port 31 provided in the PU 23, and the watchdog timer 32 and the output port 26 are connected.
Are connected to the input side of the AND gate 33, and the output side of the AND gate 33 is connected to the erase / write permission signal input port 25.

【0017】次に上記のように構成されたECU21の
動作について説明する。CPU23のディーラーサービ
ス用のチェック信号入力ポート27が規定の論理となる
と、これをトリガ信号として消去/書き込みモードへ遷
移し、上記実施の形態1と同様に、図2のフローチャー
トで示されるプログラムが起動する。図2において、ス
テップS1で出力ポート26を制御することにより、フ
ラッシュメモリ24に対する消去/書き込み許可信号入
力ポート25を消去/書き込み許可側とし、ステップS
2でシリアル通信入力ポート28を経由して外部から書
き込みデータを受信し、ステップS3でフラッシュメモ
リ24を消去し、受信したデータを書き換える。そして
ステップS4で全領域のデータ書き換えが終了するまで
この処理を繰り返す。
Next, the operation of the ECU 21 configured as described above will be described. When the check signal input port 27 for the dealer service of the CPU 23 has a prescribed logic, the transition is made to the erase / write mode using this as a trigger signal, and the program shown in the flowchart of FIG. I do. In FIG. 2, by controlling the output port 26 in step S1, the erasing / writing permission signal input port 25 for the flash memory 24 is set to the erasing / writing permission side.
In step 2, write data is received from the outside via the serial communication input port 28. In step S3, the flash memory 24 is erased and the received data is rewritten. Then, in step S4, this process is repeated until the data rewriting of all areas is completed.

【0018】また、CPU21は、図4のフローチャー
トに従って、ウオッチドッグタイマリセットパルス出力
ポート31から定期的にウオッチドッグクリアパルスを
出力している。すなわち、ステップS11で一定時間を
監視し、一定時間経過後、ステップS12でウオッチド
ッグタイマ32をリセットする。CPU23が暴走状態
に陥ると、このプログラムが作動しなくなるため、ウオ
ッチドッグタイマ32がオーバーフローし、その信号と
出力ポート26からの制御信号とにより、ANDゲート
33を制御して、フラッシュメモリ消去/書き込み許可
信号入力ポート25を消去/書き込み禁止側とし、誤っ
てフラッシュメモリ24を消去してしまうのを防止す
る。
The CPU 21 periodically outputs a watchdog clear pulse from the watchdog timer reset pulse output port 31 in accordance with the flowchart of FIG. That is, a predetermined time is monitored in step S11, and after the predetermined time has elapsed, the watchdog timer 32 is reset in step S12. When the CPU 23 goes into a runaway state, this program does not operate, so that the watchdog timer 32 overflows, and the signal and the control signal from the output port 26 control the AND gate 33 to erase / write the flash memory. The permission signal input port 25 is set to the erase / write inhibit side to prevent the flash memory 24 from being erased by mistake.

【0019】このように、本実施の形態2によれば、フ
ラッシュメモリ消去/書き込み許可信号入力ポート25
を、CPU23の暴走時にはウオッチドッグタイマ33
により強制的に禁止側とすることにより、誤ってフラッ
シュメモリ24が消去/書き込み状態になることを防止
でき、信頼性の高いECU21を実現することができ
る。
As described above, according to the second embodiment, the flash memory erase / write permission signal input port 25
When the CPU 23 runs away, the watch dog timer 33
, The flash memory 24 can be prevented from being erased / written by mistake, and the highly reliable ECU 21 can be realized.

【0020】なお、上記実施の形態2では、ウオッチド
ッグタイマ33がオーバーフローした時に、入力ポート
25の消去/書き込みを禁止側とするための構成とし
て、ウオッチドッグタイマ33の出力信号によりAND
ゲート33を制御するようにしたが、ウオッチドッグタ
イマ33がオーバーフローした際には、その信号により
CPU23をリセット状態に保持し、結果的に入力ポー
ト25を消去/書き込み禁止側にするように構成しても
よい。
In the second embodiment, when the watchdog timer 33 overflows, the erasing / writing of the input port 25 is set to the prohibition side.
Although the gate 33 is controlled, when the watchdog timer 33 overflows, the CPU 23 is held in a reset state by the signal, and as a result, the input port 25 is set to the erase / write-protection side. You may.

【0021】また、上記各実施の形態においては、消去
/書き込みモードへ遷移するためのトリガ信号として、
ディーラーサービス用のチェック信号を用いたが、これ
に代えてシリアル通信回路から入力された専用のコマン
ドを用いてもよい。
In each of the above embodiments, a trigger signal for transitioning to the erase / write mode is:
Although the check signal for the dealer service is used, a dedicated command input from the serial communication circuit may be used instead.

【0022】[0022]

【発明の効果】本発明は、上記実施の形態1から明らか
なように、CPUのフラッシュメモリの消去/書き込み
を許可/禁止する入力ポートを、CPUの出力ポートか
ら制御信号を出力して、CPU自らが制御するように構
成したので、外部からの制御信号を追加することなく、
オンボード書き込みが可能な電子制御装置を実現するこ
とができる。
According to the present invention, as is apparent from the first embodiment, an input port for permitting / prohibiting erasing / writing of a flash memory of a CPU is controlled by outputting a control signal from an output port of the CPU. Because it was configured to control itself, without adding an external control signal,
An electronic control device capable of on-board writing can be realized.

【0023】本発明はまた、CPUのフラッシュメモリ
の消去/書き込み動作の許可を行う入力ポートが、CP
Uが異常動作をした時には、ウオッチドッグタイマによ
り強制的に禁止側となるように電気回路を構成したの
で、CPUが自らフラッシュメモリの消去/書き込みを
許可/禁止するポートを制御する場合であっても、CP
Uが暴走などの異常状態に陥った時は、入力ポートの消
去/書き込み信号を禁止側とすることができる。
According to the present invention, the input port for permitting the erasing / writing operation of the flash memory of the CPU is connected to the CP.
When the U performs an abnormal operation, the electric circuit is configured so as to be forcibly set to the prohibition side by the watchdog timer. Also CP
When U enters an abnormal state such as runaway, the erase / write signal of the input port can be set to the inhibit side.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態における自動車用電
子制御装置の概略構成を示すブロック図
FIG. 1 is a block diagram showing a schematic configuration of an automotive electronic control device according to a first embodiment of the present invention;

【図2】本発明の第1および第2の実施の形態における
動作を示すフロー図
FIG. 2 is a flowchart showing an operation in the first and second embodiments of the present invention.

【図3】本発明の第2の実施の形態における自動車用電
子制御装置の概略構成を示すブロック図
FIG. 3 is a block diagram showing a schematic configuration of an electronic control unit for a vehicle according to a second embodiment of the present invention;

【図4】本発明の第2の実施の形態における動作を示す
フロー図
FIG. 4 is a flowchart showing an operation according to the second embodiment of the present invention;

【符号の説明】[Explanation of symbols]

1、21 自動車用電子制御装置(ECU) 2、22 コネクタ 3、23 CPU 4、24 フラッシュメモリ 5、25 消去/書き込み許可信号入力ポート 6、26 出力ポート 7、27 チェック信号入力ポート 8、28 シリアル通信入力ポート 9 抵抗(電気回路) 10、11、29、30 インターフェース回路 31 ウオッチドッグタイマリセットパルス出力ポート 32 ウオッチドッグタイマ 33 AND回路 1, 21 Automotive electronic control unit (ECU) 2, 22 Connector 3, 23 CPU 4, 24 Flash memory 5, 25 Erase / write enable signal input port 6, 26 Output port 7, 27 Check signal input port 8, 28 Serial Communication input port 9 Resistance (electric circuit) 10, 11, 29, 30 Interface circuit 31 Watchdog timer reset pulse output port 32 Watchdog timer 33 AND circuit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 電気的に消去/書き込み可能なフラッシ
ュメモリを内蔵して外部から入力ポートに入力された電
気信号により前記フラッシュメモリの消去/書き込みを
許可/禁止する機能を有するCPUを備え、前記入力ポ
ートと前記CPUの出力ポートとを電気回路で接続し、
前記CPUが、別の入力ポートに入力された特定の信号
をトリガとして、消去/書き込みモードへ遷移するとと
もに、前記出力ポートから出力した制御信号により前記
入力ポートの消去/書き込みを許可側とする電子制御装
置。
A CPU having a built-in electrically erasable / writable flash memory and having a function of permitting / prohibiting erasing / writing of said flash memory by an electric signal input from an external to an input port; Connecting the input port and the output port of the CPU by an electric circuit,
The CPU transits to the erase / write mode triggered by a specific signal input to another input port, and uses the control signal output from the output port to set the erase / write of the input port to the permission side. Control device.
【請求項2】 CPUにウオッチドッグタイマを接続し
て一定時間毎にクリアするとともに、前記CPUの異常
動作により前記ウオッチドッグタイマがオーバーフロー
した時は、その信号と前記出力ポートから出力した制御
信号により前記入力ポートの消去/書き込みを禁止側と
する請求項1記載の電子制御装置。
2. A watchdog timer is connected to a CPU to clear the watchdog timer at regular intervals, and when the watchdog timer overflows due to an abnormal operation of the CPU, a signal from the watchdog timer and a control signal output from the output port are used. 2. The electronic control device according to claim 1, wherein erasing / writing of the input port is set to a prohibition side.
【請求項3】 出力ポートから出力した制御信号とウオ
ッチドッグタイマからのオーバーフロー信号とをAND
回路に入力し、その出力により入力ポートの消去/書き
込みを禁止側とする請求項2記載の電子制御装置。
3. A control signal output from an output port and an overflow signal from a watchdog timer are ANDed.
3. The electronic control unit according to claim 2, wherein the input is input to a circuit, and the output of the electronic control unit is set to inhibit erasing / writing of the input port.
【請求項4】 CPUにウオッチドッグタイマを接続し
て一定時間毎にクリアするとともに、前記CPUの異常
動作により前記ウオッチドッグタイマがオーバーフロー
した時は、その信号により前記CPUをリセット状態に
保持し、結果的に入力ポートの消去/書き込みを禁止側
とする請求項1記載の電子制御装置。
4. A watchdog timer is connected to the CPU to clear the CPU at regular intervals, and when the watchdog timer overflows due to an abnormal operation of the CPU, the CPU holds the CPU in a reset state by a signal thereof. 2. The electronic control device according to claim 1, wherein the erasing / writing of the input port is consequently set to the prohibition side.
【請求項5】 別の入力ポートに入力された特定の信号
が、ディーラーサービス用のチェック信号である請求項
1から4のいずれかに記載の電子制御装置。
5. The electronic control device according to claim 1, wherein the specific signal input to another input port is a check signal for a dealer service.
【請求項6】 別の入力ポートに入力された特定の信号
が、シリアル通信回路から入力されたコマンドである請
求項1から4のいずれかに記載の電子制御装置。
6. The electronic control device according to claim 1, wherein the specific signal input to another input port is a command input from a serial communication circuit.
JP1225298A 1998-01-26 1998-01-26 Electronic control unit Ceased JPH11212870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1225298A JPH11212870A (en) 1998-01-26 1998-01-26 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1225298A JPH11212870A (en) 1998-01-26 1998-01-26 Electronic control unit

Publications (1)

Publication Number Publication Date
JPH11212870A true JPH11212870A (en) 1999-08-06

Family

ID=11800183

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1225298A Ceased JPH11212870A (en) 1998-01-26 1998-01-26 Electronic control unit

Country Status (1)

Country Link
JP (1) JPH11212870A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006004245A (en) * 2004-06-18 2006-01-05 Seiko Epson Corp Integrated circuit device and electronic apparatus
WO2008035766A1 (en) * 2006-09-21 2008-03-27 Autonetworks Technologies, Ltd. Electronic control system and electronic control device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006004245A (en) * 2004-06-18 2006-01-05 Seiko Epson Corp Integrated circuit device and electronic apparatus
WO2008035766A1 (en) * 2006-09-21 2008-03-27 Autonetworks Technologies, Ltd. Electronic control system and electronic control device
JPWO2008035766A1 (en) * 2006-09-21 2010-01-28 株式会社オートネットワーク技術研究所 Electronic control system and electronic control device
US8223060B2 (en) 2006-09-21 2012-07-17 Autonetworks Technologies, Ltd. Electric control system and electric control unit
JP5190368B2 (en) * 2006-09-21 2013-04-24 株式会社オートネットワーク技術研究所 Electronic control system and electronic control device

Similar Documents

Publication Publication Date Title
JP2597153B2 (en) Write protector
US7093064B2 (en) Programming suspend status indicator for flash memory
US6009496A (en) Microcontroller with programmable embedded flash memory
US8140216B2 (en) Method of detecting manipulation of a programmable memory device of a digital controller
US5991849A (en) Rewriting protection of a size varying first region of a reprogrammable non-volatile memory
US9304943B2 (en) Processor system and control method thereof
JPH1050078A (en) Erasing method and program protecting method and device for electrically erasable and programmable read only memory
JPH0364960B2 (en)
EP0808501B1 (en) Filtered serial event controlled command port for flash memory
US20030135706A1 (en) Microcontroller having embedded non-volatile memory with read protection
US5721877A (en) Method and apparatus for limiting access to nonvolatile memory device
KR100377608B1 (en) Data processor and method of processing data
US20030221049A1 (en) Electronic control device
US6510501B1 (en) Non-volatile memory read/write security protection feature selection through non-volatile memory bits
JPH07200767A (en) Memory card
JPH11212870A (en) Electronic control unit
US6813191B2 (en) Microcomputer with nonvolatile memory protected against false erasing or writing
JPH0822422A (en) Memory device
US6744665B2 (en) Memory cell configuration
US20020083283A1 (en) Control of the access to a memory integrated with a microprocessor
JP4118023B2 (en) Memory control circuit
CN217640658U (en) Anti-false erasing protection circuit and vehicle-mounted control system
JP3912447B2 (en) Memory system and method of using external nonvolatile memory
JP4848126B2 (en) Microcomputer, data protection method for nonvolatile memory in microcomputer
JP3190421B2 (en) IC memory card system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040831

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070516

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070529

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070727

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070821

A045 Written measure of dismissal of application [lapsed due to lack of payment]

Free format text: JAPANESE INTERMEDIATE CODE: A045

Effective date: 20071225