JP5690492B2 - In-vehicle control device - Google Patents

In-vehicle control device Download PDF

Info

Publication number
JP5690492B2
JP5690492B2 JP2010045403A JP2010045403A JP5690492B2 JP 5690492 B2 JP5690492 B2 JP 5690492B2 JP 2010045403 A JP2010045403 A JP 2010045403A JP 2010045403 A JP2010045403 A JP 2010045403A JP 5690492 B2 JP5690492 B2 JP 5690492B2
Authority
JP
Japan
Prior art keywords
control program
diagnosis
memory
rom
microcomputer
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 - Fee Related
Application number
JP2010045403A
Other languages
Japanese (ja)
Other versions
JP2011178305A (en
Inventor
智 大久保
智 大久保
貴央 綿引
貴央 綿引
晃良 滝田
晃良 滝田
小川 洋一
洋一 小川
弘行 金井
弘行 金井
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 Astemo Ltd
Original Assignee
Hitachi Automotive Systems 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 Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2010045403A priority Critical patent/JP5690492B2/en
Publication of JP2011178305A publication Critical patent/JP2011178305A/en
Application granted granted Critical
Publication of JP5690492B2 publication Critical patent/JP5690492B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Description

本発明は、車載制御装置に関するものである。   The present invention relates to an in-vehicle control device.

従来、自動車用エンジンの制御装置では、制御用マイコン(CPU:Central Processing Unit)の自己診断の他、CPUによるメモリ(ROM:Read Only Memory)の診断を行っている。   2. Description of the Related Art Conventionally, in an automobile engine control device, a memory (ROM: Read Only Memory) is diagnosed by a CPU in addition to a self-diagnosis of a control microcomputer (CPU: Central Processing Unit).

下記特許文献1には、エンジン始動前の電源投入時に、ROMの全領域に対し、サムチェックまたはパリティチェックを行なう技術が記載されている。   Patent Document 1 below describes a technique for performing a sum check or a parity check on the entire ROM area when the power is turned on before the engine is started.

特開2000−66963号公報JP 2000-66963 A

エンジン始動前には、各制御の初期化処理など、エンジン挙動に直接影響を与える制御が集中している。一方、ROM診断はROMの全領域に対して行なっているので、エンジン始動前にROM診断を実行すると、制御用マイコンの演算負荷に大きな影響を与える。   Before starting the engine, control that directly affects the engine behavior such as initialization processing of each control is concentrated. On the other hand, since the ROM diagnosis is performed on the entire area of the ROM, if the ROM diagnosis is executed before the engine is started, the calculation load of the control microcomputer is greatly affected.

また、近年の制御用マイコンのROM領域拡大により、ROM診断における1回当りの演算量が増加し、演算負荷がエンジン制御機能に影響を与える程度にまで、ROM診断による演算負担が大きくなる場合がある。   Also, due to the recent expansion of the ROM area of control microcomputers, the amount of computation per ROM diagnosis increases, and the computation burden due to ROM diagnosis may increase to the extent that the computation load affects the engine control function. is there.

本発明は、上記のような課題を解決するためになされたものであり、ROM診断を効率よくかつ制御演算に与える影響を抑えながら実施することのできる車載制御装置を提供することを目的とする。   The present invention has been made to solve the above-described problems, and it is an object of the present invention to provide an in-vehicle control device capable of performing ROM diagnosis efficiently and while suppressing the influence on control calculation. .

本発明に係る車載制御装置は、制御プログラム外の処理が完了するのを待機する待機時間中に、読取専用メモリのうち一部の領域に対してメモリ診断を実施する。   The in-vehicle control device according to the present invention performs memory diagnosis on a part of the read-only memory during a standby time for waiting for completion of processing outside the control program.

本発明に係る車載制御装置によれば、制御プログラムの待機時間を有効に利用して効率的にメモリ診断を実施することができる。また、待機時間中は制御処理そのものが待機状態になっているので、メモリ診断処理の演算負荷が制御処理に与える影響を抑えることができる。   According to the vehicle-mounted control apparatus according to the present invention, the memory diagnosis can be efficiently performed by effectively using the standby time of the control program. Further, since the control process itself is in the standby state during the standby time, it is possible to suppress the influence of the calculation load of the memory diagnosis process on the control process.

実施の形態1に係る車載制御装置100の機能ブロック図である。3 is a functional block diagram of the in-vehicle control device 100 according to Embodiment 1. FIG. マイコン110がA/D変換を実行する処理フローを示す図である。It is a figure which shows the processing flow in which the microcomputer 110 performs A / D conversion. ステップS203の詳細フローを示す図である。It is a figure which shows the detailed flow of step S203.

<実施の形態1>
図1は、本発明の実施の形態1に係る車載制御装置100の機能ブロック図である。車載制御装置100は、制御対象機器200を制御する装置であり、マイコン110、ROM120、RAM130、I/O部140を有する。
<Embodiment 1>
FIG. 1 is a functional block diagram of in-vehicle control apparatus 100 according to Embodiment 1 of the present invention. The in-vehicle control device 100 is a device that controls the control target device 200, and includes a microcomputer 110, a ROM 120, a RAM 130, and an I / O unit 140.

マイコン110は、ROM120に格納されている制御プログラムの指示にしたがって、制御対象機器200に対する制御演算を実行する演算装置である。マイコン110はA/D変換機能を備える。また、ROM120に対するメモリ診断を実施する。A/D変換機能とメモリ診断の詳細については後述する。   The microcomputer 110 is an arithmetic device that executes a control operation on the control target device 200 in accordance with an instruction of a control program stored in the ROM 120. The microcomputer 110 has an A / D conversion function. In addition, a memory diagnosis for the ROM 120 is performed. Details of the A / D conversion function and memory diagnosis will be described later.

ROM120は、マイコン110が実行する制御プログラムを格納する記憶装置である。RAM130は、マイコン110が制御プログラムを実行している間に用いる変数などのデータを格納する記憶装置である。I/O部140は、マイコン110と制御対象機器200の間でデータや信号を送受信するインターフェースである。   The ROM 120 is a storage device that stores a control program executed by the microcomputer 110. The RAM 130 is a storage device that stores data such as variables used while the microcomputer 110 executes the control program. The I / O unit 140 is an interface that transmits and receives data and signals between the microcomputer 110 and the control target device 200.

制御対象機器200は、車両が備える機器である。以下ではガソリン噴射式内燃機関であることを想定する。制御対象機器200は、センサ210、アクチュエータ220を備える。センサ210は、例えば吸入空気量センサ、エンジン回転数センサなどのセンサである。アクチュエータ220は、燃料噴射弁を含む。   The control target device 200 is a device provided in the vehicle. In the following, it is assumed that the internal combustion engine is a gasoline injection type. The control target device 200 includes a sensor 210 and an actuator 220. The sensor 210 is, for example, a sensor such as an intake air amount sensor or an engine speed sensor. Actuator 220 includes a fuel injection valve.

車載制御装置100は、センサ210から得た情報を用いて燃料噴射量を算出し、これに基づいて燃料噴射弁の開弁時間を制御する信号を出力する。車載制御装置100は、動作電源が投入されている間、この処理動作を繰り返し実行する。   The in-vehicle control device 100 calculates the fuel injection amount using information obtained from the sensor 210, and outputs a signal for controlling the valve opening time of the fuel injection valve based on the calculated fuel injection amount. The in-vehicle control device 100 repeatedly executes this processing operation while the operation power is on.

図2は、マイコン110がA/D変換を実行する処理フローを示す図である。A/D変換処理は、例えば制御プログラム内でセンサ210の検出結果を取得する際に、アナログ検出値をデジタル値に変換するときなどに必要となる。制御プログラムは、マイコン110が備えるA/D変換機能を利用して、制御演算上で必要となるデジタル値を取得する。以下、図2の各ステップについて説明する。   FIG. 2 is a diagram illustrating a processing flow in which the microcomputer 110 executes A / D conversion. The A / D conversion process is necessary, for example, when an analog detection value is converted into a digital value when the detection result of the sensor 210 is acquired in the control program. The control program uses the A / D conversion function provided in the microcomputer 110 to acquire a digital value necessary for control calculation. Hereinafter, each step of FIG. 2 will be described.

(図2:ステップS200)
マイコン110は、ROM120に格納されている制御プログラムを実行する。制御プログラム上でA/D変換が必要になったとき、マイコン110が制御プログラム内で本処理フローを起動することにより、本処理フローが開始される。
(FIG. 2: Step S200)
The microcomputer 110 executes a control program stored in the ROM 120. When A / D conversion is required on the control program, the microcomputer 110 starts this processing flow in the control program, thereby starting this processing flow.

(図2:ステップS201)
マイコン110は、自身が有するA/D変換機能を実行開始する。一般に、A/D変換は複数のチャネルに対して行われるため、全てのチャネルについてA/D変換が完了するまでの間に、待機時間が生じる。
(FIG. 2: Step S201)
The microcomputer 110 starts executing an A / D conversion function that the microcomputer 110 has. In general, since A / D conversion is performed on a plurality of channels, a waiting time is generated before A / D conversion is completed for all channels.

(図2:ステップS202)
マイコン110は、全てのチャネルについてA/D変換が完了したか否かを判定する。全てA/D変換が完了していれば本処理フローを終了し、完了していなければステップS203に進む。
(FIG. 2: Step S202)
The microcomputer 110 determines whether or not A / D conversion has been completed for all channels. If all A / D conversions have been completed, the process flow ends. If not, the process proceeds to step S203.

(図2:ステップS203)
マイコン110は、ROM120に対してメモリ診断を実施する。メモリ診断の内容としては、例えば特許文献1に記載されているような、サムチェックやパリティチェックがある。本ステップでは、ROM120の全領域を診断対象とするのではなく、一部の領域のみを診断対象とする。本ステップが終了すると、ステップS202に戻る。本ステップが完了した時点でA/D変換が完了していない場合は、本ステップを繰り返し実行することになる。これにより、最終的にROM120の全領域に対してメモリ診断を実行することができる。
(FIG. 2: Step S203)
The microcomputer 110 performs memory diagnosis on the ROM 120. The contents of the memory diagnosis include a sum check and a parity check as described in Patent Document 1, for example. In this step, the entire area of the ROM 120 is not the object of diagnosis, but only a part of the area is the object of diagnosis. When this step ends, the process returns to step S202. If A / D conversion is not completed when this step is completed, this step is repeatedly executed. Thereby, the memory diagnosis can be finally executed on the entire area of the ROM 120.

(図2:ステップS203:補足)
本ステップを実行する回数は、マイコン110がA/D変換を開始してから完了するまでに要する時間、マイコン110がROM120に対してメモリ診断を1回実施するのに要する時間や1回分の診断バイト数、などに応じて定まる。1回のメモリ診断で何バイトを診断すべきかについては、上記各数値を把握した上で、あらかじめ適切な値を定めておけばよい。
(FIG. 2: Step S203: Supplement)
The number of times this step is executed is the time required for the microcomputer 110 to complete from the start of A / D conversion, the time required for the microcomputer 110 to perform one memory diagnosis on the ROM 120, and one diagnosis. It depends on the number of bytes. As to how many bytes should be diagnosed in one memory diagnosis, an appropriate value may be determined in advance after grasping the above numerical values.

以上、本実施の形態1に係る車載制御装置100の構成と動作を説明した。なお、A/D変換機能は、必ずしもマイコン110が備えるものを使用しなければならないわけではなく、その他任意のA/D変換器を用いることもできる。この場合、そのA/D変換器がA/D変換を実施している間の待機時間を、ステップS203に当てることになる。   The configuration and operation of the in-vehicle control device 100 according to Embodiment 1 have been described above. Note that the A / D conversion function does not necessarily have to be provided in the microcomputer 110, and any other A / D converter can be used. In this case, a standby time while the A / D converter is performing A / D conversion is assigned to step S203.

以上のように、本実施の形態1によれば、マイコン110は、制御プログラムのなかでA/D変換を行なう際に、A/D変換処理が完了するまでの待機時間において、ROM120の一部領域に対しメモリ診断を実施する。A/D変換が完了するまでの待機時間は、本来の制御演算が実行されていない時間であるため、制御プログラム本来の制御演算に演算負荷の影響を与えることなく、ROM診断を実施することができる。また、制御演算を実行していない待機時間を利用してROM診断を行うので、効率的に診断を実施することができる。   As described above, according to the first embodiment, when the microcomputer 110 performs A / D conversion in the control program, a part of the ROM 120 is in a standby time until the A / D conversion processing is completed. Perform memory diagnostics on the region. Since the waiting time until the A / D conversion is completed is a time when the original control calculation is not executed, the ROM diagnosis can be performed without affecting the original control calculation of the control program. it can. In addition, since the ROM diagnosis is performed using the standby time during which the control calculation is not executed, the diagnosis can be performed efficiently.

なお、従来の技術においても、空き時間にROM診断を実行する手法は存在する。ただし従来は、空き時間が確実に生じると予測される時間帯にROM診断を実行する点が、本発明に係る手法とは異なる。本発明に係る手法は、A/D変換の完了待機時間が生じる任意のタイミングでROM診断を実行することができるので、より柔軟にROM診断処理を実行することができる。   In the prior art, there is a method for executing ROM diagnosis during idle time. However, conventionally, the ROM diagnosis is executed in a time zone where it is predicted that a free time will surely occur, which is different from the method according to the present invention. The method according to the present invention can execute the ROM diagnosis at an arbitrary timing when the A / D conversion completion waiting time occurs, so that the ROM diagnosis process can be executed more flexibly.

また従来の手法では、空き時間にROM診断を実行するとはいっても、その空き時間はスケジュールされた空き時間であり、任意の空き時間をROM診断に利用できるものではない。本発明に係る手法は、A/D変換の完了待機時間が生じる任意の空き時間を利用できる点で、有利である。   Further, in the conventional method, although the ROM diagnosis is performed during the free time, the free time is a scheduled free time, and any free time cannot be used for the ROM diagnosis. The method according to the present invention is advantageous in that any free time in which A / D conversion completion waiting time occurs can be used.

<実施の形態2>
本発明の実施の形態2では、図2のステップS203の具体例を説明する。車載制御装置100の構成は実施の形態1と同様である。
<Embodiment 2>
In the second embodiment of the present invention, a specific example of step S203 in FIG. 2 will be described. The configuration of the in-vehicle control device 100 is the same as that of the first embodiment.

図3は、ステップS203の詳細フローを示す図である。以下、図3の各ステップについて説明する。   FIG. 3 is a diagram showing a detailed flow of step S203. Hereinafter, each step of FIG. 3 will be described.

(図3:ステップS301)
マイコン110は、本処理フローを実行するのが初回であるか否かを判定する。初回であればステップS302へ進み、初回でなければステップS304へスキップする。
(FIG. 3: Step S301)
The microcomputer 110 determines whether or not this processing flow is executed for the first time. If it is the first time, the process proceeds to step S302, and if it is not the first time, the process skips to step S304.

(図3:ステップS301:補足)
本ステップは、ROM診断処理を複数回に分けて少しずつ実施することに鑑みた処理である。すなわち、ROM診断を繰り返し実行するためには、前回どこまで診断を実行したかを記憶しておく必要がある。これに対し初回ROM診断では診断パラメータを初期化する必要がある。そこで本ステップにおいて、本処理フローを実行するのが初回であるか否かを判定し、初期化の要否を確認することにした。
(FIG. 3: Step S301: Supplement)
This step is a process that takes into account that the ROM diagnosis process is divided into a plurality of times and performed little by little. That is, in order to repeatedly execute the ROM diagnosis, it is necessary to memorize how far the diagnosis has been executed last time. On the other hand, in the first ROM diagnosis, it is necessary to initialize the diagnosis parameters. Therefore, in this step, it is determined whether or not this processing flow is executed for the first time, and it is determined whether or not initialization is necessary.

(図3:ステップS302)
マイコン110は、診断対象とするROMアドレスと、1回のROM診断で診断するROM容量(仮にZバイトとする)を初期設定する。
(FIG. 3: Step S302)
The microcomputer 110 initializes the ROM address to be diagnosed and the ROM capacity (assuming Z bytes) to be diagnosed by one ROM diagnosis.

(図3:ステップS302:補足)
診断対象アドレスとZの値は、実施の形態1で説明したように、待機時間において本処理フローを実行する回数、ROM120の全容量などに基づき、ROM120の全容量を最終的に診断完了できるように定める。
(FIG. 3: Step S302: Supplement)
As described in the first embodiment, the diagnosis target address and the value of Z are based on the number of times this processing flow is executed in the standby time, the total capacity of the ROM 120, etc. Stipulated in

(図3:ステップS303)
マイコン110は、サム値SUMおよびパリティ値PTYを0に初期化する。
(FIG. 3: Step S303)
The microcomputer 110 initializes the sum value SUM and the parity value PTY to 0.

(図3:ステップS304)
マイコン110は、診断対象ROMアドレスからZバイトのデータを読み取る。
(FIG. 3: Step S304)
The microcomputer 110 reads Z-byte data from the diagnosis target ROM address.

(図3:ステップS305)
マイコン110は、ステップS304で読み取ったデータを、下記(式1)によりサム値SUMに加算する。
SUM=SUM+データ ・・・(式1)
(FIG. 3: Step S305)
The microcomputer 110 adds the data read in step S304 to the sum value SUM according to the following (formula 1).
SUM = SUM + data (Formula 1)

(図3:ステップS306)
マイコン110は、ステップS304で読み取ったデータを用いて、下記(式2)によりパリティ値PTYを演算する。
PTY=XOR(PTY,データ) ・・・(式2)
(FIG. 3: Step S306)
The microcomputer 110 uses the data read in step S304 to calculate the parity value PTY according to (Equation 2) below.
PTY = XOR (PTY, data) (Formula 2)

(図3:ステップS307)
マイコン110は、診断対象ROMアドレスをZバイト進める。
(FIG. 3: Step S307)
The microcomputer 110 advances the diagnosis target ROM address by Z bytes.

(図3:ステップS308)
マイコン110は、1回分のROM診断処理としてあらかじめ設定しておいたバイト数を診断したか否かを判定する。1回分の診断が終了していない場合はステップS304へ戻り、同様の処理を繰り返す。1回分の診断が終了している場合は、ステップS309へ進む。
(FIG. 3: Step S308)
The microcomputer 110 determines whether or not the number of bytes set in advance as one ROM diagnosis process has been diagnosed. If the diagnosis for one time is not completed, the process returns to step S304 and the same processing is repeated. If one diagnosis is completed, the process proceeds to step S309.

(図3:ステップS309)
マイコン110は、ROM120の全領域に対してサム演算およびパリティ演算が終了したか否かを判定する。診断を行っていない領域がある場合は本処理フローを終了し、本処理フローを次回実行する時に改めて次の診断対象ROMアドレスから診断を行う。全領域に対して診断を完了している場合は、ステップS310へ進む。
(FIG. 3: Step S309)
The microcomputer 110 determines whether the sum calculation and the parity calculation have been completed for the entire area of the ROM 120. If there is an area that has not been diagnosed, this process flow is terminated, and the next diagnosis target ROM address is diagnosed again when this process flow is executed next time. If the diagnosis has been completed for all areas, the process proceeds to step S310.

(図3:ステップS310)
マイコン110は、サム値SUMが所定のチェック用規定値SUMCHKと一致するか否かを判定する。両者が相違する場合は、ROM120に不具合が生じていると判定し、ステップS314へ進む。両者が一致する場合は、サムチェックは問題なしと判定し、ステップS311へ進む。
(FIG. 3: Step S310)
The microcomputer 110 determines whether or not the sum value SUM coincides with a predetermined prescribed value for check SUMCHK. If they are different, it is determined that a problem has occurred in the ROM 120, and the process proceeds to step S314. If they match, it is determined that the sum check has no problem, and the process proceeds to step S311.

(図3:ステップS311)
マイコン110は、パリティ値PTYが所定のチェック用規定値PTYCHKと一致するか否かを判定する。両者が相違する場合は、ROM120に不具合が生じていると判定し、ステップS314へ進む。両者が一致する場合は、パリティチェックは問題なしと判定し、ステップS312へ進む。
(FIG. 3: Step S311)
The microcomputer 110 determines whether or not the parity value PTY matches a predetermined check value PTYCHK. If they are different, it is determined that a problem has occurred in the ROM 120, and the process proceeds to step S314. If they match, it is determined that there is no problem in the parity check, and the process proceeds to step S312.

(図3:ステップS312)
マイコン110は、サムチェックとパリティチェックのいずれも問題なしなので、ROM120に不具合は発生していないと判断し、その旨の診断結果を出力する。
(FIG. 3: Step S312)
The microcomputer 110 determines that there is no problem in the ROM 120 because there is no problem in both the sum check and the parity check, and outputs a diagnosis result to that effect.

(図3:ステップS313)
マイコン110は、サム値SUMとパリティ値PTYをそれぞれ0に初期化する。
(FIG. 3: Step S313)
The microcomputer 110 initializes the sum value SUM and the parity value PTY to 0, respectively.

(図3:ステップS314)
マイコン110は、サムチェックまたはパリティチェックで不具合が検出されたので、ROM120に不具合が発生していると判断し、その旨の診断結果を出力する。
以上、本実施の形態2では、ステップS203の詳細について説明した。
(FIG. 3: Step S314)
The microcomputer 110 determines that a failure has occurred in the ROM 120 because a failure has been detected by a sum check or a parity check, and outputs a diagnosis result to that effect.
The details of step S203 have been described in the second embodiment.

<実施の形態3>
実施の形態1〜2において、マイコン110は、ステップS202でA/D変換が完了するのを待機している際に、ROM診断を実行することを説明した。本発明の実施の形態3では、ROM診断を実行する処理と制御プログラム本体の処理の切り分けについて、具体例を2つ説明する。車載制御装置100の構成は、実施の形態1〜2と同様である。
<Embodiment 3>
In the first and second embodiments, it has been described that the microcomputer 110 executes the ROM diagnosis while waiting for the A / D conversion to be completed in step S202. In the third embodiment of the present invention, two specific examples of the process of executing the ROM diagnosis and the process of the control program main body will be described. The configuration of the in-vehicle control device 100 is the same as in the first and second embodiments.

<実施の形態3:ステップS202の具体例その1>
マイコン110は、ステップS202において、所定時間待機するウェイト処理を起動する。このウェイト処理で待機する時間は、従来であればA/D変換処理が完了するのに必要であると想定される時間近辺に設定されるが、本実施形態3では、その待機時間のうち所定割合をステップS203に割り当てる。
<Embodiment 3: Specific example 1 of step S202>
In step S202, the microcomputer 110 starts a wait process that waits for a predetermined time. The waiting time in this wait process is set in the vicinity of the time that is assumed to be necessary for completing the A / D conversion process in the prior art, but in the third embodiment, a predetermined time out of the waiting time is set. A ratio is assigned to step S203.

例えば、A/D変換処理に必要であると想定される時間が100μsである場合、マイコン110は、50μs待機するウェイト処理を起動してステップS203へ進む。50μsのウェイト時間が終了すると、マイコン110はステップS203を実行し、残りの50μsのうち少なくとも一部をステップS203において消費することになる。   For example, if the time assumed to be necessary for the A / D conversion process is 100 μs, the microcomputer 110 activates a wait process waiting for 50 μs and proceeds to step S203. When the wait time of 50 μs ends, the microcomputer 110 executes step S203, and at least a part of the remaining 50 μs is consumed in step S203.

ウェイト処理とステップS203に割り当てる時間の配分割合は、これに限られるものではない。例えば、ウェイト時間を短めに設定すれば、より多くの時間をステップS203に割り当てることができる。さらには、ステップS203で診断するROM容量を調整することにより、ステップS202〜S203全体の処理時間を調整することができる。   The distribution ratio of the time allocated to the weight process and step S203 is not limited to this. For example, if the wait time is set shorter, more time can be allocated to step S203. Further, by adjusting the ROM capacity to be diagnosed in step S203, the processing time of the entire steps S202 to S203 can be adjusted.

<実施の形態3:ステップS202の具体例その2>
マイコン110は、ステップS202において、所定時間待機するウェイト処理を起動する。また、このウェイト処理と並行して、ステップS203の処理を起動する。マイコン110は、次にステップS202を実行する際に、ウェイト処理、ステップS203、およびA/D変換処理がそれぞれ完了するまで待機する。
<Embodiment 3: Specific example 2 of step S202>
In step S202, the microcomputer 110 starts a wait process that waits for a predetermined time. In parallel with this wait process, the process of step S203 is started. The microcomputer 110 waits until the wait process, step S203, and the A / D conversion process are completed when executing step S202 next time.

<実施の形態3:補足>
上記具体例その1とその2は、組み合わせて使用することもできる。例えば、A/D変換処理を行う対象毎に、上記具体例その1とその2を使い分けることが考えられる。A/D変換処理にかかる時間が予測できない場合は具体例その2を採用し、予測できる場合は具体例その1を採用する、などの使い分けがあり得る。
<Embodiment 3: Supplement>
Specific examples 1 and 2 may be used in combination. For example, it is conceivable to use the above specific example 1 and 2 separately for each target to be A / D converted. Specific examples 2 may be adopted when the time required for the A / D conversion process cannot be predicted, and specific examples 1 may be adopted when the time can be predicted.

以上のように、本実施の形態3によれば、マイコン110はステップS202における待機時間の一部をステップS203に割り当てる。これにより、待機処理の一環としてROM診断処理を実行することになるので、既存のA/D変換完了待機処理を大きく変更することなく、本発明に係る手法をスムーズに導入することができる。   As described above, according to the third embodiment, the microcomputer 110 allocates a part of the standby time in step S202 to step S203. As a result, the ROM diagnosis process is executed as part of the standby process, so that the method according to the present invention can be smoothly introduced without greatly changing the existing A / D conversion completion standby process.

<実施の形態4>
以上の実施の形態1〜3において、ROM診断処理は例えばエンジン始動前に実施することもできるし、エンジンを停止させる時に実施することもできる。
<Embodiment 4>
In the above first to third embodiments, the ROM diagnosis process can be performed, for example, before starting the engine, or can be performed when the engine is stopped.

また、以上の実施の形態1〜3において、A/D変換が完了する待機時間にROM診断を実施することを説明したが、その他の待機時間を利用することもできる。具体的には、マイコン110が制御プログラム外の処理を完了待ちしている待機時間を、ステップS203に割り当てることができる。   In the first to third embodiments described above, the ROM diagnosis is performed during the standby time for completing the A / D conversion. However, other standby times can be used. Specifically, a standby time in which the microcomputer 110 is waiting for completion of processing outside the control program can be assigned to step S203.

100:車載制御装置、110:マイコン、120:ROM、130:RAM、140:I/O部、200:制御対象機器、210:センサ、220:アクチュエータ。   DESCRIPTION OF SYMBOLS 100: Car-mounted control apparatus, 110: Microcomputer, 120: ROM, 130: RAM, 140: I / O part, 200: Control object apparatus, 210: Sensor, 220: Actuator.

Claims (2)

車両を制御する動作を記述した制御プログラムを実行する演算部と、
前記制御プログラムを格納した読取専用メモリと、
を備え、
前記演算部は、
前記制御プログラムの実行中であって、前記制御プログラム外の処理であり前記制御プログラム実行中の任意タイミングにおいて発生するA/D変換が完了するのを待機する待機時間中に、前記読取専用メモリのうち一部の領域に対してメモリ診断を実施し、
前記演算部は、
前記待機時間のうち所定割合を前記メモリ診断に割り当てて前記メモリ診断を実行し、前記待機時間のうち前記所定割合を除いた分は前記制御プログラム外の処理を待機して前記待機時間の経過を待機する
ことを特徴とする車載制御装置。
An arithmetic unit that executes a control program describing an operation for controlling the vehicle;
A read-only memory storing the control program;
With
The computing unit is
During the execution of the control program and during the waiting time for waiting for completion of A / D conversion occurring at an arbitrary timing during execution of the control program that is processing outside the control program, the read-only memory Perform memory diagnosis for some areas ,
The computing unit is
The memory diagnosis is executed by assigning a predetermined percentage of the waiting time to the memory diagnosis, and the waiting time is elapsed by waiting for processing outside the control program for the amount of the waiting time excluding the predetermined ratio. A vehicle-mounted control device characterized by waiting .
車両を制御する動作を記述した制御プログラムを実行する演算部と、
前記制御プログラムを格納した読取専用メモリと、
を備え、
前記演算部は、
前記制御プログラムの実行中であって、前記制御プログラム外の処理であり前記制御プログラム実行中の任意タイミングにおいて発生するA/D変換が完了するのを待機する待機時間中に、前記読取専用メモリのうち一部の領域に対してメモリ診断を実施し、
前記演算部は、
前記読取専用メモリの全容量を、前記制御プログラム外の処理が完了するのを待機する回数で除算して得られる容量を、1回のメモリ診断において前記読取専用メモリを診断する容量とする
ことを特徴とする車載制御装置。
An arithmetic unit that executes a control program describing an operation for controlling the vehicle;
A read-only memory storing the control program;
With
The computing unit is
During the execution of the control program and during the waiting time for waiting for completion of A / D conversion occurring at an arbitrary timing during execution of the control program that is processing outside the control program, the read-only memory Perform memory diagnosis for some areas,
The computing unit is
The capacity obtained by dividing the total capacity of the read-only memory by the number of times waiting for processing outside the control program to be completed is set as a capacity for diagnosing the read-only memory in one memory diagnosis. car mounting control device shall be the features.
JP2010045403A 2010-03-02 2010-03-02 In-vehicle control device Expired - Fee Related JP5690492B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010045403A JP5690492B2 (en) 2010-03-02 2010-03-02 In-vehicle control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010045403A JP5690492B2 (en) 2010-03-02 2010-03-02 In-vehicle control device

Publications (2)

Publication Number Publication Date
JP2011178305A JP2011178305A (en) 2011-09-15
JP5690492B2 true JP5690492B2 (en) 2015-03-25

Family

ID=44690293

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010045403A Expired - Fee Related JP5690492B2 (en) 2010-03-02 2010-03-02 In-vehicle control device

Country Status (1)

Country Link
JP (1) JP5690492B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6552926B2 (en) * 2015-09-08 2019-07-31 株式会社東芝 IC card and portable electronic device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05307618A (en) * 1992-04-30 1993-11-19 Mitsubishi Electric Corp Microcomputer
JPH1083355A (en) * 1996-09-09 1998-03-31 Unisia Jecs Corp Memory checking mechanism for vehicle controller
JP3578638B2 (en) * 1998-08-25 2004-10-20 株式会社日立ユニシアオートモティブ Diagnostic device for microcomputer memory
JP2002108724A (en) * 2000-10-03 2002-04-12 Auto Network Gijutsu Kenkyusho:Kk Data checking method for rom
JP2004133635A (en) * 2002-10-09 2004-04-30 Honda Motor Co Ltd Control computer
JP4184354B2 (en) * 2005-03-23 2008-11-19 三菱電機株式会社 control unit
JP4955417B2 (en) * 2007-02-26 2012-06-20 株式会社オートネットワーク技術研究所 Memory check system for electronic control unit

Also Published As

Publication number Publication date
JP2011178305A (en) 2011-09-15

Similar Documents

Publication Publication Date Title
JP2574892B2 (en) Load sharing control method for automobile
JP4491967B2 (en) VEHICLE CONTROL DEVICE AND RECORDING MEDIUM HAVING SELF-DIAGNOSTIC FUNCTION
JP2010128627A (en) On-vehicle electronic control device
JP3791139B2 (en) Vehicle control device
US20120246650A1 (en) Method for processing information and activities in a control and/or regulating system with the aid of a multi-core processor
WO2017078093A1 (en) Electronic control device and electronic control method
JP5533789B2 (en) In-vehicle electronic control unit
JP5690492B2 (en) In-vehicle control device
EP2482149A2 (en) Electronic control unit
JP6306530B2 (en) Electronic control unit for automobile
JP2002542424A (en) Method and apparatus for monitoring computational elements in a vehicle
JP4333668B2 (en) Control device for internal combustion engine
WO2013168499A1 (en) External diagnosis device, motorcycle diagnosis system and vehicle diagnosis method
JP2011145900A (en) Multiprocessor device
JP4422076B2 (en) Data processing device, electronic control unit, and automobile
JP7106868B2 (en) electronic controller
JP2565141B2 (en) Load sharing control method for automobiles
WO2017002939A1 (en) Electronic control device and stack usage method
JP2014238661A (en) Controller
JP6877475B2 (en) Electronic control device and stack usage
JP2001290510A (en) Control unit for automobile
JP2002132533A (en) Control apparatus for vehicle having self-diagnostic feature and record medium
WO2014005976A1 (en) Method of providing fuel to fuel line when diagnosing vehicle in end-of-line process
JP2017218081A (en) Electronic control device
JP4265026B2 (en) Serial communication controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130305

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130625

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20131015

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140115

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20140122

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20140221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141226

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150202

R150 Certificate of patent or registration of utility model

Ref document number: 5690492

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

LAPS Cancellation because of no payment of annual fees