JP5799891B2 - AD conversion processor - Google Patents

AD conversion processor Download PDF

Info

Publication number
JP5799891B2
JP5799891B2 JP2012114852A JP2012114852A JP5799891B2 JP 5799891 B2 JP5799891 B2 JP 5799891B2 JP 2012114852 A JP2012114852 A JP 2012114852A JP 2012114852 A JP2012114852 A JP 2012114852A JP 5799891 B2 JP5799891 B2 JP 5799891B2
Authority
JP
Japan
Prior art keywords
conversion
crank angle
data
conversion data
stored
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.)
Active
Application number
JP2012114852A
Other languages
Japanese (ja)
Other versions
JP2013241870A (en
Inventor
敦司 高見
敦司 高見
啓晴 竹内
啓晴 竹内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2012114852A priority Critical patent/JP5799891B2/en
Publication of JP2013241870A publication Critical patent/JP2013241870A/en
Application granted granted Critical
Publication of JP5799891B2 publication Critical patent/JP5799891B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Description

本発明は、クランク角信号の逓倍信号が表わすクランク角度に同期して筒内圧センサの出力信号をAD変換した結果の異常を検出するAD変換処理装置に関する。   The present invention relates to an AD conversion processing device that detects an abnormality as a result of AD conversion of an output signal of an in-cylinder pressure sensor in synchronization with a crank angle represented by a multiplied signal of a crank angle signal.

従来、例えばエンジンに過給すると気筒内の温度が過度に上昇し、点火プラグで点火するときの点火タイミングよりも進角したタイミングで混合気が異常着火するプレイグニションが発生することがある。   Conventionally, for example, when the engine is supercharged, the temperature in the cylinder excessively increases, and preignition may occur in which the air-fuel mixture abnormally ignites at a timing advanced from the ignition timing when ignition is performed by the spark plug.

エンジン制御装置は、エンジンの回転に伴い所定の角度間隔で発生するクランク角信号に基づいて燃料噴射および点火時期を制御しているので、プレイグニションの発生を防止するために、プレイグニションが発生するクランク角度を検出し、検出したクランク角度に基づいて燃料噴射および点火時期を制御することが考えられる。   Since the engine control device controls fuel injection and ignition timing based on a crank angle signal generated at predetermined angular intervals as the engine rotates, pre-ignition occurs to prevent pre-ignition from occurring. It is conceivable to detect the crank angle and control the fuel injection and ignition timing based on the detected crank angle.

プレイグニション等の異常燃焼が発生するクランク角度は、気筒内の圧力(筒内圧)を検出する筒内圧センサの出力信号をクランク角度に同期してAD変換し、AD変換データが示す筒内圧の変化に基づいて気筒内の燃焼状態を解析することにより検出できる。   The crank angle at which abnormal combustion such as pre-ignition occurs is AD-converted from the output signal of the in-cylinder pressure sensor that detects the pressure in the cylinder (in-cylinder pressure), and the change in the in-cylinder pressure indicated by the AD conversion data This can be detected by analyzing the combustion state in the cylinder based on the above.

異常燃焼が発生するクランク角度の検出精度を向上させる構成として、クランク角信号が発生する角度間隔を小さくすることが考えられる。クランク角信号の角度間隔を小さくせずに検出精度を向上させる構成としては、特許文献1に記載されているように、クランク角信号の信号周期を逓倍数で割った周期の逓倍信号を生成することが知られている。   As a configuration for improving the detection accuracy of the crank angle at which abnormal combustion occurs, it is conceivable to reduce the angle interval at which the crank angle signal is generated. As a configuration for improving the detection accuracy without reducing the angular interval of the crank angle signal, as described in Patent Document 1, a multiplied signal having a period obtained by dividing the signal period of the crank angle signal by the multiplication number is generated. It is known.

特開2005−133614号公報JP 2005-133614 A

逓倍信号は、クランク角信号が発生したときに前回と今回とのクランク角信号の周期を逓倍数で割った周期の信号として生成されるので、エンジンが急激に加速すると、今回と次回とのクランク角信号の間で逓倍数の逓倍信号が発生する前に次のクランク角信号が発生することがある。すると、今回と次回とのクランク角信号の間で逓倍信号が表わすクランク角度の一部においてAD変換が実行されず抜けることになる。   When the crank angle signal is generated, the multiplication signal is generated as a signal with a period obtained by dividing the period of the crank angle signal of the previous time and this time by the multiplication number. The next crank angle signal may be generated before the multiplication signal of the multiplication number is generated between the angle signals. Then, AD conversion is not executed in a part of the crank angle indicated by the multiplied signal between the current and next crank angle signals, and the output is lost.

また、今回の逓倍信号のタイミングにおけるAD変換の時間が何らかの原因で長くなり、AD変換の途中で次の逓倍信号が発生すると、今回の逓倍信号におけるAD変換データが次の逓倍信号におけるAD変換データによって途中から上書きされることになる。   Also, if the AD conversion time at the timing of the current multiplied signal becomes longer for some reason and the next multiplied signal is generated during the AD conversion, the AD converted data in the current multiplied signal becomes the AD converted data in the next multiplied signal. Will be overwritten from the middle.

このように、AD変換データが抜けたり、AD変換データの一部が上書きされていたりすると、逓倍信号が表わすクランク角度とAD変換データとの対応がずれる。このようなAD変換結果の異常を検出する技術は従来知られていない。   As described above, when the AD conversion data is lost or a part of the AD conversion data is overwritten, the correspondence between the crank angle represented by the multiplied signal and the AD conversion data is lost. A technique for detecting such an abnormality in the AD conversion result has not been known.

そのため、クランク角度に対応しないAD変換データに基づいてプレイグニション等の異常燃焼の有無を判定することになるので、異常燃焼の有無を誤判定する恐れがある。その結果、筒内圧を表わすAD変換データに基づいて誤った噴射制御および点火時期制御を実行する恐れがある。   Therefore, since the presence / absence of abnormal combustion such as pre-ignition is determined based on AD conversion data that does not correspond to the crank angle, there is a possibility that the presence / absence of abnormal combustion may be erroneously determined. As a result, erroneous injection control and ignition timing control may be executed based on AD conversion data representing in-cylinder pressure.

本発明は、上記課題を解決するためになされたものであり、逓倍信号が表わすクランク角度に同期して筒内圧センサの出力信号をAD変換した結果の異常を検出するAD変換処理装置を提供することを目的とする。   The present invention has been made to solve the above-described problems, and provides an AD conversion processing apparatus that detects an abnormality as a result of AD conversion of an output signal of an in-cylinder pressure sensor in synchronization with a crank angle represented by a multiplied signal. For the purpose.

本発明のAD変換処理装置によると、クランク角信号の信号周期を逓倍数で割った周期の逓倍信号が表わすクランク角度に同期して、内燃機関の気筒内の圧力を検出する筒内圧センサの出力信号をAD変換し、AD変換データを記憶装置の変換データ領域に記憶する。   According to the AD conversion processing apparatus of the present invention, the output of the in-cylinder pressure sensor for detecting the pressure in the cylinder of the internal combustion engine in synchronization with the crank angle represented by the multiplied signal of the period obtained by dividing the signal period of the crank angle signal by the multiplication number. The signal is AD converted, and the AD conversion data is stored in the conversion data area of the storage device.

そして、クランク角度におけるAD変換データが変換データ領域に記憶されていないか、あるいは前後に隣接するクランク角度において前のクランク角度におけるAD変換データの一部が後のクランク角度におけるAD変換データにより上書きされている場合、クランク角度とAD変換データとが対応せず、クランク角度に対してAD変換データがずれるAD変換結果の異常が発生していると判断する。   Then, AD conversion data at the crank angle is not stored in the conversion data area, or a part of the AD conversion data at the previous crank angle is overwritten by the AD conversion data at the subsequent crank angle at the crank angle adjacent to the front and rear. If it is determined that the crank angle does not correspond to the AD conversion data, it is determined that an abnormality in the AD conversion result in which the AD conversion data deviates from the crank angle has occurred.

この場合、変換データ領域に記憶されているAD変換データを記憶装置の公開データ領域にコピーして記憶するときに、AD変換データを記憶する公開データ領域の該当記憶位置に異常を示す異常値を設定し、AD変換の異常を通知する。   In this case, when the AD conversion data stored in the conversion data area is copied and stored in the public data area of the storage device, an abnormal value indicating an abnormality is indicated at the corresponding storage position of the public data area in which the AD conversion data is stored. Set and notify AD conversion abnormality.

これにより、AD変換データを参照する処理は、例えば公開データ領域のAD変換データの値に基づいてAD変換データが異常であるか否かを判定し、正常であればAD変換データを異常燃焼の判定処理に利用し、異常値であれば異常判定処理を中断するか、あるいは異常値に該当するクランク角度におけるAD変換データを前後のクランク角度における正常なAD変換データにより補間するなどの適切な処置を実行できる。その結果、異常なAD変換データに基づいて異常燃焼の有無を誤判定することを防止できる。   Thereby, the process of referring to the AD conversion data determines, for example, whether the AD conversion data is abnormal based on the value of the AD conversion data in the public data area. Appropriate measures such as interrupting the abnormality determination process if it is an abnormal value or interpolating the AD conversion data at the crank angle corresponding to the abnormal value with the normal AD conversion data at the front and rear crank angles. Can be executed. As a result, it is possible to prevent erroneous determination of the presence or absence of abnormal combustion based on abnormal AD conversion data.

また、本発明のAD変換処理装置によると、逓倍信号が表わすクランク角度に同期して筒内圧センサの出力信号をAD変換するときのクランク角度をクランク角度領域に記憶するので、クランク角度領域に記憶されているクランク角度に抜けがある場合、抜けが生じているクランク角度におけるAD変換データが変換データ領域に記憶されていないと容易に判定できる。   In addition, according to the AD conversion processing apparatus of the present invention, the crank angle when the output signal of the in-cylinder pressure sensor is AD-converted in synchronization with the crank angle represented by the multiplication signal is stored in the crank angle region, so that it is stored in the crank angle region. When there is a missing crank angle, it can be easily determined that AD conversion data at the missing crank angle is not stored in the converted data area.

ここで、各クランク角度において筒内圧センサの出力信号をAD変換した結果のデータ長は同じである。したがって、クランク角度の順番にAD変換データを変換データ領域に記憶する場合、前後に隣接するクランク角度において前のクランク角度おけるAD変換データの一部が後のクランク角度におけるAD変換データにより上書きされているか否かは、後のクランク角度におけるAD変換データを記憶する記憶位置が、前のクランク角度におけるAD変換データに重なる位置であるか否かにより判定できる。   Here, the data length of the result of AD conversion of the output signal of the in-cylinder pressure sensor at each crank angle is the same. Therefore, when AD conversion data is stored in the conversion data area in the order of the crank angle, a part of the AD conversion data at the previous crank angle is overwritten by the AD conversion data at the subsequent crank angle at the crank angles adjacent to each other. It can be determined whether or not the storage position for storing AD conversion data at the subsequent crank angle is a position overlapping the AD conversion data at the previous crank angle.

そこで、本発明のAD変換処理装置によると、クランク角度の順番にAD変換データを変換データ領域に記憶し、各クランク角度におけるAD変換データを変換データ領域に記憶する記憶位置を記憶装置の記憶位置領域に記憶するので、記憶位置領域に記憶されている記憶位置に基づいて、前後に隣接するクランク角度において前のクランク角度におけるAD変換データの一部が後のクランク角度におけるAD変換データにより上書きされているか否かを容易に判定できる。   Therefore, according to the AD conversion processing device of the present invention, the AD conversion data is stored in the conversion data area in the order of the crank angle, and the storage position where the AD conversion data at each crank angle is stored in the conversion data area is the storage position of the storage device. Since it is stored in the area, a part of the AD conversion data at the previous crank angle is overwritten by the AD conversion data at the subsequent crank angle at the crank angles adjacent to each other on the basis of the storage position stored in the storage position area. It can be easily determined whether or not.

尚、本発明に備わる複数の手段の各機能は、構成自体で機能が特定されるハードウェア資源、プログラムにより機能が特定されるハードウェア資源、またはそれらの組み合わせにより実現される。また、これら複数の手段の各機能は、各々が物理的に互いに独立したハードウェア資源で実現されるものに限定されない。   The functions of the plurality of means provided in the present invention are realized by hardware resources whose functions are specified by the configuration itself, hardware resources whose functions are specified by a program, or a combination thereof. The functions of the plurality of means are not limited to those realized by hardware resources that are physically independent of each other.

本実施形態によるエンジン制御システムを示すブロック図。The block diagram which shows the engine control system by this embodiment. クランク角信号を示すタイムチャート。The time chart which shows a crank angle signal. AD変換の抜けを示す説明図。Explanatory drawing which shows missing of AD conversion. AD変換データの上書を示す説明図。Explanatory drawing which shows the overwriting of AD conversion data. 加速判定を説明するタイムチャート。The time chart explaining acceleration determination. 起動時処理を示すフローチャート。The flowchart which shows a process at the time of starting. 角度同期処理を示すフローチャート。The flowchart which shows an angle synchronous process. データチェック処理を示すフローチャート。The flowchart which shows a data check process. 公開データ初期化処理を示すフローチャート。The flowchart which shows a public data initialization process. 加速判定処理を示すフローチャート。The flowchart which shows an acceleration determination process. データコピー処理を示すフローチャート。6 is a flowchart showing data copy processing. データコピー先を示すマップ。Map showing data copy destination. AD変換に関連するデータの記憶領域を説明するブロック図。The block diagram explaining the storage area of the data relevant to AD conversion.

以下、本発明の実施形態を図に基づいて説明する。
図1に示すエンジン制御システム2は、例えばガソリン用エンジンの運転状態を制御するシステムである。エンジン制御システム2は、エンジン制御用の電子制御装置(ECU:Electronic Control Unit)10、燃料噴射弁60、点火プラグ62、回転数(NE)センサ64、筒内圧センサ(CPS)66等から構成されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
The engine control system 2 shown in FIG. 1 is a system that controls the operating state of a gasoline engine, for example. The engine control system 2 includes an electronic control unit (ECU) 10 for engine control, a fuel injection valve 60, a spark plug 62, a rotational speed (NE) sensor 64, an in-cylinder pressure sensor (CPS) 66, and the like. ing.

エンジンECU10は、マイクロコンピュータ(以下、マイコンとも言う。)20、40および入出力回路50から構成されている。マイコン20は、CPU22、ROM24、RAM26、ハードクランク28、タイマ30、ADコンバータ(ADC)32から構成されている。マイコン40はマイコン20と実質的に同一構成である。   The engine ECU 10 includes microcomputers (hereinafter also referred to as microcomputers) 20 and 40 and an input / output circuit 50. The microcomputer 20 includes a CPU 22, a ROM 24, a RAM 26, a hard crank 28, a timer 30, and an AD converter (ADC) 32. The microcomputer 40 has substantially the same configuration as the microcomputer 20.

マイコン20、40は、それぞれのROM24に記憶されている制御プログラムを実行することにより、入出力回路50を介してNEセンサ64、CPS66および図示しない他のセンサの出力信号を入力し、互いに通信しながらハードクランク28が生成する逓倍信号に基づいて、燃料噴射弁60の噴射時期、点火プラグ62の点火時期等のエンジン制御を実行する。   The microcomputers 20 and 40 execute the control programs stored in the respective ROMs 24 to input the output signals of the NE sensor 64, the CPS 66, and other sensors (not shown) via the input / output circuit 50, and communicate with each other. However, engine control such as the injection timing of the fuel injection valve 60 and the ignition timing of the spark plug 62 is executed based on the multiplication signal generated by the hard crank 28.

マイコン20のハードクランク28は、図2に示すように、クランク軸の回転に伴い所定の角度間隔、例えば10°CA周期で入力されるクランク角信号(NE信号)をハード的に処理する回路部である。NE信号には、360°CAに1箇所、気筒判別に使用される2歯分(30°CA分)の欠歯部が設けられている。   As shown in FIG. 2, the hard crank 28 of the microcomputer 20 is a circuit unit that hard-processes a crank angle signal (NE signal) that is input at a predetermined angular interval, for example, a 10 ° CA period as the crankshaft rotates. It is. The NE signal is provided with a missing tooth portion for two teeth (for 30 ° CA) used for cylinder discrimination at one location at 360 ° CA.

ハードクランク28は、10°CA周期で発生する前回と今回とのNE信号の時間間隔をクロックに同期したカウンタ等で計測し、計測した時間間隔をNE信号の立ち上がり毎に逓倍数nを用いて1/nし、逓倍信号を生成する。本実施形態では逓倍数を2とし、5°CA周期の逓倍信号を生成する。   The hard crank 28 measures the time interval between the previous and current NE signals generated at a 10 ° CA cycle with a counter or the like synchronized with the clock, and uses the multiplication number n for the measured time interval every time the NE signal rises. 1 / n to generate a multiplied signal. In the present embodiment, the multiplication number is 2, and a multiplication signal having a 5 ° CA period is generated.

ADC32は、各気筒に設置されたCPS66からの筒内圧力を示す出力信号を逓倍信号の立ち上がりに同期してAD変換する。このとき、CPS66の出力信号をそのままAD変換したデータと、CPS66の出力信号を増幅してからAD変換したデータとが、ADC32からDMA転送によりRAM26の所定領域に順次書き込まれる。   The ADC 32 AD converts the output signal indicating the in-cylinder pressure from the CPS 66 installed in each cylinder in synchronization with the rising edge of the multiplied signal. At this time, the data obtained by AD-converting the output signal of the CPS 66 as it is and the data AD-converted after the output signal of the CPS 66 is amplified are sequentially written from the ADC 32 to a predetermined area of the RAM 26 by DMA transfer.

本実施形態では、CPS66の出力信号をそのままAD変換したデータと増幅したデータとはそれぞれ2バイトである。したがって、1気筒で4バイト、4気筒で16バイトのデータが逓倍信号で表わされるクランク角度におけるAD変換データになる。   In this embodiment, the data obtained by AD conversion of the output signal of the CPS 66 and the amplified data are each 2 bytes. Therefore, 4-byte data for one cylinder and 16-byte data for 4 cylinders become AD conversion data at a crank angle represented by a multiplication signal.

ADC32でAD変換された筒内圧力に基づいて、マイコン20、40はプレイグニション、失火等の異常燃焼を検出する。
(AD変換抜け)
次に、逓倍信号に同期して実行されるAD変換の抜けについて説明する。前述したように、逓倍信号は、前回と今回との10°CAのNE信号の時間間隔を計測し、次回のNE信号までの間で5°CA周期の逓倍信号を生成する。本実施形態では、5°CA周期の逓倍信号が表わすクランク角度に同期してADC32がCPS66の出力信号をAD変換する。そして、AD変換データと、AD変換が実行されるクランク角度と、逓倍信号に同期してAD変換が実行されるときの変換時刻と、各クランク角度におけるAD変換データを記憶する記憶アドレスとをRAM26に記憶する。
Based on the in-cylinder pressure AD-converted by the ADC 32, the microcomputers 20 and 40 detect abnormal combustion such as preignition and misfire.
(A / D conversion missing)
Next, omission of AD conversion executed in synchronization with the multiplied signal will be described. As described above, the multiplied signal measures the time interval of the 10 ° CA NE signal between the previous time and the current time, and generates a multiplied signal with a 5 ° CA period until the next NE signal. In the present embodiment, the ADC 32 AD-converts the output signal of the CPS 66 in synchronization with the crank angle indicated by the 5 ° CA cycle multiplied signal. The RAM 26 stores AD conversion data, a crank angle at which AD conversion is executed, a conversion time when AD conversion is executed in synchronization with the multiplied signal, and a storage address for storing AD conversion data at each crank angle. To remember.

図3において、30°CA分の欠歯部を経て120°CAと150°CAとの間の逓倍信号は、110°CAと120°CAとの間の時間間隔に基づいて生成される。したがって、110°CAと120°CAとの間のエンジン回転速度に対し、120°CAと150°CAとの間の欠歯部の間でエンジン回転速度が加速すると、145°CAに相当する逓倍信号が立ち上がってオンの状態で150°CAのNE信号が発生することがある。   In FIG. 3, a multiplied signal between 120 ° CA and 150 ° CA is generated based on a time interval between 110 ° CA and 120 ° CA through a tooth missing portion of 30 ° CA. Therefore, when the engine rotation speed is accelerated between the toothless portions between 120 ° CA and 150 ° CA with respect to the engine rotation speed between 110 ° CA and 120 ° CA, the multiplication is equivalent to 145 ° CA. An NE signal of 150 ° CA may be generated when the signal rises and is on.

この場合、150°CAのNE信号を入力したときに、120°CAと150°CAとの間の30°CAの時間間隔から5°CA周期の逓倍信号が生成されるが、145°CAで立ち上がった逓倍信号のオン中であるため、150°CAで逓倍信号は立ち上がらない。   In this case, when a NE signal of 150 ° CA is input, a multiplied signal having a period of 5 ° CA is generated from a time interval of 30 ° CA between 120 ° CA and 150 ° CA, but at 145 ° CA. Since the multiplied signal that has risen is on, the multiplied signal does not rise at 150 ° CA.

したがって、150°CAではAD変換は実行されず、次の155°CAの逓倍信号の立ち上がりでAD変換が実行される。その結果、150°CAにおけるAD変換が抜けるので、150°CAにおけるAD変換データ、クランク角度、変換時刻、記憶アドレスはRAM26の所定領域に記憶されない。   Therefore, AD conversion is not executed at 150 ° CA, and AD conversion is executed at the rising edge of the next multiplied signal of 155 ° CA. As a result, AD conversion at 150 ° CA is lost, so AD conversion data, crank angle, conversion time, and storage address at 150 ° CA are not stored in a predetermined area of the RAM 26.

正常であれば、逓倍信号に同期して5°CA毎に順番にクランク角度が記憶されるので、記憶されていないクランク角度がある場合には、そのクランク角度におけるAD変換が抜けていることを容易に判定できる。   If it is normal, the crank angle is stored in order every 5 ° CA in synchronization with the multiplication signal. Therefore, if there is a crank angle that is not stored, the AD conversion at that crank angle is missing. Easy to judge.

(AD変換データの上書)
クランク角度におけるAD変換が完全に抜けなくても、AD変換データの一部が次のクランク角度におけるAD変換データによって上書きされることがある。
(Overwrite of AD conversion data)
Even if the AD conversion at the crank angle is not completely lost, part of the AD conversion data may be overwritten by the AD conversion data at the next crank angle.

図4に示すように、n番目の逓倍信号におけるAD変換の時間が何らかの理由で長くなりn番目のAD変換の途中で次の(n+1)番目の逓倍信号が立ち上がると、ADC32は新たに(n+1)番目の逓倍信号におけるAD変換を実行するので、n番目のAD変換データは(n+1)番目のAD変換データで途中から上書きされる。   As shown in FIG. 4, when the AD conversion time in the nth multiplied signal becomes longer for some reason and the next (n + 1) th multiplied signal rises in the middle of the nth AD conversion, the ADC 32 newly becomes (n + 1). ) Since AD conversion is performed on the second multiplication signal, the nth AD conversion data is overwritten from the middle with the (n + 1) th AD conversion data.

