JP2021015613A - Electronic controller - Google Patents

Electronic controller Download PDF

Info

Publication number
JP2021015613A
JP2021015613A JP2020170130A JP2020170130A JP2021015613A JP 2021015613 A JP2021015613 A JP 2021015613A JP 2020170130 A JP2020170130 A JP 2020170130A JP 2020170130 A JP2020170130 A JP 2020170130A JP 2021015613 A JP2021015613 A JP 2021015613A
Authority
JP
Japan
Prior art keywords
conversion
instruction
time
conversion data
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2020170130A
Other languages
Japanese (ja)
Other versions
JP6981512B2 (en
Inventor
高志 草川
Takashi Kusakawa
高志 草川
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.)
Denso Corp
Original Assignee
Denso 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
Priority claimed from JP2016241151A external-priority patent/JP2018096273A/en
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2020170130A priority Critical patent/JP6981512B2/en
Publication of JP2021015613A publication Critical patent/JP2021015613A/en
Application granted granted Critical
Publication of JP6981512B2 publication Critical patent/JP6981512B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

To provide technology for speeding up processing in an electronic controller including a plurality of cores.SOLUTION: An electronic controller 3 includes a plurality of cores that share one AD converter. At least one instruction core among the plurality of cores includes a conversion instruction unit (S170), a time acquisition unit (S110), a time determination unit (S130), and a data acquisition unit (S190). The conversion instruction unit outputs, when elapsed time is equal to or greater than an allowable threshold for conversion data used by the instruction core itself, a conversion instruction for newly generating both conversion data to the AD converter, and stores both conversion data generated in accordance with the conversion instruction in a memory. The data acquisition unit acquires, when the elapsed time is equal to or greater than the allowable threshold for the conversion data used by the instruction core itself, the conversion data used by the instruction core itself, which is newly generated and stored in accordance with the conversion instruction, from the memory.SELECTED DRAWING: Figure 1

Description

本開示は、複数のコアを備える電子制御装置に関する。 The present disclosure relates to an electronic control device including a plurality of cores.

複数のコアを備える電子制御装置が知られている。特許文献1には、複数のコアを備える電子制御装置において、各コアが独立して演算を行う技術が開示されている。 Electronic control devices having a plurality of cores are known. Patent Document 1 discloses a technique in which each core independently performs an operation in an electronic control device including a plurality of cores.

特開2009−199462号公報JP-A-2009-199462

特許文献1に記載のように複数のコアを備える電子制御装置では、複数のコアが1つのAD変換装置を共通に用いてAD変換データを生成する状況が生じうる。このような場合、各コアが、演算に用いるAD変換データを各コアが必要とするタイミングで個々にAD変換装置に生成させようとすると、AD変換装置に対するAD変換処理の要求がほぼ同じタイミングに重なる状況が生じる。 In an electronic control device including a plurality of cores as described in Patent Document 1, there may be a situation in which a plurality of cores commonly use one AD conversion device to generate AD conversion data. In such a case, if each core tries to individually generate the AD conversion data used for the calculation in the AD conversion device at the timing required by each core, the request for the AD conversion process to the AD conversion device becomes almost the same timing. Overlapping situations arise.

AD変換処理の要求が重なった際、後からAD変換を要求したコアは、先にAD変換を要求したコアのAD変換データの生成が終了するまで待機し、待機した後にAD変換装置にAD変換データを生成させるため、演算を開始する迄に待ち時間が生じる。このため、複数のコアを備えるにもかかわらず、該電子制御装置において処理の高速化が阻害されるという問題が生じうる。 When the requests for AD conversion processing overlap, the core that requested AD conversion later waits until the generation of AD conversion data of the core that requested AD conversion is completed, and after waiting, AD conversion is performed to the AD conversion device. Since the data is generated, there is a waiting time before the calculation is started. Therefore, even though the electronic control device includes a plurality of cores, there may be a problem that the speeding up of processing is hindered in the electronic control device.

本開示の一態様は、複数のコアを備える電子制御装置において処理を高速化する技術を提供する。 One aspect of the present disclosure provides a technique for accelerating processing in an electronic control device including a plurality of cores.

本開示の一態様は、電子制御装置(3)であって、1つのAD変換器を共用する複数のコアを備える。複数のコアのうち少なくとも1つである指示コアは、変換指示部(S170)と、時間取得部(S110)と、時間判断部(S130)と、データ取得部(S190)と、を備える。変換指示部は、変換指示に従ってAD変換処理により変換データを生成するAD変換器に、指示コア自らが用いる変換データに加え複数のコアのうち残りのコアが用いる変換データを生成させる変換指示を出力する。そして、変換指示部は、変換指示に従って生成された指示コア自らが用いる変換データと残りのコアが用いる変換データとを含む両方の変換データをメモリに記憶させる。時間取得部は、変換指示に従ってAD変換器によるAD変換処理が完了してから経過した時間である経過時間を取得する。時間判断部は、経過時間が予め定められた時間の長さである許容閾値以上であるか否かを判断する。データ取得部は、メモリから、指示コア自らが用いる変換データを取得する。そして更に、変換指示部は、指示コア自らが用いる変換データについて、経過時間が許容閾値以上である場合に、AD変換器に、両方の変換データを新たに生成させる変換指示を出力し、変換指示に従って生成された両方の変換データをメモリに記憶させる。また、データ取得部は、指示コア自らが用いる変換データについて、経過時間が許容閾値以上である場合に、メモリから、変換指示に従って新たに生成されて記憶された指示コア自らが用いる変換データを取得する。
また、本開示の一態様は、電子制御装置(3)であって、1つのAD変換器を共用する複数のコアを備える。複数のコアのうち少なくとも1つである指示コアは、変換指示部(S170)と、時間取得部(S110)と、時間判断部(S130)と、データ取得部(S190)と、を備える。変換指示部は、変換指示に従ってAD変換処理により変換データを生成するAD変換器に、指示コア自らが用いる変換データに加え複数のコアのうち残りのコアが用いる変換データを生成させる変換指示を出力する。そして、変換指示部は、変換指示に従って生成された指示コア自らが用いる変換データと残りのコアが用いる変換データとを含む両方の変換データをメモリに記憶させる。時間取得部は、変換指示に従ってAD変換器によるAD変換処理が完了してから経過した時間である経過時間を取得する。時間判断部は、経過時間が予め定められた時間の長さである許容閾値以上であるか否かを判断する。データ取得部は、メモリから、指示コア自らが用いる変換データを取得する。変換指示部は、指示コア自らが用いる変換データについて、経過時間が許容閾値未満である場合に、AD変換器に、両方の変換データを新たに生成させる変換指示を出力しない。データ取得部は、指示コア自らが用いる変換データについて、経過時間が許容閾値未満である場合に、メモリから、既に記憶されている指示コア自らが用いる変換データを取得する。
One aspect of the present disclosure is the electronic control device (3), which includes a plurality of cores sharing one AD converter. The instruction core, which is at least one of the plurality of cores, includes a conversion instruction unit (S170), a time acquisition unit (S110), a time determination unit (S130), and a data acquisition unit (S190). The conversion instruction unit outputs a conversion instruction to the AD converter that generates conversion data by AD conversion processing according to the conversion instruction to generate conversion data used by the remaining cores among a plurality of cores in addition to the conversion data used by the instruction core itself. To do. Then, the conversion instruction unit stores both conversion data including the conversion data used by the instruction core itself and the conversion data used by the remaining cores generated according to the conversion instruction in the memory. The time acquisition unit acquires the elapsed time, which is the time elapsed since the AD conversion process by the AD converter is completed according to the conversion instruction. The time determination unit determines whether or not the elapsed time is equal to or greater than the allowable threshold value, which is a predetermined length of time. The data acquisition unit acquires the conversion data used by the instruction core itself from the memory. Further, the conversion instruction unit outputs a conversion instruction for newly generating both conversion data to the AD converter when the elapsed time is equal to or longer than the allowable threshold value for the conversion data used by the instruction core itself, and the conversion instruction is given. Both conversion data generated according to the above are stored in the memory. Further, the data acquisition unit acquires the conversion data used by the instruction core itself, which is newly generated and stored according to the conversion instruction from the memory when the elapsed time is equal to or longer than the allowable threshold value for the conversion data used by the instruction core itself. To do.
Further, one aspect of the present disclosure is an electronic control device (3), which includes a plurality of cores sharing one AD converter. The instruction core, which is at least one of the plurality of cores, includes a conversion instruction unit (S170), a time acquisition unit (S110), a time determination unit (S130), and a data acquisition unit (S190). The conversion instruction unit outputs a conversion instruction to the AD converter that generates conversion data by AD conversion processing according to the conversion instruction to generate conversion data used by the remaining cores among a plurality of cores in addition to the conversion data used by the instruction core itself. To do. Then, the conversion instruction unit stores both conversion data including the conversion data used by the instruction core itself and the conversion data used by the remaining cores generated according to the conversion instruction in the memory. The time acquisition unit acquires the elapsed time, which is the time elapsed since the AD conversion process by the AD converter is completed according to the conversion instruction. The time determination unit determines whether or not the elapsed time is equal to or greater than the allowable threshold value, which is a predetermined length of time. The data acquisition unit acquires the conversion data used by the instruction core itself from the memory. The conversion instruction unit does not output a conversion instruction for the conversion data used by the instruction core itself to newly generate both conversion data to the AD converter when the elapsed time is less than the allowable threshold value. The data acquisition unit acquires the already stored conversion data used by the instruction core itself from the memory when the elapsed time is less than the allowable threshold value for the conversion data used by the instruction core itself.

これらの構成によれば、複数のコアのそれぞれが共用のAD変換器にAD変換処理を行わせようとするタイミングが重なる状況が低減される。この結果、待ち時間が低減されるので、複数のコアを備える電子制御装置において、処理を高速化することができる。 According to these configurations, it is possible to reduce the situation where the timings at which the AD converters shared by each of the plurality of cores try to perform the AD conversion process overlap. As a result, the waiting time is reduced, so that the processing speed can be increased in the electronic control device including a plurality of cores.

なお、この欄及び特許請求の範囲に記載した括弧内の符号は、一つの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、本開示の技術的範囲を限定するものではない。 In addition, the reference numerals in parentheses described in this column and the scope of claims indicate the correspondence with the specific means described in the embodiment described later as one embodiment, and the technical scope of the present disclosure is defined. It is not limited.

制御システムの構成を示すブロック図。A block diagram showing the configuration of a control system. 入力チャネルと、変換データの種類と、許容時間と、許容閾値との対応関係を説明する図。The figure explaining the correspondence relationship between the input channel, the type of conversion data, the permissible time, and the permissible threshold value. 第1実施形態のデータ取得処理のフローチャート。The flowchart of the data acquisition process of 1st Embodiment. 変換指示処理のフローチャート。Flowchart of conversion instruction processing. 変換データの種類と、変換データと、変換終了時刻との対応関係を説明する図。The figure explaining the type of conversion data, the correspondence relation between conversion data, and conversion end time. ECUにおけるCPUの作動を説明する図。The figure explaining the operation of the CPU in the ECU. 第2実施形態のデータ取得処理のフローチャート。The flowchart of the data acquisition process of 2nd Embodiment.

以下、図面を参照しながら、本開示の実施形態を説明する。
[1.第1実施形態]
[1−1.構成]
図1に示す制御システム1は、車両に搭載されるシステムである。以下では、制御システム1が搭載された車両を自車両ともいう。制御システム1は、電子制御装置(以下、ECU)3を備える。制御システム1は、クランク角センサ5、筒内圧センサ6、燃圧センサ7、インジェクタ8を備えていてもよい。ECUは、Electronic Control Unitの略である。
Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[1. First Embodiment]
[1-1. Constitution]
The control system 1 shown in FIG. 1 is a system mounted on a vehicle. Hereinafter, the vehicle equipped with the control system 1 is also referred to as a own vehicle. The control system 1 includes an electronic control device (hereinafter, ECU) 3. The control system 1 may include a crank angle sensor 5, an in-cylinder pressure sensor 6, a fuel pressure sensor 7, and an injector 8. ECU is an abbreviation for Electronic Control Unit.

クランク角センサ5は、クランク角度の検出結果を示す検出信号を出力する。筒内圧センサ6は、エンジンにおけるシリンダ内の圧力(以下、筒内圧)の検出結果を示す検出信号を出力する。燃圧センサ7は、エンジンに圧送された燃料圧力(以下、燃圧)の検出結果を示す検出信号を出力する。インジェクタ8は、図示しないエンジン内に燃料を噴射する。 The crank angle sensor 5 outputs a detection signal indicating the detection result of the crank angle. The in-cylinder pressure sensor 6 outputs a detection signal indicating a detection result of the in-cylinder pressure (hereinafter, in-cylinder pressure) in the engine. The fuel pressure sensor 7 outputs a detection signal indicating a detection result of the fuel pressure (hereinafter, fuel pressure) pumped to the engine. The injector 8 injects fuel into an engine (not shown).

ECU3は、クランク角度、筒内圧、燃圧等といった複数種類のアナログ信号に基づいて、例えばエンジンにおけるインジェクタ8による燃料噴射量の制御等といった、種々の車両の制御を行う。 The ECU 3 controls various vehicles, such as controlling the fuel injection amount by the injector 8 in the engine, based on a plurality of types of analog signals such as a crank angle, an in-cylinder pressure, and a fuel pressure.

