JPH1083355A - Memory checking mechanism for vehicle controller - Google Patents

Memory checking mechanism for vehicle controller

Info

Publication number
JPH1083355A
JPH1083355A JP8237415A JP23741596A JPH1083355A JP H1083355 A JPH1083355 A JP H1083355A JP 8237415 A JP8237415 A JP 8237415A JP 23741596 A JP23741596 A JP 23741596A JP H1083355 A JPH1083355 A JP H1083355A
Authority
JP
Japan
Prior art keywords
memory
program
address
memory check
check
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.)
Pending
Application number
JP8237415A
Other languages
Japanese (ja)
Inventor
Akihiko Yamashita
明彦 山下
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
Unisia Jecs Corp
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 Unisia Jecs Corp filed Critical Unisia Jecs Corp
Priority to JP8237415A priority Critical patent/JPH1083355A/en
Publication of JPH1083355A publication Critical patent/JPH1083355A/en
Pending legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a mechanism executing a sure memory check while avoiding a bad influence on the other processings and ABS(anti-lock braking system) control at the time of memory check. SOLUTION: A computer 2 controls ABS every 10ms and is provided with ROM 12 storing a program for ABS control and an abnormality detecting means checking the program at every prescribed byte in the storing area of ROM 12 when the computer 2 is started. Then the abnormality detecting means is operated in the idle time of a program executing time from the starting of the execution of the program to the finish of the 10ms period of the computer.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えばアンチロッ
クブレーキ装置(ABS)等の車両用制御装置に関し、
とりわけコンピュータのメモリチェック機構に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vehicle control device such as an anti-lock brake device (ABS).
In particular, it relates to a memory check mechanism of a computer.

【0002】[0002]

【従来の技術】近時、エンジンやABS等をマイクロコ
ンピュータによって制御する車両用制御装置にあって
は、メモリに記載された車両制御用のプログラムの不正
改造などを防止するために、該プログラムのチェックを
行う技術が種々提供されており、その一つとして特開平
7−042609号公報に記載されたものがある。
2. Description of the Related Art Recently, in a vehicle control device that controls an engine, an ABS, and the like by a microcomputer, in order to prevent unauthorized modification of a vehicle control program described in a memory, the program is controlled. Various techniques for checking are provided, one of which is described in Japanese Patent Application Laid-Open No. 7-042609.

【0003】概略を説明すれば、このメモリチェック機
構は、エンジンを制御するためプログラムを格納してい
るメモリをチェックするものであって、チェックする際
には、コンピュータの起動時に、所定時間毎に前記メモ
リの記憶領域の所定バイト毎にメモリチェックを実施す
るようになっている。また、エンジン回転数が4,00
0rpm以上の高回転状態においては、回転割り込み処理
が多発してエンジン制御処理負荷が大きくなり、演算処
理に遅れが生じエンジン制御への悪影響を懸念して、メ
モリチェックを禁止するようになっている。
[0003] In brief, the memory check mechanism checks a memory storing a program for controlling an engine. When the memory check mechanism is checked, the memory check mechanism is activated every predetermined time when the computer is started. A memory check is performed for each predetermined byte in the storage area of the memory. When the engine speed is 4,000
In a high rotation state of 0 rpm or more, rotation interrupt processing occurs frequently and the load on the engine control processing increases, which causes a delay in arithmetic processing and concerns about an adverse effect on engine control. .

【0004】[0004]

【発明が解決しようとする課題】しかしながら、前記従
来のメモリチェック機構にあっては、前述のように所定
時間毎にメモリの記憶領域の所定バイト毎に前記プログ
ラムをチェックして異常を検出するようになっているた
め、例えば車輪速信号等を外部割り込みで取り込んでい
た場合などには、車速が速くなると、外部割り込みが多
発して車輪速演算処理負荷が大きくなり、所定バイトの
メモリチェックが終了できなくなったり、エンジン制御
への悪影響が生じるおそれがある。
However, in the conventional memory check mechanism, as described above, the program is checked at every predetermined time and at every predetermined byte of the storage area of the memory to detect an abnormality. For example, when the wheel speed signal is captured by an external interrupt, for example, when the vehicle speed increases, the number of external interrupts increases, the wheel speed calculation processing load increases, and the memory check of a predetermined byte is completed. It may not be possible or adversely affect engine control.