5°CA毎に実行されるAD変換のデータ長は正常であれば固定長である。本実施形態では、前述したように、クランク角度における4気筒分のAD変換データは16バイトである。したがって、前のクランク角度におけるAD変換データの記憶位置を示す記憶アドレスと、後のクランク角度におけるAD変換データの記憶アドレスとに基づいて、前のクランク角度におけるAD変換データが後のクランク角度におけるAD変換データに上書きされているか否かを判定できる。   If the data length of AD conversion executed every 5 ° CA is normal, it is a fixed length. In this embodiment, as described above, the AD conversion data for four cylinders at the crank angle is 16 bytes. Therefore, based on the storage address indicating the storage position of the AD conversion data at the previous crank angle and the storage address of the AD conversion data at the subsequent crank angle, the AD conversion data at the previous crank angle becomes the AD at the subsequent crank angle. It can be determined whether or not the conversion data is overwritten.

例えば、図4において、(n+1)番目のAD変換データの記憶アドレスである#(n+1)とn番目のAD変換データの記憶アドレスである#nとに基づいて、n番目のAD変換データが(n+1)番目のAD変換データにより一部を上書きされていると判定できる。また、上書きされておらず正常なAD変換データが残っている部分も分かる。   For example, in FIG. 4, the nth AD conversion data is expressed as (n + 1) th AD conversion data storage address # (n + 1) and nth AD conversion data storage address #n. It can be determined that a part is overwritten by the (n + 1) th AD conversion data. In addition, it can be seen that a portion where normal AD conversion data is not overwritten and remains.