ECU3は、マイクロコンピュータ(以下、マイコン)10を中心に構成される。マイコン10は、複数のCPU11a、11bと、1つのメモリ13と、1つのAD変換器14と、を備える。AD変換器は、Analog Digital変換器の略である。 The ECU 3 is mainly composed of a microcomputer (hereinafter referred to as a microcomputer) 10. The microcomputer 10 includes a plurality of CPUs 11a and 11b, one memory 13, and one AD converter 14. AD converter is an abbreviation for Analog Digital converter.

以下では、複数のCPU11a、11bに共通する説明を記載する場合、CPU11といったように添え字を省略して記載する。また、CPU11aを自CPU、CPU11bを他のCPU、のようにも記載する。 In the following, when the description common to the plurality of CPUs 11a and 11b is described, the subscripts such as CPU 11 are omitted. Further, the CPU 11a is also described as the own CPU, and the CPU 11b is described as another CPU.

マイコン10の各種機能は、CPU11が非遷移的実体的記録媒体に格納されたプログラムを実行することにより実現される。この例では、メモリ13が、プログラムを格納した非遷移的実体的記録媒体に該当する。また、このプログラムが実行されることで、プログラムに対応する方法が実行される。なお、ECU3を構成するマイコン10の数は1つでも複数でもよい。 Various functions of the microcomputer 10 are realized by the CPU 11 executing a program stored in a non-transitional substantive recording medium. In this example, the memory 13 corresponds to a non-transitional substantive recording medium in which a program is stored. Moreover, when this program is executed, the method corresponding to the program is executed. The number of microcomputers 10 constituting the ECU 3 may be one or a plurality.

マイコン10の各種機能を実現する手法はソフトウェアに限るものではなく、その一部又は全部の要素について、一つあるいは複数のハードウェアを用いて実現してもよい。例えば、上記機能がハードウェアである電子回路によって実現される場合、その電子回路は多数の論理回路を含むデジタル回路、又はアナログ回路、あるいはこれらの組合せによって実現してもよい。 The method for realizing various functions of the microcomputer 10 is not limited to software, and some or all of the elements may be realized by using one or a plurality of hardware. For example, when the above function is realized by an electronic circuit which is hardware, the electronic circuit may be realized by a digital circuit including a large number of logic circuits, an analog circuit, or a combination thereof.

CPU11aとCPU11bとは、それぞれ、独立して演算を実行することにより、各種機能を実現する。CPU11a、11bは、メモリ13を共通に用いる。また、CPU11a、11bはAD変換器14を共通に用いる。 The CPU 11a and the CPU 11b realize various functions by executing operations independently of each other. The CPUs 11a and 11b commonly use the memory 13. Further, the CPUs 11a and 11b commonly use the AD converter 14.

CPU11a、11bは、各種機能を実現するために、複数の変換データを用いる。
変換データとは、ECU3における各種機能を実現するためにECU3に入力されたアナログ信号を元として、該アナログ信号をAD変換器14にAD変換処理を行わせて生成したデジタルデータ、をいう。複数の変換データは、図2に示すように、筒内圧、燃圧、クランク角度等といった、複数の種類に分類される。
The CPUs 11a and 11b use a plurality of converted data in order to realize various functions.
The converted data refers to digital data generated by causing the AD converter 14 to perform AD conversion processing on the analog signal based on the analog signal input to the ECU 3 in order to realize various functions in the ECU 3. As shown in FIG. 2, the plurality of conversion data are classified into a plurality of types such as in-cylinder pressure, fuel pressure, crank angle, and the like.

なお、図示していないが、エンジンは4気筒で構成されており、クランク角センサ5、筒内圧センサ6、燃圧センサ7は気筒毎に設けられている。それぞれの気筒に設けられたそれぞれのセンサが、検出結果としてのアナログ信号を出力する。図示されている変換データの種類において「クランク角度1」のように最後に付されている数字は、気筒の番号を示している。 Although not shown, the engine is composed of four cylinders, and the crank angle sensor 5, the in-cylinder pressure sensor 6, and the fuel pressure sensor 7 are provided for each cylinder. Each sensor provided in each cylinder outputs an analog signal as a detection result. In the type of conversion data shown, the number added at the end, such as "crank angle 1", indicates the cylinder number.

CPU11a、11bが用いる変換データの種類は、CPU11a、11bのそれぞれについて予め定められている。例えば、CPU11aは「筒内圧1」〜「筒内圧4」及び「燃圧1」〜「燃圧4」の変換データを用い、CPU11bは「クランク角度1」〜「クランク角度4」の変換データを用いる、といった具合である。 The type of conversion data used by the CPUs 11a and 11b is predetermined for each of the CPUs 11a and 11b. For example, the CPU 11a uses the conversion data of "in-cylinder pressure 1" to "in-cylinder pressure 4" and the "fuel pressure 1" to "fuel pressure 4", and the CPU 11b uses the conversion data of "crank angle 1" to "crank angle 4". And so on.

また、複数の変換データのそれぞれについては、許容時間が予め設定されており、許容時間は変換データの種類毎にメモリ13に予め記録されている。
ここでいう許容時間とは、変換データが生成されてから該変換データが用いられるまでに許容される時間、をいう。用いられるとは、各種の制御や制御を行うための演算等に利用されること、をいう。
Further, the permissible time is set in advance for each of the plurality of conversion data, and the permissible time is recorded in the memory 13 in advance for each type of conversion data.
The allowable time here means the time allowed from the generation of the conversion data to the use of the conversion data. To be used means to be used for various controls and calculations for performing the control.

また、許容されるとは、元となるアナログ信号に基づいて変換データが新たに生成し直されなくても、つまり更新されなくても、該変換データを用いる制御及び演算等に支障をきたさないこと、をいう。すなわち、許容されるとは、変換データが更新されなくても該変換データを用いる制御及び演算等に影響を及ぼさないこと、をいう。許容時間は、変換データの使用期限を表している。 Further, “allowable” means that even if the converted data is not newly generated based on the original analog signal, that is, is not updated, the control and calculation using the converted data are not hindered. That means. That is, "allowable" means that even if the converted data is not updated, it does not affect the control and calculation using the converted data. The permissible time represents the expiration date of the converted data.

また、本実施形態では、複数の変換データについて設定されている許容時間のうち、最も短い時間を後述する許容閾値として設定している。許容閾値は、CPU11毎に設定されている。例えば、CPU11aについては2500μsecが許容閾値として設定され、CPU11bについては2000μsecが許容閾値として設定されている。許容閾値はメモリ13に予め記録されている。 Further, in the present embodiment, the shortest allowable time among the allowable times set for the plurality of converted data is set as the allowable threshold value described later. The permissible threshold is set for each CPU 11. For example, 2500 μsec is set as an allowable threshold value for the CPU 11a, and 2000 μsec is set as an allowable threshold value for the CPU 11b. The permissible threshold is pre-recorded in the memory 13.

CPU11は、許容閾値に基づいて、変換データを取得する処理であるデータ取得処理を実行する。また、CPU11は、変換データをAD変換器14に生成させる処理である変換指示処理を実行する。 The CPU 11 executes a data acquisition process, which is a process of acquiring conversion data, based on an allowable threshold value. Further, the CPU 11 executes a conversion instruction process, which is a process of causing the AD converter 14 to generate conversion data.

また、CPU11は、変換データを用いて各種機能を実現するための処理(以下、利用処理)を実行する。
メモリ13には、CPU11がマイコン10の各種機能を実現するためのプログラムが記録されている。また、メモリ13には、前述の許容時間がCPU11毎に記録されている。また、メモリ13には、CPU11の演算結果等を示すデータが記録される。
Further, the CPU 11 executes a process for realizing various functions using the converted data (hereinafter, a utilization process).
A program for the CPU 11 to realize various functions of the microcomputer 10 is recorded in the memory 13. Further, the above-mentioned allowable time is recorded in the memory 13 for each CPU 11. In addition, data indicating the calculation result of the CPU 11 and the like is recorded in the memory 13.

AD変換器14は、CPU11からのAD変換器14にAD変換処理を実行させる指示(以下、変換指示)に従って、変換データを生成する。
AD変換器14は、図示しない複数のチャネルを有する。複数のチャネルには、それぞれ、例えば、筒内圧、燃圧、クランク角度等、といった、AD変換処理の対象となり得るアナログ信号が入力される。また、AD変換器14は、設定レジスタ45、状態レジスタ46、データバッファ47といった複数の記憶領域を有する。
The AD converter 14 generates conversion data according to an instruction from the CPU 11 to cause the AD converter 14 to execute the AD conversion process (hereinafter referred to as a conversion instruction).
The AD converter 14 has a plurality of channels (not shown). Analog signals that can be the target of AD conversion processing, such as in-cylinder pressure, fuel pressure, crank angle, etc., are input to each of the plurality of channels. Further, the AD converter 14 has a plurality of storage areas such as a setting register 45, a status register 46, and a data buffer 47.

AD変換器14は、CPU11によって変換指示が設定レジスタ45に書き込まれると、作動を開始する。変換指示とは、CPU11から出力される指示であって、AD変換処理の対象となるアナログ信号が入力される一または複数のチャネルを指定するものである。 The AD converter 14 starts operating when the conversion instruction is written to the setting register 45 by the CPU 11. The conversion instruction is an instruction output from the CPU 11 and specifies one or a plurality of channels to which an analog signal to be subject to AD conversion processing is input.

AD変換器14は、設定レジスタ45に変換指示が書き込まれると、状態レジスタ46にビジー状態を示す値を書き込む。ビジー状態とは、AD変換器14がAD変換処理を実行中である状態をいう。 When the conversion instruction is written in the setting register 45, the AD converter 14 writes a value indicating a busy state in the status register 46. The busy state means a state in which the AD converter 14 is executing the AD conversion process.

AD変換器14は、変換指示によって指定されたチャネルから入力されるアナログ信号の変換データを生成し、データバッファ47に生成した変換データを書き込む、といった作動を、変換指示によって指定された複数のチャネル分繰り返し実行する。 The AD converter 14 generates conversion data of an analog signal input from the channel specified by the conversion instruction, and writes the generated conversion data to the data buffer 47, for example, a plurality of channels designated by the conversion instruction. Repeat for minutes.

AD変換器14は、変換指示によって指定された複数のチャネル分全ての変換データの生成を終了すると、状態レジスタ46にアイドル状態を示す値を書き込む。アイドル状態とは、AD変換器14がAD変換処理を実行中でない状態をいう。 When the AD converter 14 finishes generating conversion data for all of the plurality of channels specified by the conversion instruction, the AD converter 14 writes a value indicating an idle state in the status register 46. The idle state means a state in which the AD converter 14 is not executing the AD conversion process.

なお、CPU11は、マイコン10に電源が投入されて以降に経過した時間をカウントする図示しないタイマを有する。以下でいう時刻とは、該タイマによってカウントされた時間で表されるものである。 The CPU 11 has a timer (not shown) that counts the time elapsed since the power was turned on to the microcomputer 10. The time referred to below is represented by the time counted by the timer.

[1−2.処理]
[1−2−1.データ取得処理]
次に、CPU11が実行するデータ取得処理について、図3のフローチャートを用いて説明する。データ取得処理は、CPU11で用いられる変換データをメモリ13から取得するための処理である。データ取得処理は、CPU11が変換データを用いる処理である利用処理を行うことをきっかけとして、実行される。
[1-2. processing]
[1-2-1. Data acquisition process]
Next, the data acquisition process executed by the CPU 11 will be described with reference to the flowchart of FIG. The data acquisition process is a process for acquiring the conversion data used by the CPU 11 from the memory 13. The data acquisition process is executed triggered by the CPU 11 performing a utilization process which is a process using the converted data.

なお、データ取得処理が開始される際、例えば「筒内圧1」や「燃圧1」等といった、CPU11において用いられる変換データの種類は、利用処理に基づいてCPU11によって予め特定可能である。 When the data acquisition process is started, the type of conversion data used in the CPU 11, such as "in-cylinder pressure 1" and "fuel pressure 1", can be specified in advance by the CPU 11 based on the utilization process.

CPU11bは、CPU11aと同様にデータ取得処理を実行するよう構成されうる。本実施形態では、CPU11a、11bが同様にデータ取得処理を実行するように構成されているものとする。以下では、CPU11aを自CPU11aとし、CPU11bを他のCPU11bとして、自CPU11aがデータ取得処理を実行する例を説明する。 The CPU 11b may be configured to execute the data acquisition process in the same manner as the CPU 11a. In the present embodiment, it is assumed that the CPUs 11a and 11b are configured to execute the data acquisition process in the same manner. Hereinafter, an example will be described in which the own CPU 11a executes the data acquisition process with the CPU 11a as the own CPU 11a and the CPU 11b as another CPU 11b.

自CPU11aは、はじめにS110では、経過時間を取得する。経過時間とは、AD変換器14によるAD変換処理が完了してから経過した時間をいう。
自CPU11aでは本データ取得処理とは別の処理によって経過時間が算出されており、自CPU11aは算出された該経過時間を取得する。
First, the own CPU 11a acquires the elapsed time in S110. The elapsed time means the time elapsed since the AD conversion process by the AD converter 14 was completed.
The own CPU 11a calculates the elapsed time by a process different from the present data acquisition process, and the own CPU 11a acquires the calculated elapsed time.