【0005】また、エンジン回転数が4,000rpm以上
の高回転状態では、前述のようにエンジン制御への悪影
響を懸念してメモリチェックを禁止するようになってい
るため、エンジン回転数が4,000rpm以上の状態でメ
モリ異常が発生した場合は、この異常を検出できずに、
メモリ異常の状態でエンジン制御処理を実施することに
なるので、エンジン制御へ悪影響を及ぼすおそれがあ
る。
[0005] When the engine speed is high at 4,000 rpm or higher, the memory check is forbidden as described above because of concern about the adverse effect on the engine control. If a memory error occurs at a speed of 000 rpm or more, this error cannot be detected,
Since the engine control process is performed in the state of the memory abnormality, the engine control may be adversely affected.

【0006】[0006]

【課題を解決するための手段】本発明は、前記従来のメ
モリチェック機構における課題に鑑みて案出されたもの
で、請求項1記載の発明にあっては、所定周期毎に実行
して車両を制御するコンピュータと、前記車両を制御す
るためのプログラムを格納しているメモリと、前記コン
ピュータが起動しているときに、前記メモリの記憶領域
の所定バイト毎に前記プログラムをチェックして異常を
検出するプログラム異常検出手段とを備えた車両用制御
装置のメモリチェック機構において、前記車両を制御す
るプログラムの実行が開始してから前記コンピュータの
所定周期が終了するまでのプログラム実行時間の空き時
間に、前記プログラム異常検出手段を作動させることを
特徴としている。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems in the conventional memory check mechanism. A computer that controls the vehicle, a memory that stores a program for controlling the vehicle, and when the computer is running, checks the program for each predetermined byte in a storage area of the memory to check for abnormalities. In the memory check mechanism of the vehicle control device having a program abnormality detection means for detecting, the program execution time from the start of execution of the program for controlling the vehicle to the end of a predetermined period of the computer is reduced to an idle time of the program execution time. Activating the program abnormality detecting means.

【0007】請求項2記載の発明にあっては、前記プロ
グラム異常検出手段は、メモリチェックを先頭アドレス
から最終アドレスまでのメモリー内容の加算値によりチ
ェックすることを特徴としている。
According to a second aspect of the present invention, the program abnormality detecting means checks a memory check by an added value of memory contents from a start address to an end address.

【0008】請求項3記載の発明にあっては、前記プロ
グラム異常検出手段は、メモリチェックを先頭アドレス
から最終アドレスまでのメモリー内容の排他的論理和に
よってチェックすることを特徴としている。
According to a third aspect of the present invention, the program abnormality detecting means checks the memory by an exclusive OR of memory contents from a start address to an end address.

【0009】請求項4記載の発明にあっては、前記プロ
グラム異常検出手段は、メモリチェックを先頭アドレス
から最終アドレスまでのメモリー内容の加算値と排他的
論理和の少なくともいずれか一方によりチェックするこ
とを特徴としている。
According to the present invention, the program abnormality detecting means checks the memory by at least one of an added value of memory contents from a start address to an end address and an exclusive OR. It is characterized by.

【0010】前記構成によれば、例えばABS制御処理
を行っているバックグランドジョブにおいて、ABS制
御に必要な一連の処理が終了して、計算周期が例えば1
0ms経過するまでの空き時間中に、できるところまで
メモリチェックを行い、10ms経過した時点で一時的
にメモリチェックを中断し、さらに一連のABS制御処
理を終了した時点で、再度、前回一時中断したアドレス
よりチェックを再開する。このため、他の処理やABS
制御への悪影響を及ぼすことなくメモリチェックが可能
になる。
According to the above configuration, for example, in a background job in which ABS control processing is being performed, a series of processing required for ABS control is completed, and the calculation cycle becomes, for example, 1
During the free time until 0 ms elapses, the memory check is performed to the extent possible, and the memory check is temporarily interrupted when 10 ms elapses, and when the series of ABS control processing is terminated, the previous time is temporarily interrupted again. Resume checking from address. For this reason, other processing and ABS
Memory check can be performed without adversely affecting control.

【0011】[0011]

【発明の実施の形態】図1は本発明の車両用制御装置を
ABS制御装置に適用した全体構成を示し、図中1は制
御ユニット、2はマイクロコンピュータ、3は入力イン
ターフェース回路、14は出力インターフェース回路、
5は電源レギュレータである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an overall configuration in which a vehicle control device of the present invention is applied to an ABS control device. In FIG. Interface circuit,
5 is a power supply regulator.

【0012】前記マイクロコンピュータ2には、前後の
車輪速センサ6a,6b,6c及びブレーキスイッチ7
からの情報信号が入力インターフェース回路3を介して
入力されると共に、電源8がイグニッションスイッチ9
及び電源レギュレータ5を介して入力されることにより
起動するようになっている。
The microcomputer 2 includes front and rear wheel speed sensors 6a, 6b, 6c and a brake switch 7.
Is input via the input interface circuit 3 and the power supply 8 is turned on by the ignition switch 9.
And it is started by being inputted through the power supply regulator 5.

