JP2022088860A - Controller for internal combustion engine - Google Patents

Controller for internal combustion engine Download PDF

Info

Publication number
JP2022088860A
JP2022088860A JP2020200963A JP2020200963A JP2022088860A JP 2022088860 A JP2022088860 A JP 2022088860A JP 2020200963 A JP2020200963 A JP 2020200963A JP 2020200963 A JP2020200963 A JP 2020200963A JP 2022088860 A JP2022088860 A JP 2022088860A
Authority
JP
Japan
Prior art keywords
rotation
internal combustion
combustion engine
data
control device
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
JP2020200963A
Other languages
Japanese (ja)
Other versions
JP7449219B2 (en
Inventor
寿宜 近藤
Hisayoshi Kondo
暁仁 窪田
Akihito Kubota
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Astemo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Astemo Ltd filed Critical Hitachi Astemo Ltd
Priority to JP2020200963A priority Critical patent/JP7449219B2/en
Publication of JP2022088860A publication Critical patent/JP2022088860A/en
Application granted granted Critical
Publication of JP7449219B2 publication Critical patent/JP7449219B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

To lighten an operation load of execution of time synchronization processing and rotation synchronization processing on a controller for an internal combustion engine.SOLUTION: An electronic controller 240 for an internal combustion engine comprises a global RAM 240C that a CPU 240A, an input/output circuit 240D and a communication circuit 240E can access, and a local RAM 240H that only the CPU 240A can access, and executes time synchronization processing synchronized with time and rotation synchronization processing synchronized with rotation of an internal combustion engine. Here, the local RAM 240H has characteristics of a high access speed, but a small storage region as compared with the global RAM 240C. At least part of data used in the rotation synchronization processing is statically allocated to the local RAM 240H.SELECTED DRAWING: Figure 3

Description

本発明は、内燃機関の制御装置に関する。 The present invention relates to a control device for an internal combustion engine.

自動車などの車両に搭載された内燃機関を制御する場合、故障診断など所定時間ごとに実行する時間同期処理(定常処理)に加えて、特開2013-142306号公報(特許文献1)に記載されるように、エンジン回転数に比例するパルス信号に同期して燃料噴射制御や点火制御などの回転同期処理を実行する必要がある。 When controlling an internal combustion engine mounted on a vehicle such as an automobile, it is described in Japanese Patent Application Laid-Open No. 2013-142306 (Patent Document 1) in addition to a time synchronization process (steady process) executed at predetermined time intervals such as failure diagnosis. Therefore, it is necessary to execute rotation synchronization processing such as fuel injection control and ignition control in synchronization with the pulse signal proportional to the engine speed.

特開2013-142306号公報Japanese Unexamined Patent Publication No. 2013-142306

ところで、内燃機関の制御では、例えば、応答性やドライバビリティなどを担保するため、所定の制御周期(制御サイクル)内に時間同期処理及び回転同期処理が完了しなければならない。しかしながら、回転同期処理の実行回数はエンジン回転数に比例して増加するため、エンジン回転数が高回転の領域では回転同期処理を実行する演算負荷が増加してしまう。エンジン回転数が高回転の領域において、制御周期内に想定され得る時間同期処理及び回転同期処理が完了するように制御周期を設定すると、エンジン回転数が低回転の領域において、時間同期処理を実行する時間間隔が長くなって所要の機能を発揮できなくなる可能性がある。 By the way, in the control of an internal combustion engine, for example, in order to ensure responsiveness, drivability, etc., the time synchronization process and the rotation synchronization process must be completed within a predetermined control cycle (control cycle). However, since the number of rotation synchronization processes executed increases in proportion to the engine speed, the computational load for executing the rotation synchronization process increases in the region where the engine speed is high. If the control cycle is set so that the time synchronization processing and the rotation synchronization processing that can be expected within the control cycle are completed in the region where the engine speed is high, the time synchronization processing is executed in the region where the engine speed is low. There is a possibility that the required function cannot be achieved due to the long time interval.

そこで、本発明は、時間同期処理及び回転同期処理を実行する演算負荷を低減することができる、内燃機関の制御装置を提供することを目的とする。 Therefore, an object of the present invention is to provide a control device for an internal combustion engine capable of reducing the calculation load for executing the time synchronization process and the rotation synchronization process.

内燃機関の制御装置は、第1の揮発性メモリ、これよりアクセス速度が高速な第2の揮発性メモリを備え、時間に同期した時間同期処理、及び内燃機関の回転に同期した回転同期処理を夫々実行する。そして、回転同期処理において使用されるデータの少なくとも一部が、第2の揮発性メモリに静的に割り当てられている。 The control device of the internal combustion engine includes a first volatile memory and a second volatile memory having a faster access speed, and performs time-synchronized time-synchronized processing and rotation-synchronized processing synchronized with the rotation of the internal combustion engine. Execute each. Then, at least a part of the data used in the rotation synchronization process is statically allocated to the second volatile memory.

本発明によれば、内燃機関の制御装置において、時間同期処理及び回転同期処理を実行する演算負荷を低減することができる。 According to the present invention, it is possible to reduce the calculation load for executing the time synchronization process and the rotation synchronization process in the control device of the internal combustion engine.

車両用エンジンシステムの一例を示す概要図である。It is a schematic diagram which shows an example of the engine system for a vehicle. 可変バルブタイミング機構の詳細を示す斜視図である。It is a perspective view which shows the detail of the variable valve timing mechanism. 電子制御装置の一例を示す概要図である。It is a schematic diagram which shows an example of an electronic control device. エンジン回転数と演算負荷との関連性の説明図である。It is explanatory drawing of the relationship between the engine speed and the calculation load. エンジン回転数と演算負荷との関係を示す図である。It is a figure which shows the relationship between the engine speed and the calculation load. アクセス速度が低速な不揮発性メモリにデータを割り当てた場合の演算負荷の説明図である。It is explanatory drawing of the arithmetic load at the time of allocating data to the non-volatile memory with a slow access speed. アクセス速度が高速な不揮発性メモリにデータを割り当てた場合の演算負荷の説明図である。It is explanatory drawing of the arithmetic load at the time of allocating data to the non-volatile memory with high access speed. アクセス速度が高速な不揮発性メモリにデータを割り当てた場合のエンジン回転数と演算負荷との関係を示す図である。It is a figure which shows the relationship between the engine speed and the calculation load when data is assigned to the non-volatile memory which has a high access speed. ビット長の短いデータをアクセス速度が低速な不揮発性メモリに優先して割り当て、ビット長の長いデータをアクセス速度が高速な不揮発性メモリに優先した割り当てた場合の演算負荷の説明図である。It is explanatory drawing of the arithmetic load in the case where the data with a short bit length is preferentially allocated to the non-volatile memory having a slow access speed, and the data with a long bit length is preferentially allocated to the non-volatile memory with a high access speed. ビット長の短いデータをアクセス速度が高速な不揮発性メモリに優先して割り当て、ビット長の長いデータをアクセス速度が低速な不揮発性メモリに優先した割り当てた場合の演算負荷の説明図である。It is explanatory drawing of the arithmetic load in the case where the data with a short bit length is preferentially allocated to the non-volatile memory having a high access speed, and the data with a long bit length is preferentially allocated to the non-volatile memory having a slow access speed. アクセス速度が高速な不揮発性メモリに優先してデータを割り当てた効果の説明図である。It is explanatory drawing of the effect of allocating data preferentially to a non-volatile memory having a high access speed.

以下、添付された図面を参照し、本発明を実施するための実施形態について詳述する。
図1は、本実施形態に係る内燃機関の制御装置が適用され得る、乗用車、トラック、バス及び建設機械などの車両用エンジンのシステム構成を示している。
Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 shows a system configuration of an engine for a vehicle such as a passenger car, a truck, a bus, and a construction machine to which a control device for an internal combustion engine according to the present embodiment can be applied.

エンジン100(内燃機関)は、例えば、直列4気筒のガソリンエンジンであって、各気筒の燃焼室110に吸気(吸入空気)を導入する吸気ポート120には、燃焼室110を臨む先端開口を開閉する吸気弁130が配設されている。また、エンジン100の上部の所定箇所には、燃焼室110に燃料を直接噴射する筒内噴射式の燃料噴射弁140、及び燃焼室110に存在する燃料と吸気との混合気を着火燃焼させる点火プラグ150が夫々取り付けられている。 The engine 100 (internal combustion engine) is, for example, an in-line 4-cylinder gasoline engine, and the intake port 120 for introducing intake air (intake air) into the combustion chamber 110 of each cylinder opens and closes a tip opening facing the combustion chamber 110. An intake valve 130 is provided. Further, at a predetermined position on the upper part of the engine 100, an in-cylinder injection type fuel injection valve 140 that directly injects fuel into the combustion chamber 110, and an ignition that ignites and burns a mixture of fuel and intake air existing in the combustion chamber 110. Plugs 150 are attached to each.

燃料噴射弁140は、電磁コイルへの通電によって磁気吸引力が発生すると、スプリングによって閉弁方向に付勢されている弁体がリフトして開弁し、先端のノズル噴孔から燃料を燃焼室110内に噴射供給する。燃料噴射弁140には、弁体の開弁時間に比例した燃料が噴射されるように、所定圧力に調圧された燃料が供給されている。なお、燃料噴射弁140としては、筒内噴射式の燃料噴射弁に限らず、吸気ポート120に燃料を噴射するポート噴射式の燃料噴射弁であってもよい。 When a magnetic attraction force is generated by energizing the electromagnetic coil, the fuel injection valve 140 lifts the valve body urged in the valve closing direction by a spring to open the valve, and the fuel is burned from the nozzle injection hole at the tip to the combustion chamber. It is injected and supplied into 110. The fuel injection valve 140 is supplied with fuel regulated to a predetermined pressure so that the fuel is injected in proportion to the valve opening time of the valve body. The fuel injection valve 140 is not limited to the in-cylinder injection type fuel injection valve, and may be a port injection type fuel injection valve that injects fuel into the intake port 120.

燃料噴射弁140から燃焼室110内に噴射された燃料は、エンジン100の上部に取り付けられた点火プラグ150の周囲に濃度の濃い層を形成し、点火プラグ150の火花点火によって着火燃焼される。そして、この燃焼圧力がピストン160をクランクシャフト(図示せず)に向けて押し下げることで、クランクシャフトを回転駆動させる。 The fuel injected from the fuel injection valve 140 into the combustion chamber 110 forms a dense layer around the spark plug 150 attached to the upper part of the engine 100, and is ignited and burned by the spark ignition of the spark plug 150. Then, this combustion pressure pushes down the piston 160 toward the crankshaft (not shown), thereby driving the crankshaft to rotate.

また、燃焼室110から排気を導出する排気ポート170には、燃焼室110を臨む先端開口を開閉する排気弁180が配設されている。そして、排気弁180が開弁すると、排気ポート170と排気弁180との間の隙間を通って、排気が燃焼室110から排出される。燃焼室110から排出された排気に含まれる有害物質(一酸化炭素CO,炭化水素HC及び窒素酸化物NOx)は、図示しない三元触媒によって無害成分に浄化された後、大気中に放出される。 Further, an exhaust valve 180 that opens and closes a tip opening facing the combustion chamber 110 is arranged in the exhaust port 170 that leads out the exhaust from the combustion chamber 110. Then, when the exhaust valve 180 is opened, the exhaust gas is discharged from the combustion chamber 110 through the gap between the exhaust port 170 and the exhaust valve 180. Hazardous substances (carbon monoxide CO, hydrocarbon HC and nitrogen oxide NOx) contained in the exhaust discharged from the combustion chamber 110 are purified into harmless components by a three-way catalyst (not shown) and then released into the atmosphere. ..

吸気弁130を開閉駆動する吸気カムシャフト190の端部には、出力向上、燃費向上及び排気抑制などを目的として、エンジン運転状態に応じてクランクシャフトに対する吸気カムシャフト190の回転位相を変化させることで、吸気弁130のバルブタイミングを変更する可変バルブタイミング機構(VTC)200が取り付けられている。 At the end of the intake camshaft 190 that opens and closes the intake valve 130, the rotation phase of the intake camshaft 190 with respect to the crankshaft is changed according to the engine operating state for the purpose of improving output, improving fuel efficiency, suppressing exhaust, and the like. A variable valve timing mechanism (VTC) 200 that changes the valve timing of the intake valve 130 is attached.

VTC200は、図2に示すように、クランクシャフトの回転駆動力を伝達するカムチェーンが巻き回されるカムスプロケット202と一体化され、減速機が内蔵された電動モータなどのアクチュエータ204により、カムスプロケット202に対して吸気カムシャフト190を相対回転させることで、バルブタイミングを進角又は遅角させる。ここで、図2において符号206で示す部材は、アクチュエータ204に駆動信号を供給するハーネスを接続するためのコネクタである。 As shown in FIG. 2, the VTC 200 is integrated with a cam sprocket 202 around which a cam chain that transmits a rotational driving force of a crankshaft is wound, and a cam sprocket is provided by an actuator 204 such as an electric motor having a built-in speed reducer. By rotating the intake camshaft 190 relative to 202, the valve timing is advanced or retarded. Here, the member indicated by reference numeral 206 in FIG. 2 is a connector for connecting a harness that supplies a drive signal to the actuator 204.

なお、VTC200としては、図2に示す構成に限らず、電動モータ、油圧モータなどの各種アクチュエータによりバルブタイミングを変更可能であれば、如何なる構成をなしていてもよい。また、VTC200は、吸気カムシャフト190に限らず、排気弁180を開閉駆動する排気カムシャフト210、又は吸気カムシャフト190及び排気カムシャフト210の両方に備え付けられていてもよい。 The VTC 200 is not limited to the configuration shown in FIG. 2, and may have any configuration as long as the valve timing can be changed by various actuators such as an electric motor and a hydraulic motor. Further, the VTC 200 is not limited to the intake camshaft 190, and may be provided on both the exhaust camshaft 210 that opens and closes the exhaust valve 180, or both the intake camshaft 190 and the exhaust camshaft 210.

エンジン100の制御系として、エンジン100の所定箇所には、クランクシャフトの基準位置(例えば、上死点位置)からの回転角度を表すパルス信号を含んだクランク角信号を出力するクランク角センサ220、並びに各気筒を判別するパルス信号を含んだカム角信号を出力するカム角センサ230が夫々取り付けられている。ここで、クランク角センサ220は、クランクシャフトと一体的に回転するプレートPTの突起(上死点位置では欠歯している)を検知して、所定回転角度ごとにパルス信号を出力する。 As a control system for the engine 100, a crank angle sensor 220 that outputs a crank angle signal including a pulse signal indicating a rotation angle from a reference position (for example, a top dead point position) of a crankshaft at a predetermined position of the engine 100. Further, a cam angle sensor 230 that outputs a cam angle signal including a pulse signal for discriminating each cylinder is attached. Here, the crank angle sensor 220 detects a protrusion of the plate PT that rotates integrally with the crankshaft (the tooth is missing at the top dead center position), and outputs a pulse signal at each predetermined rotation angle.

そして、クランク角センサ220のクランク角信号、及びカム角センサ230のカム角信号は、エンジン100を制御する電子制御装置240に夫々入力されている。なお、クランク角センサ220及びカム角センサ230が、回転センサの一例として挙げられ、電子制御装置240が、内燃機関の制御装置の一例として挙げられる。 The crank angle signal of the crank angle sensor 220 and the cam angle signal of the cam angle sensor 230 are input to the electronic control device 240 that controls the engine 100, respectively. The crank angle sensor 220 and the cam angle sensor 230 are mentioned as an example of the rotation sensor, and the electronic control device 240 is mentioned as an example of the control device of the internal combustion engine.

電子制御装置240は、図3に示すように、CPU(Central Processing Unit)240Aと、ROM(Read Only Memory)240Bと、グローバルRAM(Random Access Memory)240Cと、入出力回路240Dと、通信回路240Eと、これらを相互通信可能に接続する内部バス240Fと、を備えている。また、電子制御装置240は、CPU240Aに対してチャネル240Gにより直接接続されるローカルRAM240Hを更に備えている。なお、グローバルRAM240Cが、第1の揮発性メモリの一例として挙げられ、ローカルRAM240Hが、第2の揮発性メモリの一例として挙げられる。 As shown in FIG. 3, the electronic control device 240 includes a CPU (Central Processing Unit) 240A, a ROM (Read Only Memory) 240B, a global RAM (Random Access Memory) 240C, an input / output circuit 240D, and a communication circuit 240E. And an internal bus 240F that connects them so that they can communicate with each other. Further, the electronic control device 240 further includes a local RAM 240H which is directly connected to the CPU 240A by the channel 240G. The global RAM 240C is mentioned as an example of the first volatile memory, and the local RAM 240H is mentioned as an example of the second volatile memory.

CPU240Aは、アプリケーションプログラムに記述された命令セット(データの転送、演算、加工、制御、管理など)を実行するハードウエアであって、演算装置、命令やデータを格納するレジスタ、周辺回路などから構成されている。ROM240Bは、例えば、電源供給を遮断してもデータを保持可能なフラッシュROMやEEPROM(Electrically Erasable Programmable Read Only Memory)などの不揮発性メモリからなり、本実施形態を実装するアプリケーションプログラム(コンピュータプログラム)、学習値、故障情報などを保持する。グローバルRAM240Cは、例えば、電源供給を遮断するとデータが消失するダイナミックRAMなどの揮発性メモリからなり、CPU240A、入出力回路240D及び通信回路240Eがアクセス可能な記憶領域を提供する。 The CPU 240A is hardware that executes an instruction set (data transfer, calculation, processing, control, management, etc.) described in an application program, and is composed of an arithmetic unit, registers for storing instructions and data, peripheral circuits, and the like. Has been done. The ROM 240B includes, for example, a non-volatile memory such as a flash ROM or an EEPROM (Electrically Erasable Programmable Read Only Memory) that can retain data even when the power supply is cut off, and is an application program (computer program) that implements this embodiment. Holds learning values, failure information, etc. The global RAM 240C comprises, for example, a volatile memory such as a dynamic RAM in which data is lost when the power supply is cut off, and provides a storage area accessible to the CPU 240A, the input / output circuit 240D, and the communication circuit 240E.

入出力回路240Dは、例えば、A/Dコンバータ、D/Aコンバータ、D/Dコンバータなどからなり、各種のセンサ、スイッチ及びアクチュエータなどに対するアナログ信号及びデジタル信号の入出力機能を提供する。通信回路240Eは、例えば、CAN(Controller Area Network)トランシーバなどからなり、CANなどの車載ネットワーク(図示せず)に接続する機能を提供する。内部バス240Fは、各デバイス間でデータを交換するための経路であって、アドレスを転送するアドレスバス、データを転送するデータバス、アドレスバスやデータバスで実際に入出力を行うタイミングや制御情報を遣り取りするコントロールバスを含んでいる。 The input / output circuit 240D includes, for example, an A / D converter, a D / A converter, a D / D converter, and the like, and provides input / output functions for analog and digital signals to various sensors, switches, actuators, and the like. The communication circuit 240E comprises, for example, a CAN (Controller Area Network) transceiver and provides a function of connecting to an in-vehicle network (not shown) such as a CAN. The internal bus 240F is a route for exchanging data between each device, and is an address bus for transferring addresses, a data bus for transferring data, timing and control information for actual input / output on the address bus or data bus. Includes a control bus to exchange.

チャネル240Gは、内部バス240Fとは異なるデータ伝送路であって、2つのデバイス間で高速に任意のデータを送受信可能にする。ローカルRAM240Hは、例えば、電源供給を遮断するとデータが消失するダイナミックRAMなどの揮発性メモリからなり、CPU240Aのみがアクセス可能な記憶領域を提供する。ここで、ローカルRAM240Hは、グローバルRAM240Cよりもアクセス速度が高速である反面、グローバルRAM240Cよりも小容量であるという特性を有している。 The channel 240G is a data transmission line different from the internal bus 240F, and enables high-speed transmission / reception of arbitrary data between two devices. The local RAM 240H comprises, for example, a volatile memory such as a dynamic RAM in which data is lost when the power supply is cut off, and provides a storage area accessible only by the CPU 240A. Here, the local RAM 240H has a characteristic that the access speed is higher than that of the global RAM 240C, but the capacity is smaller than that of the global RAM 240C.

電子制御装置240のCPU240Aには、入出力回路240Dを介して、クランク角センサ220のクランク角信号、及びカム角センサ230のカム角信号に加えて、図示しない各種センサから吸気流量、冷却水温度及びバッテリ電圧などが夫々入力されている。また、電子制御装置240のCPU240Aは、クランク角信号からエンジン回転数を算出するとともに、クランク角信号及びカム角信号から単位角度ごとにパルス信号が現れるエンジン回転信号を生成する。 In addition to the crank angle signal of the crank angle sensor 220 and the cam angle signal of the cam angle sensor 230, the CPU 240A of the electronic control device 240 receives the intake flow rate and the cooling water temperature from various sensors (not shown) via the input / output circuit 240D. And the battery voltage etc. are input respectively. Further, the CPU 240A of the electronic control device 240 calculates the engine rotation speed from the crank angle signal and generates an engine rotation signal in which a pulse signal appears for each unit angle from the crank angle signal and the cam angle signal.

そして、電子制御装置240のCPU240Aは、ROM240Bに格納されたアプリケーションプログラムに従って、以下で説明するように、燃料噴射弁140、点火プラグ150及びVTC200を夫々制御する。ここで、燃料噴射弁140による燃料噴射制御においては、例えば、各気筒の圧縮行程に合わせて個別の燃料噴射を行う、いわゆる「シーケンシャル噴射制御」が行われる。なお、VTC200の制御は、電子制御装置240とは異なる別体の電子制御装置で行うようにしてもよい。 Then, the CPU 240A of the electronic control device 240 controls the fuel injection valve 140, the spark plug 150, and the VTC 200, respectively, according to the application program stored in the ROM 240B, as described below. Here, in the fuel injection control by the fuel injection valve 140, for example, so-called "sequential injection control" in which individual fuel injections are performed according to the compression stroke of each cylinder is performed. The VTC 200 may be controlled by a separate electronic control device different from the electronic control device 240.

電子制御装置240のCPU240Aは、吸気流量及びエンジン回転数に基づいて、エンジン運転状態に応じた基本燃料噴射量、燃料噴射タイミング及び点火タイミングを夫々算出する。また、電子制御装置240のCPU240Aは、冷却水温度及びバッテリ電圧に基づいて、基本燃料噴射量を補正した燃料噴射量を算出する。そして、電子制御装置240のCPU240Aは、エンジン回転信号(単位角度ごとのパルス信号)に同期して、燃料噴射タイミング又は点火タイミングになったか否かを判定し、その判定結果に応じて燃料噴射弁140に噴射信号を出力するか、又は点火プラグ150に点火信号を出力する。このように、電子制御装置240のプロセッサ240Aは、エンジン100の回転に同期した燃料噴射制御及び点火制御などの回転同期処理を実行する。 The CPU 240A of the electronic control device 240 calculates the basic fuel injection amount, the fuel injection timing, and the ignition timing according to the engine operating state, respectively, based on the intake air flow rate and the engine rotation speed. Further, the CPU 240A of the electronic control device 240 calculates the fuel injection amount corrected for the basic fuel injection amount based on the cooling water temperature and the battery voltage. Then, the CPU 240A of the electronic control device 240 determines whether or not the fuel injection timing or the ignition timing has been reached in synchronization with the engine rotation signal (pulse signal for each unit angle), and the fuel injection valve is determined according to the determination result. The injection signal is output to 140, or the ignition signal is output to the spark plug 150. In this way, the processor 240A of the electronic control device 240 executes rotation synchronization processing such as fuel injection control and ignition control synchronized with the rotation of the engine 100.

さらに、電子制御装置240のCPU240Aは、所定時間(制御周期)ごとに、吸気流量及びエンジン回転速度に基づいて、エンジン運転状態に応じたVTC200の目標角度を算出する。そして、電子制御装置240のCPU240Aは、クランクシャフトに対する吸気カムシャフト190の実角度が目標角度に近づくように、VTC200のアクチュエータ204をフィードバック制御する。なお、VTC200の制御が、時間に同期して実行される時間同期処理の一例として挙げられる。 Further, the CPU 240A of the electronic control device 240 calculates the target angle of the VTC 200 according to the engine operating state based on the intake air flow rate and the engine rotation speed every predetermined time (control cycle). Then, the CPU 240A of the electronic control device 240 feedback-controls the actuator 204 of the VTC 200 so that the actual angle of the intake camshaft 190 with respect to the crankshaft approaches the target angle. The control of the VTC 200 is given as an example of the time synchronization process executed in synchronization with the time.

ここで、エンジン回転数と演算負荷との関連性について説明する。
電子制御装置240においては、例えば、応答性やドライバビリティなどを担保するため、図4に示すように、所定の制御周期内に時間同期処理及び回転同期処理を完了しなければならない。時間同期処理は、例えば、制御周期の始期において実行される。エンジン100の回転によりエンジン回転信号のパルスが出力されると、実行中の時間同期処理が中断されて退避され、割り込みによって回転同期処理が実行される。そして、回転同期処理の実行が完了すると、退避されていた時間同期処理が復帰して再開される。
Here, the relationship between the engine speed and the calculation load will be described.
In the electronic control device 240, for example, in order to ensure responsiveness, drivability, and the like, as shown in FIG. 4, the time synchronization process and the rotation synchronization process must be completed within a predetermined control cycle. The time synchronization process is executed, for example, at the beginning of the control cycle. When the pulse of the engine rotation signal is output due to the rotation of the engine 100, the time synchronization processing during execution is interrupted and saved, and the rotation synchronization processing is executed by the interrupt. Then, when the execution of the rotation synchronization process is completed, the saved time synchronization process is restored and restarted.

エンジン回転数が上昇すると、これに比例して制御周期内に出力されるエンジン回転信号のパルスが増加する。このため、エンジン回転信号のパルスが出力されたことを契機として実行される時間同期処理の実行回数が増加し、時間同期処理において使用されるデータのRAMに対する読み書き回数が増加する。この結果、プロセッサ240Aにおける算術演算及び論理演算と比較して時間がかかるRAMへのアクセス回数が増加し、制御周期に占める時間同期処理及び回転同期処理の実行時間が長くなって演算負荷が増加してしまう。このような理由によって、図5に示すように、エンジン回転数の上昇に伴って演算負荷が略線形に増加してしまう。 As the engine speed increases, the pulse of the engine rotation signal output within the control cycle increases in proportion to this. Therefore, the number of executions of the time synchronization process executed when the pulse of the engine rotation signal is output increases, and the number of times of reading / writing the data used in the time synchronization process to the RAM increases. As a result, the number of times of access to the RAM, which takes a long time as compared with the arithmetic operation and the logical operation in the processor 240A, increases, the execution time of the time synchronization processing and the rotation synchronization processing in the control cycle becomes long, and the calculation load increases. Will end up. For this reason, as shown in FIG. 5, the calculation load increases substantially linearly as the engine speed increases.

図4に示す例で説明すると、制御周期における時間同期処理の演算負荷を40%、制御周期における1回の回転同期処理の演算負荷を10%とすると、制御周期内に1回の回転同期処理が実行される場合、制御周期における演算負荷は、40+10=50%になる。エンジン回転数が上昇して制御周期内に2回の回転同期処理が実行されるようになると、制御周期における演算負荷は、40+10×2=60%になる。エンジン回転数が更に上昇して制御周期内に4回の同期処理が実行されるようになると、制御周期における演算負荷は、40+10×4=80%になる。従って、この例からも、エンジン回転数の上昇に伴って演算負荷が略線形に増加してしまうことが理解できるであろう。 Explaining with the example shown in FIG. 4, assuming that the calculation load of the time synchronization processing in the control cycle is 40% and the calculation load of one rotation synchronization processing in the control cycle is 10%, the rotation synchronization processing once in the control cycle. Is executed, the computational load in the control cycle is 40 + 10 = 50%. When the engine speed increases and the rotation synchronization process is executed twice within the control cycle, the calculation load in the control cycle becomes 40 + 10 × 2 = 60%. When the engine speed is further increased and the synchronization processing is executed four times within the control cycle, the calculation load in the control cycle becomes 40 + 10 × 4 = 80%. Therefore, from this example as well, it can be understood that the computational load increases substantially linearly as the engine speed increases.

そこで、エンジン回転に同期して実行される回転同期処理において使用されるデータを、1データ当たりのアクセス速度が高速なローカルRAM240Hに静的に割り当てることで、RAMに対するアクセス時間を短縮し、制御周期における演算負荷を低減する。ローカルRAM240Hに静的に割り当てられるデータは、アプリケーションプログラムにおいて設定することができる。即ち、回転同期処理において使用されるデータは、アプリケーションプログラムの実行中に動的に割り当てられるのではなく、アプリケーションプログラムのコードを記述する際に、設計者や開発者などがローカルRAM240Hのアドレスを直接指定して静的に割り当てる。 Therefore, by statically allocating the data used in the rotation synchronization processing executed in synchronization with the engine rotation to the local RAM 240H, which has a high access speed per data, the access time to the RAM is shortened and the control cycle is controlled. To reduce the calculation load in. The data statically allocated to the local RAM 240H can be set in the application program. That is, the data used in the rotation synchronization process is not dynamically allocated during the execution of the application program, but the designer or developer directly assigns the address of the local RAM 240H when writing the code of the application program. Specify and statically assign.

回転同期処理において使用されるデータをアクセス速度が低速なグローバルRAM240Cに割り当てた場合、グローバルRAM240Cに対するアクセス時間が、図6において矢印の大きさで示す時間だけかかってしまう。しかしながら、回転同期処理において使用されるデータをアクセス速度が高速なローカルRAM240Hに割り当てると、図7において矢印の大きさで示すように、グローバルRAM240Cに割り当てた場合と比較して、ローカルRAM240Hに対するアクセス時間が短くなる。従って、制御周期に占める時間同期処理及び回転同期処理の実行時間が短くなり、図8に示すように、エンジン回転数の高回転領域における演算負荷を低減することができる。 When the data used in the rotation synchronization process is assigned to the global RAM 240C having a low access speed, the access time to the global RAM 240C takes only the time indicated by the size of the arrow in FIG. However, when the data used in the rotation synchronization process is assigned to the local RAM 240H having a high access speed, as shown by the size of the arrow in FIG. 7, the access time to the local RAM 240H is compared with the case where the data is assigned to the global RAM 240C. Becomes shorter. Therefore, the execution time of the time synchronization process and the rotation synchronization process in the control cycle is shortened, and as shown in FIG. 8, the calculation load in the high rotation speed region of the engine rotation speed can be reduced.

回転同期処理において使用されるデータをローカルRAM240Hに割り当てた場合、時間同期処理において使用されるデータは、その大部分がアクセス速度の低速なグローバルRAM240Cに割り当てられることとなる。このため、エンジン回転数の低回転領域では、時間同期処理を実行するのに要する時間が増加し、図8に示すように、制御負荷が増加してしまう。しかしながら、エンジン回転数の低回転領域では時間同期処理を実行する回数が比較的少ないため、時間同期処理を実行する演算負荷が多少増加しても、制御周期内に時間同期処理及び回転同期処理を完了することができ、何ら問題が発生しない。 When the data used in the rotation synchronization process is assigned to the local RAM 240H, most of the data used in the time synchronization process is assigned to the global RAM 240C having a low access speed. Therefore, in the low engine speed region, the time required to execute the time synchronization process increases, and as shown in FIG. 8, the control load increases. However, since the number of times the time synchronization process is executed is relatively small in the low engine speed region, the time synchronization process and the rotation synchronization process are performed within the control cycle even if the calculation load for executing the time synchronization process increases to some extent. It can be completed and no problems occur.

ところで、上述したように、回転同期処理において使用されるデータのすべてを、アクセス速度が高速なローカルRAM240Hに割り当てることが望ましい。しかしながら、ローカルRAM240Hの記憶領域はグローバルRAM240Cの記憶容量と比較して少ないため、すべてのデータをローカルRAM240Hに割り当てることは現実的ではない。そこで、ローカルRAM240Hの記憶容量などを考慮して、回転同期処理において使用されるデータの少なくとも一部をローカルRAM240Hに割り当てるようにすればよい。 By the way, as described above, it is desirable to allocate all the data used in the rotation synchronization process to the local RAM 240H having a high access speed. However, since the storage area of the local RAM 240H is smaller than the storage capacity of the global RAM 240C, it is not realistic to allocate all the data to the local RAM 240H. Therefore, in consideration of the storage capacity of the local RAM 240H, at least a part of the data used in the rotation synchronization processing may be allocated to the local RAM 240H.

この場合、回転同期処理において使用される複数のデータのうち、データ長の短いデータをローカルRAM240Hに優先して割り当てることが望ましい。また、時間同期処理において使用される複数のデータのうち、データ長の長いデータをグローバルRAM240Cに優先して静的に割り当てることが望ましい。このようにすれば、ローカルRAM240Hに割り当てられるデータの個数が増加する一方、グローバルRAM240Cに割り当てられるデータの個数が減少し、制御周期に占める時間同期処理及び回転同期処理の実行時間を短縮することができる。 In this case, it is desirable to preferentially allocate the data having a short data length to the local RAM 240H among the plurality of data used in the rotation synchronization process. Further, among the plurality of data used in the time synchronization process, it is desirable to statically allocate the data having a long data length in preference to the global RAM 240C. By doing so, while the number of data allocated to the local RAM 240H increases, the number of data allocated to the global RAM 240C decreases, and the execution time of the time synchronization process and the rotation synchronization process in the control cycle can be shortened. can.

制御周期に実行する時間同期処理及び回転同期処理において、16個の1ビット長のデータ、2個の8ビット長のデータ、2個の16ビット長のデータをアクセスする場合を想定する。また、この想定において、時間同期処理及び回転同期処理において使用可能なグローバルRAM240C及びローカルRAM240Hの記憶領域は、夫々、4バイト(32ビット)であると仮定する。さらに、グローバルRAM240Cのアクセス速度が、動作クロック基準で10サイクル、ローカルRAM240Hのアクセス速度が、動作クロック基準で1サイクルであると仮定する。 It is assumed that 16 1-bit length data, 2 8-bit length data, and 2 16-bit length data are accessed in the time synchronization process and the rotation synchronization process executed in the control cycle. Further, in this assumption, it is assumed that the storage areas of the global RAM 240C and the local RAM 240H that can be used in the time synchronization processing and the rotation synchronization processing are 4 bytes (32 bits), respectively. Further, it is assumed that the access speed of the global RAM 240C is 10 cycles based on the operating clock and the access speed of the local RAM 240H is 1 cycle based on the operating clock.

図9に示すように、グローバルRAM240Cに対して16個の1ビット長データ及び2個の8ビット長のデータを夫々割り当てるとともに、ローカルRAM240Hに対して2個の16ビット長のデータを割り当てた場合を考える。この場合、グローバルRAM240Cに対するアクセス時間は、(16+2)×10=180[サイクル]となる。また、ローカルRAM240Hに対するアクセス時間は、2×1=2[サイクル]となる。従って、RAMに対するアクセス時間は、180+2=182[サイクル]となる。 As shown in FIG. 9, 16 1-bit length data and 2 8-bit length data are assigned to the global RAM 240C, respectively, and 2 16-bit length data are assigned to the local RAM 240H. think of. In this case, the access time to the global RAM 240C is (16 + 2) × 10 = 180 [cycles]. Further, the access time to the local RAM 240H is 2 × 1 = 2 [cycle]. Therefore, the access time to the RAM is 180 + 2 = 182 [cycles].

一方、図10に示すように、グローバルRAM240Cに対して2個の16ビット長のデータを割り当てるとともに、ローカルRAM240Hに対して16個の1ビット長のデータ及び2個の8ビット長のデータを割り当てた場合を考える。この場合、グローバルRAM240Cに対するアクセス時間は、2×10=20[サイクル]になる。また、ローカルRAM240Hに対するアクセス時間は、(16+2)×1=18[サイクル]になる。従って、RAMに対するアクセス時間は、20+18=38[サイクル]になる。 On the other hand, as shown in FIG. 10, two 16-bit length data are allocated to the global RAM 240C, and 16 1-bit length data and two 8-bit length data are allocated to the local RAM 240H. Consider the case. In this case, the access time to the global RAM 240C is 2 × 10 = 20 [cycles]. The access time to the local RAM 240H is (16 + 2) × 1 = 18 [cycles]. Therefore, the access time to the RAM is 20 + 18 = 38 [cycles].

このように、データ長の短いデータをアクセス速度が高速なローカルRAM240Hに優先して割り当て、データ長の長いデータをアクセス速度が低速なグローバルRAM240Cに優先して割り当てることで、図9及び図10から理解できるように、ローカルRAM240Hに多くのデータを割り当てることができる。その結果、上述したように、RAMに対するアクセス時間が182[サイクル]から38[サイクル]に低減し、制御周期に占める時間同期処理及び回転同期処理の実行時間が短くなる。 In this way, by preferentially allocating data with a short data length to the local RAM 240H with a high access speed and allocating data with a long data length to the global RAM 240C with a low access speed, from FIGS. 9 and 10. As you can see, a lot of data can be allocated to the local RAM 240H. As a result, as described above, the access time to the RAM is reduced from 182 [cycles] to 38 [cycles], and the execution time of the time synchronization process and the rotation synchronization process in the control cycle is shortened.

そして、回転同期処理において使用される複数のデータのうちビット長の短いデータを、アクセス速度が高速なローカルRAM240Hに優先して割り当てることで、図11に示すように、演算負荷の上限を低減することができる。また、時間同期処理において使用される複数のデータのうちビット長の長いデータを、アクセス速度が低速なグローバルRAM240Cに優先して割り当てることで、図11に示すように、演算負荷全体を低減することができる。 Then, by preferentially allocating the data having a short bit length among the plurality of data used in the rotation synchronization process to the local RAM 240H having a high access speed, the upper limit of the calculation load is reduced as shown in FIG. be able to. Further, as shown in FIG. 11, by preferentially allocating the data having a long bit length among the plurality of data used in the time synchronization process to the global RAM 240C having a low access speed, the entire calculation load can be reduced. Can be done.

なお、当業者であれば、様々な上記実施形態の技術的思想について、その一部を省略したり、その一部を適宜組み合わせたり、その一部を周知技術に置換したり、周知技術を更に組み合わせることで、新たな実施形態を生み出せることを容易に理解できるであろう。 It should be noted that those skilled in the art may omit some of the technical ideas of the above-mentioned embodiments, combine some of them as appropriate, replace some of them with well-known techniques, and further use well-known techniques. It will be easy to understand that the combination can create new embodiments.

その一例を挙げると、エンジン100は、ガソリンエンジンに限らず、ディーゼルエンジンであってもよい。また、データのビット長は、1ビット、8ビット及び16ビットに限らず、任意のビット数であってもよい。さらに、時間同期処理としては、VTC200の制御に限らず、故障診断などの他の処理であってもよく、回転同期処理としては、燃料噴射処理及び点火制御処理に限らず、他の処理であってもよい。 As an example, the engine 100 is not limited to a gasoline engine, but may be a diesel engine. Further, the bit length of the data is not limited to 1 bit, 8 bits and 16 bits, and may be any number of bits. Further, the time synchronization process is not limited to the control of the VTC 200, and may be another process such as failure diagnosis, and the rotation synchronization process is not limited to the fuel injection process and the ignition control process, but is another process. You may.

100 エンジン(内燃機関)
220 クランク角センサ(回転センサ)
230 カム角センサ(回転センサ)
240 電子制御装置(制御装置)
240C グローバルRAM(第1の揮発性メモリ)
240H ローカルRAM(第2の揮発性メモリ)
100 engine (internal combustion engine)
220 Crank angle sensor (rotation sensor)
230 Cam angle sensor (rotation sensor)
240 Electronic control device (control device)
240C global RAM (first volatile memory)
240H local RAM (second volatile memory)

Claims (6)

第1の揮発性メモリ、当該第1の揮発性メモリよりアクセス速度が高速な第2の揮発性メモリを備え、時間に同期した時間同期処理、及び内燃機関の回転に同期した回転同期処理を夫々実行する、内燃機関の制御装置であって、
前記回転同期処理において使用されるデータの少なくとも一部が、前記第2の揮発性メモリに静的に割り当てられた、
内燃機関の制御装置。
It is equipped with a first volatile memory and a second volatile memory whose access speed is faster than that of the first volatile memory, and performs time synchronization processing synchronized with time and rotation synchronization processing synchronized with the rotation of the internal combustion engine, respectively. It is the control device of the internal combustion engine that is executed.
At least a part of the data used in the rotation synchronization process is statically allocated to the second volatile memory.
Internal combustion engine control device.
前記第2の揮発性メモリに静的に割り当てられるデータは、アプリケーションプログラムにおいて設定される、
請求項1に記載の内燃機関の制御装置。
The data statically allocated to the second volatile memory is set in the application program.
The control device for an internal combustion engine according to claim 1.
前記回転同期処理において使用される複数のデータのうちデータ長の短いデータが、前記第2の揮発性メモリに優先して割り当てられる、
請求項1又は請求項2に記載の内燃機関の制御装置。
Of the plurality of data used in the rotation synchronization process, the data having a short data length is preferentially allocated to the second volatile memory.
The control device for an internal combustion engine according to claim 1 or 2.
前記時間同期処理において使用される複数のデータのうちデータ長の長いデータが、前記第1の揮発性メモリに優先して静的に割り当てられる、
請求項1~請求項3のいずれか1つに記載の内燃機関の制御装置。
Of the plurality of data used in the time synchronization process, the data having a long data length is statically allocated in preference to the first volatile memory.
The control device for an internal combustion engine according to any one of claims 1 to 3.
前記内燃機関の回転数に比例するパルス信号を出力する回転センサを更に備え、
前記回転センサから出力されるパルス信号に応答して前記回転同期処理が実行される、
請求項1~請求項4のいずれか1つに記載の内燃機関の制御装置。
A rotation sensor that outputs a pulse signal proportional to the rotation speed of the internal combustion engine is further provided.
The rotation synchronization process is executed in response to the pulse signal output from the rotation sensor.
The control device for an internal combustion engine according to any one of claims 1 to 4.
前記回転同期処理は、燃料噴射処理及び点火制御処理の少なくとも一方である、
請求項1~請求項5のいずれか1つに記載の内燃機関の制御装置。
The rotation synchronization process is at least one of a fuel injection process and an ignition control process.
The control device for an internal combustion engine according to any one of claims 1 to 5.
JP2020200963A 2020-12-03 2020-12-03 Internal combustion engine control device Active JP7449219B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020200963A JP7449219B2 (en) 2020-12-03 2020-12-03 Internal combustion engine control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020200963A JP7449219B2 (en) 2020-12-03 2020-12-03 Internal combustion engine control device

Publications (2)

Publication Number Publication Date
JP2022088860A true JP2022088860A (en) 2022-06-15
JP7449219B2 JP7449219B2 (en) 2024-03-13

Family

ID=81988138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020200963A Active JP7449219B2 (en) 2020-12-03 2020-12-03 Internal combustion engine control device

Country Status (1)

Country Link
JP (1) JP7449219B2 (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3849379B2 (en) 1999-11-30 2006-11-22 株式会社デンソー ENGINE CONTROL DEVICE AND ENGINE CONTROL METHOD
JP2005215891A (en) 2004-01-28 2005-08-11 Denso Corp Engine controller, method for controlling cache for engine controller
JP2006017054A (en) 2004-07-02 2006-01-19 Toyota Motor Corp Internal combustion engine control device
JP2010059857A (en) 2008-09-03 2010-03-18 Toyota Motor Corp Electronic control unit of internal combustion engine
JP5817505B2 (en) 2011-12-21 2015-11-18 トヨタ自動車株式会社 Control device for internal combustion engine
JP2014009591A (en) 2012-06-27 2014-01-20 Denso Corp Combustion state analysis system of engine
JP6771272B2 (en) 2015-07-01 2020-10-21 日立オートモティブシステムズ株式会社 In-vehicle electronic control device and stack usage
JP6447442B2 (en) 2015-10-02 2019-01-09 株式会社デンソー Electronic control unit
JP2018162756A (en) 2017-03-27 2018-10-18 日立オートモティブシステムズ株式会社 Internal combustion engine controller
JP2020159344A (en) 2019-03-28 2020-10-01 株式会社デンソーテン Control device and control method

Also Published As

Publication number Publication date
JP7449219B2 (en) 2024-03-13

Similar Documents

Publication Publication Date Title
JP4756889B2 (en) Method for starting an engine with an electromechanical valve
CN100570142C (en) Mixed power electric car internal-combustion engine preposition
JP2005264946A (en) Starting method of engine having pausable valve
JP2005264947A (en) Exhaust reducing method of internal combustion engine having electromechanical valve
JP4602809B2 (en) Method for starting an electrically operated valve of an internal combustion engine
US10318471B2 (en) Method to share data between semiconductors chips
CN106968821B (en) Engine control system and method for reducing nitrogen oxides
JP2000047883A (en) Task controlling method and storage medium
JP2007200277A (en) Microcomputer
CN101672221A (en) Eight-stroke engine cycle
CN102652216B (en) Control device of internal combustion engine
JP7449219B2 (en) Internal combustion engine control device
JP2014061793A (en) Automotive electronic control unit
US10697418B2 (en) Hybrid vehicle
US7013862B2 (en) Method for operating an internal combustion engine
JP4201708B2 (en) Torque control method
RU2696660C2 (en) System and method for engine operation
JP2003514167A (en) Method for operating an internal combustion engine
US20120101709A1 (en) Method and apparatus for operating an internal combustion engine
JP6275790B2 (en) Electronic control unit for automobile
JP5077179B2 (en) Control device for internal combustion engine
JP2006017054A (en) Internal combustion engine control device
JP7149210B2 (en) electronic controller
US11203954B2 (en) Pre-lubrication and skip fire operations during engine cranking
CN110067662B (en) Control method for cylinder balancing of internal combustion engine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240124

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: 20240206

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240301

R150 Certificate of patent or registration of utility model

Ref document number: 7449219

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150