なお、これに限定されるものではなく、自CPU11aは、本ステップにおいて、タイマが表す現時点での時刻(以下、現在時刻)とメモリ13に記録されている変換終了時刻との差分を算出し、算出した差分を経過時間として取得してもよい。ここでいう変換終了時刻とは、直近においてAD変換器14がAD変換処理を完了した時刻をいう。 In addition, the own CPU 11a is not limited to this, and in this step, the own CPU 11a calculates the difference between the current time represented by the timer (hereinafter, the current time) and the conversion end time recorded in the memory 13. The calculated difference may be acquired as the elapsed time. The conversion end time referred to here means the time when the AD converter 14 has completed the AD conversion process most recently.

自CPU11aは、続くS120では、許容閾値を取得する。許容閾値とは、予め定められた長さの時間を表しており、メモリ13に予め記録されている。前述のように、本実施形態では、複数の変換データのそれぞれについて設定されている許容時間のうち最も短い許容時間を許容閾値として用いる。許容閾値はCPU11毎に設定されている。 The own CPU 11a acquires an allowable threshold value in the subsequent S120. The permissible threshold value represents a time of a predetermined length, and is recorded in the memory 13 in advance. As described above, in the present embodiment, the shortest permissible time among the permissible times set for each of the plurality of converted data is used as the permissible threshold value. The permissible threshold is set for each CPU 11.

自CPU11aは、S130では、S110にて取得された経過時間がS120にて取得された許容閾値以上であるか否かを判断する。ここでいう経過時間が許容閾値以上であるとは、元となるアナログ信号に基づいて変換データを新たに生成する必要があること、つまり変換データの更新が必要であることを表す。また、経過時間が許容閾値未満であるとは、変換データの更新が必要無いことを表す。 In S130, the own CPU 11a determines whether or not the elapsed time acquired in S110 is equal to or greater than the allowable threshold value acquired in S120. When the elapsed time here is equal to or greater than the allowable threshold value, it means that the conversion data needs to be newly generated based on the original analog signal, that is, the conversion data needs to be updated. Further, when the elapsed time is less than the allowable threshold value, it means that the conversion data does not need to be updated.

自CPU11aは、経過時間が許容閾値以上である場合に処理をS140へ移行させ、許容閾値未満である場合に処理をS190へ移行させる。
自CPU11aは、経過時間が許容閾値以上である場合に移行するS140では、換言すれば、自CPU11aがAD変換器14にAD変換処理を行わせたいときに移行するS140では、AD変換器14がAD変換処理を行っているか否かを判断する。より詳しくは、自CPU11aは、自CPU11a以外の指示によってAD変換器14がAD変換処理を行っている最中であるか否かを判断する。
The own CPU 11a shifts the process to S140 when the elapsed time is equal to or greater than the allowable threshold value, and shifts the process to S190 when the elapsed time is less than the allowable threshold value.
In S140, where the own CPU 11a shifts when the elapsed time is equal to or greater than the allowable threshold value, in other words, in S140, which shifts when the own CPU 11a wants the AD converter 14 to perform AD conversion processing, the AD converter 14 moves. It is determined whether or not the AD conversion process is being performed. More specifically, the own CPU 11a determines whether or not the AD converter 14 is in the process of performing the AD conversion process according to an instruction other than the own CPU 11a.

具体的には、自CPU11aは、排他フラグを取得し、該排他フラグに基づいてAD変換器14がAD変換処理を行っているか否かを判断する。排他フラグは、AD変換器14の作動状態を示すフラグであり、メモリ13に記録されている。 Specifically, the own CPU 11a acquires the exclusive flag, and determines whether or not the AD converter 14 is performing the AD conversion process based on the exclusive flag. The exclusive flag is a flag indicating the operating state of the AD converter 14, and is recorded in the memory 13.

排他フラグは、AD変換器14がAD変換処理を実行中でないときは0にセットされる。排他フラグは、AD変換器14がAD変換処理を実行中である場合は、実行中であるAD変換処理を指示したCPUを表す識別番号にセットされる。識別番号は、自CPU11aについては1、他のCPU11bについては2、といったように、CPU毎に予め定められており、メモリ13に記録されている。 The exclusive flag is set to 0 when the AD converter 14 is not executing the AD conversion process. When the AD converter 14 is executing the AD conversion process, the exclusive flag is set to the identification number representing the CPU instructing the AD conversion process being executed. The identification number is predetermined for each CPU, such as 1 for the own CPU 11a and 2 for the other CPU 11b, and is recorded in the memory 13.

つまり、自CPU11aは、0及び自CPU11aを表す識別番号、以外に排他フラグがセットされている場合に、自CPU11a以外のCPUによる指示によってAD変換器14がAD変換処理を行っていると判断する。ここでいう自CPU11a以外のCPUとは他のCPU11bを意味する。 That is, when the exclusive flag is set in addition to 0 and the identification number representing the own CPU 11a, the own CPU 11a determines that the AD converter 14 is performing the AD conversion process according to the instruction by the CPU other than the own CPU 11a. .. The CPU other than the own CPU 11a referred to here means another CPU 11b.

自CPU11aは、AD変換器14がAD変換処理を実行中でない場合に処理をS160へ移行させ、他のCPU11bによってAD変換器14がAD変換処理を実行中である場合に処理をS150へ移行させる。 The own CPU 11a shifts the process to S160 when the AD converter 14 is not executing the AD conversion process, and shifts the process to S150 when the AD converter 14 is executing the AD conversion process by another CPU 11b. ..

自CPU11aは、S150では、AD変換器14によるAD変換処理が終了したか否かを判断する。具体的には、自CPU11aは、排他フラグを取得し、排他フラグの値が0である場合にAD変換器14によるAD変換処理が終了したと判断する。自CPU11aは、排他フラグの値が0になるまで待機し、AD変換処理が終了すると処理をS190へ移行させる。 In S150, the own CPU 11a determines whether or not the AD conversion process by the AD converter 14 has been completed. Specifically, the own CPU 11a acquires the exclusive flag, and determines that the AD conversion process by the AD converter 14 is completed when the value of the exclusive flag is 0. The own CPU 11a waits until the value of the exclusive flag becomes 0, and shifts the process to S190 when the AD conversion process is completed.

つまり、自CPU11aは、他のCPU11bによってAD変換器14にてAD変換処理が実行されている場合は、該他のCPU11bによるAD変換処理が終了するまで待機し、他のCPU11bによるAD変換処理が終了すると処理をS190へ移行させる。 That is, when the AD conversion process is executed by the AD converter 14 by the other CPU 11b, the own CPU 11a waits until the AD conversion process by the other CPU 11b is completed, and the AD conversion process by the other CPU 11b is performed. When finished, the process shifts to S190.

自CPU11aは、AD変換器14がAD変換処理を実行中でない場合に移行するS160では、自CPU11aを表す識別番号を排他フラグとしてセットする。
自CPU11aは、S170では、後述する変換指示処理を実行する。変換指示処理は、AD変換器14にAD変換処理を行わせるための処理である。本実施形態では、自CPU11aは、変換指示処理を実行することにより、自CPU11aで用いられる変換データに加え、他のCPU11bで用いられる変換データを、AD変換器14に生成させる。そして、生成された変換データをメモリ13に記録させる。自CPU11aは、変換指示処理を終了すると、処理をS180へ移行させる。
The own CPU 11a sets the identification number representing the own CPU 11a as an exclusive flag in S160, which is shifted when the AD converter 14 is not executing the AD conversion process.
In S170, the own CPU 11a executes a conversion instruction process described later. The conversion instruction process is a process for causing the AD converter 14 to perform the AD conversion process. In the present embodiment, the own CPU 11a causes the AD converter 14 to generate conversion data used by the other CPU 11b in addition to the conversion data used by the own CPU 11a by executing the conversion instruction process. Then, the generated conversion data is recorded in the memory 13. When the own CPU 11a finishes the conversion instruction process, the process shifts to S180.

自CPU11aは、S180では、排他フラグをリセットする。具体的には、自CPU11aは、0を排他フラグの値としてセットする。
自CPU11aは、S190では、メモリ13に記録されている変換データを取得する。自CPU11aは、変換データを取得した後に本データ取得処理を終了する。なお、本ステップで取得される変換データには、例えば、本データ取得処理が開始されるきっかけとなった利用処理に用いられる変換データが少なくとも含まれうる。または、本ステップで取得される変換データには、自CPU11aで用いられる変換データの全てが含まれうる。
The own CPU 11a resets the exclusive flag in S180. Specifically, the own CPU 11a sets 0 as the value of the exclusive flag.
In S190, the own CPU 11a acquires the conversion data recorded in the memory 13. The own CPU 11a ends the data acquisition process after acquiring the converted data. The conversion data acquired in this step may include, for example, at least the conversion data used in the utilization process that triggered the start of the data acquisition process. Alternatively, the conversion data acquired in this step may include all of the conversion data used by the own CPU 11a.

[1−2−2.変換指示処理]
次に、自CPU11aがS170にて実行する変換指示処理を図4のフローチャートを用いて説明する。
[1-2-2. Conversion instruction processing]
Next, the conversion instruction process executed by the own CPU 11a in S170 will be described with reference to the flowchart of FIG.

自CPU11aは、S210では、変換指示を生成する。本実施形態では、マイコン10が備える複数のCPU11a、11bにて用いられる変換データの元となるアナログ信号の全てをAD変換処理の対象とする。つまり、自CPU11aは、図2に示すように、0チャネルを開始チャネルとし11チャネルを終了チャネルとして、開始チャネルから終了チャネルまでの複数の入力チャネルを指定する変換指示を生成する。 The own CPU 11a generates a conversion instruction in S210. In the present embodiment, all of the analog signals that are the sources of the conversion data used by the plurality of CPUs 11a and 11b included in the microcomputer 10 are subject to the AD conversion processing. That is, as shown in FIG. 2, the own CPU 11a generates a conversion instruction for designating a plurality of input channels from the start channel to the end channel, with channel 0 as the start channel and channel 11 as the end channel.

なお、変換指示はこれに限定されるものではない。自CPU11aは、例えば、AD変換器14が備える全ての入力チャネルを指定する変換指示を生成してもよい。
自CPU11aは、S220では、S210にて生成した変換指示をAD変換器14へ出力する。具体的には、自CPU11aは変換指示を設定レジスタ45に書き込む。これにより、AD変換器14は、変換指示に従って、0チャネルから11チャネルまでのアナログ信号についてのAD変換処理を開始する。つまり、自CPU11a及び他のCPU11bにおいて用いられる変換データの全てについて、新たに変換データの生成が開始される。
The conversion instruction is not limited to this. The own CPU 11a may generate, for example, a conversion instruction that specifies all the input channels included in the AD converter 14.
In S220, the own CPU 11a outputs the conversion instruction generated in S210 to the AD converter 14. Specifically, the own CPU 11a writes a conversion instruction to the setting register 45. As a result, the AD converter 14 starts the AD conversion process for the analog signals from the 0 channel to the 11 channel according to the conversion instruction. That is, the generation of the converted data is newly started for all the converted data used in the own CPU 11a and the other CPU 11b.

自CPU11aは、S230では、AD変換器14においてAD変換処理が完了したか否かを判断する。具体的には、自CPU11aは、状態レジスタ46の値を取得し、該値がアイドル状態を示す値である場合に、AD変換処理が完了したと判断する。自CPU11aは、AD変換器14においてAD変換処理が完了するまで待機し、AD変換処理が完了した場合に処理をS240へ移行させる。 In S230, the own CPU 11a determines whether or not the AD conversion process is completed in the AD converter 14. Specifically, the own CPU 11a acquires the value of the status register 46, and when the value is a value indicating an idle state, it determines that the AD conversion process is completed. The own CPU 11a waits until the AD conversion process is completed in the AD converter 14, and shifts the process to S240 when the AD conversion process is completed.

なお、AD変換処理が完了した時点では、変換指示にて指定された入力チャネル分の全ての変換データがAD変換器14のデータバッファ47に書き込まれている。
自CPU11aは、S240では、AD変換器14のデータバッファ47から生成された変換データを全て取得してメモリ13へ書き込む。ここでいう、書き込むとは、データを上書きすることをいう。つまり、本ステップでは、マイコン10が備える複数のCPU11a、11bにて用いられる変換データの全てが、新たに生成された変換データに上書きされる。
When the AD conversion process is completed, all the conversion data for the input channels specified in the conversion instruction are written in the data buffer 47 of the AD converter 14.
In S240, the own CPU 11a acquires all the converted data generated from the data buffer 47 of the AD converter 14 and writes it to the memory 13. Writing here means overwriting data. That is, in this step, all of the conversion data used by the plurality of CPUs 11a and 11b included in the microcomputer 10 is overwritten by the newly generated conversion data.

自CPU11aは、S250では、タイマから現時点での時刻を取得し、取得した時刻を変換終了時刻としてメモリ13に記録する。そして、自CPU11aは本変換指示処理を終了する。 In S250, the own CPU 11a acquires the current time from the timer and records the acquired time in the memory 13 as the conversion end time. Then, the own CPU 11a ends the conversion instruction process.