(加速判定)
本実施形態では、逓倍信号は、NE信号を入力する毎に前回と今回とのNE信号の周期を(1/2)倍して生成する信号であるから、NE信号と一致するタイミングの逓倍信号は正確なクランク角度を表わしている。これに対し、5°CA、15°CAのように、10°CA周期のNE信号の間に生成される逓倍信号が表わす5°CA、15°CAのようなクランク角度のタイミング(このタイミングを「逓倍タイミング」とも言う。)は、推定されたタイミングである。
(Acceleration judgment)
In the present embodiment, the multiplied signal is a signal generated by multiplying the period of the previous and current NE signals by (1/2) every time the NE signal is input, so that the multiplied signal having the same timing as the NE signal is generated. Represents the exact crank angle. On the other hand, crank angle timings such as 5 ° CA and 15 ° CA represented by a multiplied signal generated during an NE signal having a 10 ° CA period, such as 5 ° CA and 15 ° CA (this timing is changed to Also referred to as “multiplication timing”) is the estimated timing.

エンジンが一定速度で回転しているときは、NE信号のタイミングと同様に、逓倍タイミングも正確なクランク角度のタイミングを表わしており、NE信号の周期をT0、逓倍信号の周期をT1とすると、T1=T0/2となる。   When the engine is rotating at a constant speed, similarly to the NE signal timing, the multiplication timing also represents the exact crank angle timing, where the NE signal cycle is T0 and the multiplication signal cycle is T1. T1 = T0 / 2.