【0013】前記マイクロコンピュータ2は、CPU1
0,RAM11,制御用プログラムが格納されたROM
12,入出力ポート(I/0)13,タイマー14及び
A/D変換器15とから構成されている。
The microcomputer 2 includes a CPU 1
0, RAM 11, ROM storing control program
12, an input / output port (I / 0) 13, a timer 14, and an A / D converter 15.

【0014】前記CPU10は、車両を制御する各種装
置の作動制御等をするための処理を実行するものであ
り、具体的には入力インターフェース回路3を介して入
力された前記車輪速センサ6a〜6c及びブレーキスイ
ッチ7からの情報信号に基づき、ROM12に格納され
たプログラムにしたがって演算処理を行い、出力インタ
ーフェース回路4を介してABS油圧ユニット16に駆
動信号を出力する。
The CPU 10 executes processing for controlling the operation of various devices for controlling the vehicle. Specifically, the CPU 10 inputs the wheel speed sensors 6a to 6c input through the input interface circuit 3. On the basis of the information signal from the brake switch 7, the arithmetic processing is performed according to a program stored in the ROM 12, and a drive signal is output to the ABS hydraulic unit 16 via the output interface circuit 4.

【0015】そして、前記ROM12に格納されたプロ
グラムによりABS油圧ユニット16を制御してブレー
キロックのない最適なブレーキ性能を発揮するようにな
っているが、該プログラムが車両メーカの意に反して変
更された場合、あるいは何らかの原因でメモリーが破壊
されている場合は、最適なブレーキ状態が発揮し得なく
なるおそれがある。このため、以下のような各種フロー
に基づいてメモリチェック行っている。
The ABS hydraulic unit 16 is controlled by a program stored in the ROM 12 so as to exhibit optimum brake performance without brake lock. However, the program is changed contrary to the intention of the vehicle manufacturer. If the brakes are applied, or if the memory is destroyed for some reason, the optimal braking state may not be exhibited. For this reason, a memory check is performed based on the following various flows.

【0016】すなわち、図2はABSのバックグランド
ジョブフローを示し、図3〜図5は車輪パルス計測処理
フローを示し、また図6は内部タイマ割り込み処理フロ
ーを示している。さらに図7はメモリチェックフローを
示している。
FIG. 2 shows the ABS background job flow, FIGS. 3 to 5 show the wheel pulse measurement processing flow, and FIG. 6 shows the internal timer interrupt processing flow. FIG. 7 shows a memory check flow.

【0017】そして、図2に示すバックグランドジョブ
フローのルーチンは10msに1回の処理を行うもので
あり、まず、ステップ1(S1)〜ステップ3(S3)
のブロックでは、図6に示す内部タイマ割り込み処理
(1ms)にて1ms毎にカウントアップするタイマ値
(JOB_C)をモニタし、ステップ1(S1)では、
JOB_C≧10を判別する。すなわち、前回処理より
10ms経過したのを受けて10msよりも小さい場合
は元に戻り、大きいと判断した場合はステップ2(S
2)に移行する。このステップ2(S2)では、次の1
0msを判断するためにタイマ値(JOB_C)をクリ
アし、ステップ3(S3)に進む。ここでは、ABS制
御装置の異常診断であるフェイルセーフ処理を行う。次
に、ステップ4(S4)では、タイマ値(JOB_C)
が2よりも大きいか否かを判別して、2あるいはそれ以
上になるまで待機し、2あるいはそれ以上になると、ス
テップ5(S5)において車輪速度演算処理を行う。こ
こでは、図3〜図5に示す車輪速パルス計測の結果を受
けて車輪速度演算を行う。
The background job flow routine shown in FIG. 2 performs processing once every 10 ms. First, steps 1 (S1) to 3 (S3)
In the block (1), the timer value (JOB_C) that counts up every 1 ms in the internal timer interrupt process (1 ms) shown in FIG. 6 is monitored, and in step 1 (S1),
JOB_C ≧ 10 is determined. In other words, in response to the lapse of 10 ms from the previous processing, if the time is shorter than 10 ms, the processing returns to the original state.
Go to 2). In this step 2 (S2), the following 1
In order to determine 0 ms, the timer value (JOB_C) is cleared, and the process proceeds to step 3 (S3). Here, a fail-safe process, which is an abnormality diagnosis of the ABS control device, is performed. Next, in step 4 (S4), the timer value (JOB_C)
Is determined to be greater than or equal to 2, and waits until it becomes 2 or more. When it becomes 2 or more, wheel speed calculation processing is performed in step 5 (S5). Here, the wheel speed calculation is performed based on the results of the wheel speed pulse measurement shown in FIGS.