これにより、変換指示処理が実行されるときは、図5に示すように、自CPU11aで用いられる変換データに加え、他のCPU11bで用いられる変換データが、新たに生成されメモリ13に記録される。また、変換終了時刻がメモリ13に記録される。図5では、変換データ、及び変換終了時刻は、説明を分かり易くするためにアナログ値で記載されているが、実際にはこれらのデジタルデータがメモリ13に記録される。 As a result, when the conversion instruction process is executed, as shown in FIG. 5, in addition to the conversion data used by the own CPU 11a, the conversion data used by the other CPU 11b is newly generated and recorded in the memory 13. .. Further, the conversion end time is recorded in the memory 13. In FIG. 5, the conversion data and the conversion end time are described as analog values for the sake of clarity, but in reality, these digital data are recorded in the memory 13.

なお、本実施形態では、自CPU11aは、ECU3に電源が投入された直後にも、本変換指示処理を実行するように構成されている。
[1−3.作動]
このように構成されたECU3におけるCPU11の作動について、図6を用いて説明する。CPU11は、ECU3への電源投入直後に、初期化を行う。CPU11は、初期化を行った後は、例えば数ミリ〜数百ミリ秒といった予め定められた周期毎に予め定められた処理(以下、定期タスク)を実行する。定期タスクは、自CPU11a、他のCPU11bのそれぞれにおいて、個別に設定されている。定期タスクには、複数の変換データのうち少なくとも一つを利用する処理である利用処理が含まれうる。
In the present embodiment, the own CPU 11a is configured to execute the conversion instruction process immediately after the power is turned on to the ECU 3.
[1-3. Operation]
The operation of the CPU 11 in the ECU 3 configured in this way will be described with reference to FIG. The CPU 11 initializes immediately after the power is turned on to the ECU 3. After the initialization, the CPU 11 executes a predetermined process (hereinafter, a periodic task) at a predetermined cycle such as several millimeters to several hundred milliseconds. The periodic task is individually set in each of the own CPU 11a and the other CPU 11b. The periodic task may include a utilization process that is a process that utilizes at least one of a plurality of converted data.

以下では、定期タスクに利用処理が含まれ、自CPU11aと他のCPU11bとが互いに異なる定期タスクを実行する例について説明する。
時刻t0におけるECU3への電源投入直後、S301では、自CPU11aは、初期化を行う中で変換指示処理を実行する。これにより、AD変換器14ではAD変換処理が実行され、自CPU11a及び他のCPU11bで用いられる変換データの全てが生成される。自CPU11aは、生成された変換データD1を変換終了時刻t1とともにメモリ13に記録する。
In the following, an example in which the usage process is included in the periodic task and the own CPU 11a and the other CPU 11b execute different periodic tasks will be described.
Immediately after the power is turned on to the ECU 3 at time t0, in S301, the own CPU 11a executes the conversion instruction process while performing initialization. As a result, the AD converter 14 executes the AD conversion process, and all of the conversion data used by the own CPU 11a and the other CPU 11b are generated. The own CPU 11a records the generated conversion data D1 in the memory 13 together with the conversion end time t1.

S302では、自CPU11aは、定期タスクを行う中で利用処理が実行されることをきっかけとして、データ取得処理を実行する。ここで、S302では経過時間が許容閾値未満である。このため、自CPU11aは、この時点でメモリ13に記録されている変換データを取得してデータ取得処理を終了する。 In S302, the own CPU 11a executes the data acquisition process, triggered by the execution of the usage process while performing the periodic task. Here, in S302, the elapsed time is less than the allowable threshold value. Therefore, the own CPU 11a acquires the conversion data recorded in the memory 13 at this point and ends the data acquisition process.

S303では、他のCPU11bは、定期タスクを行う中で利用処理が実行されることをきっかけとして、データ取得処理を実行する。ここで、S303では経過時間が許容閾値未満である。このため、他のCPU11bは、この時点でメモリ13に記録されている変換データを取得してデータ取得処理を終了する。 In S303, the other CPU 11b executes the data acquisition process triggered by the execution of the utilization process while performing the periodic task. Here, in S303, the elapsed time is less than the allowable threshold value. Therefore, the other CPU 11b acquires the conversion data recorded in the memory 13 at this point and ends the data acquisition process.

S304では、自CPU11aは、定期タスクを行う中で利用処理が実行されることをきっかけとして、データ取得処理を実行する。ここで、S303では経過時間が許容閾値以上である。このため、自CPU11aは、データ取得処理の中で変換指示処理を実行する。これにより、AD変換器14ではAD変換処理が実行され、自CPU11a及び他のCPU11bで用いられる変換データの全てが生成される。自CPU11aは、生成された変換データD2を変換終了時刻t2とともにメモリ13に記録する。そして、自CPU11aは、メモリ13に新たに記録された変換データを取得して、データ取得処理を終了する。 In S304, the own CPU 11a executes the data acquisition process triggered by the execution of the utilization process while performing the periodic task. Here, in S303, the elapsed time is equal to or greater than the allowable threshold value. Therefore, the own CPU 11a executes the conversion instruction process in the data acquisition process. As a result, the AD converter 14 executes the AD conversion process, and all of the conversion data used by the own CPU 11a and the other CPU 11b are generated. The own CPU 11a records the generated conversion data D2 in the memory 13 together with the conversion end time t2. Then, the own CPU 11a acquires the converted data newly recorded in the memory 13 and ends the data acquisition process.

なお定期タスクでは、毎周期同じ内容の処理が実行されうる。つまり、毎周期、定期タスク開始から同じタイミングで、前述の変換データを用いる処理が実行されうる。ただし、より優先度の高い割り込み処理が行われる場合はこの限りではない。 In the regular task, the same processing can be executed every cycle. That is, the process using the above-mentioned conversion data can be executed at the same timing from the start of the periodic task every cycle. However, this does not apply when interrupt processing with a higher priority is performed.

S305では、自CPU11aは、次の周期における定期タスクを行う中で、S302と同じタイミングで利用処理が実行されることをきっかけとして、データ取得処理を実行する。ここで、S305ではS302と同様に経過時間が許容閾値未満である。自CPU11aは、S302にと同様に作動する。 In S305, the own CPU 11a executes the data acquisition process in the wake of the utilization process being executed at the same timing as in S302 while performing the periodic task in the next cycle. Here, in S305, the elapsed time is less than the permissible threshold as in S302. The own CPU 11a operates in the same manner as in S302.

ここで、自CPU11a及び他のCPU11bにおいて、優先度の高い割り込み処理が実行された場合は、S306、S307に示すように、優先度の高い割り込み処理による処理遅れ時間が発生する。つまり、本来のタイミングよりも遅れたタイミングで前述の利用処理が実行される。このような場合、CPU11は次のように作動する。 Here, when the high-priority interrupt processing is executed in the own CPU 11a and the other CPU 11b, a processing delay time due to the high-priority interrupt processing occurs as shown in S306 and S307. That is, the above-mentioned utilization process is executed at a timing later than the original timing. In such a case, the CPU 11 operates as follows.

S306では、他のCPU11bは、定期タスクを行う中で、割り込み処理による処理遅れ時間が発生した後に利用処理が実行されると、該利用処理の実行をきっかけとして、データ取得処理を実行する。ここで、S306では経過時間が許容閾値以上である。このため、他のCPU11bは、データ取得処理の中で変換指示処理を実行する。これにより、AD変換器14ではAD変換処理が実行され自CPU11a及び他のCPU11bで用いられる全ての変換データが生成される。他のCPU11bは、生成された変換データD3を変換終了時刻t3とともにメモリ13に記録する。そして、他のCPU11bは、メモリ13に新たに記録された変換データを取得して、データ取得処理を終了する。 In S306, when the utilization process is executed after the processing delay time due to the interrupt process occurs while the other CPU 11b is performing the periodic task, the data acquisition process is executed with the execution of the utilization process as a trigger. Here, in S306, the elapsed time is equal to or greater than the allowable threshold value. Therefore, the other CPU 11b executes the conversion instruction process in the data acquisition process. As a result, the AD converter 14 executes the AD conversion process and generates all the conversion data used by the own CPU 11a and the other CPU 11b. The other CPU 11b records the generated conversion data D3 in the memory 13 together with the conversion end time t3. Then, the other CPU 11b acquires the converted data newly recorded in the memory 13 and ends the data acquisition process.

S307では、自CPU11aは、次の周期における定期タスクを行う中で、割り込み処理による処理遅れ時間が発生した後に利用処理が実行されると、該利用処理の実行をきっかけとして、データ取得処理を実行する。ここで、S307では経過時間が許容閾値未満である。このため、自CPU11aは、この時点でメモリ13に記録されている変換データを取得してデータ取得処理を終了する。 In S307, when the own CPU 11a executes the utilization process after the processing delay time due to the interrupt process occurs while performing the periodic task in the next cycle, the own CPU 11a executes the data acquisition process with the execution of the utilization process as a trigger. To do. Here, in S307, the elapsed time is less than the allowable threshold value. Therefore, the own CPU 11a acquires the conversion data recorded in the memory 13 at this point and ends the data acquisition process.

なお、S306とS307とにおいては、データ取得処理が実行されるタイミングは近いが、経過時間が許容閾値未満であるか否かの結果が異なるため、CPU11a、11bのそれぞれは、異なる作動をしている。 In S306 and S307, the timing at which the data acquisition process is executed is close, but the result of whether or not the elapsed time is less than the allowable threshold is different, so that the CPUs 11a and 11b operate differently. There is.

[1−4.効果]
以上詳述した第1実施形態によれば、以下の効果を奏する。
(1a)ECU3は、1つのAD変換器14を共用する複数のCPU11a、11bを備える。複数のCPU11a、11bのそれぞれは、S170では、AD変換器14にAD変換処理を行わせる。S190では、AD変換処理により生成されたデジタルデータである変換データが記録されるメモリ13から、変換データを取得する。複数のCPU11a、11bは、自CPU11aと、他のCPU11bと、を有する。自CPU11aが備えるS170では、自CPU11aで用いられる変換データに加え、他のCPU11bで用いられる変換データを、AD変換器14に生成させる。
[1-4. effect]
According to the first embodiment described in detail above, the following effects are obtained.
(1a) The ECU 3 includes a plurality of CPUs 11a and 11b that share one AD converter 14. In S170, each of the plurality of CPUs 11a and 11b causes the AD converter 14 to perform AD conversion processing. In S190, the conversion data is acquired from the memory 13 in which the conversion data, which is the digital data generated by the AD conversion process, is recorded. The plurality of CPUs 11a and 11b have their own CPU 11a and another CPU 11b. In S170 included in the own CPU 11a, in addition to the conversion data used in the own CPU 11a, the conversion data used in the other CPU 11b is generated by the AD converter 14.

これによれば、自CPU11aが、自CPU11aで用いられる変換データに加え、他のCPU11bで用いられる変換データを、共用するAD変換器14に生成させる構成を備えるので、他のCPU11bは、自CPU11aが生成させた他のCPU11bで用いられる変換データを利用することが可能となる。 According to this, since the own CPU 11a has a configuration in which the shared AD converter 14 generates the conversion data used by the other CPU 11b in addition to the conversion data used by the own CPU 11a, the other CPU 11b has the own CPU 11a. It becomes possible to use the conversion data used in the other CPU 11b generated by.

つまり、他のCPU11bが共用のAD変換器14にAD変換処理を行わせる頻度を、該構成を備えない場合よりも、低減することができる。換言すれば、複数のCPU11a、11bのそれぞれが共用のAD変換器14にAD変換処理を行わせようとするタイミングが重なる状況が低減される。この結果、待ち時間が低減されるので、複数のCPU11a、11bを備えるECU3において、処理を高速化することができる。 That is, the frequency with which the other CPU 11b causes the shared AD converter 14 to perform the AD conversion process can be reduced as compared with the case where the configuration is not provided. In other words, the situation where the timings at which the plurality of CPUs 11a and 11b each try to perform the AD conversion process on the shared AD converter 14 is reduced. As a result, the waiting time is reduced, so that the processing speed can be increased in the ECU 3 including the plurality of CPUs 11a and 11b.

なお、本実施形態では、他のCPU11bも、他のCPU11bが備えるS170では、他のCPU11bで用いられる変換データに加え、自CPU11aで用いられる変換データを、AD変換器14に生成させるように構成されている。この結果、待ち時間がより低減されるので、複数のCPU11a、11bを備えるECU3において、処理をより高速化することができる。 In the present embodiment, the other CPU 11b is also configured so that the AD converter 14 generates the conversion data used by the own CPU 11a in addition to the conversion data used by the other CPU 11b in the S170 included in the other CPU 11b. Has been done. As a result, the waiting time is further reduced, so that the processing speed can be further increased in the ECU 3 provided with the plurality of CPUs 11a and 11b.

(1b)複数のCPU11a、11bのそれぞれは、更に、S110では、AD変換器14によるAD変換処理が完了してから経過した時間である経過時間を取得する。S130では、経過時間が予め定められた時間の長さである許容閾値以上であるか否かを判断する。S170では、経過時間が許容閾値以上である場合に、AD変換器14にAD変換処理を行わせる。 (1b) Each of the plurality of CPUs 11a and 11b further acquires an elapsed time, which is the time elapsed since the AD conversion process by the AD converter 14 is completed, in S110. In S130, it is determined whether or not the elapsed time is equal to or greater than the allowable threshold value which is a predetermined length of time. In S170, when the elapsed time is equal to or greater than the allowable threshold value, the AD converter 14 is made to perform the AD conversion process.

