JPH0515580B2 - - Google Patents

Info

Publication number
JPH0515580B2
JPH0515580B2 JP9749084A JP9749084A JPH0515580B2 JP H0515580 B2 JPH0515580 B2 JP H0515580B2 JP 9749084 A JP9749084 A JP 9749084A JP 9749084 A JP9749084 A JP 9749084A JP H0515580 B2 JPH0515580 B2 JP H0515580B2
Authority
JP
Japan
Prior art keywords
data
rom
address
check
control
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 - Lifetime
Application number
JP9749084A
Other languages
Japanese (ja)
Other versions
JPS60244650A (en
Inventor
Masashi Fukushima
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 Unisia Automotive Ltd
Original Assignee
Japan Electronic Control Systems 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 Japan Electronic Control Systems Co Ltd filed Critical Japan Electronic Control Systems Co Ltd
Priority to JP9749084A priority Critical patent/JPS60244650A/en
Publication of JPS60244650A publication Critical patent/JPS60244650A/en
Publication of JPH0515580B2 publication Critical patent/JPH0515580B2/ja
Granted legal-status Critical Current

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F02COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
    • F02DCONTROLLING COMBUSTION ENGINES
    • F02D41/00Electrical control of supply of combustible mixture or its constituents
    • F02D41/24Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means
    • F02D41/2406Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means using essentially read only memories
    • F02D41/2425Particular ways of programming the data

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は、マイクロコンピユータを用いて車載
機器を制御する自動車用制御装置に関し、特にメ
モリの記憶内容(制御プログラム又はデータ)が
破壊された場合に備えてのバツクアツプ技術に関
する。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to an automotive control device that uses a microcomputer to control in-vehicle equipment, and particularly relates to an automotive control device that uses a microcomputer to control in-vehicle equipment, and in particular, when the stored contents of the memory (control program or data) are destroyed. Regarding backup technology in preparation for

<従来の技術> マイクロコンピユータを用いて、各種車載機
器、例えばエンジンの制御(燃料供給量、点火時
期、アイドル回転数等の制御)を行う場合、
ROMに記憶された制御プログラム又はデータに
対し、十分な信頼性が要求される。
<Prior art> When using a microcomputer to control various in-vehicle devices, such as the engine (control of fuel supply amount, ignition timing, idle speed, etc.),
Sufficient reliability is required for the control program or data stored in the ROM.

ROMのうち、マスクROMは製造時に記憶内
容も回路として組込むもので、ユーザによる書込
みは不能であるが、その記憶内容は消えることが
なく、信頼性は極めて高い。これに対し、EP−
ROMやEEP−ROMは電気的に記憶内容を書込
んで用いるが、紫外線(X線や中性子などを含
む)又は電気信号によつて記憶内容を消去するこ
とが可能で、再書込みも可能である。
Among ROMs, mask ROM is one in which the stored contents are also incorporated as a circuit during manufacturing, and although it cannot be written to by the user, the stored contents do not disappear and are extremely reliable. On the other hand, EP−
ROM and EEP-ROM are used by electrically writing the memory contents, but the memory contents can be erased and rewritten using ultraviolet rays (including X-rays, neutrons, etc.) or electrical signals. .

そこで、一般に、制御プログラムは信頼性の高
いマスクROMに記憶させ、仕様変更等により書
換える必要性の高いマツプ等のデータは、EP−
ROMやEEP−ROM記憶させると共に、EP−
ROMやEEP−ROMに通常の使用状態で紫外線
や電気信号が加わらないようにして、記憶内容が
変わらないようにしている。
Therefore, control programs are generally stored in highly reliable mask ROM, and data such as maps that need to be rewritten due to specification changes are stored in EP-ROM.
In addition to storing ROM and EEP-ROM, EP-
ROM and EEP-ROM are prevented from being exposed to ultraviolet light or electrical signals during normal use, so that the stored contents do not change.

<発明が解決しようとする問題点> しかし、EP−ROMやEEP−ROM等の再書込
み可能なプログラマブルROMを用いて、万一デ
ータが自然に変更された場合、異常データによつ
て制御されることになり、正常な動作ができなく
なる。
<Problems to be Solved by the Invention> However, if the data is naturally changed using a rewritable programmable ROM such as EP-ROM or EEP-ROM, the problem will be controlled by abnormal data. As a result, normal operation will no longer be possible.

また、プログラマブルROMに制御プログラム
を記憶させることもあり、制御プログラムが自然
に変更されて、適正な制御が不能となることも考
えられる。
Furthermore, since the control program may be stored in a programmable ROM, it is conceivable that the control program may be changed naturally, making proper control impossible.

<問題点を解決するための手段> 本発明は上記の問題点を解決するため、第1図
に示すように、制御プログラム又はデータ記憶用
のプログラマブルROMに、同一内容の制御プロ
グラム又はデータ群を複数個記憶させる一方、制
御プログラムの実行に先立つて、プログラマブル
ROM内の制御プログラム又はデータ群をチエツ
クする手段と、チエツクにより正常と判定された
制御プログラム又はデータ群を使用する状態に切
換える手段とを設け、かつ、これらの手段を実現
するチエツクプログラムと、電源投入時にチエツ
クプログラムを実行させるためのベクタアドレス
とを、マスクROMに記憶させるようにした。
<Means for Solving the Problems> In order to solve the above problems, the present invention, as shown in FIG. While multiple data can be stored, programmable
A means for checking the control program or data group in the ROM, and a means for switching to a state in which the control program or data group determined to be normal by the check are provided, and a check program for realizing these means, and a power supply. The vector address for executing the check program at power-on is stored in the mask ROM.

<作用> すなわち、本発明では、制御プログラムの実行
に先立つて、EP−ROMやEEP−ROM等のプロ
グラマブルROM内に予め複数個作成した制御プ
ログラム又はデータ群について、1つの群毎に記
憶内容が変更されているか否かのチエツクを行
い、正常(変更されていない)ならば、その群の
制御プログラム又はデータを用いて制御し、異常
データを含む群がある場合は、正常な群を探索し
てこれを用いるように切換え、常に正常な制御を
行う。
<Operation> In other words, in the present invention, prior to execution of the control program, the storage contents of each group of control programs or data groups created in advance in a programmable ROM such as EP-ROM or EEP-ROM are stored. Check whether the data has been changed, and if it is normal (not changed), control using the control program or data of that group, and if there is a group that contains abnormal data, search for a normal group. switch to use this, and always maintain normal control.

そしてこの場合、チエツクプログラムがプログ
ラマブルROM内にあると、チエツクプログラム
が破損したときに、チエツクプログラムが正常に
走らなくなつてしまい、また、ベクタアドレスが
プログラマブルROM内にあると、ベクタアドレ
スが破損したときに、チエツクプログラムを実行
できず、制御プログラムも実行不能となつて、結
局車が走行不能となつてしまうので、チエツクプ
ログラムとベクタアドレスとはマスクROMに記
憶させるようにしているのである。
In this case, if the check program is in the programmable ROM, the check program will not run properly if the check program is damaged, and if the vector address is in the programmable ROM, the vector address will be damaged. Sometimes, the check program cannot be executed and the control program cannot be executed, resulting in the car not being able to run, so the check program and vector address are stored in a mask ROM.

<実施例> 以下に本発明の実施例を説明する。<Example> Examples of the present invention will be described below.

第2図は制御装置を構成するマイクロコンピユ
ータのシステムブロツク図である。図中1は
CPU、2はOSC(発振回路)、3はRAM、4はマ
スクROM、5はEP−ROM、6はI/O(入出力
回路)、7はアドレスデコーダである。また、A
はアドレスバス(16本)用のポート、Dはデータ
バス(8本)用のポート、SはR/W信号等の制
御バス(4本)用のポート、CSはチツプセレク
ト信号用のポートを示している。
FIG. 2 is a system block diagram of the microcomputer that constitutes the control device. 1 in the diagram is
2 is an OSC (oscillation circuit), 3 is a RAM, 4 is a mask ROM, 5 is an EP-ROM, 6 is an I/O (input/output circuit), and 7 is an address decoder. Also, A
is a port for address buses (16 lines), D is a port for data buses (8 lines), S is a port for control buses (4 lines) such as R/W signals, and CS is a port for chip select signals. It shows.

ここにおいて、CPU1は、OSC2からのクロ
ツク信号に同期しつつ、マスクROM4に記憶さ
れている制御プログラムに従つてその命令を実
行、すなわち、I/O6に入力される各種入力信
号、及び、EP−ROM5に記憶されているデータ
を基にして、演算、処理を行い、その結果をI/
O6に送つて、各種機器の作動を制御する。尚、
RAM3は演算の中間結果を一時記憶するためな
どに用い、アドレスデコーダ7はCPU1が命令
の読出しやデータの読出し及び書込み等を行う時
にアドレスを指定する際そのアドレスに基づいて
RAM3、マスクROM4、EP−ROM5及びI/
O6のいずれか1つに対してチツプセレクト信号
を出力するために用いる。
Here, the CPU 1 executes the instructions according to the control program stored in the mask ROM 4 while synchronizing with the clock signal from the OSC 2. In other words, the CPU 1 executes the instructions according to the control program stored in the mask ROM 4. Calculations and processing are performed based on the data stored in ROM5, and the results are sent to I/
It is sent to O6 to control the operation of various devices. still,
The RAM 3 is used to temporarily store intermediate results of calculations, etc., and the address decoder 7 is used when the CPU 1 specifies an address when reading an instruction, reading or writing data, etc.
RAM3, mask ROM4, EP-ROM5 and I/
It is used to output a chip select signal to any one of O6.

第3図はシステムアドレスマツプである。尚、
8ビツトマイクロコンピユータで、アドレスバス
は16本、したがつてアドレス空間は64Kバイト
(アドレス$0000〜$FFFF、$は16進数である
ことを表す)とする。
Figure 3 is a system address map. still,
Assume that an 8-bit microcomputer has 16 address buses and therefore an address space of 64K bytes (addresses $0000 to $FFFF, $ represents a hexadecimal number).

ここで、アドレス$0000〜$00FF(256バイト)
がRAM3に割当てられ、アドレス$0100がI/
O6の選択用に割当てられ、アドレス$8000〜
$83FF(1Kバイト)がEP−ROM5に割当てら
れ、アドレス$C000〜$FFFF(16Kバイト)が
マスクROM4に割当てられている。
Here, address $0000 to $00FF (256 bytes)
is assigned to RAM3, and address $0100 is assigned to I/
Assigned for O6 selection, address $8000~
$83FF (1K byte) is allocated to EP-ROM5, and addresses $C000 to $FFFF (16K byte) are allocated to mask ROM4.

但し、EP−ROM5は4Kバイトのメモリ容量
を有し、第4図に示すように、チツプ内アドレス
(下位12ビツトアドレス)で、$000〜$3FF、
$400〜$7FF、$800〜$BFF、$C00〜$FFF
の各エリアに、1Kバイトずつ同一内容のデータ
群を4個記憶させてある。
However, the EP-ROM 5 has a memory capacity of 4K bytes, and as shown in Figure 4, the internal chip address (lower 12-bit address) is $000 to $3FF,
$400~$7FF, $800~$BFF, $C00~$FFF
In each area, four data groups of 1K bytes each with the same content are stored.

第5図はアドレスビツトマツプである。 FIG. 5 is an address bitmap.

RAM3については、上位8ビツトをチツプセ
レクト用に使用し、0000 0000のときRAM3が
選択されるようにしてあり、下位8ビツトをチツ
プ内アドレスの指定用に使用する。
Regarding RAM3, the upper 8 bits are used for chip selection so that RAM3 is selected when 0000 0000, and the lower 8 bits are used for specifying the address within the chip.

I/O6については、16ビツトの全てをチツプ
セレクト用に使用し、0000 0001 0000 0000のと
きI/O6が選択されるようにしてある。
Regarding I/O6, all 16 bits are used for chip selection, so that I/O6 is selected when 0000 0001 0000 0000.

EP−ROM5については、上位4ビツトをチツ
プセレクト用に使用し、1000のときEP−ROM5
が選択されるようにしてあり、下位12ビツトをチ
ツプ内アドレスの指定用に使用するが、下位12ビ
ツトのうち上位2ビツト(X11X10)をチツプ内
の第1〜第4データ群の先頭アドレスの指定用と
し、下位10ビツトを各データ群における先頭アド
レスからの相対アドレスの指定用としてある。
For EP-ROM5, the upper 4 bits are used for chip selection, and when it is 1000, EP-ROM5
is selected, and the lower 12 bits are used to specify the address within the chip, but the upper 2 bits ( X11X10 ) of the lower 12 bits are used to specify the first to fourth data groups within the chip. It is used to specify the start address, and the lower 10 bits are used to specify the relative address from the start address in each data group.

すなわち、第6図に示すように、CPU1から
の16ビツトアドレスのうち上位4ビツト(A15
A12)をアドレスデコーダ7により判定して、そ
れが1000のときEP−ROM5に対しチツプセレク
ト信号を送るようにする一方、I/O6から予め
定めた先頭アドレス指定用のX11及びX10信号を
EP−ROM5のアドレスポートA11及びX10に送
り、またCPU1からの16ビツトアドレスのうち
下位10ビツト(A9〜A0)をEP−ROM5のアド
レスポートA9〜A0に送るようにしてある。
That is, as shown in Figure 6, the upper 4 bits (A 15 -
A12 ) is determined by the address decoder 7, and when it is 1000, a chip select signal is sent to the EP-ROM5, while the X11 and X10 signals for specifying a predetermined start address are sent from the I/O6. of
The data is sent to address ports A11 and X10 of EP-ROM5, and the lower 10 bits ( A9 to A0 ) of the 16-bit address from CPU1 are sent to address ports A9 to A0 of EP-ROM5. be.

このように先頭アドレス指定用のX11X10を予
め定めてI/O6からEP−ROM5に送ること
で、CPU1から$8000〜$83FFの範囲でアドレ
スを指定したときに、X11X10の値によつて、実
質的には$8000〜$83FF、$8400〜$87FF、
$8800〜$8BFF、$8C00〜$8FFFの範囲のア
ドレス、EP−ROM5のチツプ内アドレスで、
$000〜$3FF、$400〜$7FF、$800〜$BFF、
$C00〜$FFFの範囲のアドレスが指定されるよ
うにしてある。
In this way, by predetermining X 11 Depending on the value, practically $8000~$83FF, $8400~$87FF,
Addresses in the range of $8800 to $8BFF, $8C00 to $8FFF, and addresses within the chip of EP-ROM5,
$000~$3FF, $400~$7FF, $800~$BFF,
Addresses in the range of $C00 to $FFF are specified.

マスクROM4については、上位4ビツトをチ
ツプセレクト用に使用し、10のときにマスク
ROM4が選択されるようにしてあり、下位14ビ
ツトをチツプ内アドレスの指定用に使用する。
For mask ROM4, the upper 4 bits are used for chip selection, and when it is 10, it is masked.
ROM4 is selected, and the lower 14 bits are used to specify the address within the chip.

前述のX11X10の値は制御プログラムの実行に
先立つてチエツクプログラムを実行することによ
り決定される。
The value of X 11 X 10 mentioned above is determined by executing a check program prior to executing the control program.

ここで、チエツクプログラムは制御プログラム
と共にマスクROM4に記憶させてある。また、
ベクタアドレス(電源投入時に最初にプログラム
カウンタが指示するアドレス)もマスクROM4
に記憶させてある。第7図はマスクROM4のア
ドレスマツプを示している。
Here, the check program is stored in the mask ROM 4 together with the control program. Also,
The vector address (the address that the program counter first indicates when the power is turned on) is also masked in ROM4.
It has been memorized. FIG. 7 shows the address map of the mask ROM 4.

すなわち、第8図に示すように、電源投入時
に、F1でベクタアドレスへジヤンプするが、こ
のベクタアドレスはマスクROM4($FFFE〜
$FFFF)内にある。そして、F2でベクタアドレ
ス内容によるアドレス$C000へジヤンプし、F3
のチエツクプログラムを実行し、その後、F4の
制御プログラムの実行に移るようにしてある。
That is, as shown in FIG. 8, when the power is turned on, F1 jumps to the vector address, and this vector address is stored in mask ROM4 ($FFFE~
Within $FFFF). Then, press F2 to jump to the address $C000 according to the vector address contents, and press F3
The check program is executed, and then the control program for F4 is executed.

チエツクプログラムについて、第9図のフロー
チヤートによつて説明する。
The check program will be explained using the flowchart shown in FIG.

電源投入後、S1でEP−ROM5内の4個のデー
タ群の番号を表す変数NをRAM3から読出す。
この変数Nは後述するS6において書込まれるも
ので、前回正常と判定されて使用したデータ群の
番号を表す。尚、RAM3に対しては、第2図に
示すように電源を直接(電源スイツチ8を介する
ことなく)供給し、電源スイツチ8を切つても、
記憶内容が保持されるようにしてある。
After the power is turned on, a variable N representing the numbers of four data groups in the EP-ROM 5 is read out from the RAM 3 in S1.
This variable N is written in S6, which will be described later, and represents the number of the data group that was previously determined to be normal and was used. Note that power is supplied directly to the RAM 3 (without going through the power switch 8) as shown in FIG. 2, and even if the power switch 8 is turned off,
The memory contents are retained.

読出されたNが1であつたとすると、S2での
Nが1であるか否かの判定により、S3へ進み、
X11X10=00にセツトした後、S4でPE−ROMデ
ータチエツクを行う。
If the read N is 1, it is determined in S2 whether N is 1, and the process advances to S3.
After setting X 11 X 10 = 00, PE-ROM data check is performed in S4.

このEP−ROMデータチエツクでは、CPU1
より$8000〜$83FFのアドレスを順次指定して
対応するアドレスのデータを取出し、その内容を
チエツクする。
In this EP-ROM data check, CPU1
The addresses from $8000 to $83FF are sequentially specified, data at the corresponding addresses is retrieved, and the contents are checked.

この再、X11X10=00にセツトされている場合
は、EP−ROM5のチツプ内アドレスで$000〜
$3FFのデータ、すなわち第1データ群の各デー
タが取出される。
This time , if X 11
Data of $3FF, that is, each data of the first data group is extracted.

データのチエツクは、特開昭55−128641号公報
に記載されているように、種々の方法が考えられ
るが、例えば、EP−ROM5内の各データ群の中
に、それらのデータの加算値(加算値の下位8ビ
ツトでよい)を予め用意しておき、順次アドレス
を指定して取出したデータを加算して、その結果
を予め記憶させてある加算値と比較することによ
り行う。そして、それらが一致する場合はデータ
が変更されていないものと判断し、一致しない場
合は、データの少なくとも一部が変更されてしま
つたものと判断する。
Various methods can be used to check the data, as described in Japanese Patent Application Laid-Open No. 128641/1982. For example, in each data group in the EP-ROM 5, the sum value ( This is done by preparing in advance the lower 8 bits of the addition value, adding the data taken out by sequentially specifying addresses, and comparing the result with the addition value stored in advance. If they match, it is determined that the data has not been changed; if they do not match, it is determined that at least part of the data has been changed.

第1データ群のチエツクの結果がOKであれ
ば、S5から制御プログラムへ移行する。この場
合、X11X10=00の状態に保持されるから、制御
プログラムの実行時には第1データ群のデータが
使用される。
If the result of checking the first data group is OK, the process moves from S5 to the control program. In this case, since the state of X 11 X 10 =00 is maintained, the data of the first data group is used when the control program is executed.

第1データ群のチエツクの結果がNGであれ
ば、S5からS6へ進んで、Nを1アツプ、すなわ
ちN=2とし、これをRAM3に書込んで、S1へ
戻る。このときは、S1、S2を経て、S7からS8へ
進み、X11X10=01にセツトし、S4でEP−ROM
データチエツクを行う。
If the result of checking the first data group is NG, the process advances from S5 to S6, increases N by 1, that is, sets N=2, writes this to the RAM 3, and returns to S1. In this case, go through S1 and S2, go from S7 to S8, set X 11
Perform a data check.

この際は、CPU1より$8000〜$83FFのアド
レスを順次指定すると、X11X10=01であるので、
EP−ROM5のチツプ内アドレスで$400〜
$7FFのデータ、すなわち第2データ群の各デー
タが取出され、チエツクされる。
In this case, if you specify addresses from $8000 to $83FF sequentially from CPU1, X 11 X 10 = 01, so
EP-ROM5 chip address starts from $400
The data of $7FF, that is, each data of the second data group is taken out and checked.

第2データ群のチエツクの結果がOKであれ
ば、S5から制御プログラムへ移行する。この場
合、X11X10=01の状態に保持されるから、制御
プログラムの実行時には第2データ群のデータが
使用される。
If the result of checking the second data group is OK, the process moves to the control program from S5. In this case, since the state of X 11 X 10 =01 is maintained, the data of the second data group is used when the control program is executed.

第2データ群のチエツクの結果がNGであれ
ば、S5からS6へ進んでNを1アツプ、すなわち
N=3とし、これをRAM3に書込んで、S1へ戻
る。このときは、S1、S2、S7を経て、S9から
S10へ進み、X11X10=10にセツトし、S4でEP−
ROMデータチエツクを行う。
If the result of checking the second data group is NG, the process proceeds from S5 to S6, increments N by 1, that is, sets N=3, writes this to RAM3, and returns to S1. At this time, go through S1, S2, S7, and then from S9.
Proceed to S10, set X 11 X 10 = 10, and set EP- in S4.
Performs ROM data check.

この際は、CPU1より$8000〜$83FFのアド
レスを順次指定すると、X11X10=10であるので、
EP−ROM5のチツプ内アドレスで$800〜
$BFFのデータ、すなわち第3データ群の各デ
ータが取出され、チエツクされる。
In this case, if you sequentially specify addresses from $8000 to $83FF from CPU1, X 11 X 10 = 10, so
Starting at $800 for EP-ROM5 chip address
The data of $BFF, that is, each data of the third data group is taken out and checked.

第3データ群のチエツクの結果がOKであれ
ば、S5から制御プログラムへ移行する。この場
合、X11X10=10の状態に保持されるから、制御
プログラムの実行時には第3データ群のデータが
使用される。
If the result of checking the third data group is OK, the process moves to the control program from S5. In this case, since the state of X 11 X 10 =10 is maintained, the data of the third data group is used when the control program is executed.

第3データ群のチエツクの結果がNGであれ
ば、S5からS6へ進んでNを1アツプ、すなわち
N=4とし、これをRAM3に書込んで、S1へ戻
る。このときは、S1、S2、S7、S9を経て、S11
からS12へ進み、X11X10=11にセツトし、S4で
EP−ROMデータチエツクを行う。
If the result of checking the third data group is NG, the process proceeds from S5 to S6, increments N by 1, that is, sets N=4, writes this to RAM3, and returns to S1. At this time, go through S1, S2, S7, S9, and then S11.
Go to S12, set X 11 X 10 = 11, and go to S4.
Performs EP-ROM data check.

この際は、CPU1より$8000〜$83FFのアド
レスを順次指定すると、X11X10=11であるので、
EP−ROM5のチツプ内アドレスで$C00〜
$FFFのデータ、すなわち第4データ群の各デ
ータが取出され、チエツクされる。
In this case, if you specify addresses from $8000 to $83FF sequentially from CPU1, X 11 X 10 = 11, so
From $C00 at the address in the chip of EP-ROM5
The data of $FFF, that is, each data of the fourth data group is taken out and checked.

第4データ群のチエツクの結果がOKであれ
ば、S5から制御プログラムへ移行する。この場
合、X11X10=11の状態に保持されるから、制御
プログラムの実行時には第4データ群のデータが
使用される。
If the result of checking the fourth data group is OK, the process moves to the control program from S5. In this case, since the state of X 11 X 10 =11 is maintained, the data of the fourth data group is used when the control program is executed.

このようにすることで、異常データ群を含む群
があつても、正常なデータ群を探して、常に正常
な制御ができる。また、データを取出す場合、制
御プログラム中のアドレスを変更することなく、
同一アドレスで、正常なデータを取出すことが可
能である。
By doing this, even if there is a group that includes an abnormal data group, a normal data group can be searched for and normal control can always be performed. Also, when retrieving data, the address in the control program can be retrieved without changing the address in the control program.
It is possible to retrieve normal data using the same address.

第4データ群のチエツクの結果がNGであれ
ば、S5からS6へ進んでNを1アツプ、すなわち
N=5とし、これをRAM3に書込んで、S1へ戻
る。このときは、S1、S2、S7、S9、S11を経て、
S13へ進み、表示を行つた後、停止する。すなわ
ち、第1〜第4データ群のいずれもが異常の場合
は制御プログラムへ移行することなく停止する
が、停止原因をドライバや修理工場の人に知らし
めるため、例えば発光ダイオード等を点灯させ
て、それを表示する。
If the result of checking the fourth data group is NG, the process proceeds from S5 to S6, increments N by 1, that is, sets N=5, writes this to the RAM 3, and returns to S1. At this time, through S1, S2, S7, S9, S11,
Proceed to S13, display, and then stop. In other words, if any of the first to fourth data groups are abnormal, the system will stop without moving to the control program, but in order to notify the driver or repair shop personnel of the cause of the stop, for example, a light emitting diode, etc. will be turned on. , display it.

一方、前回の電源投入時のチエツクの際、第1
データ群がNGで、次の第2データ群を切換使用
していたとすると、RAM3には、N=2が記憶
保持されているから、電源を投入すると、S1で
N=2が読出され、S2を経て、S7からS8に進み、
X11X10=01にセツトして、S4で第2データ群に
ついてEP−ROMデータチエツクを行う。このよ
うに前回のチエツクによりNGのものは、再始動
時にチエツクせず、前回OKで切換使用していた
ものからチエツクを開始するようにしたので、
EP−ROMデータチエツクの時間を短縮でき、制
御プログラムに入るのが早くなることで、始動性
の向上につながる。
On the other hand, when the power was turned on last time, the first
If the data group is NG and the next second data group is being used, N=2 is stored in RAM3, so when the power is turned on, N=2 is read out in S1 and S2 After that, proceed from S7 to S8,
X 11 X 10 =01 is set, and an EP-ROM data check is performed for the second data group in S4. In this way, the items that were NG due to the previous check are not checked when restarting, and the check starts from the items that were switched and used last time as OK.
The EP-ROM data check time can be shortened and the control program can be started quickly, leading to improved startability.

尚、この実施例は、EP−ROM内のデータ(プ
ログラムを除く)のバツクアツプを行う場合につ
いてのみ示しているが、本発明はEP−ROM以外
のプログラマブルROMに対しても適用でき、ま
た制御プログラムのバツクアツプについても適用
できる。
Although this embodiment shows only the case of backing up data (excluding programs) in EP-ROM, the present invention can also be applied to programmable ROMs other than EP-ROM, and the control program This can also be applied to backups.

<発明の効果> 以上説明したように本発明によれば、プログラ
マブルROM内に同一内容の制御プログラム又は
データ群を複数個設けて、1つの群毎にその内容
をチエツクし、異常データを含む群がある場合は
正常な群を使用するよう切換えるようにしたた
め、常に正常な制御プログラム又はデータ群を使
用して制御でき、車載機器の制御の信頼性が一段
と向上し、重大故障や事故を未然に防ぐことがで
きる。また、チエツクと切換えとを行うチエツク
プログラムと、電源投入時にチエツクプログラム
を実行させるためのベクタアドレスとをマスク
ROMに記憶させるようにしたため、これらにつ
いては安全が保証され、チエツクプログラムやベ
クタアドレスの破損によつて、チエツクプログラ
ムや制御プログラムが実行不能となることはなく
なる。
<Effects of the Invention> As explained above, according to the present invention, a plurality of control programs or data groups with the same content are provided in the programmable ROM, and the content is checked for each group, and the group containing abnormal data is checked. If there is a problem, the system switches to use the normal group, so the control program or data group can always be used for control, further improving the reliability of in-vehicle equipment control and preventing serious malfunctions and accidents. It can be prevented. Also, the check program that performs checking and switching, and the vector address for executing the check program when the power is turned on are masked.
Since they are stored in ROM, their safety is guaranteed, and the check program and control program will not become unexecutable due to corruption of the check program or vector address.

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

第1図は本発明の構成を示すブロツク図、第2
図〜第9図は本発明の一実施例を示し、第2図は
システムブロツク図、第3図はシステムアドレス
マツプ図、第4図はEP−ROMチツプ内アドレス
マツプ図、第5図はアドレスビツトマツプ図、第
6図はEP−ROMの配線図、第7図はフローチヤ
ート、第8図はマスクROMのアドレスマツプ
図、第9図はチエツクプログラムのフローチヤー
トである。 1……CPU、3……RAM、4……マスク
ROM、5……EP−ROM、6……I/O、7…
…アドレスデコーダ。
Figure 1 is a block diagram showing the configuration of the present invention, Figure 2 is a block diagram showing the configuration of the present invention.
9 to 9 show an embodiment of the present invention, FIG. 2 is a system block diagram, FIG. 3 is a system address map diagram, FIG. 4 is an address map diagram in the EP-ROM chip, and FIG. 5 is an address map diagram. 6 is a wiring diagram of the EP-ROM, FIG. 7 is a flowchart, FIG. 8 is an address map of the mask ROM, and FIG. 9 is a flowchart of the check program. 1...CPU, 3...RAM, 4...Mask
ROM, 5...EP-ROM, 6...I/O, 7...
...address decoder.

Claims (1)

【特許請求の範囲】[Claims] 1 マイクロコンピユータを用いて車載機器を制
御する自動車用制御装置において、制御プログラ
ム又はデータ記憶用のプログラマブルROMに、
同一内容の制御プログラム又はデータ群を複数個
記憶させる一方、制御プログラムの実行に先立つ
て、前記プログラマブルROM内の制御プログラ
ム又はデータ群をチエツクする手段と、チエツク
により正常と判定された制御プログラム又はデー
タ群を使用する状態に切換える手段とを設け、か
つ、これらの手段を実現するチエツクプログラム
と、電源投入時にチエツクプログラムを実行させ
るためのベクタアドレスとを、マスクROMに記
憶させたことを特徴とする自動車用制御装置。
1. In an automobile control device that controls in-vehicle equipment using a microcomputer, a programmable ROM for storing control programs or data,
A means for storing a plurality of control programs or data groups with the same content, and checking the control programs or data groups in the programmable ROM prior to execution of the control programs; and a control program or data determined to be normal by the check. A check program for implementing these means and a vector address for executing the check program when the power is turned on are stored in a mask ROM. Automotive control device.
JP9749084A 1984-05-17 1984-05-17 Control device for automobile Granted JPS60244650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9749084A JPS60244650A (en) 1984-05-17 1984-05-17 Control device for automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9749084A JPS60244650A (en) 1984-05-17 1984-05-17 Control device for automobile

Publications (2)

Publication Number Publication Date
JPS60244650A JPS60244650A (en) 1985-12-04
JPH0515580B2 true JPH0515580B2 (en) 1993-03-02

Family

ID=14193711

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9749084A Granted JPS60244650A (en) 1984-05-17 1984-05-17 Control device for automobile

Country Status (1)

Country Link
JP (1) JPS60244650A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2878266A1 (en) 2013-11-29 2015-06-03 Konica Minolta, Inc. Medical imaging system and program

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3723024A1 (en) * 1987-07-11 1989-01-19 Bosch Gmbh Robert METHOD AND DEVICE FOR CONTROLLING TECHNICAL SYSTEMS AND MACHINES
JP2556562B2 (en) * 1988-10-04 1996-11-20 株式会社日立製作所 Engine controller
JPH05340295A (en) * 1992-06-09 1993-12-21 Toyota Motor Corp Control device for multicylinder internal combustion engine
JP3482675B2 (en) * 1994-03-04 2003-12-22 トヨタ自動車株式会社 Safety control device for internal combustion engine
EP1113454B1 (en) 1999-11-15 2007-05-30 Autonetworks Technologies, Ltd. Check method of temporary storage circuit in electronic control unit
JP4321472B2 (en) * 2005-03-28 2009-08-26 トヨタ自動車株式会社 Control device
EP3530511B1 (en) 2018-02-27 2020-05-27 Joseph Vögele AG Method of reconfiguring a control device for a construction machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2878266A1 (en) 2013-11-29 2015-06-03 Konica Minolta, Inc. Medical imaging system and program

Also Published As

Publication number Publication date
JPS60244650A (en) 1985-12-04

Similar Documents

Publication Publication Date Title
CA1100646A (en) Auxiliary rom memory system
US5566335A (en) Method and apparatus for firmware upgrades in embedded systems
US4769767A (en) Memory patching system
KR100274099B1 (en) Progressively programmable nonvolatile memory and integrated circuit and nonvolatile memory programming method including the same
JPH0515580B2 (en)
US6564177B1 (en) Electronic device
JPH0758502B2 (en) IC card
JPH0515579B2 (en)
JPH03252993A (en) Information writing device for e2prom
KR920004405B1 (en) Computer system for enabling to use address space effectively
JP3296043B2 (en) Vehicle electronic control unit
JPS5848932B2 (en) Memory expansion method
JPS6234260A (en) Access system for nonvolatile memory
US6032173A (en) Synchronization of a computer system having a plurality of processors
JPS60244648A (en) Control device for automobile
JPH0728393A (en) Controller
US5283907A (en) Process for safeguarding transfer of data from a temporary part into a main part of a non-volatile memory
JPS60244651A (en) Control device for automobile
JPH0436048A (en) Electronic controller for vehicle
JP2004287712A (en) Electronic device
JP2978008B2 (en) Memory management method
JPH06266537A (en) Controller
JPH0333036Y2 (en)
US7228251B2 (en) Angular rate sensor having a vibration gyroscope
JPH10207705A (en) Semiconductor storage device and microcomputer