【0018】続いて、ステップ6(S6)に移行し、タ
イマ値(JOB_C)が4あるいはそれ以上になるまで
待機し、タイマ値(JOB_C)が4あるいはそれ以上
になると、今度はステップ7(S7)で疑似車体速度演
算処理を行う。次に、ステップ8(S8)では、タイマ
値(JOB_C)が6あるいはそれ以上になるまで待機
し、6あるいはそれ以上になるとステップ9(S9)に
おいてABS制御演算処理を行う。続いて、ステップ1
0(S10)では、タイマ値(JOB_C)が8あるい
はそれ以上になるまで待機し、8あるいはそれ以上にな
るとステップ11(S11)においてROMチェック処
理(メモリチェック)を行う。このステップ11(S1
1)では、前記内部タイマ割り込み処理1msによって
タイマ値(JOB_C)が10になるまで処理を継続
し、タイマ値(JOB_C)が10になると、メモリチ
ェックを一時中断して、ステップ1(S1)に移行す
る。
Subsequently, the process proceeds to step 6 (S6), and waits until the timer value (JOB_C) becomes 4 or more. When the timer value (JOB_C) becomes 4 or more, the process proceeds to step 7 (S7). The pseudo vehicle speed calculation process is performed in (). Next, in step 8 (S8), the process waits until the timer value (JOB_C) becomes 6 or more, and when it becomes 6 or more, the ABS control arithmetic processing is performed in step 9 (S9). Then, Step 1
At 0 (S10), the process waits until the timer value (JOB_C) becomes 8 or more, and when it becomes 8 or more, a ROM check process (memory check) is performed in step 11 (S11). This step 11 (S1
In 1), the processing is continued until the timer value (JOB_C) reaches 10 by the internal timer interrupt process 1 ms. When the timer value (JOB_C) reaches 10, the memory check is temporarily suspended and the process proceeds to step 1 (S1). Transition.

【0019】そして、ステップ1(S1)〜ステップ3
(S3)によって再びバックグランドジョブを実行し、
ステップ11(S11)のメモリチェックでは前回一時
中断したアドレスからメモリチェックを再開する。
Then, Step 1 (S1) to Step 3
A background job is executed again by (S3),
In the memory check of step 11 (S11), the memory check is restarted from the address temporarily suspended last time.

【0020】ここで、図3〜図5に示す処理フローは、
車輪速センサ6a〜6cから出力された前後輪(FR,
FL,RR)の車輪速信号をインターフェース回路3に
おいて矩形波に変換されたパルス波形のパルス数を計測
する。
Here, the processing flow shown in FIGS.
Front and rear wheels (FR, FR) output from the wheel speed sensors 6a to 6c.
The number of pulses of the pulse waveform obtained by converting the wheel speed signal (FL, RR) into a rectangular wave in the interface circuit 3 is measured.

【0021】また、図6に示す処理フローでは、まずス
テップ20(S20)で1ms毎にカウントアップする
タイマ値(JOB_C)をカウントアップし、次にステ
ップ21(S21)にて前記図2のステップ9で演算し
たABS制御演算結果、例えばソレノイド駆動、アクチ
ュエータリレー駆動及びモータリレー駆動信号などをポ
ート出力する。そして、ステップ22(S22)におい
て1msにて定期的に行う処理、例えばA/D変換結果
をRAMに取り込むなどの処理を行う。
In the processing flow shown in FIG. 6, first, in step 20 (S20), a timer value (JOB_C) that counts up every 1 ms is counted up, and then in step 21 (S21), the step of FIG. The ABS control calculation result calculated in step 9, such as solenoid drive, actuator relay drive, and motor relay drive signals, is output as a port. Then, in step 22 (S22), processing that is performed periodically at 1 ms, for example, processing such as loading the A / D conversion result into the RAM is performed.