エンジンが加速するとNE信号の周期は短くなるので、加速前のNE信号の周期に基づいて生成された逓倍信号において、図5に示すように、10n°CAにおけるNE信号のタイミングと(10n+5)°CAにおける逓倍タイミングとの時間間隔T1は、加速しているときのNE信号の周期T0の1/2よりも長くなる。   As the engine accelerates, the period of the NE signal becomes shorter. Therefore, in the multiplied signal generated based on the period of the NE signal before acceleration, as shown in FIG. 5, the timing of the NE signal at 10 n ° CA and (10n + 5) ° The time interval T1 with the multiplication timing in CA is longer than ½ of the period T0 of the NE signal during acceleration.

このときの逓倍タイミングのAD変換により取得されるAD変換データは、適切なクランク角度からずれた角度位置でAD変換されたデータである。このように、適切な角度位置からずれた筒内圧力のAD変換データに基づいて燃焼状態を判定すると、燃焼状態を誤判定する恐れがある。   The AD conversion data acquired by AD conversion at the multiplication timing at this time is data that is AD converted at an angular position that deviates from an appropriate crank angle. As described above, if the combustion state is determined based on the AD conversion data of the in-cylinder pressure deviated from an appropriate angular position, there is a possibility that the combustion state is erroneously determined.

そこで、本実施形態では、逓倍タイミングにおいて所定の加速状態であれば、逓倍タイミングで取得したAD変換データを公開するときに、CPS66が取り得ない値として「0」を設定する。   Therefore, in the present embodiment, if the AD conversion data acquired at the multiplication timing is disclosed if the acceleration state is a predetermined acceleration state at the multiplication timing, “0” is set as a value that the CPS 66 cannot take.

加速判定は、例えば次のようにして行う。図5に示すように、(10n+5)°CAで表わされる逓倍タイミングの前後のNE信号のタイミングを表わす10n°CAと10(n+1)°CAとの周期T0、ならびに10n°CAのNEタイミングと(10n+5)°CAの逓倍タイミングとの時間間隔T1をそれぞれ計測し、T0/2T1の値が所定値以下であれば、(10n+5)°CAの逓倍タイミングにおいて加速状態であると判定する。   The acceleration determination is performed as follows, for example. As shown in FIG. 5, the period T0 of 10n ° CA and 10 (n + 1) ° CA representing the timing of the NE signal before and after the multiplication timing represented by (10n + 5) ° CA, and the NE timing of 10n ° CA ( Each time interval T1 with the multiplication timing of 10n + 5) ° CA is measured, and if the value of T0 / 2T1 is equal to or less than a predetermined value, it is determined that the vehicle is in the acceleration state at the multiplication timing of (10n + 5) ° CA.

次に、図6〜図11に、AD変換結果の異常を検出してAD変換データを公開するためにマイコン20が実行するAD変換処理のフローチャートを示す。各フローチャートにおいて「S」はステップを表わしている。   Next, FIGS. 6 to 11 are flowcharts of AD conversion processing executed by the microcomputer 20 in order to detect an abnormality in the AD conversion result and disclose the AD conversion data. In each flowchart, “S” represents a step.

(起動時処理)
エンジンECU10が起動すると、図6の起動時処理が実行される。まず、10°CA周期のNE信号から5°CA周期の逓倍信号を生成できるように、ハードクランク28の設定を行う(S400)。
(Processing at startup)
When the engine ECU 10 is activated, the activation process shown in FIG. 6 is executed. First, the hard crank 28 is set so that a multiplied signal with a 5 ° CA cycle can be generated from an NE signal with a 10 ° CA cycle (S400).

次に、逓倍信号に同期して、5°CA毎に実行されるAD変換のデータ、そのときのクランク角度、AD変換を実行する変換時刻、AD変換データを記憶する記憶アドレスを記憶するための設定を行う(S402)。例えば、データを記憶する領域の先頭アドレスを書き込みポインタに設定する。   Next, data for AD conversion executed every 5 ° CA in synchronization with the multiplication signal, a crank angle at that time, a conversion time for executing AD conversion, and a storage address for storing AD conversion data are stored. Settings are made (S402). For example, the start address of the data storage area is set as the write pointer.

そして、AD変換に抜けがあるか否か、あるいは前のクランク角度におけるAD変換データの一部が後のクランク角度におけるAD変換データで上書きされているか否かのデータチェックを開始するクランク角度をデータチェック角度として気筒毎に設定する(S404)。データチェック角度は、各気筒において燃焼行程の上死点を過ぎた所定のクランク角度に設定される。例えば、第1気筒は140°CA、第2気筒は680°CA、第3筒は320°CA、第4気筒は500°CAに設定される。   Then, the crank angle at which the data check is started to check whether there is any omission in the AD conversion or whether a part of the AD conversion data at the previous crank angle is overwritten with the AD conversion data at the subsequent crank angle. A check angle is set for each cylinder (S404). The data check angle is set to a predetermined crank angle that has passed the top dead center of the combustion stroke in each cylinder. For example, the first cylinder is set to 140 ° CA, the second cylinder is set to 680 ° CA, the third cylinder is set to 320 ° CA, and the fourth cylinder is set to 500 ° CA.

(角度同期処理)
図7の角度同期処理は、逓倍信号に同期して実行される。各気筒におけるCPS66の出力信号と、出力信号を増幅した信号とをそれぞれAD変換し(S410)、AD変換した結果であるAD変換データを図13に示す変換データ領域200にCPS出力値A、Bとして気筒毎に記憶する(S412)。
(Angle synchronization processing)
The angle synchronization process in FIG. 7 is executed in synchronization with the multiplied signal. The CPS 66 output signal and the signal obtained by amplifying the output signal in each cylinder are AD-converted (S410), and AD conversion data obtained as a result of the AD conversion is converted into CPS output values A and B in the conversion data area 200 shown in FIG. Is stored for each cylinder (S412).

さらに、AD変換を実行するときのクランク角度、変換時刻、AD変換データを記憶する先頭の記憶アドレスを、それぞれ図13に示すクランク角度領域202、変換時刻領域204、記憶アドレス領域206に記憶する(S414、S416、S418)。   Furthermore, the crank angle, the conversion time, and the head storage address for storing AD conversion data when executing AD conversion are stored in the crank angle area 202, the conversion time area 204, and the storage address area 206 shown in FIG. S414, S416, S418).

(データチェック処理)
図8のデータチェック処理は、図6のS404で気筒毎に設定されたデータチェック角度になると実行される。
(Data check process)
The data check process of FIG. 8 is executed when the data check angle set for each cylinder in S404 of FIG. 6 is reached.