これによれば、複数のCPU11a、11bのそれぞれは、経過時間が許容閾値以上である場合に、AD変換器14にAD変換処理を行わせる構成を備えるので、経過時間が許容閾値以上となった変換データが制御や演算等に用いられることを抑制できる。また、これによれば、例えば許容閾値よりも短い時間間隔で変換データを生成させるような構成を備える場合よりも、AD変換器14においてAD変換処理が重なる状況を低減することができる。 According to this, since each of the plurality of CPUs 11a and 11b has a configuration in which the AD converter 14 performs the AD conversion process when the elapsed time is equal to or longer than the allowable threshold value, the elapsed time exceeds the allowable threshold value. It is possible to prevent the converted data from being used for control, calculation, and the like. Further, according to this, it is possible to reduce the situation where the AD conversion processes overlap in the AD converter 14 as compared with the case where the conversion data is generated at a time interval shorter than the permissible threshold value, for example.

(1c)ECU3は、メモリ13に、変換データと共に、変換データの生成が終了した時刻である変換終了時刻が記録されるように構成されている。
これによれば、メモリ13に変換終了時刻が記録されるので、該時刻に基づいて経過時間を算出することが可能となる。
(1c) The ECU 3 is configured to record the conversion end time, which is the time when the conversion data generation is completed, together with the conversion data in the memory 13.
According to this, since the conversion end time is recorded in the memory 13, the elapsed time can be calculated based on the time.

(1d)複数のCPU11a、11bのそれぞれは、複数種類の変換データを用いるように構成されている。変換データのそれぞれには、変換データが生成されてから用いられるまでの許容される時間である許容時間が予め設定されている。複数のCPU11a、11bのそれぞれは、S130では、変換データのそれぞれについて設定されている許容時間のうち最も短い許容時間を許容閾値として用いる。 (1d) Each of the plurality of CPUs 11a and 11b is configured to use a plurality of types of conversion data. For each of the converted data, an allowable time, which is an allowable time from the generation of the converted data to the use, is preset. In S130, each of the plurality of CPUs 11a and 11b uses the shortest permissible time among the permissible times set for each of the converted data as the permissible threshold value.

これによれば、複数のCPU11a、11bのそれぞれにおいて、用いられる複数の変換データのうち最も頻繁に更新が必要な変換データに合わせたタイミングで、複数のCPU11a、11bにて用いられる変換データの全てが更新される。このため、複数のCPU11a、11bのそれぞれにおいて、許容時間を超えて変換データが用いられることを抑制することができる。 According to this, all of the conversion data used by the plurality of CPUs 11a and 11b at the timing corresponding to the conversion data that needs to be updated most frequently among the plurality of conversion data used in each of the plurality of CPUs 11a and 11b. Is updated. Therefore, it is possible to prevent the conversion data from being used in each of the plurality of CPUs 11a and 11b beyond the permissible time.

(1e)複数のCPU11a、11bのそれぞれは、更に、S140では、AD変換器14がAD変換処理を行っているか否か判断する。S190では、S170にてAD変換器14にAD変換処理を行わせようとしたときにAD変換器14がAD変換を行っている場合は、AD変換器14によるAD変換処理が完了した後に、メモリ13に記録された変換データを取得する。 (1e) Each of the plurality of CPUs 11a and 11b further determines in S140 whether or not the AD converter 14 is performing the AD conversion process. In S190, when the AD converter 14 is trying to perform the AD conversion process in S170 and the AD converter 14 is performing the AD conversion, the memory is stored after the AD conversion process by the AD converter 14 is completed. The conversion data recorded in 13 is acquired.

これによれば、複数のCPU11a、11bのそれぞれは、AD変換器14がAD変換処理を行っている場合は、AD変換処理の終了後にメモリ13に記録された変換データを取得するので、更新後の最新の変換データを用いることが可能となる。例えば、他のCPU11bは、自CPU11aがAD変換処理を行っている場合は、自らAD変換器14にAD変換処理を行わせること無く、自CPU11aによって更新された最新の変換データを用いることが可能となる。 According to this, when the AD converter 14 is performing the AD conversion process, each of the plurality of CPUs 11a and 11b acquires the conversion data recorded in the memory 13 after the AD conversion process is completed, and thus after the update. It becomes possible to use the latest conversion data of. For example, when the own CPU 11a is performing the AD conversion process, the other CPU 11b can use the latest conversion data updated by the own CPU 11a without causing the AD converter 14 to perform the AD conversion process by itself. It becomes.

この結果、共用するAD変換器14にAD変換処理を行わせる頻度が低減され、AD変換処理の要求が重なる状況を低減することができる。すなわち、上記(1a)と同様の効果が奏される。 As a result, the frequency of causing the shared AD converter 14 to perform the AD conversion process can be reduced, and the situation where the requests for the AD conversion process overlap can be reduced. That is, the same effect as in (1a) above is achieved.

[1−5.変形例]
上記実施形態では、他のCPU11bは、他のCPU11bが備えるS170では、他のCPU11bで用いられる変換データに加え、自CPU11aで用いられる変換データを、AD変換器14に生成させるように構成されていた。ただし、これに限定されるものではない。他のCPU11bは、他のCPU11bが備えるS170では、他のCPU11bで用いられる変換データのみをAD変換器14に生成させるように構成されていてもよい。
[1-5. Modification example]
In the above embodiment, the other CPU 11b is configured to cause the AD converter 14 to generate the conversion data used by the own CPU 11a in addition to the conversion data used by the other CPU 11b in the S170 included in the other CPU 11b. It was. However, it is not limited to this. The other CPU 11b may be configured so that the AD converter 14 generates only the conversion data used by the other CPU 11b in S170 included in the other CPU 11b.

[2.第2実施形態]
[2−1.第1実施形態との相違点]
第2実施形態は、基本的な構成は第1実施形態と同様であるため、相違点について以下に説明する。なお、第1実施形態と同じ符号は、同一の構成を示すものであって、先行する説明を参照する。
[2. Second Embodiment]
[2-1. Differences from the first embodiment]
Since the basic configuration of the second embodiment is the same as that of the first embodiment, the differences will be described below. The same reference numerals as those in the first embodiment indicate the same configurations, and the preceding description will be referred to.

前述した第1実施形態では、複数の変換データのそれぞれについて設定されている許容時間のうち、最も短い許容時間を許容閾値として用いていた。
これに対し、第2実施形態では、複数の変換データのそれぞれについて設定されている許容時間を該それぞれの変換データの許容閾値として用いる点で、第1実施形態と相違する。
In the first embodiment described above, the shortest permissible time among the permissible times set for each of the plurality of conversion data is used as the permissible threshold value.
On the other hand, the second embodiment is different from the first embodiment in that the permissible time set for each of the plurality of converted data is used as the permissible threshold value of each of the converted data.

また、複数の変換データのうち少なくとも一部の予め特定された変換データ(以下、特定データ)については、自車両の作動条件に応じて許容時間を変更する点で、第1実施形態と相違する。 Further, at least a part of the conversion data specified in advance (hereinafter, specific data) among the plurality of conversion data is different from the first embodiment in that the allowable time is changed according to the operating conditions of the own vehicle. ..

これらの相違点に伴い、本実施形態におけるデータ取得処理は第1実施形態におけるデータ取得処理と相違する。具体的には、図7に示すフローチャートに基づく本実施形態のデータ取得処理では、図3に示す第1実施形態におけるデータ取得処理におけるフローチャートのS120がS121〜S127に置換される。 Due to these differences, the data acquisition process in the present embodiment is different from the data acquisition process in the first embodiment. Specifically, in the data acquisition process of the present embodiment based on the flowchart shown in FIG. 7, S120 of the flowchart in the data acquisition process of the first embodiment shown in FIG. 3 is replaced with S121 to S127.

[2−2.処理]
次に、第2実施形態のCPU11が実行するデータ取得処理について、図7のフローチャートを用いて説明する。なお、図7におけるS140〜S190の処理は、図3におけるS140〜S190の処理と同様であるため、説明を一部簡略化している。
[2-2. processing]
Next, the data acquisition process executed by the CPU 11 of the second embodiment will be described with reference to the flowchart of FIG. 7. Since the processing of S140 to S190 in FIG. 7 is the same as the processing of S140 to S190 in FIG. 3, the description is partially simplified.

ここで、本実施形態では、自CPU11a及び他のCPU11bのうち、自CPU11aは、複数の変換データのそれぞれについて設定されている許容時間を該変換データの許容閾値として用い、且つ、特定データについては、自車両の作動条件に応じて許容時間を変更するように構成されている。具体的には、自CPU11aは、燃圧の変換データを特定データとして、燃圧の変換データについては自車両のエンジン回転数に応じて許容時間を変更する。つまり、自CPU11aは、図7に示すデータ取得処理を実行するように構成されている。 Here, in the present embodiment, among the own CPU 11a and the other CPU 11b, the own CPU 11a uses the permissible time set for each of the plurality of conversion data as the permissible threshold value of the conversion data, and the specific data is used. , It is configured to change the permissible time according to the operating conditions of the own vehicle. Specifically, the own CPU 11a uses the fuel pressure conversion data as specific data, and changes the permissible time for the fuel pressure conversion data according to the engine speed of the own vehicle. That is, the own CPU 11a is configured to execute the data acquisition process shown in FIG. 7.

一方、他のCPU11bは、複数の変換データのそれぞれについて設定されている許容時間をそれぞれの変換データの許容閾値として用いるものとする。つまり、他のCPU11bは、図7に示すデータ取得処理から、S122、S124〜S127を削除し、S121、S123、S130、の順に処理を実行するように構成されている。 On the other hand, the other CPU 11b uses the permissible time set for each of the plurality of conversion data as the permissible threshold value of each conversion data. That is, the other CPU 11b is configured to delete S122 and S124 to S127 from the data acquisition process shown in FIG. 7 and execute the process in the order of S121, S123, and S130.

以下では、自CPU11aが図7のデータ取得処理を実行する例を説明する。本実施形態におけるデータ取得処理は、自CPU11aにおいて利用処理が行われることをきっかけとして、実行される。 Hereinafter, an example in which the own CPU 11a executes the data acquisition process of FIG. 7 will be described. The data acquisition process in the present embodiment is executed triggered by the utilization process being performed in the own CPU 11a.

自CPU11aは、S110では経過時間を取得する。
自CPU11aは、S121では、自CPU11aで用いられる変換データの種類を特定する。前述のように、自CPU11aは、利用処理に基づいて、自CPU11aで用いられる変換データの種類を特定可能である。ここでいう自CPU11aで用いられる変換データには、自CPU11aで用いられる変換データの全てまたは一部が含まれる。また、自CPU11aで用いられる変換データには、例えば、本データ取得処理を開始するきっかけとなった利用処理において用いられる変換データが含まれうる。
The own CPU 11a acquires the elapsed time in S110.
In S121, the own CPU 11a specifies the type of conversion data used by the own CPU 11a. As described above, the own CPU 11a can specify the type of conversion data used by the own CPU 11a based on the utilization process. The conversion data used by the own CPU 11a referred to here includes all or a part of the conversion data used by the own CPU 11a. Further, the conversion data used by the own CPU 11a may include, for example, the conversion data used in the utilization process that triggered the start of the data acquisition process.

自CPU11aは、S122では、S121で特定された自CPU11aで用いられる変換データの種類に特定データが含まれるか否かを判断する。特定データは、メモリ13に予め記録されている。 In S122, the own CPU 11a determines whether or not the specific data is included in the type of conversion data used in the own CPU 11a specified in S121. The specific data is recorded in the memory 13 in advance.

具体的には、本実施形態では燃圧が特定データとしてメモリ13に記録されており、自CPU11aは、S121で特定された自CPU11aで用いられる変換データの種類に燃圧が含まれるか否かを判断する。自CPU11aは、燃圧が含まれない場合は処理をS123へ移行させ、含まれる場合は処理をS124へ移行させる。 Specifically, in the present embodiment, the fuel pressure is recorded in the memory 13 as specific data, and the own CPU 11a determines whether or not the type of conversion data used by the own CPU 11a specified in S121 includes the fuel pressure. To do. The own CPU 11a shifts the process to S123 when the fuel pressure is not included, and shifts the process to S124 when the fuel pressure is included.

ここで、自CPU11aで用いられる変換データの種類に燃圧が含まれない場合に移行するS123では、自CPU11aは、自CPU11aで用いられる変換データのうち燃圧以外の変換データについて、変換データの種類毎に許容閾値を設定する。 Here, in S123, which shifts to the case where the type of conversion data used by the own CPU 11a does not include the fuel pressure, the own CPU 11a refers to the conversion data other than the fuel pressure among the conversion data used by the own CPU 11a for each type of conversion data. Set the allowable threshold value in.

具体的には、自CPU11aで用いられる変換データのうち燃圧以外の変換データのそれぞれについて、図2に示すように変換データの種類毎に設定されている許容時間を許容閾値として設定する。 Specifically, for each of the conversion data other than the fuel pressure among the conversion data used by the own CPU 11a, the permissible time set for each type of conversion data is set as the permissible threshold value as shown in FIG.

一方、自CPU11aで用いられる変換データの種類に燃圧が含まれる場合に移行するS124では、自CPU11aは、自車両におけるエンジン回転数を取得する。なお、自CPU11aはクランク角センサ5が出力するエンジン回転数を取得するように構成されている。 On the other hand, in S124, which shifts to the case where the type of conversion data used by the own CPU 11a includes fuel pressure, the own CPU 11a acquires the engine speed in the own vehicle. The own CPU 11a is configured to acquire the engine speed output by the crank angle sensor 5.