【0022】さらに、図7に示すメモリチェック処理フ
ローは、まずステップ30(S30)では、メモリ異常
によるフェイル状態か否かを判断し、すでにフェイル状
態である場合(FAIL_FLAG=1)は当該メモリ
チェックを終了するが、フェイル状態でない場合(FA
IL_FLAG=O)は、ステップ31(S31)にて
レジスタAにチェックするアドレス(ADDRESS_
M:初期値は零)を、レジスタBにチェックする最終ア
ドレスを、レジスタCにチェックサム値(CHECK_
SUM:初期値は零)を、レジスタDに最終アドレスま
でチェックした時の値Yを格納する。次に、ステップ3
2(S32)にてレジスタCの値にレジスタAの値、す
なわちチェックするアドレスのメモリ内容を加算してレ
ジスタCに格納し、レジスタCの値をRAM(CHEC
K_SUM)に格納する。続いて、ステップ33(S3
3)では、次にチェックするアドレス設定のために、レ
ジスタAをA+1にインクリメントし、その値をRAM
(ADDRESS_M)に格納する。次に、ステップ3
4(S34)では、最終アドレスまでチェックが終了し
ているか否かを判断し、最終アドレスまでチェックが終
了(A=B)していれば、ステップ36(S36)に移
行する。まだ最終アドレスまでチェックが終了していな
い場合(A≠B)は、ステップ35(S35)に進む。
ここではタイマ値(JOB_C)=10でなければ最終
アドレスまでメモリチェックを行うために、ステップ3
2(S32)へ移行する。またここで(JOB_C)=
10の場合は10msが経過したことを示しているの
で、メモリチェックを一時中断する。そして、図2に示
すように次にタイマ値(JOB_C)≧8となり、再び
メモリチェックを行う時には、前回までにチェックが終
了していたアドレスとチェックサムがステップ31(S
31)において読み出され、チェックを再開することに
なる。
Further, in the memory check processing flow shown in FIG. 7, first, in step 30 (S30), it is determined whether or not the memory is in a failed state due to a memory abnormality. If the memory is already in a failed state (FAIL_FLAG = 1), the memory check is performed. Is terminated, but is not in the fail state (FA
IL_FLAG = O) is an address (ADDRESS_) to be checked in the register A in step 31 (S31).
M: the initial value is zero), the final address to be checked in the register B, and the checksum value (CHECK_
SUM: the initial value is zero), and the value Y when the last address is checked is stored in the register D. Next, step 3
2 (S32), the value of the register A, that is, the memory content of the address to be checked is added to the value of the register C and stored in the register C, and the value of the register C is stored in the RAM (CHECK).
K_SUM). Subsequently, step 33 (S3
3) In order to set an address to be checked next, the register A is incremented to A + 1, and the value is stored in the RAM.
(ADDRESS_M). Next, step 3
In 4 (S34), it is determined whether or not the check has been completed up to the final address. If the check has been completed (A = B) up to the final address, the process proceeds to step 36 (S36). If the check has not been completed up to the last address (A ≠ B), the process proceeds to step 35 (S35).
Here, if the timer value (JOB_C) is not 10, the memory check is performed up to the last address.
The process moves to 2 (S32). Also, here (JOB_C) =
Since the case of 10 indicates that 10 ms has elapsed, the memory check is temporarily suspended. Then, as shown in FIG. 2, when the next timer value (JOB_C) ≧ 8 is satisfied and the memory check is performed again, the address and the checksum which have been checked up to the previous time are stored in step 31 (S
31), and the check is restarted.

【0023】すなわち、ABS制御処理に必要な一連の
処理が終了して、タイマ値(JOB_C)=10とな
り、10ms経過までの空いた時間でメモリチェックを
行っているので、他処理やABS制御への悪影響は回避
される。
That is, since a series of processing necessary for the ABS control processing is completed and the timer value (JOB_C) becomes 10, the memory check is performed in a vacant time until 10 ms elapses. Adverse effects are avoided.

【0024】次に、前記ステップ34(S34)で最終
アドレスまでチェックが終了した場合は、ステップ36
(S36)でその結果が所定値と一致(C=D)するか
否かを判断し、一致していた場合は、ステップ82(S
82)において異常回転タイマ値をクリアし、ステップ
40(S40)にて再び先頭アドレスからメモリチェッ
クを行うため、チェックアドレス(ADDRESS_
M)及びチェックサム(CHECK_SUM)をクリア
してメモリチェック処理を終了させる。
Next, in step 34 (S34), if the check has been completed up to the last address, step 36
In step S36, it is determined whether or not the result matches a predetermined value (C = D).
In step 82), the abnormal rotation timer value is cleared, and in step 40 (S40), the memory check is performed again from the top address.
M) and the checksum (CHECK_SUM) are cleared, and the memory check process ends.