まず、データチェック角度に該当する処理気筒について、図13に示す対応する公開データ領域210、212を初期化する。図13では#n気筒の公開データ領域として2面の公開データ領域210、212を示しているが、実際には、気筒毎にCPS出力値A、Bに対応して2面、4気筒の合計で8面の公開データ領域がRAM26に設けられている。公開データの初期値としては、筒内圧力を検出するCPS66の出力信号が取り得ない値として「0」が設定される(S420)。公開データ領域の初期化処理については、図9で詳細に説明する。   First, for the processing cylinder corresponding to the data check angle, the corresponding public data areas 210 and 212 shown in FIG. 13 are initialized. In FIG. 13, the public data areas 210 and 212 of the two surfaces are shown as the public data areas of the #n cylinder, but actually, the total of the two surfaces and the four cylinders corresponding to the CPS output values A and B for each cylinder. The eight public data areas are provided in the RAM 26. As the initial value of the public data, “0” is set as a value that cannot be taken by the output signal of the CPS 66 that detects the in-cylinder pressure (S420). The initialization process of the public data area will be described in detail with reference to FIG.

次に、1燃焼サイクルに相当する720°CAにおいて5°CA周期で実行されるAD変換回数として144をu1t_chkcntに設定し、u1t_indexに0を設定する(S422)。u1t_indexは、図13に示す公開データ領域210、212を除いた各領域に逓倍信号に同期して5°CA毎に記憶されるデータの位置を示している。u1t_indexに0が設定されることにより、該当する領域の先頭から処理が開始される。   Next, 144 is set to u1t_chkcnt and 0 is set to u1t_index as the number of AD conversions executed at a cycle of 5 ° CA at 720 ° CA corresponding to one combustion cycle (S422). u1t_index indicates the position of data stored for each 5 ° CA in synchronization with the multiplication signal in each area except the public data areas 210 and 212 shown in FIG. When 0 is set in u1t_index, the process starts from the top of the corresponding area.

そして、S424〜S434の処理により、各気筒においてAD変換データの取得を開始する角度から終了する角度の間で、変換データ領域200に記憶されているAD変換データを、気筒毎に確保されている公開データ領域にコピーして記憶する。   And by the process of S424-S434, the AD conversion data memorize | stored in the conversion data area | region 200 are ensured for every cylinder between the angles which complete | finish from the angle which starts acquisition of AD conversion data in each cylinder. Copy and store in the public data area.

まず、S424において、u1t_indexがu1t_chkcntよりも小さいか否かを判定する。u1t_indexがu1t_chkcnt以上になると(S424:No)、変換データ領域200のすべてのAD変換データが処理されたと判断し、本処理を終了する。   First, in S424, it is determined whether u1t_index is smaller than u1t_chkcnt. When u1t_index becomes equal to or greater than u1t_chkcnt (S424: No), it is determined that all AD conversion data in the conversion data area 200 has been processed, and this process is terminated.

次に、u1t_indexが示すクランク角度領域202のクランク角度をu2t_crnkに設定し(S426)、u2t_crnkに設定されたクランク角度が処理気筒のAD変換データの取得角度の範囲内であるか否かを判定する(S428)。   Next, the crank angle of the crank angle region 202 indicated by u1t_index is set to u2t_crnk (S426), and it is determined whether or not the crank angle set to u2t_crnk is within the range of the acquisition angle of the AD conversion data of the processing cylinder. (S428).

各気筒においてAD変換データの取得開始角度と取得終了角度とにより決定されるAD変換データの取得角度範囲は、第1気筒:620°CA〜140°CA、第2気筒:440°CA〜680°CA、第3気筒:80°CA〜320°CA、第4気筒:260°CA〜500°CAである。   The AD conversion data acquisition angle ranges determined by the AD conversion data acquisition start angle and acquisition end angle in each cylinder are as follows: first cylinder: 620 ° CA to 140 ° CA, second cylinder: 440 ° CA to 680 °. CA, third cylinder: 80 ° CA to 320 ° CA, and fourth cylinder: 260 ° CA to 500 ° CA.

クランク角度がAD変換データの取得角度の範囲から外れている場合(S428:No)、S430〜S434の処理を実行せずS436に処理を移行する。つまり、処理気筒において取得対象ではないクランク角度のAD変換データは読み飛ばされる。   When the crank angle is out of the range of the AD conversion data acquisition angle (S428: No), the process proceeds to S436 without executing the processes of S430 to S434. That is, the AD conversion data of the crank angle that is not the acquisition target in the processing cylinder is skipped.

クランク角度がAD変換データの取得角度の範囲内である場合(S428:Yes)、S430の加速判定処理において今回の逓倍信号のタイミングでエンジン回転速度が加速されたか否かを判定する。加速判定処理については、図10で詳細に説明する。   If the crank angle is within the range of the AD conversion data acquisition angle (S428: Yes), it is determined in the acceleration determination process of S430 whether or not the engine speed has been accelerated at the timing of the current multiplied signal. The acceleration determination process will be described in detail with reference to FIG.

図10の加速判定処理において、今回の逓倍信号のタイミングでエンジン回転速度が加速されたと判定され加速判定フラグがオンの場合(S432:Yes)、S434のデータコピー処理を実行せずS436に処理を移行する。S434のデータコピー処理では、変換データ領域200に記憶されている処理気筒のAD変換データが公開データ領域にコピーされる。データコピー処理については、図11において詳細に説明する。   In the acceleration determination process of FIG. 10, when it is determined that the engine speed has been accelerated at the timing of the current multiplied signal and the acceleration determination flag is on (S432: Yes), the data copy process of S434 is not executed, and the process proceeds to S436. Transition. In the data copy process of S434, the AD conversion data of the processing cylinder stored in the conversion data area 200 is copied to the public data area. The data copy process will be described in detail with reference to FIG.

したがって、今回の逓倍信号のタイミングでエンジン回転速度が加速された場合にS434のデータコピー処理が実行されないことにより、公開データ領域において加速時のAD変換データは初期値のままである。   Accordingly, when the engine speed is accelerated at the timing of the current multiplied signal, the data copy process of S434 is not executed, and the AD conversion data at the time of acceleration remains the initial value in the public data area.

図10の加速判定処理において、今回の逓倍信号のタイミングでエンジン回転速度が加速されていないと判定され加速判定フラグがオフの場合(S432:No)、S434のデータコピー処理が実行される。   In the acceleration determination process of FIG. 10, when it is determined that the engine speed is not accelerated at the timing of the current multiplication signal and the acceleration determination flag is off (S432: No), the data copy process of S434 is executed.

S436では、u1t_indexが+1され、S424に処理が移行されので、次の逓倍信号のタイミングでAD変換されて記憶されたAD変換データがチェックされる。
(公開データ初期化処理)
図9に図8のS420で実行される公開データ初期化処理を示す。
In S436, u1t_index is incremented by 1, and the process proceeds to S424. Therefore, AD conversion data stored after being AD converted at the timing of the next multiplied signal is checked.
(Public data initialization process)
FIG. 9 shows the public data initialization process executed in S420 of FIG.

まず、処理気筒の公開データ領域のデータ位置を示すu1t_copyidxに0を設定する(S440)。これにより、処理気筒の公開データ領域の先頭位置が示される。次に、S442〜S446の処理により、処理気筒の公開データ領域のデータが初期化される。   First, 0 is set to u1t_copyidx indicating the data position of the public data area of the processing cylinder (S440). Thereby, the head position of the public data area of the processing cylinder is indicated. Next, the data in the public data area of the processing cylinder is initialized by the processing of S442 to S446.

S442において、処理気筒において逓倍信号に同期してAD変換され、公開データ領域にコピーされる公開データエントリー数よりもu1t_copyidxが小さいか否かが判定される。u1t_copyidxが公開データエントリー数以上の場合(S442:No)、処理気筒の公開データ領域がすべて初期化されたと判断し本処理を終了する。   In S442, it is determined whether or not u1t_copyidx is smaller than the number of public data entries that are AD-converted in the processing cylinder in synchronization with the multiplication signal and copied to the public data area. If u1t_copyidx is equal to or greater than the number of public data entries (S442: No), it is determined that all the public data areas of the processing cylinders have been initialized, and this process ends.