自CPU11aは、S125では、エンジン回転数が回転閾値以上であるか否かを判断する。回転閾値は、予め定められたエンジンの回転数の大きさであり、メモリ13に予め記録されている。回転閾値は、例えばアイドル状態のような、低い回転数に定められている。ただし、回転閾値はこれに限定されるものではない。 In S125, the own CPU 11a determines whether or not the engine speed is equal to or higher than the rotation threshold. The rotation threshold value is a predetermined magnitude of the engine speed, and is recorded in the memory 13 in advance. The rotation threshold is set to a low rotation speed, for example, in an idle state. However, the rotation threshold is not limited to this.

自CPU11aは、エンジン回転数が回転閾値以上である場合は処理をS126へ移行させ、回転閾値未満である場合に処理をS127へ移行させる。
自CPU11aは、エンジンの回転数が回転閾値以上である場合に移行するS126では、第1の設定時間を燃圧の変換データに対する許容時間として設定する。そして、自CPU11aは、処理をS130へ移行させる。第1の設定時間は、図2に示す許容時間に設定される。ただし、これに限定されるものではなく、第1の設定時間は、所定の機能を実現させるために任意の値に設定されうる。第1の設定時間はメモリ13に予め記録されている。
The own CPU 11a shifts the process to S126 when the engine speed is equal to or higher than the rotation threshold, and shifts the process to S127 when the engine speed is less than the rotation threshold.
In S126, which shifts when the engine speed is equal to or higher than the rotation threshold, the own CPU 11a sets the first set time as the allowable time for the fuel pressure conversion data. Then, the own CPU 11a shifts the processing to S130. The first set time is set to the allowable time shown in FIG. However, the present invention is not limited to this, and the first set time can be set to an arbitrary value in order to realize a predetermined function. The first set time is pre-recorded in the memory 13.

自CPU11aは、エンジンの回転数が回転閾値未満であるときに移行するS127では、第2の設定時間を燃圧の変換データに対する許容時間として設定する。そして、自CPU11aは、処理をS130へ移行させる。第2の設定時間は第1の設定時間よりも長い値であり、メモリ13に予め記録されている。 In S127, which shifts when the engine speed is less than the rotation threshold, the own CPU 11a sets the second set time as the allowable time for the fuel pressure conversion data. Then, the own CPU 11a shifts the processing to S130. The second set time is a value longer than the first set time, and is recorded in the memory 13 in advance.

つまり、自CPU11aは、S126、S127では、例えば燃圧の変換データといった特定データ、すなわち複数種類の変換データのうち少なくとも一部の変換データ、について設定されている許容時間を、車両の作動状態を表すエンジン回転数に応じて変更する。 That is, in S126 and S127, the own CPU 11a represents the operating state of the vehicle by setting the allowable time set for specific data such as fuel pressure conversion data, that is, at least a part of the conversion data among a plurality of types of conversion data. Change according to the engine speed.

自CPU11aは、S130では、自CPU11aで用いられる複数の変換データの全てについて、S123、S126、S127において変換データ毎に設定された許容閾値を用いて、経過時間が許容閾値以上であるか否かを判断する。 In S130, the own CPU 11a uses the allowable threshold values set for each conversion data in S123, S126, and S127 for all of the plurality of conversion data used in the own CPU 11a, and whether or not the elapsed time is equal to or greater than the allowable threshold value. To judge.

自CPU11aは、自CPU11aで用いられる複数の変換データのうち、少なくとも一つの変換データにおいて経過時間が許容閾値以上である場合に処理をS140へ移行させ、全ての変換データにおいて経過時間が許容閾値未満である場合に処理をS190へ移行させる。 The own CPU 11a shifts the processing to S140 when the elapsed time is equal to or greater than the allowable threshold in at least one of the plurality of converted data used in the own CPU 11a, and the elapsed time is less than the allowable threshold in all the converted data. If, the process is transferred to S190.

自CPU11aは、S140〜S190においては、第1実施形態におけるS140〜S190と同様の処理を実行する。
[2−3.作動]
本実施形態のデータ取得処理を実行する自CPU11aの作動について説明する。ここで、自CPU11aは、「筒内圧1」、「筒内圧2」、及び「燃圧1」の変換データを用いる処理を利用処理として、該利用処理をきっかけとして前述のデータ取得処理を開始するものとする。
In S140 to S190, the own CPU 11a executes the same processing as in S140 to S190 in the first embodiment.
[2-3. Operation]
The operation of the own CPU 11a that executes the data acquisition process of the present embodiment will be described. Here, the own CPU 11a starts the above-mentioned data acquisition process by using the process of using the conversion data of "in-cylinder pressure 1", "in-cylinder pressure 2", and "fuel pressure 1" as the utilization process. And.

例えば、「燃圧1」については、第1の設定時間は図2に示すように2000μsecに設定され、第2の設定時間はこれよりも長い時間である例えば7000μsecといった時間に設定されているものとする。ここで、エンジン回転数は回転閾値未満であるものとする。このような場合に、自CPU11aは次のように作動する。 For example, for "fuel pressure 1", the first set time is set to 2000 μsec as shown in FIG. 2, and the second set time is set to a longer time such as 7000 μsec. To do. Here, it is assumed that the engine speed is less than the rotation threshold. In such a case, the own CPU 11a operates as follows.

(1)自CPU11aは、「筒内圧1」については3000μsec、「筒内圧2」については2800μsecといった許容時間を許容閾値として設定する。また、「燃圧1」については7000μsecといった許容時間を許容閾値として設定する。 (1) The own CPU 11a sets an allowable time such as 3000 μsec for “in-cylinder pressure 1” and 2800 μsec for “in-cylinder pressure 2” as an allowable threshold value. Further, for "fuel pressure 1", an allowable time such as 7000 μsec is set as an allowable threshold value.

(2)自CPU11aは、経過時間が、「筒内圧1」、「筒内圧2」、「燃圧1」のうちいずれかの許容閾値以上である場合には、変換指示処理を実行する。これにより、自CPU11a、及び他のCPU11bにて用いられる変換データの全てが、AD変換器14により新たに生成され、メモリ13に記録される。自CPU11aは、例えば、メモリ13に記録された「筒内圧1」、「筒内圧2」、「燃圧1」の変換データを取得し、データ取得処理を終了する。自CPU11aは、この後、取得した変換データを用いた利用処理を実行することが可能となる。 (2) When the elapsed time is equal to or greater than any of the allowable thresholds of "in-cylinder pressure 1", "in-cylinder pressure 2", and "fuel pressure 1", the own CPU 11a executes conversion instruction processing. As a result, all of the conversion data used by the own CPU 11a and the other CPU 11b is newly generated by the AD converter 14 and recorded in the memory 13. The own CPU 11a acquires, for example, the conversion data of "in-cylinder pressure 1", "in-cylinder pressure 2", and "fuel pressure 1" recorded in the memory 13, and ends the data acquisition process. After that, the own CPU 11a can execute the utilization process using the acquired conversion data.

(3)自CPU11aは、経過時間が、「筒内圧1」、「筒内圧2」、「燃圧1」のうちいずれかの許容閾値未満である場合には、例えば、メモリ13に既に記録されている「筒内圧1」、「筒内圧2」、「燃圧1」の変換データを取得する。そして、データ取得処理を終了する。自CPU11aは、この後、取得した変換データを用いて利用処理を実行することが可能となる。 (3) When the elapsed time is less than any of the allowable thresholds of "in-cylinder pressure 1", "in-cylinder pressure 2", and "fuel pressure 1", the own CPU 11a is already recorded in the memory 13, for example. The conversion data of "in-cylinder pressure 1", "in-cylinder pressure 2", and "fuel pressure 1" is acquired. Then, the data acquisition process is terminated. After that, the own CPU 11a can execute the utilization process using the acquired conversion data.

[2−4.効果]
以上詳述した第2実施形態によれば、以下の効果を奏する。
(2a)複数のCPU11a、11bのそれぞれは、複数種類の変換データを用いるように構成されている。これらの変換データのそれぞれには、変換データが生成されてから用いられるまでに許容される時間である許容時間が予め設定されている。複数のCPU11a、11bのそれぞれは、S130では、変換データ毎に設定された許容時間を許容閾値として用いる。なお、本実施形態では、CPU11aにおいては、変換データが燃圧である場合はこの限りではない。
[2-4. effect]
According to the second embodiment described in detail above, the following effects are obtained.
(2a) Each of the plurality of CPUs 11a and 11b is configured to use a plurality of types of conversion data. For each of these conversion data, an allowable time, which is an allowable time from the generation of the conversion data to the use, is preset. In S130, each of the plurality of CPUs 11a and 11b uses the permissible time set for each conversion data as the permissible threshold value. In the present embodiment, this does not apply to the CPU 11a when the conversion data is the fuel pressure.

これによれば、複数のCPU11a、11bのそれぞれは、経過時間が許容閾値以上となった変換データが有る場合にのみ変換データを生成するので、例えば最も短い許容時間を許容閾値とする場合よりも、AD変換器14にAD変換処理を行わせる頻度を低減させることができる。この結果、AD変換器14にてAD変換の要求が重なる状況を低減させることができる。結果として、ECU3において処理を高速化することができる。 According to this, since each of the plurality of CPUs 11a and 11b generates the conversion data only when there is the conversion data whose elapsed time is equal to or longer than the allowable threshold value, for example, compared to the case where the shortest allowable time is set as the allowable threshold value. , The frequency of causing the AD converter 14 to perform the AD conversion process can be reduced. As a result, it is possible to reduce the situation where the AD converter 14 has overlapping AD conversion requests. As a result, the processing speed can be increased in the ECU 3.

(2b)ECU3は、車両に搭載される。自CPU11aによって、許容時間は、複数種類の変換データのうち少なくとも一部の変換データについて設定されうる。少なくとも自CPU11aは、S124では、車両におけるエンジンの回転数を取得する。S125では、エンジンの回転数が、予め定められたエンジンの回転数の大きさである回転閾値以上であるか否か、を判断する。S126では、エンジンの回転数が回転閾値以上である場合は、予め定められた時間の長さである第1の設定時間を許容時間として設定する。S127では、エンジンの回転数が回転閾値未満であるときは、第1の設定時間よりも長い第2の設定時間を許容時間として設定する。 (2b) The ECU 3 is mounted on the vehicle. The permissible time can be set for at least a part of the conversion data among the plurality of types of conversion data by the own CPU 11a. At least the own CPU 11a acquires the engine speed in the vehicle in S124. In S125, it is determined whether or not the engine speed is equal to or greater than a rotation threshold value which is a predetermined magnitude of the engine speed. In S126, when the engine speed is equal to or higher than the rotation threshold value, the first set time, which is a predetermined length of time, is set as the allowable time. In S127, when the engine speed is less than the rotation threshold value, a second set time longer than the first set time is set as the allowable time.

例えばアイドル状態のようにエンジン回転数が低いときは、例えば燃圧といった特定の変換データにおいては、変化が生じ難いと考えられる。つまり、頻繁に更新する必要が無いと考えられる。これによれば、エンジン回転数が回転閾値未満である場合は、第1の設定時間よりも長い第2の設定時間を許容時間として用いるので、AD変換器14にAD変換処理を行わせる頻度を低減することができる。この結果、AD変換器14にてAD変換の要求が重なる状況を低減させることができ、ECU3において処理を高速化することができる。 For example, when the engine speed is low as in the idle state, it is considered that changes are unlikely to occur in specific conversion data such as fuel pressure. In other words, it is considered unnecessary to update frequently. According to this, when the engine speed is less than the rotation threshold value, the second set time, which is longer than the first set time, is used as the allowable time. Therefore, the frequency of causing the AD converter 14 to perform the AD conversion process is increased. It can be reduced. As a result, it is possible to reduce the situation where the AD converter 14 overlaps the AD conversion requests, and the processing speed can be increased in the ECU 3.

[2−5.変形例]
他のCPU11bは、自CPU11aと同様に、特定データについては自車両の作動状態に応じて許容時間を変更するように構成されてもよい。つまり、他のCPU11bは、図7に示すデータ取得処理を実行するように構成されていてもよい。ここで、例えば他のCPU11bは、クランク角度の変換データを特定データとして、該クランク角度についての許容時間を自車両の作動状態に応じて変更するように構成されてもよい。作動状態は任意の状態に設定されうる。
[2-5. Modification example]
Like the own CPU 11a, the other CPU 11b may be configured to change the permissible time for specific data according to the operating state of the own vehicle. That is, the other CPU 11b may be configured to execute the data acquisition process shown in FIG. 7. Here, for example, another CPU 11b may be configured to use the conversion data of the crank angle as specific data and change the permissible time for the crank angle according to the operating state of the own vehicle. The operating state can be set to any state.