【0025】また、前記ステップ36(S36)でデー
タ不一致であると判断した場合には、ステップ37(S
37)にて、何回目のチェックNGかを判断し、X回以
上の場合は、ステップ38(S38)にてフェイルセー
フ処理を行い、続いてステップ41(S41)でFAI
L_FLAGを1にセットしてメモリチェック処理を終
了する。また、ステップ37(S37)にてX回未満の
場合は、ステップ39(S39)にて異常回数タイマ値
(NG_CNT)を1つインクリメントし、ステップ4
0(S40)で再び先頭アドレスからメモリチェックを
実施するために、チェックアドレス(ADDRESS_
M)及びチェックサム(CHECK_SUM)をクリア
してメモリチェック処理を終了する。
If it is determined in step 36 (S36) that the data do not match, the process proceeds to step 37 (S36).
At 37), the number of checks NG is determined, and if it is X times or more, fail-safe processing is performed at step 38 (S38), and then FAI is performed at step 41 (S41).
L_FLAG is set to 1 and the memory check process ends. If it is less than X times in step 37 (S37), the abnormal count timer value (NG_CNT) is incremented by one in step 39 (S39), and step 4 is executed.
0 (S40), a check address (ADDRESS_
M) and the checksum (CHECK_SUM) are cleared, and the memory check process ends.

【0026】このように、ABS制御処理を行っている
バックグランドジョブにおいて、ABS制御に必要な一
連の処理が終了して、計算周期が10ms経過するまで
の空き時間に、できるところまでメモリチェックを行
い、10ms経過した時点で一時的にメモリチェックを
中断し、一連のABS制御処理が終了した時点で、再び
前回一時的に中断したアドレスからチェックを再開させ
るようにしたため、他の処理やABS制御への悪影響を
回避しつつ確実なメモリチェックが可能になる。この結
果、ABSの制御の信頼性が向上する。
As described above, in the background job in which the ABS control process is being performed, a series of processes required for the ABS control is completed, and the memory check is performed to the extent that it is possible in the idle time until the calculation cycle elapses 10 ms. Then, the memory check is temporarily interrupted after 10 ms, and the check is resumed from the address temporarily interrupted last time when a series of ABS control processing is completed. It is possible to perform a reliable memory check while avoiding an adverse effect on memory. As a result, the reliability of the ABS control is improved.

【0027】しかも、車両のあらゆる状況下(メモリ異
常のフェイルセーフ検出まで)でメモリチェックを行え
る構成であるため、ABS制御の信頼性が一層向上す
る。
In addition, since the memory check can be performed under any conditions of the vehicle (up to fail-safe detection of memory abnormality), the reliability of the ABS control is further improved.

【0028】図8は、メモリチェック処理の異なる実施
例を示し、図7に示すフローと異なるところは、ステッ
プ52(S52)におけるチェックサム(CHECK_
SUM)に入る値が、先願アドレスから最終アドレスま
でのメモリ内容の加算値ではなく、排他的論理和(XO
R)としているところにある。つまり、加算値であって
も排他的論理和であっても、先頭から最終アドレスまで
計算した場合はそれぞれ特定の値となるので、メモリチ
ェックを必ずしも加算値で行う必要はない。
FIG. 8 shows another embodiment of the memory check process. The difference from the flow shown in FIG. 7 is that the checksum (CHECK_CHECK) in step 52 (S52) is used.
SUM) is not the sum of the memory contents from the prior application address to the last address, but the exclusive OR (XO)
R). That is, regardless of whether the sum is an exclusive value or an exclusive OR, when the calculation is performed from the beginning to the end address, each value becomes a specific value. Therefore, it is not always necessary to perform the memory check with the added value.

【0029】他の構成は、図7の場合と同様である。し
たがって、第1実施例と同様の作用効果が得られる。
The other structure is the same as that of FIG. Therefore, the same operation and effect as those of the first embodiment can be obtained.

【0030】図9は、第3実施例を示し、これも基本構
成は図7に示すフローと同じであるが、異なるのはステ
ップ71(S71)と72(S72)において、先頭ア
ドレスから最終アドレスまでの加算値と排他的論理和を
算出し、少なくともどちらか一方でも不一致の場合はメ
モリ異常と判断するところが異なっている。すなわち、
ステップ71(S71)では、レジスタCにチェックサ
ム値1を、レジスタDにチェックサム値2を格納すると
共に、レジスタEとFに最終アドレスまでチェックした
時の値YあるいはZを夫々格納する。次に、ステップ7
2(S72)では、レジスタC値にA値を加算してレジ
スタCに格納するか、レジスタDにD値の排他的論理和
(XOR)を格納するようになっている。他の構成は第
1実施例と同様である。したがって、同様の作用効果が
得られる。
FIG. 9 shows a third embodiment, which also has the same basic configuration as the flow shown in FIG. 7, but differs from the first address to the last address in steps 71 (S71) and 72 (S72). The difference is that the addition value up to and the exclusive OR are calculated, and if at least one of them does not match, it is determined that the memory is abnormal. That is,
In step 71 (S71), the checksum value 1 is stored in the register C, the checksum value 2 is stored in the register D, and the value Y or Z at the time of checking up to the final address is stored in the registers E and F, respectively. Next, step 7
In 2 (S72), the value A is added to the value of the register C and stored in the register C, or the exclusive OR (XOR) of the value D is stored in the register D. Other configurations are the same as in the first embodiment. Therefore, the same operation and effect can be obtained.