u1t_copyidxが公開データエントリー数よりも小さい場合(S442:Yes)、u1t_copyidxが示す処理気筒の公開データ領域のエントリー位置に初期値として0を設定し(S444)、u1t_copyidxを+1し(S446)、S442に処理を移行する。   If u1t_copyidx is smaller than the number of public data entries (S442: Yes), 0 is set as the initial value for the entry position in the public data area of the processing cylinder indicated by u1t_copyidx (S444), u1t_copyidx is incremented by 1 (S446), and S442 is entered. Migrate processing.

(加速判定処理)
図10に図8のS430で実行される加速判定処理を示す。
まず、今回、公開データ領域にコピーするAD変換データのクランク角度が、10°CAの倍数のNE信号のタイミングではなく、NE信号とNE信号との間で逓倍信号により推定される5°CA、15°CA、・・・705°CA、715°CAが表わす逓倍タイミングであるか否かを判定する。
(Acceleration judgment processing)
FIG. 10 shows the acceleration determination process executed in S430 of FIG.
First, at this time, the crank angle of the AD conversion data copied to the public data area is not the timing of the NE signal that is a multiple of 10 ° CA, but 5 ° CA estimated by the multiplied signal between the NE signal and the NE signal. It is determined whether or not the multiplication timing is represented by 15 ° CA,... 705 ° CA, 715 ° CA.

逓倍タイミングではなくNE信号タイミングであれば(S450:No)、10°CA周期の適切なクランク角度位置でAD変化が実行されたと判断し、加速判定フラグをオフにし(S452)、本処理を終了する。加速判定フラグがオフの場合、図8のS434が実行され、該当する逓倍タイミングのクランク角度におけるAD変換データが公開データ領域にコピーされる。   If it is the NE signal timing instead of the multiplication timing (S450: No), it is determined that the AD change has been executed at an appropriate crank angle position of 10 ° CA cycle, the acceleration determination flag is turned off (S452), and this process ends. To do. When the acceleration determination flag is OFF, S434 in FIG. 8 is executed, and AD conversion data at the crank angle at the corresponding multiplication timing is copied to the public data area.

逓倍タイミングであれば(S450:Yes)、今回の逓倍タイミングの前後のNE信号の時間間隔T0、ならびに今回の逓倍タイミングの前のNE信号タイミングと今回の逓倍タイミングとの時間間隔T1を、次式(1)、(2)から算出する(S454)。
T0=変換時刻[u1t_index+1]−変換時刻[u1t_index−1]
・・・(1)
T1=変換時刻[u1t_index]−変換時刻[u1t_index−1]
・・・(2)
そして、T1に対するT0/2の比であるT0/2T1が所定の加速判定値以下であるか否かを判定する(S456)。加速判定値は1より小さい値である。
If it is the multiplication timing (S450: Yes), the time interval T0 of the NE signal before and after the current multiplication timing, and the time interval T1 between the NE signal timing before the current multiplication timing and the current multiplication timing are expressed by the following equations. Calculated from (1) and (2) (S454).
T0 = conversion time [u1t_index + 1] −conversion time [u1t_index−1]
... (1)
T1 = conversion time [u1t_index] −conversion time [u1t_index−1]
... (2)
Then, it is determined whether T0 / 2T1, which is the ratio of T0 / 2 to T1, is equal to or less than a predetermined acceleration determination value (S456). The acceleration determination value is a value smaller than 1.

T0/2T1が加速判定値より大きい場合(S456:No)、今回の逓倍タイミングにおいてエンジンは加速状態ではないと判断し、S452に処理を移行して加速判定フラグをオフに設定する。加速判定フラグがオフであることは、今回のクランク角度におけるAD変換データは公開すべきデータであることを示している。   When T0 / 2T1 is larger than the acceleration determination value (S456: No), it is determined that the engine is not in an acceleration state at the current multiplication timing, the process proceeds to S452, and the acceleration determination flag is set to OFF. The fact that the acceleration determination flag is OFF indicates that the AD conversion data at the current crank angle is data to be disclosed.

T0/2T1が加速判定値以下であれば(S456:Yes)、今回の逓倍タイミングにおいてエンジンは加速状態にあると判断し、加速判定フラグをオンに設定する(S458)。   If T0 / 2T1 is equal to or less than the acceleration determination value (S456: Yes), it is determined that the engine is in an acceleration state at the current multiplication timing, and the acceleration determination flag is set to ON (S458).

加速判定フラグがオンであることは、今回の逓倍タイミングのAD変換により取得されたAD変換データは、適切なクランク角度からずれたデータであることを示している。適切なクランク角度からずれた筒内圧力のAD変換データに基づいて燃焼状態を判定すると、燃焼状態を誤判定する恐れがある。したがって、加速判定フラグがオンの場合、図8のS434は実行されないので、公開データ領域の該当する逓倍タイミングのクランク角度におけるAD変換データは初期値のままである。   The acceleration determination flag being on indicates that the AD conversion data acquired by the AD conversion at the current multiplication timing is data that deviates from an appropriate crank angle. If the combustion state is determined based on the AD conversion data of the in-cylinder pressure deviated from an appropriate crank angle, the combustion state may be erroneously determined. Therefore, when the acceleration determination flag is on, S434 in FIG. 8 is not executed, and the AD conversion data at the crank angle at the corresponding multiplication timing in the public data area remains the initial value.

(データコピー処理)
図11に図8のS434で実行されるデータコピー処理を示す。また、各気筒において、1燃焼サイクル中において逓倍信号に同期して5°CA周期でAD変換されたデータを公開データ領域にコピーする対象となるクランク角度と、コピー対象のクランク角度におけるAD変換データを公開データ領域中にコピーするオフセット位置とを、図12のコピー先算出マップに示す。
(Data copy processing)
FIG. 11 shows the data copy process executed in S434 of FIG. Further, in each cylinder, the crank angle that is a target of copying the data AD-converted in a cycle of 5 ° CA in synchronization with the multiplication signal in one combustion cycle to the public data area, and the AD conversion data at the crank angle to be copied The offset position for copying in the public data area is shown in the copy destination calculation map of FIG.