[3.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は上述の実施形態に限定されることなく、種々変形して実施することができる。
[3. Other embodiments]
Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments, and can be implemented in various modifications.

(3a)上記実施形態では、ECU3において、他のCPU11bは、自CPU11aと同様のデータ取得処理を行うように構成されていた。ただし、他のCPU11bの構成は、これに限定されるものではない。 (3a) In the above embodiment, in the ECU 3, the other CPU 11b is configured to perform the same data acquisition process as the own CPU 11a. However, the configuration of the other CPU 11b is not limited to this.

他のCPU11bは、S170にて実行する変換指示処理において、他のCPU11bに加え自CPU11aで用いられる変換データを生成させる構成を備えていなくてもよい。すなわち、他のCPU11bは、変換指示処理において、他のCPU11bで用いられる変換データのみをAD変換器14に生成させるように構成されうる。 The other CPU 11b may not have a configuration for generating conversion data used by the own CPU 11a in addition to the other CPU 11b in the conversion instruction process executed in S170. That is, the other CPU 11b may be configured to cause the AD converter 14 to generate only the conversion data used by the other CPU 11b in the conversion instruction processing.

(3b)自CPU11a及び他のCPU11bのそれぞれは、経過時間が許容値以上である場合に変換指示処理を実行させる構成を備えていなくてもよい。例えば、自CPU11a及び他のCPU11bのそれぞれは、データ取得処理を実行する毎に変換指示処理を実行するように構成されうる。 (3b) Each of the own CPU 11a and the other CPU 11b may not have a configuration for executing the conversion instruction process when the elapsed time is equal to or longer than the permissible value. For example, each of the own CPU 11a and the other CPU 11b may be configured to execute the conversion instruction process each time the data acquisition process is executed.

(3c)ECU3は、メモリ13に変換終了時刻を記録させる構成を備えていなくてもよい。ECU3は、例えば、AD変換器14が備えるデータバッファ47に変換終了時刻を記録させるように構成されうる。 (3c) The ECU 3 may not have a configuration for recording the conversion end time in the memory 13. The ECU 3 may be configured to record the conversion end time in the data buffer 47 included in the AD converter 14, for example.

(3d)自CPU11a及び他のCPU11bのそれぞれは、複数種類の変換データを用いるものでなくてもよい。自CPU11a及び他のCPU11bのそれぞれにおいては、少なくとも一つの変換データが用いられうる。 (3d) Each of the own CPU 11a and the other CPU 11b does not have to use a plurality of types of conversion data. At least one conversion data can be used in each of the own CPU 11a and the other CPU 11b.

(3e)上記実施形態では、CPU11a、CPU11bのそれぞれにおいて、用いられる複数の変換データの全てについて許容時間が設定されていたが、これに限定されるものではない。例えば、許容時間は、該複数の変換データのうちの一部であって、より頻繁に更新が必要とされる変換データについてのみ設定されうる。 (3e) In the above embodiment, the permissible time is set for all of the plurality of conversion data used in each of the CPU 11a and the CPU 11b, but the present invention is not limited to this. For example, the permissible time can be set only for the conversion data that is a part of the plurality of conversion data and needs to be updated more frequently.

また例えば、図2の例において、「筒内圧1」〜「筒内圧4」については2500μsecを許容時間とし、「燃圧1」〜「燃圧4」については4000μsecを許容時間とする、といったように、複数の変換データは「筒内圧グループ」、「燃圧グループ」といった複数のグループに分類されてもよく、該グループ毎に許容時間が設定されうる。 Further, for example, in the example of FIG. 2, 2500 μsec is set as the allowable time for “in-cylinder pressure 1” to “in-cylinder pressure 4”, and 4000 μsec is set as the allowable time for “fuel pressure 1” to “fuel pressure 4”. The plurality of conversion data may be classified into a plurality of groups such as "in-cylinder pressure group" and "fuel pressure group", and an allowable time may be set for each group.

(3f)上記実施形態では、CPU11a、CPU11bのそれぞれにおいて、用いられる複数の変換データのそれぞれについて設定されている許容時間のうち、最も短い許容時間を許容閾値として用いていた。ただし、これに限定されるものではない。例えば、最も短い許容時間以下の値が許容閾値として用いられうる。 (3f) In the above embodiment, the shortest permissible time among the permissible times set for each of the plurality of conversion data used in each of the CPU 11a and the CPU 11b is used as the permissible threshold value. However, it is not limited to this. For example, a value less than or equal to the shortest permissible time can be used as the permissible threshold.

(3g)上記実施形態では、変換データ毎に設定された許容時間を許容閾値として用いたが、これに限定されるものではない。例えば、許容時間以下の値が許容閾値として用いられうる。 (3g) In the above embodiment, the permissible time set for each conversion data is used as the permissible threshold value, but the permissible time is not limited to this. For example, a value less than or equal to the permissible time can be used as the permissible threshold.

(3h)上記実施形態ではエンジン回転数が回転閾値以上であるか否かに基づいて燃圧の変換データについて許容時間を変更していた。ただし、これに限定されるものではない。 (3h) In the above embodiment, the permissible time for the fuel pressure conversion data is changed based on whether or not the engine speed is equal to or higher than the rotation threshold. However, it is not limited to this.

回転閾値が複数に設定され、燃圧の変換データに対する許容時間がエンジン回転数の大きさに応じて複数種類に設定されてもよい。
また、自車両の作動条件に応じた許容時間は、燃圧に限定されることなく、任意の変換データに対して設定されうる。また、自車両の作動条件は、エンジン回転数に限定されることなく、任意に設定されうる。
A plurality of rotation threshold values may be set, and a plurality of types of allowable times for fuel pressure conversion data may be set according to the magnitude of the engine speed.
Further, the permissible time according to the operating conditions of the own vehicle can be set for arbitrary conversion data without being limited to the fuel pressure. Further, the operating conditions of the own vehicle can be arbitrarily set without being limited to the engine speed.

(3i)上記実施形態では、筒内圧、燃圧、クランク角度といったデジタルデータが変換データとして用いられていた。但し、これに限定されるものではない。任意のデジタルデータが変換データとして用いられうる。また、許容時間、許容閾値、変換データ、変換終了時刻等の値は説明に用いた値に限定されるものではなく任意の値が用いられうる。 (3i) In the above embodiment, digital data such as in-cylinder pressure, fuel pressure, and crank angle are used as conversion data. However, the present invention is not limited to this. Any digital data can be used as the conversion data. Further, the values such as the permissible time, the permissible threshold value, the conversion data, and the conversion end time are not limited to the values used in the description, and any value can be used.

(3j)上記実施形態では、変換指示に基づいて変換データの全てが生成された時点での時刻が変換終了時刻としてメモリ13に記録されていたが、これに限定されるものではない。自CPU11a及び他のCPU11bのそれぞれは、AD変換器14にて変換データが生成される毎に、そのときの時刻と生成された変換データとを対応付けてメモリ13に記録するよう構成されてもよい。また、これに基づいて、変換データ毎の経過時間が取得されてもよい。また、変換データ毎に経過時間に基づいて、メモリ13に記録されている変換データをそのまま取得するか否か、変換指示処理を実行するか否か、が判断されてもよい。 (3j) In the above embodiment, the time at the time when all the conversion data is generated based on the conversion instruction is recorded in the memory 13 as the conversion end time, but the present invention is not limited to this. Even if each of the own CPU 11a and the other CPU 11b is configured to record in the memory 13 in association with the time at that time and the generated conversion data each time the conversion data is generated by the AD converter 14. Good. Further, based on this, the elapsed time for each conversion data may be acquired. Further, it may be determined whether or not the conversion data recorded in the memory 13 is acquired as it is and whether or not the conversion instruction processing is executed based on the elapsed time for each conversion data.

(3k)上記実施形態では、CPU11がAD変換器14のデータバッファ47から変換データを読み出してメモリ13に書き込んでいたが、これに限定されるものではない。AD変換器14が、データバッファ47からメモリ13への変換データの書き込みを実行してもよい。 (3k) In the above embodiment, the CPU 11 reads the converted data from the data buffer 47 of the AD converter 14 and writes the converted data to the memory 13, but the present invention is not limited to this. The AD converter 14 may write the converted data from the data buffer 47 to the memory 13.

(3l)上記実施形態では、ECU3は自CPU11a及び他のCPU11bを備えていたがこれに限定されるものではない。ECU3は、自CPU11aと同様に構成された一又は複数のCPU、及び、他のCPU11bと同様に構成された一又は複数のCPUを、備えうる。すなわち、ECU3は、自CPU11aと同様に構成された一又は複数のCPU、または、他のCPU11bと同様に構成された一又は複数のCPUを、更に備えていてもよい。 (3l) In the above embodiment, the ECU 3 includes its own CPU 11a and another CPU 11b, but the ECU 3 is not limited thereto. The ECU 3 may include one or a plurality of CPUs configured in the same manner as the own CPU 11a, and one or a plurality of CPUs configured in the same manner as the other CPU 11b. That is, the ECU 3 may further include one or more CPUs configured in the same manner as the own CPU 11a, or one or more CPUs configured in the same manner as the other CPU 11b.

(3m)上記実施形態における1つの構成要素が有する複数の機能を、複数の構成要素によって実現したり、1つの構成要素が有する1つの機能を、複数の構成要素によって実現したりしてもよい。また、複数の構成要素が有する複数の機能を、1つの構成要素によって実現したり、複数の構成要素によって実現される1つの機能を、1つの構成要素によって実現したりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。なお、特許請求の範囲に記載した文言から特定される技術思想に含まれるあらゆる態様が本開示の実施形態である。 (3m) A plurality of functions possessed by one component in the above embodiment may be realized by a plurality of components, or one function possessed by one component may be realized by a plurality of components. .. Further, a plurality of functions possessed by the plurality of components may be realized by one component, or one function realized by the plurality of components may be realized by one component. Further, a part of the configuration of the above embodiment may be omitted. In addition, at least a part of the configuration of the above embodiment may be added or replaced with the configuration of the other above embodiment. It should be noted that all aspects included in the technical idea specified from the wording described in the claims are embodiments of the present disclosure.

(3n)上述したCPU11、ECU3の他、CPU11、ECU3を機能させるためのプログラム、このプログラムを記録した半導体メモリ等の非遷移的実態的記録媒体、変換データ取得方法など、種々の形態で本開示を実現することもできる。 (3n) In addition to the above-mentioned CPU 11 and ECU 3, the present disclosure is made in various forms such as a program for operating the CPU 11 and ECU 3, a non-transitional actual recording medium such as a semiconductor memory in which this program is recorded, and a conversion data acquisition method. Can also be realized.

[4.実施形態と特許請求の範囲との対応]
なお、ECU3が電子制御装置に相当する。また、CPU11が、時間取得部、時間判断部、回転取得部、回転判断部、閾値設定部、実行判断部、変換指示部、データ取得部、に相当する。また、S110が時間取得部としての処理に相当し、S124が回転取得部としての処理に相当し、S125が回転判断部としての処理に相当し、S126、S127が閾値設定部としての処理に相当する。また、S130が時間判断部としての処理に相当し、S140が実行判断部としての処理に相当し、S170が変換指示部としての処理に相当し、S190がデータ取得部としての処理に相当する。
[4. Correspondence between the embodiment and the claims]
The ECU 3 corresponds to an electronic control device. Further, the CPU 11 corresponds to a time acquisition unit, a time determination unit, a rotation acquisition unit, a rotation determination unit, a threshold value setting unit, an execution determination unit, a conversion instruction unit, and a data acquisition unit. Further, S110 corresponds to the processing as the time acquisition unit, S124 corresponds to the processing as the rotation acquisition unit, S125 corresponds to the processing as the rotation determination unit, and S126 and S127 correspond to the processing as the threshold value setting unit. To do. Further, S130 corresponds to the processing as the time determination unit, S140 corresponds to the processing as the execution determination unit, S170 corresponds to the processing as the conversion instruction unit, and S190 corresponds to the processing as the data acquisition unit.

3 ECU、11a、11b CPU、13 メモリ、14 AD変換器。 3 ECU, 11a, 11b CPU, 13 memory, 14 AD converter.

Claims (8)

1つのAD変換器を共用する複数のコアを備え、
複数の前記コアのうち少なくとも1つである指示コアは、
変換指示に従ってAD変換処理により変換データを生成する前記AD変換器に、前記指示コア自らが用いる前記変換データに加え複数の前記コアのうち残りの前記コアが用いる前記変換データを生成させる前記変換指示を出力し、前記変換指示に従って生成された前記指示コア自らが用いる変換データと前記残りのコアが用いる変換データとを含む両方の変換データをメモリに記憶させる変換指示部(S170)と、
前記変換指示に従って前記AD変換器による前記AD変換処理が完了してから経過した時間である経過時間を取得する時間取得部(S110)と、
前記経過時間が予め定められた時間の長さである許容閾値以上であるか否かを判断する時間判断部(S130)と、
前記メモリから、前記指示コア自らが用いる前記変換データを取得するデータ取得部(S190)と、
を備え、
前記変換指示部は、前記指示コア自らが用いる前記変換データについて、前記経過時間が前記許容閾値以上である場合に、前記AD変換器に、前記両方の変換データを新たに生成させる前記変換指示を出力し、前記変換指示に従って生成された前記両方の変換データを前記メモリに記憶させ、
前記データ取得部は、前記指示コア自らが用いる前記変換データについて、前記経過時間が前記許容閾値以上である場合に、前記メモリから、前記変換指示に従って新たに生成されて記憶された前記指示コア自らが用いる前記変換データを取得する
電子制御装置(3)。
Equipped with multiple cores that share one AD converter,
The indicator core, which is at least one of the plurality of cores,
The conversion instruction to cause the AD converter, which generates conversion data by AD conversion processing according to the conversion instruction, to generate the conversion data used by the remaining cores among the plurality of the cores in addition to the conversion data used by the instruction core itself. Is output, and a conversion instruction unit (S170) that stores both conversion data including the conversion data used by the instruction core itself and the conversion data used by the remaining cores generated according to the conversion instruction in the memory, and
A time acquisition unit (S110) for acquiring an elapsed time, which is the time elapsed since the AD conversion process by the AD converter was completed according to the conversion instruction.
A time determination unit (S130) for determining whether or not the elapsed time is equal to or greater than an allowable threshold value which is a predetermined length of time, and
A data acquisition unit (S190) that acquires the conversion data used by the instruction core itself from the memory.
With
When the elapsed time is equal to or greater than the permissible threshold value for the conversion data used by the instruction core itself, the conversion instruction unit causes the AD converter to newly generate both conversion data. Output and store both of the conversion data generated according to the conversion instruction in the memory.
The data acquisition unit itself generates and stores the conversion data used by the instruction core itself from the memory according to the conversion instruction when the elapsed time is equal to or greater than the allowable threshold value. An electronic control device (3) that acquires the conversion data used by the user.
請求項1に記載の電子制御装置であって、
前記変換指示部は、前記指示コア自らが用いる前記変換データについて、前記経過時間が前記許容閾値未満である場合に、前記AD変換器に、前記両方の変換データを新たに生成させる前記変換指示を出力せず、
前記データ取得部は、前記指示コア自らが用いる前記変換データについて、前記経過時間が前記許容閾値未満である場合に、前記メモリから、既に記憶されている前記指示コア自らが用いる前記変換データを取得する
電子制御装置。
The electronic control device according to claim 1.
The conversion instruction unit gives the conversion instruction to the AD converter to newly generate both of the conversion data when the elapsed time is less than the allowable threshold value for the conversion data used by the instruction core itself. Without output
The data acquisition unit acquires the conversion data used by the instruction core itself, which is already stored, from the memory when the elapsed time is less than the allowable threshold value for the conversion data used by the instruction core itself. Electronic control device.
1つのAD変換器を共用する複数のコアを備え、
複数の前記コアのうち少なくとも1つである指示コアは、
変換指示に従ってAD変換処理により変換データを生成する前記AD変換器に、前記指示コア自らが用いる前記変換データに加え複数の前記コアのうち残りの前記コアが用いる前記変換データを生成させる前記変換指示を出力し、前記変換指示に従って生成された前記指示コア自らが用いる変換データと前記残りのコアが用いる変換データとを含む両方の変換データをメモリに記憶させる変換指示部(S170)と、
前記変換指示に従って前記AD変換器による前記AD変換処理が完了してから経過した時間である経過時間を取得する時間取得部(S110)と、
前記経過時間が予め定められた時間の長さである許容閾値以上であるか否かを判断する時間判断部(S130)と、
前記メモリから、前記指示コア自らが用いる前記変換データを取得するデータ取得部(S190)と、
を備え、
前記変換指示部は、前記指示コア自らが用いる前記変換データについて、前記経過時間が前記許容閾値未満である場合に、前記AD変換器に、前記両方の変換データを新たに生成させる前記変換指示を出力せず、
前記データ取得部は、前記指示コア自らが用いる前記変換データについて、前記経過時間が前記許容閾値未満である場合に、前記メモリから、既に記憶されている前記指示コア自らが用いる前記変換データを取得する
電子制御装置(3)。
Equipped with multiple cores that share one AD converter,
The indicator core, which is at least one of the plurality of cores,
The conversion instruction to cause the AD converter, which generates conversion data by AD conversion processing according to the conversion instruction, to generate the conversion data used by the remaining cores among the plurality of the cores in addition to the conversion data used by the instruction core itself. Is output, and a conversion instruction unit (S170) that stores both conversion data including the conversion data used by the instruction core itself and the conversion data used by the remaining cores generated according to the conversion instruction in the memory, and
A time acquisition unit (S110) for acquiring an elapsed time, which is the time elapsed since the AD conversion process by the AD converter was completed according to the conversion instruction.
A time determination unit (S130) for determining whether or not the elapsed time is equal to or greater than an allowable threshold value which is a predetermined length of time, and
A data acquisition unit (S190) that acquires the conversion data used by the instruction core itself from the memory.
With
The conversion instruction unit gives the conversion instruction to the AD converter to newly generate both of the conversion data when the elapsed time is less than the allowable threshold value for the conversion data used by the instruction core itself. Without output
The data acquisition unit acquires the conversion data used by the instruction core itself, which is already stored, from the memory when the elapsed time is less than the allowable threshold value for the conversion data used by the instruction core itself. Electronic control device (3).
請求項1から請求項3のいずれか一項に記載の電子制御装置であって、
前記指示コア自らが用いる前記変換データは複数種類であり、複数種類の前記変換データのうちの少なくとも一部には、前記変換データが生成されてから用いられるまでの許容される時間である許容時間が予め設定されており、
前記時間判断部は、前記指示コア自らが用いる前記変換データについて設定されている前記許容時間のうち最も短い許容時間を前記許容閾値として用いる
電子制御装置。
The electronic control device according to any one of claims 1 to 3.
The conversion data used by the instruction core itself is of a plurality of types, and at least a part of the plurality of types of conversion data is an allowable time from the generation of the conversion data to the use. Is preset,
The time determination unit is an electronic control device that uses the shortest permissible time among the permissible times set for the conversion data used by the instruction core itself as the permissible threshold value.
請求項1から請求項3のいずれか一項に記載の電子制御装置であって、
前記指示コア自らが用いる前記変換データは複数種類であり、複数種類の前記変換データのうちの少なくとも一部には、前記変換データが生成されてから用いられるまでの許容される時間である許容時間が予め設定されており、
前記時間判断部は、前記指示コア自らが用いる前記変換データ毎に設定された前記許容時間を前記許容閾値として用いる
電子制御装置。
The electronic control device according to any one of claims 1 to 3.
The conversion data used by the instruction core itself is of a plurality of types, and at least a part of the plurality of types of conversion data is an allowable time from the generation of the conversion data to the use. Is preset,
The time determination unit is an electronic control device that uses the permissible time set for each of the conversion data used by the instruction core itself as the permissible threshold value.
請求項1から請求項5のいずれか一項に記載の電子制御装置であって、
当該電子制御装置は、車両に搭載され、
前記指示コアは、
前記指示コア自らが用いる前記変換データのうちの少なくとも1つである特定データについて、前記車両の作動状態に応じて前記許容時間を変更する閾値設定部(S126、S127)、
を備える
電子制御装置。
The electronic control device according to any one of claims 1 to 5.
The electronic control device is mounted on the vehicle and
The indicator core
Threshold setting units (S126, S127) that change the permissible time according to the operating state of the vehicle for specific data that is at least one of the conversion data used by the instruction core itself.
Electronic control device equipped with.
請求項6に記載の電子制御装置であって、
前記指示コアは、
前記車両におけるエンジンの回転数を前記車両の前記作動状態として取得する回転取得部(S124)と、
前記エンジンの回転数が、予め定められた前記エンジンの回転数の大きさである回転閾値以上であるか否か、を判断する回転判断部(S125)と、
を備え、
前記閾値設定部は、前記エンジンの回転数が前記回転閾値以上である場合は、予め定められた時間の長さである第1の設定時間を前記特定データの前記許容時間として設定し、前記エンジンの回転数が前記回転閾値未満であるときは、前記第1の設定時間よりも長い第2の設定時間を前記特定データの前記許容時間として設定する
電子制御装置。
The electronic control device according to claim 6.
The indicator core
A rotation acquisition unit (S124) that acquires the rotation speed of the engine in the vehicle as the operating state of the vehicle, and
A rotation determination unit (S125) for determining whether or not the rotation speed of the engine is equal to or greater than a rotation threshold value which is a predetermined magnitude of the rotation speed of the engine.
With
When the rotation speed of the engine is equal to or higher than the rotation threshold, the threshold setting unit sets a first set time, which is a predetermined length of time, as the allowable time of the specific data, and sets the engine. An electronic control device that sets a second set time, which is longer than the first set time, as the permissible time of the specific data when the rotation speed is less than the rotation threshold.
請求項1から請求項7のいずれか一項に記載の電子制御装置であって、
複数の前記指示コアを備え、
前記指示コアは、
前記AD変換器が前記AD変換処理を行っているか否か判断する実行判断部(S140)
を更に備え、
前記データ取得部は、前記変換指示部が前記AD変換器に前記AD変換処理を行わせようとしたときに前記AD変換器が前記AD変換処理を行っている場合は、前記AD変換器による前記AD変換処理が完了した後に、前記メモリから前記メモリに記録された前記指示コア自らが用いる前記変換データを取得する
電子制御装置。
The electronic control device according to any one of claims 1 to 7.
Equipped with the plurality of the indicating core
The indicator core
Execution determination unit (S140) for determining whether or not the AD converter is performing the AD conversion process.
With more
When the conversion instruction unit tries to cause the AD converter to perform the AD conversion process, the data acquisition unit may use the AD converter if the AD converter is performing the AD conversion process. An electronic control device that acquires the conversion data used by the instruction core itself recorded in the memory from the memory after the AD conversion process is completed.
JP2020170130A 2016-12-13 2020-10-07 Electronic control device Active JP6981512B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020170130A JP6981512B2 (en) 2016-12-13 2020-10-07 Electronic control device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016241151A JP2018096273A (en) 2016-12-13 2016-12-13 Electronic controller
JP2020170130A JP6981512B2 (en) 2016-12-13 2020-10-07 Electronic control device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016241151A Division JP2018096273A (en) 2016-12-13 2016-12-13 Electronic controller

Publications (2)

Publication Number Publication Date
JP2021015613A true JP2021015613A (en) 2021-02-12
JP6981512B2 JP6981512B2 (en) 2021-12-15

Family

ID=79190982

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020170130A Active JP6981512B2 (en) 2016-12-13 2020-10-07 Electronic control device

Country Status (1)

Country Link
JP (1) JP6981512B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08182056A (en) * 1994-12-26 1996-07-12 Nippondenso Co Ltd Electronic controller
US20080084344A1 (en) * 2006-10-05 2008-04-10 Joshua Posamentier ADC for simultaneous multiple analog inputs
JP2009199462A (en) * 2008-02-22 2009-09-03 Toyota Motor Corp Multi-core processor and engine control apparatus using same
JP2010146258A (en) * 2008-12-18 2010-07-01 Denso Corp Signal processing device
JP2010251842A (en) * 2009-04-10 2010-11-04 Fujitsu Ten Ltd Controller and control method
JP2011160199A (en) * 2010-02-01 2011-08-18 Denso Corp A/d conversion processing apparatus
JP2011185117A (en) * 2010-03-05 2011-09-22 Toyota Motor Corp Control device for internal combustion engine
JP2012026343A (en) * 2010-07-22 2012-02-09 Denso Corp Fuel temperature detection device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08182056A (en) * 1994-12-26 1996-07-12 Nippondenso Co Ltd Electronic controller
US20080084344A1 (en) * 2006-10-05 2008-04-10 Joshua Posamentier ADC for simultaneous multiple analog inputs
JP2009199462A (en) * 2008-02-22 2009-09-03 Toyota Motor Corp Multi-core processor and engine control apparatus using same
JP2010146258A (en) * 2008-12-18 2010-07-01 Denso Corp Signal processing device
JP2010251842A (en) * 2009-04-10 2010-11-04 Fujitsu Ten Ltd Controller and control method
JP2011160199A (en) * 2010-02-01 2011-08-18 Denso Corp A/d conversion processing apparatus
JP2011185117A (en) * 2010-03-05 2011-09-22 Toyota Motor Corp Control device for internal combustion engine
JP2012026343A (en) * 2010-07-22 2012-02-09 Denso Corp Fuel temperature detection device

Also Published As

Publication number Publication date
JP6981512B2 (en) 2021-12-15

Similar Documents

Publication Publication Date Title
JP3578082B2 (en) Processing execution device and recording medium
JP5829890B2 (en) Semiconductor data processing apparatus, time trigger communication system, and communication system
JP2006195714A (en) Resource management device
JP4325685B2 (en) MEMORY CONTROLLER, MEMORY MODULE, MEMORY CONTROL METHOD, AND COMPUTER FOR CONTROLLING MEMORY
JP4241462B2 (en) Control unit and microcomputer
JP2011153596A (en) Internal combustion engine control device
JP2014191655A (en) Multiprocessor, electronic control device, and program
JP6981512B2 (en) Electronic control device
JP4419943B2 (en) Data transfer device between CPUs
JP6519515B2 (en) Microcomputer
JP4957283B2 (en) Memory controller for controlling memory and memory control method.
US20050066093A1 (en) Real-time processor system and control method
JP2018096273A (en) Electronic controller
JP7435182B2 (en) electronic control unit
JP2004252574A (en) Inter-task communication method, program, recording medium and electronic equipment
JP7263746B2 (en) Information processing equipment
JP7070108B2 (en) Electronic control device equipped with a multi-core microcomputer
JP2014078078A (en) Electronic control device
JP7318439B2 (en) electronic controller
JP2020135214A (en) Task management apparatus
JP6729430B2 (en) Electronic control unit
JP2021060006A (en) Fuel injection control device
WO2010109609A1 (en) Processing device and vehicle engine control device
JP2001256063A (en) Controller and engine controller
JP2019028748A (en) Electronic control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201007

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210818

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210907

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211001

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20211019

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211101

R151 Written notification of patent or utility model registration

Ref document number: 6981512

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151