【0031】尚、本発明は前記実施例のように、ABS
制御に限定されるものではなく、エンジン制御等の他の
車両制御装置にも適用できる。
It is to be noted that the present invention provides an ABS
The present invention is not limited to control, and can be applied to other vehicle control devices such as engine control.

【0032】[0032]

【発明の効果】以上の説明で明らかなように、本発明に
係る車両用制御装置のメモリチェック機構によれば、車
両制御に必要な一連の処理が終了して所定周期が経過す
るまでの空き時間に、できるところまでメモリチェック
を行い、所定周期を経過した時点で一時的にメモリチェ
ックを中断し、一連の車両制御処理が終了した時点で、
再び前回一時的に中断したアドレスからチェックを再開
させるようにしたため、他の処理や制御への悪影響を回
避しつつ確実なメモリチェックが可能になる。この結
果、車両制御の信頼性が向上する。
As is apparent from the above description, according to the memory check mechanism of the vehicle control device according to the present invention, an idle time until a predetermined period elapses after a series of processes required for vehicle control is completed. At time, the memory check is performed to the extent possible, and the memory check is temporarily interrupted when a predetermined period has elapsed, and at the time when a series of vehicle control processing is completed,
Since the check is restarted again from the address temporarily interrupted last time, a reliable memory check can be performed while avoiding adverse effects on other processes and control. As a result, the reliability of vehicle control is improved.

【0033】しかも、従来のようにエンジン回転数が
4,000rpm以上ではメモリチェックを禁止するので
はなく、車両のあらゆる状況下でもメモリチェックを行
うので、車両制御の信頼性が一層向上する。
In addition, the memory check is not performed when the engine speed is 4,000 rpm or more, as in the prior art, but the memory check is performed under all conditions of the vehicle, so that the reliability of vehicle control is further improved.

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

【図1】ABS制御装置の全体構成図。FIG. 1 is an overall configuration diagram of an ABS control device.

【図2】ABS制御処理のバックグランドジョブフロ
ー。
FIG. 2 is a background job flow of an ABS control process.

【図3】車輪速パルス計測処理フロー。FIG. 3 is a flowchart of a wheel speed pulse measurement process.

【図4】車輪速パルス計測処理フロー。FIG. 4 is a flowchart of a wheel speed pulse measurement process.

【図5】車輪速パルス計測処理フロー。FIG. 5 is a flowchart of a wheel speed pulse measurement process.

【図6】本実施例の内部タイマ割り込み処理フロー。FIG. 6 is an internal timer interrupt processing flow according to the embodiment;

【図7】メモリチェック処理フロー。FIG. 7 is a memory check processing flow.

【図8】メモリチェック処理フローの異なる例。FIG. 8 is a different example of a memory check processing flow.

【図9】メモリチェック処理フローのさらに異なる例。FIG. 9 shows still another example of the memory check processing flow.

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