例えば、第1気筒(#1)のコピー対象角度範囲は前述したように620°CA〜140°CAであり、100°CAのAD変換データは、第1気筒の公開データ領域において先頭を0番とすると40番目のオフセット位置にコピーされる。処理気筒のコピー対象であるクランク角度を表わすu2t_crnkは、図8のS426において選択されている。   For example, the copy target angle range of the first cylinder (# 1) is 620 ° CA to 140 ° CA as described above, and the AD conversion data of 100 ° CA starts with the number 0 in the public data area of the first cylinder. Then, it is copied to the 40th offset position. U2t_crnk representing the crank angle to be copied of the processing cylinder is selected in S426 of FIG.

まずS460において、今回AD変換データを公開データ領域にコピーする処理気筒と、コピー対象となるクランク角度を表わすu2t_crnkとにより、図12のコピー先算出マップから、処理気筒の公開データ領域にAD変換データをコピーするオフセット位置をu1t_copyidxに設定する。   First, in S460, the AD conversion data is copied from the copy destination calculation map of FIG. 12 to the public data area of the processing cylinder from the copy destination calculation map of FIG. Is set to u1t_copyidx.

次に、変換データ領域において今回のコピー対象であるクランク角度におけるAD変換データが記憶されている先頭アドレスをu1t_indexにより記憶アドレス領域206から取得してu4t_copyadrに設定し、次のコピー対象であるクランク角度におけるAD変換データが記憶されている先頭アドレスを(u1t_index+1)により記憶アドレス領域206から取得してu4t_nextadrに設定する(S462)。   Next, the head address where the AD conversion data at the crank angle that is the current copy target in the conversion data area is stored from the storage address area 206 by u1t_index and set to u4t_copyadr, and the crank angle that is the next copy target The head address in which AD conversion data is stored is acquired from the storage address area 206 by (u1t_index + 1) and set to u4t_nextadr (S462).

アドレスオフセットは、変換データ領域200においてコピー対象であるクランク角度におけるAD変換データが記憶されている先頭アドレスから、今回の処理気筒のCPS出力値A、Bがどの位置にあるかを示している。各気筒のCPS出力値A、Bのそれぞれのアドレスオフセットは、第1気筒は0と2、第2気筒は4と6、第3気筒は8と10、第4気筒は12と14である。   The address offset indicates in which position the CPS output values A and B of the current processing cylinder are located from the start address where AD conversion data at the crank angle to be copied is stored in the conversion data area 200. The address offsets of the CPS output values A and B of each cylinder are 0 and 2 for the first cylinder, 4 and 6 for the second cylinder, 8 and 10 for the third cylinder, and 12 and 14 for the fourth cylinder.

次に、処理気筒のCPS出力値A、Bのアドレスオフセットについて、それぞれu4t_copyadr+アドレスオフセットがu4t_nextadrより小さいか否かを判定する(S464)。   Next, for the address offsets of the CPS output values A and B of the processing cylinder, it is determined whether or not u4t_copyadr + address offset is smaller than u4t_nextadr (S464).

CPS出力値A、Bのアドレスオフセットについて、(u4t_copyadr+アドレスオフセット)がu4t_nextadrより小さい場合(S464:Yes)、アドレスオフセットに該当するAD変換データは、次のコピー対象であるクランク角度におけるAD変換データにより上書きされていないと判断する。   When the address offset of the CPS output values A and B is (u4t_copyadr + address offset) smaller than u4t_nextadr (S464: Yes), the AD conversion data corresponding to the address offset is based on the AD conversion data at the crank angle to be copied next. Judge that it has not been overwritten.

そして、(u4t_copyadr+アドレスオフセット)が示すアドレスに記憶されており上書きされていないと判断された変換データ領域200の2バイトまたは4バイトのデータを、公開データ領域においてu1t_copyidxが示すオフセット位置にコピーする。   Then, the 2-byte or 4-byte data stored in the address indicated by (u4t_copyadr + address offset) and determined not to be overwritten is copied to the offset position indicated by u1t_copyidx in the public data area.

(u4t_copyadr+アドレスオフセット)がu4t_nextadr以上、つまり処理気筒のCPS出力値AまたはCPS出力値Bの記憶アドレスが次のクランク角度におけるAD変換データの先頭の記憶アドレス以上の場合(S464:No)、コピー対象であるAD変換データは次のクランク角度におけるAD変換データにより上書きされていると判断する。   If (u4t_copyadr + address offset) is greater than or equal to u4t_nextadr, that is, the storage address of the CPS output value A or CPS output value B of the processing cylinder is greater than or equal to the first storage address of the AD conversion data at the next crank angle (S464: No) It is determined that the AD conversion data is overwritten by the AD conversion data at the next crank angle.

この場合、上書きされたAD変換データはコピーできないので本処理を終了する。つまり、公開データ領域において該当する処理気筒のAD変換データには初期値が設定された状態になる。この初期値は、以上説明した異常検出処理により、CPS66の出力として取り得ない値である「0」に設定されている。   In this case, since the overwritten AD conversion data cannot be copied, this processing is terminated. That is, the initial value is set in the AD conversion data of the corresponding processing cylinder in the public data area. This initial value is set to “0”, which is a value that cannot be obtained as the output of the CPS 66 by the abnormality detection process described above.

以上説明したように、AD変換処理が公開データ領域にコピーした筒内圧の公開データを、AD変換処理以外の他の処理、例えば異常燃焼の判定処理が参照して初期値であることが分かると、異常判定を中断するか、あるいは異常値に該当するクランク角度におけるAD変換データを前後のクランク角度における正常なAD変換データにより補間するなどの適切な処理を実行できる。その結果、異常なAD変換データに基づいて異常燃焼の有無を誤判定することを防止できる。   As described above, when the in-cylinder pressure public data copied to the public data area by the AD conversion process is referred to by other processes other than the AD conversion process, for example, the abnormal combustion determination process, it is understood that the initial value is obtained. Appropriate processing such as interrupting the abnormality determination or interpolating AD conversion data at the crank angle corresponding to the abnormal value with normal AD conversion data at the preceding and succeeding crank angles can be executed. As a result, it is possible to prevent erroneous determination of the presence or absence of abnormal combustion based on abnormal AD conversion data.

[他の実施形態]
上記実施形態では、AD変換の抜けと、前後に隣接するクランク角度において前のクランク角度におけるAD変換データの一部が後のクランク角度におけるAD変換データにより上書きされているときとの両方において、抜けている場合には公開データ領域の該当するクランク角度のデータ、上書きされている場合にはクランク角度の上書きされている部分に、CPS66の出力信号のAD変換データとしてあり得ない異常値を設定した。
[Other Embodiments]
In the above embodiment, both the missing AD conversion and the missing AD conversion data at the previous crank angle are overwritten by the AD conversion data at the subsequent crank angle at the crank angles adjacent to the front and rear. If it is overwritten, the data of the corresponding crank angle in the public data area is set, and if it is overwritten, an abnormal value that is not possible as AD conversion data of the output signal of the CPS 66 is set in the overwritten portion of the crank angle. .

これに対し、本発明では、抜けている場合または上書きされている場合の一方においてだけ、公開データ領域の該当部分に異常値を設定してもよい。
また、上書きされている場合には、上書きされていない部分も含め該当するクランク角度のデータをすべて異常値に設定してもよい。
On the other hand, according to the present invention, an abnormal value may be set in the corresponding part of the public data area only in one of the case where it is missing or overwritten.
If overwritten, the crank angle data including the non-overwritten portion may be set to an abnormal value.

上記実施形態では、記憶手段、結果判定手段、設定手段、および加速判定手段の機能を、制御プログラムにより機能が特定されるエンジンECU10により実現している。これに対し、上記複数の手段の機能の少なくとも一部を、回路構成自体で機能が特定されるハードウェアで実現してもよい。   In the above embodiment, the functions of the storage unit, result determination unit, setting unit, and acceleration determination unit are realized by the engine ECU 10 whose functions are specified by the control program. On the other hand, at least some of the functions of the plurality of means may be realized by hardware whose functions are specified by the circuit configuration itself.

このように、本発明は、上記実施形態に限定されるものではなく、その要旨を逸脱しない範囲で種々の実施形態に適用可能である。   As described above, the present invention is not limited to the above-described embodiment, and can be applied to various embodiments without departing from the gist thereof.

10:エンジンECU(AD変換処理装置)、20:マイコン(AD変換手段、記憶手段、結果判定手段、設定手段、加速判定手段)、26:RAM(記憶装置)、32:ADC(AD変換手段)、200:変換データ領域、202:クランク角度領域、204:変換時刻領域、206:記憶アドレス領域(記憶位置領域)、210、212:公開データ領域 10: Engine ECU (AD conversion processing device), 20: Microcomputer (AD conversion means, storage means, result determination means, setting means, acceleration determination means), 26: RAM (storage device), 32: ADC (AD conversion means) , 200: Conversion data area, 202: Crank angle area, 204: Conversion time area, 206: Storage address area (storage position area), 210, 212: Public data area

Claims (5)

エンジンのクランク軸の回転に伴い所定の角度間隔で発生するクランク角信号の信号周期を逓倍数で割った周期の逓倍信号が表わすクランク角度に同期して、内燃機関の気筒内の圧力を検出する筒内圧センサの出力信号をAD変換するAD変換手段(32、S410)と、
前記AD変換手段によるAD変換データを記憶装置(26)の変換データ領域(200)に記憶する記憶手段(20、S412)と、
各クランク角度における前記AD変換データが前記変換データ領域に記憶されているか否か、あるいは前後に隣接する前記クランク角度において前の前記クランク角度における前記AD変換データの一部が後の前記クランク角度における前記AD変換データにより上書きされているか否かを判定する結果判定手段(20、S434)と、
前記結果判定手段により前記AD変換データが記憶されていないか、あるいは前記AD変換データの一部が上書きされていると判定された場合、前記変換データ領域に記憶されている前記AD変換データを前記記憶装置の公開データ領域(210、212)に記憶するときに、記憶されていないか上書きされている前記AD変換データを記憶する前記公開データ領域の該当記憶位置に異常を示す異常値を設定する設定手段(20、S420、S440〜S446)と、
を備えることを特徴とするAD変換処理装置。
The pressure in the cylinder of the internal combustion engine is detected in synchronization with a crank angle represented by a multiplication signal of a cycle obtained by dividing a signal cycle of a crank angle signal generated at a predetermined angular interval with rotation of the crankshaft of the engine by a multiplication number. AD conversion means (32, S410) for AD converting the output signal of the in-cylinder pressure sensor;
Storage means (20, S412) for storing the AD conversion data by the AD conversion means in the conversion data area (200) of the storage device (26);
Whether or not the AD conversion data at each crank angle is stored in the conversion data area, or a part of the AD conversion data at the previous crank angle at the crank angle adjacent to the front and rear is at the subsequent crank angle A result determination means (20, S434) for determining whether or not the data is overwritten by the AD conversion data;
When the result determination means determines that the AD conversion data is not stored or a part of the AD conversion data is overwritten, the AD conversion data stored in the conversion data area is When storing in the public data area (210, 212) of the storage device, an abnormal value indicating abnormality is set in the corresponding storage position of the public data area in which the AD conversion data that is not stored or overwritten is stored. Setting means (20, S420, S440 to S446);
An AD conversion processing device comprising:
前記記憶手段(20、S414)は、前記AD変換手段が前記筒内圧センサの出力信号をAD変換するときの前記クランク角度を前記記憶装置のクランク角度領域(202)に記憶し、
前記結果判定手段(20、S460)は、前記クランク角度領域に記憶されている前記クランク角度に抜けがある場合、抜けが生じている前記クランク角度における前記AD変換データが前記変換データ領域に記憶されていないと判定する、
ことを特徴とする請求項1に記載のAD変換処理装置。
The storage means (20, S414) stores the crank angle when the AD conversion means AD converts the output signal of the in-cylinder pressure sensor in a crank angle region (202) of the storage device,
The result determination means (20, S460) stores the AD conversion data at the crank angle at which the missing angle is stored in the converted data area when the crank angle stored in the crank angle area is missing. Judge that it is not,
The AD conversion processing apparatus according to claim 1.
前記記憶手段(20、S418)は、前記クランク角度の順番に前記AD変換データを前記変換データ領域に記憶し、各クランク角度における前記AD変換データを前記変換データ領域に記憶する記憶位置を前記記憶装置の記憶位置領域(206)に記憶し、
前記結果判定手段(20、S464)は、前記記憶位置領域に記憶されている前記記憶位置に基づいて、前後に隣接する前記クランク角度において前の前記クランク角度における前記AD変換データの一部が後の前記クランク角度における前記AD変換データにより上書きされているか否かを判定する、
ことを特徴とする請求項1または2に記載のAD変換処理装置。
The storage means (20, S418) stores the AD conversion data in the conversion data area in the order of the crank angle, and stores the storage position for storing the AD conversion data at each crank angle in the conversion data area. Stored in the storage location area (206) of the device,
Based on the storage position stored in the storage position area, the result determination means (20, S464) determines that a part of the AD conversion data at the previous crank angle in the adjacent crank angle is rearward. Determining whether or not it is overwritten by the AD conversion data at the crank angle of
The AD conversion processing apparatus according to claim 1 or 2, characterized in that
前記設定手段(20、S464、S466)は、前記結果判定手段により一部が上書きされていると判定された前記AD変換データを前記公開データ領域に記憶する場合、該当する前記AD変換データの上書きされていないデータはそのまま記憶し、上書きされている部分に前記異常値を設定する、
ことを特徴とする請求項3に記載のAD変換処理装置。
The setting means (20, S464, S466) overwrites the corresponding AD conversion data when storing the AD conversion data determined to be partially overwritten by the result determination means in the public data area. The data that has not been stored is stored as it is, and the abnormal value is set in the overwritten portion.
The AD conversion processing apparatus according to claim 3.
前記記憶手段(20、S416)は、前記クランク角度に同期して前記AD変換手段がAD変換を実行する変換時刻を前記記憶装置の変換時刻領域(204)に記憶し、
前記変換データ領域に記憶されている前記AD変換データを前記公開データ領域に記憶するときに、前記変換時刻領域に記憶されている前記変換時刻に基づいて、前後に隣接するクランク角度の間でエンジン回転速度の加速度が所定値以上になる加速が行なわれたか否かを判定する加速判定手段(20、S430、S450〜S458)を備え、
前記設定手段(20、S432)は、前記所定値以上の加速が行なわれたと前記加速判定手段が判定すると、加速が開始されたときの前記AD変換データを記憶する前記公開データ領域の該当記憶位置に前記異常値を設定する、
ことを特徴とする請求項1から4のいずれか一項に記載のAD変換処理装置。
The storage means (20, S416) stores a conversion time at which the AD conversion means executes AD conversion in synchronization with the crank angle in a conversion time area (204) of the storage device,
When the AD conversion data stored in the conversion data area is stored in the public data area, the engine between the crank angles adjacent to each other is based on the conversion time stored in the conversion time area. Accelerating determination means (20, S430, S450 to S458) for determining whether or not the acceleration at which the rotation speed acceleration is equal to or greater than a predetermined value has been performed;
The setting means (20, S432), when the acceleration determination means determines that the acceleration of the predetermined value or more has been performed, the corresponding storage position of the public data area for storing the AD conversion data when the acceleration is started Set the abnormal value to
The AD conversion processing apparatus according to any one of claims 1 to 4, wherein
JP2012114852A 2012-05-18 2012-05-18 AD conversion processor Active JP5799891B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012114852A JP5799891B2 (en) 2012-05-18 2012-05-18 AD conversion processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012114852A JP5799891B2 (en) 2012-05-18 2012-05-18 AD conversion processor

Publications (2)

Publication Number Publication Date
JP2013241870A JP2013241870A (en) 2013-12-05
JP5799891B2 true JP5799891B2 (en) 2015-10-28

Family

ID=49842980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012114852A Active JP5799891B2 (en) 2012-05-18 2012-05-18 AD conversion processor

Country Status (1)

Country Link
JP (1) JP5799891B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021050707A (en) * 2019-09-26 2021-04-01 川崎重工業株式会社 Combustion pressure data transmitter, ship-land communication system having the same, and combustion pressure data transmission method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5544934A (en) * 1978-09-26 1980-03-29 Toyota Motor Corp Top dead point detector for engine
JPH1144249A (en) * 1997-07-28 1999-02-16 Denso Corp Engine control device
JP4033138B2 (en) * 2004-02-04 2008-01-16 株式会社デンソー Combustion pressure signal processor
JP4532450B2 (en) * 2006-09-06 2010-08-25 株式会社デンソー Engine control data processing apparatus and engine control apparatus

Also Published As

Publication number Publication date
JP2013241870A (en) 2013-12-05

Similar Documents

Publication Publication Date Title
US7823561B2 (en) Method and apparatus for controlling ignition timing of an internal combustion engine based on engine rotary speed
JP6059194B2 (en) Internal combustion engine knock determination device
JP5203514B2 (en) Misfire detection device for internal combustion engine
KR101566733B1 (en) Method and apparatus for misfire detection by rev count of vehicle engine
JP2005220796A (en) Combustion pressure signal processor
JP4589238B2 (en) Internal combustion engine knock determination device
JP2009121303A (en) Misfire detecting apparatus for internal combustion engine
EP3093472A1 (en) Combustion status detection device for internal combustion engine
JP2606019B2 (en) Misfire detection device for internal combustion engine
JPWO2013069157A1 (en) In-cylinder pressure sensor abnormality diagnosis device and in-cylinder pressure sensor sensitivity correction device including the same
JP6911627B2 (en) AD conversion processing device
JP5799891B2 (en) AD conversion processor
JP4799645B2 (en) Control device for internal combustion engine
JP4827022B2 (en) Misfire detection device for internal combustion engine
JP2007198313A (en) Ignition timing control device for internal combustion engine
JP7390433B1 (en) Internal combustion engine control device
KR101869317B1 (en) Method for detecting synchronization error
US20150308924A1 (en) Method and device for detecting glow ignition of an internal combustion engine in a motor vehicle
US20130060451A1 (en) Abnormal combustion detection apparatus and control unit of internal combustion engine
JP4154007B2 (en) Cylinder identification device for multi-cylinder internal combustion engine
JPH0526951B2 (en)
US9760163B2 (en) Sensor signal processor
JP6407828B2 (en) Control device for internal combustion engine
JP2007077856A (en) Combustion condition judgment device for internal combustion engine
US20230408374A1 (en) Misfire determination device for internal combustion engine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140718

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150325

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150331

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150810

R151 Written notification of patent or utility model registration

Ref document number: 5799891

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250