1…制御ユニット 2…マイクロコンピュータ 3…入力インターフェース 4…出力インターフェース 5…電源レギュレータ 6a〜6c…車輪速センサ 7…ブレーキスイッチ 9…イグニッションスイッチ 12…ROM 16…ABS油圧ユニット DESCRIPTION OF SYMBOLS 1 ... Control unit 2 ... Microcomputer 3 ... Input interface 4 ... Output interface 5 ... Power supply regulator 6a-6c ... Wheel speed sensor 7 ... Brake switch 9 ... Ignition switch 12 ... ROM 16 ... ABS hydraulic unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 所定周期毎に実行して車両を制御するコ
ンピュータと、前記車両を制御するためのプログラムを
格納しているメモリと、前記コンピュータが起動してい
るときに、前記メモリの記憶領域の所定バイト毎に前記
プログラムをチェックして異常を検出するプログラム異
常検出手段とを備えた車両用制御装置のメモリチェック
機構において、 前記車両を制御するプログラムの実行が開始してから前
記コンピュータの所定周期が終了するまでのプログラム
実行時間の空き時間に、前記プログラム異常検出手段を
作動させることを特徴とする車両用制御装置のメモリチ
ェック機構。
1. A computer for controlling a vehicle by executing it at predetermined intervals, a memory storing a program for controlling the vehicle, and a storage area of the memory when the computer is running. A memory check mechanism of a vehicle control device comprising: a program abnormality detecting unit that checks the program for each predetermined byte to detect an abnormality. A memory check mechanism of a control device for a vehicle, wherein the program abnormality detecting means is operated during an idle time of a program execution time until a cycle ends.
【請求項2】 前記プログラム異常検出手段は、メモリ
チェックを先頭アドレスから最終アドレスまでのメモリ
ー内容の加算値によりチェックすることを特徴とする請
求項1記載の車体用制御装置のメモリチェック機構。
2. The memory check mechanism according to claim 1, wherein said program abnormality detection means checks the memory check by an added value of memory contents from a start address to an end address.
【請求項3】 前記プログラム異常検出手段は、メモリ
チェックを先頭アドレスから最終アドレスまでのメモリ
ー内容の排他的論理和によってチェックすることを特徴
とする請求項1記載の車両用制御装置のメモリチェック
機構。
3. The memory check mechanism according to claim 1, wherein said program abnormality detection means checks the memory by an exclusive OR of memory contents from a first address to a last address. .
【請求項4】 前記プログラム異常検出手段は、メモリ
チェックを先頭アドレスから最終アドレスまでのメモリ
ー内容の加算値と排他的論理和の少なくともいずれか一
方によりチェックすることを特徴とする請求項1記載の
車両用制御装置のメモリチェック機構。
4. The apparatus according to claim 1, wherein the program abnormality detecting means checks the memory by at least one of an added value of the memory contents from the first address to the last address and an exclusive OR. Memory check mechanism of the vehicle control device.
JP8237415A 1996-09-09 1996-09-09 Memory checking mechanism for vehicle controller Pending JPH1083355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8237415A JPH1083355A (en) 1996-09-09 1996-09-09 Memory checking mechanism for vehicle controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8237415A JPH1083355A (en) 1996-09-09 1996-09-09 Memory checking mechanism for vehicle controller

Publications (1)

Publication Number Publication Date
JPH1083355A true JPH1083355A (en) 1998-03-31

Family

ID=17015031

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8237415A Pending JPH1083355A (en) 1996-09-09 1996-09-09 Memory checking mechanism for vehicle controller

Country Status (1)

Country Link
JP (1) JPH1083355A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6216084B1 (en) 1998-10-08 2001-04-10 Denso Corporation Memory check apparatus and method for checking data upon retrieval from memory
US7228222B2 (en) * 2003-04-03 2007-06-05 Keihin Corporation Engine start control device and start control method
JP2011178305A (en) * 2010-03-02 2011-09-15 Hitachi Automotive Systems Ltd On-vehicle control device
US8209084B2 (en) 2006-04-07 2012-06-26 Denso Corporation Program management system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6216084B1 (en) 1998-10-08 2001-04-10 Denso Corporation Memory check apparatus and method for checking data upon retrieval from memory
US7228222B2 (en) * 2003-04-03 2007-06-05 Keihin Corporation Engine start control device and start control method
US8209084B2 (en) 2006-04-07 2012-06-26 Denso Corporation Program management system
JP2011178305A (en) * 2010-03-02 2011-09-15 Hitachi Automotive Systems Ltd On-vehicle control device

Similar Documents

Publication Publication Date Title
US6356821B1 (en) Electronic control unit for vehicle having reduced circuit scale
US6625688B1 (en) Method and circuit for analysis of the operation of a microcontroller using signature analysis of memory
JP5335837B2 (en) Electronic control device for vehicle
JPH0319571B2 (en)
US5713643A (en) Control circuit for automotive vehicle motion control systems
JPH0588924A (en) Multicomputer system of automobile
JP3578638B2 (en) Diagnostic device for microcomputer memory
JPH1139231A (en) Electronic controller for vehicle
JP3817855B2 (en) Electronic control device
JPH1083355A (en) Memory checking mechanism for vehicle controller
US6928346B2 (en) Method for monitoring the functioning of a control unit
JPH06160245A (en) Abnormality diagnosis system for vehicle
JPH09120368A (en) Cpu monitor device
JP3141787B2 (en) Microcomputer
JPH06329042A (en) Rear wheel steering system
JP2001175494A (en) System and method for doubly diagnosing normality of arithmetic processing of microprocessor
JPH0991034A (en) Electronic control unit
JPH06139113A (en) Failure detector for watchdog timer
JP2003175834A (en) Power steering device
JPS62161038A (en) Electronic controller for vehicle
JPH05193475A (en) Anti-skid brake controller and control method thereof
JPH06103467B2 (en) Preventing malfunction of automobile computer
JPS6212061B2 (en)
JP3031097B2 (en) Abnormality detection device for actuator mounted on vehicle
JPH0635757A (en) Abnormality detector of cpu