Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7183205B2 - electronic controller - Google Patents
[go: Go Back, main page]

JP7183205B2 - electronic controller - Google Patents

electronic controller Download PDF

Info

Publication number
JP7183205B2
JP7183205B2 JP2020010810A JP2020010810A JP7183205B2 JP 7183205 B2 JP7183205 B2 JP 7183205B2 JP 2020010810 A JP2020010810 A JP 2020010810A JP 2020010810 A JP2020010810 A JP 2020010810A JP 7183205 B2 JP7183205 B2 JP 7183205B2
Authority
JP
Japan
Prior art keywords
time
clock
clocking
time data
microcomputer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020010810A
Other languages
Japanese (ja)
Other versions
JP2021117112A (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.)
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 JP2020010810A priority Critical patent/JP7183205B2/en
Publication of JP2021117112A publication Critical patent/JP2021117112A/en
Application granted granted Critical
Publication of JP7183205B2 publication Critical patent/JP7183205B2/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

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Electric Clocks (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Description

本発明は、例えば車両に搭載される電子制御装置に関する。 The present invention relates to an electronic control device mounted on a vehicle, for example.

従来、車両に搭載されるECU(Electric Control Unit)等の電子制御装置には、時計ICが実装されているものがある。この時計ICは、年、月、日、時、分及び秒の時刻要素単位で時間管理を行っており、時刻要素毎に異なるデータ領域を有している。また、このような時計ICは、例えばエンジンが停止してから始動するまでのソーク時間の計時に使用される。 2. Description of the Related Art Conventionally, an electronic control unit such as an ECU (Electric Control Unit) mounted on a vehicle has a clock IC mounted thereon. This clock IC manages time in units of time elements such as year, month, day, hour, minute, and second, and has a different data area for each time element. Also, such a clock IC is used, for example, to measure the soak time from when the engine is stopped to when it is started.

特許文献1は、IGスイッチの切り替えに伴う電源供給状態に応じて作動又は停止するECUに実装されるマイコンと、マイコンの作動/停止に関わらず継続的に時間を計測する時計ICと、を有する電子制御装置に関し、マイコンが時計ICの時刻データから算出したソーク時間とエンジン始動時における水温センサの検出値とから水温センサの故障を判定する構成を開示している。 Patent document 1 has a microcomputer mounted on an ECU that operates or stops depending on the power supply state associated with switching of an IG switch, and a clock IC that continuously measures time regardless of whether the microcomputer operates or stops. As for an electronic control unit, a configuration is disclosed in which a microcomputer determines failure of a water temperature sensor based on a soak time calculated from time data of a clock IC and a detection value of the water temperature sensor when an engine is started.

このような従来の電子制御装置としては、時計ICの故障を検出するものがある。従来の時計ICの故障検出方法は、時計ICと通信するマイクロコンピュータにおいて基準時刻を計時し、時計ICにおいて計時した時刻とマイクロコンピュータにおいて計時した基準時刻とを比較して、この比較結果における誤差が所定範囲外である場合に、時計ICの故障を検出する。 As such a conventional electronic control device, there is one that detects failure of the clock IC. A conventional clock IC failure detection method measures a reference time in a microcomputer communicating with the clock IC, compares the time measured by the clock IC with the reference time measured by the microcomputer, and determines whether there is an error in the comparison result. If it is out of the predetermined range, a malfunction of the clock IC is detected.

特開2002-14726号公報JP-A-2002-14726

しかしながら、本発明者の検討によれば、時計IC等の計時部において時刻要素の一部に故障等の異常を生じた場合に、時刻要素毎にデータ領域を有しているため、異常検出を行うタイミングによっては異常を検出することができない。例えば、一部の時刻要素に異常を生じている場合において、異常を検出するまでの間に異常を生じている時刻要素が更新されるタイミングにならない場合には、異常を検出することができない。 However, according to the study of the present inventor, when an abnormality such as a failure occurs in a part of the time element in the clock IC or the like, the abnormality can be detected because each time element has a data area. An abnormality cannot be detected depending on the timing. For example, when an abnormality occurs in some time elements, the abnormality cannot be detected if the time element causing the abnormality is not updated before the abnormality is detected.

本発明は、以上の検討を経てなされたものであり、計時部に生じた異常を精度よく検出することができる電子制御装置を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide an electronic control device capable of accurately detecting an abnormality occurring in a timekeeping section.

以上の目的を達成するべく、本発明は、時刻を計時する第1の計時処理を実行する計時部と、前記計時部とは独立して時刻を計時する第2の計時処理を実行すると共に、前記第2の計時処理による計時結果と前記第1の計時処理による計時結果との比較に基づいて、前記計時部の異常を検出する制御部と、を有する電子制御装置であって、前記制御部は、前記計時部の時刻データを前記時刻データの全ての時刻要素を所定時間内に更新可能なテスト時刻データに書換えて前記計時部に前記第1の計時処理を実行させるウェイト処理を実行し、前記ウェイト処理の開始時から前記所定時間が経過した際の前記第2の計時処理により計時する時刻と前記計時部において前記第1の計時処理により計時する時刻との比較結果に基づいて、前記計時部の異常を検出する異常検出処理を実行することを第1の局面とする。 In order to achieve the above objects, the present invention provides a timekeeping unit for executing a first timekeeping process for keeping time, and a second timekeeping process for keeping time independently of the timekeeping unit, and a control unit that detects an abnormality of the time measuring unit based on a comparison between the time measuring result of the second time measuring process and the time measuring result of the first time measuring process, wherein the control unit performs a wait process of rewriting the time data of the timekeeping unit into test time data that can update all time elements of the time data within a predetermined time, and causing the timekeeping unit to execute the first timekeeping process; Based on the result of comparison between the time measured by the second timekeeping process when the predetermined time has elapsed from the start of the wait process and the time measured by the first timekeeping process in the timekeeping unit, the timekeeping is performed. A first aspect is to execute an abnormality detection process for detecting an abnormality in a part.

また、本発明は、第1の局面に加えて、前記制御部は、前記ウェイト処理において前記テスト時刻データに書換える前の前記計時部の前記時刻データを読出して記憶し、前記異常検出処理において前記計時部が正常である場合において、前記ウェイト処理の開始時から前記所定時間が経過した際に、記憶した前記時刻データの時刻に前記所定時間を加えた現在時刻の現在時刻データを前記計時部に書き戻すことを第2の局面とする。 In addition to the first aspect of the present invention, the control unit reads and stores the time data of the clock unit before being rewritten to the test time data in the wait process, and in the abnormality detection process When the timekeeping unit is normal, when the predetermined time has passed since the start of the wait process, the current time data of the current time obtained by adding the predetermined time to the time of the stored time data is stored in the timekeeping unit. A second phase is to write back to .

本発明の第1の局面にかかる電子制御装置によれば、時刻を計時する第1の計時処理を実行する計時部と、計時部とは独立して時刻を計時する第2の計時処理を実行すると共に、第2の計時処理による計時結果と第1の計時処理による計時結果との比較に基づいて、計時部の異常を検出する制御部と、を有する電子制御装置であって、制御部は、計時部の時刻データを時刻データの全ての時刻要素を所定時間内に更新可能なテスト時刻データに書換えて計時部に第1の計時処理を実行させるウェイト処理を実行し、ウェイト処理の開始時から所定時間が経過した際の第2の計時処理により計時する時刻と計時部において第1の計時処理により計時する時刻との比較結果に基づいて、計時部の異常を検出する異常検出処理を実行するものであるため、計時部に生じた異常を精度よく検出することができる。 According to the electronic control device according to the first aspect of the present invention, the timekeeping section that performs the first timekeeping process for keeping time and the second timekeeping process that keeps time independently of the timekeeping section are executed. and a control unit that detects an abnormality of the time measuring unit based on a comparison between the result of time measurement by the second time measurement process and the result of time measurement by the first time measurement process, the control unit comprising: , rewrites the time data of the timekeeping unit to test time data that can update all time elements of the time data within a predetermined time, executes wait processing for causing the timekeeping unit to execute the first timekeeping processing, and when the wait processing is started Execute an abnormality detection process for detecting an abnormality in the clock unit based on the comparison result between the time clocked by the second clock processing and the time clocked by the clock unit by the first clock processing when a predetermined time has elapsed since Therefore, it is possible to accurately detect an abnormality occurring in the clock section.

また、本発明の第2の局面にかかる電子制御装置によれば、制御部は、ウェイト処理においてテスト時刻データに書換える前の計時部の時刻データを読出して記憶し、異常検出処理において計時部が正常である場合において、ウェイト処理の開始時から所定時間が経過した際に、記憶した時刻データの時刻に所定時間を加えた現在時刻の現在時刻データを計時部に書き戻すものであるため、異常検出処理を実行する場合において計時部に正確な現在時刻を継続して計時させることができる。 Further, according to the electronic control device according to the second aspect of the present invention, the control unit reads out and stores the time data of the timekeeping unit before being rewritten to the test time data in the wait process, and stores the time data in the timekeeping unit in the abnormality detection process. is normal, when the predetermined time has passed since the start of the wait process, the current time data obtained by adding the predetermined time to the time of the stored time data is written back to the clock unit. When executing the abnormality detection process, it is possible to cause the timekeeping unit to continuously keep accurate current time.

図1は、本発明の実施形態における電子制御装置の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an electronic control unit according to an embodiment of the invention. 図2は、本発明の実施形態における電子制御装置の動作を示すフロー図である。FIG. 2 is a flow diagram showing the operation of the electronic control unit according to the embodiment of the invention. 図3は、本発明の実施形態における電子制御装置が実行するテスト時刻データへの書換え処理の流れの一例を示す図である。FIG. 3 is a diagram showing an example of the flow of rewriting processing to test time data executed by the electronic control unit according to the embodiment of the present invention. 図4は、本発明の実施形態における電子制御装置が実行する時計IC制御処理を示すフロー図である。FIG. 4 is a flowchart showing a timepiece IC control process executed by the electronic control device according to the embodiment of the invention. 図5は、本発明の実施形態における電子制御装置が実行する時計IC制御処理の流れの一例を示すタイミングチャートである。FIG. 5 is a timing chart showing an example of the flow of timepiece IC control processing executed by the electronic control device according to the embodiment of the present invention.

以下、図面を適宜参照して、本発明の実施形態における電子制御装置につき、詳細に説明する。 Hereinafter, an electronic control device according to an embodiment of the present invention will be described in detail with reference to the drawings as appropriate.

<電子制御装置の構成>
図1を参照して、本実施形態における電子制御装置の構成について、詳細に説明する。
<Configuration of electronic control unit>
The configuration of the electronic control unit according to the present embodiment will be described in detail with reference to FIG.

図1は、本実施形態における電子制御装置の構成を示すブロック図である。 FIG. 1 is a block diagram showing the configuration of an electronic control unit according to this embodiment.

図1に示すように、本実施形態における電子制御装置1は、図示を省略する車両、典型的には自動二輪車に搭載されるものであり、ECU(ElectricControl Unit)等によって構成されている。電子制御装置1は、バッテリー2からサブ電源3を介して電力が供給されると共に、イグニションスイッチ5がオンの場合にはバッテリー2からメイン電源4を介して電力が供給される。 As shown in FIG. 1, an electronic control unit 1 in this embodiment is mounted on a vehicle (not shown), typically a motorcycle, and is composed of an ECU (Electric Control Unit) and the like. The electronic control unit 1 is supplied with power from the battery 2 through the sub-power supply 3 and is also supplied with power from the battery 2 through the main power supply 4 when the ignition switch 5 is on.

具体的には、電子制御装置1は、サブ電源供給IC11、メイン電源供給IC12、時計IC13及びマイクロコンピュータ14を備えている。 Specifically, the electronic control unit 1 includes a sub power supply IC 11 , a main power supply IC 12 , a clock IC 13 and a microcomputer 14 .

サブ電源供給IC11は、サブ電源3から供給される電力を所定の電圧値及び電流値の電力に変換して時計IC13に供給する。 The sub-power supply IC 11 converts the power supplied from the sub-power supply 3 into power having a predetermined voltage value and current value, and supplies the power to the clock IC 13 .

メイン電源供給IC12は、メイン電源4から供給される電力を所定の電圧値及び電流値の電力に変換してマイクロコンピュータ14に供給する。 The main power supply IC 12 converts the power supplied from the main power supply 4 into power having a predetermined voltage value and current value, and supplies the power to the microcomputer 14 .

計時部としての時計IC13は、バッテリー2からサブ電源供給IC11を介して常時電力の供給を受けており、サブ電源供給IC11から電力の供給を受けて駆動することにより時刻を計時する計時処理(第1の計時処理)を実行する。時計IC13は、マイクロコンピュータ14の制御によって計時処理を実行し、例えば図示しない内燃機関としてのエンジンの駆動停止時から次の駆動開始時までのソーク時間を計時する。 The clock IC 13 as a clocking unit is constantly supplied with power from the battery 2 via the sub power supply IC 11, and is driven by receiving the power supply from the sub power supply IC 11 to perform a clocking process (second clocking process). 1) is executed. The clock IC 13 executes timing processing under the control of the microcomputer 14, for example, clocks the soak time from when the engine as an internal combustion engine (not shown) is stopped to when it is next started.

制御部としてのマイクロコンピュータ14は、イグニションスイッチ5がオンの場合にメイン電源供給IC12から電力の供給を受けて駆動し、電子制御装置1の全体の動作を制御する。マイクロコンピュータ14は、時計IC13と通信することにより、時計IC13が実行する計時処理を制御する。マイクロコンピュータ14は、時計IC13とは独立して基準時刻を計時する計時処理(第2の計時処理)を実行する。 A microcomputer 14 as a control unit is driven by power supply from the main power supply IC 12 when the ignition switch 5 is on, and controls the overall operation of the electronic control unit 1 . The microcomputer 14 controls the timing process executed by the clock IC 13 by communicating with the clock IC 13 . The microcomputer 14 executes timekeeping processing (second timekeeping processing) for keeping a reference time independently of the clock IC 13 .

マイクロコンピュータ14は、時計IC13の異常を検出するための書換え要求が発生した際に、時計IC13の時刻データをテスト時刻データに書換えて時計IC13に計時処理を実行させると共に、時計IC13に計時処理を実行させた際の処理結果と、マイクロコンピュータ14が計時する基準時刻の計時処理における処理結果と、の比較に基づいて、時計IC13の異常を検出する異常検出処理を実行する。ここで、テスト時刻データは、時刻データの全ての時刻要素を所定時間内に更新可能な時刻のデータである。 When a rewrite request for detecting an abnormality in the clock IC 13 is generated, the microcomputer 14 rewrites the time data of the clock IC 13 to test time data, causes the clock IC 13 to perform the timekeeping process, and causes the clock IC 13 to perform the timekeeping process. An abnormality detection process for detecting an abnormality in the clock IC 13 is performed based on a comparison between the result of the process executed and the result of the clocking process of the reference time clocked by the microcomputer 14 . Here, the test time data is time data that can update all the time elements of the time data within a predetermined time.

マイクロコンピュータ14は、エンジンが駆動されているあいだ常に初期化要求を発生すると共に書換え要求が発生した際に、時計IC13の時刻データを初期化時刻データに書換えて、時計IC13にソーク時間を計時させる。ここで、初期化時刻データは、例えば00年01月01日00時00分00秒を示すデータであるが、これに限らず任意の年、月、日、時、分及び秒を示すデータとすることができる。 The microcomputer 14 always generates an initialization request while the engine is running, and when a rewrite request is generated, rewrites the time data of the clock IC 13 to the initialization time data, and causes the clock IC 13 to count the soak time. . Here, the initialization time data is, for example, data indicating 00:00:00 on January 01, 00, but is not limited to data indicating any year, month, day, hour, minute, and second. can do.

このような構成を有する電子制御装置1は、以下に示す動作を行って、時計IC13の異常を判定することにより、時計IC13に生じた異常を精度よく検出する。以下、図2及び図3をも参照して、電子制御装置1の動作について説明する。 The electronic control unit 1 having such a configuration performs the operation described below to detect an abnormality of the clock IC 13 with high precision. The operation of the electronic control unit 1 will be described below with reference to FIGS. 2 and 3 as well.

<電子制御装置の動作>
図2は、本発明の実施形態における電子制御装置の動作を示すフロー図である。図3は、本発明の実施形態における電子制御装置が実行するテスト時刻データへの書換え処理の流れの一例を示す図である。
<Operation of electronic control unit>
FIG. 2 is a flow chart showing the operation of the electronic control unit according to the embodiment of the invention. FIG. 3 is a diagram showing an example of the flow of rewriting processing to test time data executed by the electronic control unit according to the embodiment of the present invention.

図2に示す動作は、車両のイグニッションスイッチ5がオンされてバッテリー2から電子制御装置1に電力が供給されて電子制御装置1のマイクロコンピュータ14が起動されると共に、マイクロコンピュータ14が時計IC13の異常を検出するための時刻データの書換え要求を受信したタイミングで開始となり、ステップS1の動作に進む。図2に示す動作は、車両が起動されてマイクロコンピュータ14が起動される毎に一回実行される。 In the operation shown in FIG. 2, the ignition switch 5 of the vehicle is turned on, power is supplied from the battery 2 to the electronic control unit 1, the microcomputer 14 of the electronic control unit 1 is activated, and the microcomputer 14 operates the clock IC 13. It starts at the timing of receiving a request to rewrite the time data for detecting an abnormality, and proceeds to the operation of step S1. The operation shown in FIG. 2 is executed once each time the vehicle is started and the microcomputer 14 is started.

ステップS1の動作では、マイクロコンピュータ14が、時計IC13と通信を開始して、時計IC13により計時している時刻を読出して、読出した時刻を図示しないメモリに退避して記憶(格納)する時刻読出し処理を実行する。例えば、マイクロコンピュータ14は、図3に示すように、計時中の時刻を時刻要素毎に読出してメモリに退避させる。ここで、時刻要素は、年、月、日、時、分及び秒の各々を言う。これにより、ステップS1の動作は完了し、電子制御装置1はステップS2の動作に進む。 In the operation of step S1, the microcomputer 14 starts communicating with the clock IC 13, reads the time measured by the clock IC 13, saves the read time in a memory (not shown), and stores the read time. Execute the process. For example, as shown in FIG. 3, the microcomputer 14 reads the time being measured for each time element and saves it in memory. Here, the time element refers to each of year, month, day, hour, minute and second. Thereby, the operation of step S1 is completed, and the electronic control unit 1 proceeds to the operation of step S2.

ステップS2の動作では、マイクロコンピュータ14が、テスト時刻データに書換える時刻書換え処理を実行する。マイクロコンピュータ14は、例えば図3に示すように、年が「79」、月が「12」、日が「31」、時が「23」、分が「59」、及び秒が「00」となるようなテスト時刻データに書換える。これにより、ステップS2の動作は完了し、電子制御装置1はステップS3の動作に進む。なお、この時刻書換え処理の実行中にイグニションスイッチ5がオフになった場合の処理である時計IC制御処理については後述する。また、テスト時刻データは、上記のデータに限らず、時刻データの全ての時刻要素を所定時間内に更新可能な任意のデータにすることができる。 In the operation of step S2, the microcomputer 14 executes time rewrite processing for rewriting test time data. The microcomputer 14, for example, as shown in FIG. Rewrite the test time data as follows. Thereby, the operation of step S2 is completed, and the electronic control unit 1 proceeds to the operation of step S3. Note that the clock IC control processing, which is processing when the ignition switch 5 is turned off during execution of this time rewriting processing, will be described later. Moreover, the test time data is not limited to the above data, and can be any data that can update all the time elements of the time data within a predetermined period of time.

ステップS3の動作では、マイクロコンピュータ14が、ステップS2の動作終了時から所定時間経過するまで待つWAIT処理(ウェイト処理)を実行すると共に、マイクロコンピュータ14が基準時刻を計時する計時処理を実行する。ここで、所定時間は、時刻データの全ての時刻要素が更新される時間である。例えば、マイクロコンピュータ14は、図3に示すように、79年12月31日23時59分00秒から所定時間として100秒経過するまで待つWAIT処理を実行する。テスト時刻データは、100秒経過時には80年1月1日00時00分40秒となり、全ての時刻要素が変更される。これにより、ステップS3の動作は完了し、電子制御装置1はステップS4の動作に進む。 In the operation of step S3, the microcomputer 14 executes WAIT processing (wait processing) to wait until a predetermined time elapses from the end of the operation of step S2, and the microcomputer 14 also executes clocking processing of clocking the reference time. Here, the predetermined time is the time at which all the time elements of the time data are updated. For example, as shown in FIG. 3, the microcomputer 14 executes a WAIT process to wait until 100 seconds have elapsed from Dec. 31, 1979, 23:59:00. The test time data becomes 00:00:40 on Jan. 1, 1980 when 100 seconds have passed, and all the time elements are changed. Thereby, the operation of step S3 is completed, and the electronic control unit 1 proceeds to the operation of step S4.

ステップS4の動作では、マイクロコンピュータ14が、時計IC13が計時している時刻の時刻データを読み出す時刻読出し処理を実行する。これにより、ステップS4の動作は完了し、電子制御装置1はステップS5の動作に進む。 In the operation of step S4, the microcomputer 14 executes a time reading process for reading time data of the time kept by the clock IC 13. FIG. Thereby, the operation of step S4 is completed, and the electronic control unit 1 proceeds to the operation of step S5.

ステップS5の動作では、マイクロコンピュータ14が、ステップS4の動作によって時計IC13から読出した時刻データの時刻と、マイクロコンピュータ14が計時している基準時刻と、を比較する比較処理を実行する。これにより、ステップS5の動作は完了し、電子制御装置1はステップS6の動作に進む。 In the operation of step S5, the microcomputer 14 performs comparison processing for comparing the time of the time data read out from the clock IC 13 by the operation of step S4 and the reference time kept by the microcomputer 14. FIG. As a result, the operation of step S5 is completed, and the electronic control unit 1 proceeds to the operation of step S6.

ステップS6の動作では、マイクロコンピュータ14が、全ての時刻要素のデータが正常であるか否かを判定する。判定の結果、全ての時刻要素のデータが正常である場合には、マイクロコンピュータ14は、ステップS7の動作に進む。一方、一部又は全ての時刻要素のデータに異常がある場合には、マイクロコンピュータ14は、ステップS8の動作に進む。例えば、マイクロコンピュータ14は、時計ICから読出した時刻データの時刻とマイクロコンピュータ14が計時している基準時刻とが、80年1月1日00時00分40秒で一致する場合にはステップS7の動作に進み、一致しない場合にはステップS8の動作に進む。 In the operation of step S6, the microcomputer 14 determines whether the data of all time elements are normal. As a result of determination, if the data of all the time elements are normal, the microcomputer 14 proceeds to the operation of step S7. On the other hand, if there is an abnormality in some or all of the time element data, the microcomputer 14 proceeds to step S8. For example, if the time of the time data read out from the clock IC and the reference time kept by the microcomputer 14 match Jan. 1, 1980, 00:00:40, the microcomputer 14 executes step S7. If they do not match, the process proceeds to step S8.

ステップS7の動作では、マイクロコンピュータ14が、時計IC13は正常であると判定する。これにより、ステップS7の動作は完了し、電子制御装置1はステップS9の動作に進む。 In the operation of step S7, the microcomputer 14 determines that the clock IC 13 is normal. Thereby, the operation of step S7 is completed, and the electronic control unit 1 proceeds to the operation of step S9.

ステップS8の動作では、マイクロコンピュータ14が、時計IC13は異常であると判定する。これにより、ステップS8の動作は完了し、電子制御装置1は動作を終了する。 In the operation of step S8, the microcomputer 14 determines that the clock IC 13 is abnormal. As a result, the operation of step S8 is completed, and the electronic control unit 1 ends its operation.

マイクロコンピュータ14は、上記のステップS1からステップS8までの動作を行うことにより時計IC13の異常を検出する異常検出処理を実行する。 The microcomputer 14 executes an abnormality detection process for detecting an abnormality of the clock IC 13 by performing the operations from step S1 to step S8.

ステップS9の動作では、マイクロコンピュータ14が、ステップS1において時刻データをメモリに記憶した退避時刻に、ステップS3のWAIT処理で経過した所定時間(計測時間)を加えた現在時刻を算出し、算出した現在時刻の現在時刻データを時計IC13に書き戻す時刻書戻し処理を実行する。例えば、マイクロコンピュータ14は、図3に示すように、ステップS1においてメモリに記憶した時刻データの時刻に100秒を加えた現在時刻を算出する。これにより、ステップS9の動作は完了し、電子制御装置1は動作を終了する。 In the operation of step S9, the microcomputer 14 calculates the current time by adding the predetermined time (measured time) elapsed in the WAIT process of step S3 to the save time at which the time data was stored in the memory in step S1. A time write-back process is executed to write back the current time data of the current time to the clock IC 13 . For example, as shown in FIG. 3, the microcomputer 14 calculates the current time by adding 100 seconds to the time data stored in the memory in step S1. As a result, the operation of step S9 is completed, and the electronic control unit 1 ends its operation.

このように、電子制御装置1は、従来の時計IC13の異常を検出するのに要する時間と同等の時間において、時刻要素毎に異常を検出することができる。また、電子制御装置1は、時計IC13における時刻データのデータ損失を防ぐことができるため、時計IC13を用いたエンジンの動作時間の積算又はメンテナンスサイクルの通知等を精度よく行うことも可能となる。 In this way, the electronic control unit 1 can detect an abnormality for each time element in the same amount of time as it takes to detect an abnormality in the conventional clock IC 13 . In addition, since the electronic control unit 1 can prevent data loss of the time data in the clock IC 13, it is also possible to use the clock IC 13 to accurately integrate the operation time of the engine or notify the maintenance cycle.

このような動作を行う電子制御装置1は、以下に示す時計IC制御処理を実行する。以下、図4及び図5をも参照して、時計IC制御処理について説明する。 The electronic control unit 1 that operates as described above executes the following timepiece IC control processing. The clock IC control process will be described below with reference to FIGS. 4 and 5 as well.

<時計IC制御処理>
図4は、本発明の実施形態における電子制御装置が実行する時計IC制御処理を示すフロー図である。図5は、本発明の実施形態における電子制御装置が実行する時計IC制御処理の流れの一例を示すタイミングチャートである。なお、図5は、時刻書換え処理における秒の書換え中に、時計IC13とマイクロコンピュータ14との接続が切断された場合を例示している。
<Clock IC control processing>
FIG. 4 is a flow chart showing the timepiece IC control processing executed by the electronic control device according to the embodiment of the present invention. FIG. 5 is a timing chart showing an example of the flow of timepiece IC control processing executed by the electronic control device according to the embodiment of the present invention. Note that FIG. 5 illustrates a case where the connection between the clock IC 13 and the microcomputer 14 is cut off during rewriting of seconds in the time rewriting process.

図4に示す時計IC制御処理は、イグニションスイッチ5がオフとなったタイミングで開始となるセルフシャットダウン処理において実行され、時計IC制御処理はステップS21の処理に進む。図4に示す時計IC制御処理は、電子制御装置1が稼働している間、所定の制御周期毎に繰り返し実行される。 The timepiece IC control process shown in FIG. 4 is executed in the self-shutdown process that starts when the ignition switch 5 is turned off, and the timepiece IC control process proceeds to step S21. The clock IC control process shown in FIG. 4 is repeatedly executed at predetermined control cycles while the electronic control unit 1 is in operation.

ステップS21の処理では、マイクロコンピュータ14が、時計IC13の制御を許可するか否かを判定する。判定の結果、時計IC13の制御を許可する場合には、マイクロコンピュータ14は、時計IC制御処理をステップS22の処理に進める。一方、時計IC13の制御を許可しない場合には、マイクロコンピュータ14は、時計IC制御処理を終了する。 In the process of step S21, the microcomputer 14 determines whether or not control of the clock IC 13 is permitted. As a result of the determination, when the control of the clock IC 13 is permitted, the microcomputer 14 advances the clock IC control processing to the processing of step S22. On the other hand, if the control of the clock IC 13 is not permitted, the microcomputer 14 terminates the clock IC control processing.

ステップS22の処理では、マイクロコンピュータ14が、図示しないエンジンが駆動されているあいだ常に発生する時計IC13の初期化要求が有るか否かを判定する。判定の結果、時計IC13の初期化要求が有る場合には、マイクロコンピュータ14は、時計IC制御処理をステップS23の処理に進める。一方、時計IC13の初期化要求が無い場合には、マイクロコンピュータ14は、時計IC制御処理をステップS23の処理に進める。 In the processing of step S22, the microcomputer 14 determines whether or not there is a request for initialization of the clock IC 13, which always occurs while the engine (not shown) is running. As a result of the determination, if there is a request for initialization of the clock IC 13, the microcomputer 14 advances the clock IC control process to the process of step S23. On the other hand, if there is no request for initialization of the clock IC 13, the microcomputer 14 advances the clock IC control process to step S23.

ステップS23の処理では、マイクロコンピュータ14が、初期化時刻データへの書換えを要求する要求フラグF_CMDTXRTDに基づいて、初期化時刻データへの書換え要求が有るか否かを判定する。判定の結果、初期化時刻データへの書換え要求が有る場合(要求フラグF_CMDTXRTDが立っている場合)には、マイクロコンピュータ14は、時計IC制御処理をステップS24の処理に進める。一方、初期化時刻データへの書換え要求が無い場合(要求フラグF_CMDTXRTDが立っていない場合)には、マイクロコンピュータ14は、時計IC制御処理を終了する。 In the process of step S23, the microcomputer 14 determines whether there is a request to rewrite the initialization time data based on the request flag F_CMDTXRTD for requesting rewriting to the initialization time data. As a result of determination, if there is a request to rewrite the initialization time data (if the request flag F_CMDTXRTD is set), the microcomputer 14 advances the clock IC control process to step S24. On the other hand, if there is no request to rewrite the initialized time data (if the request flag F_CMDTXRTD is not set), the microcomputer 14 terminates the clock IC control process.

ステップS24の処理では、マイクロコンピュータ14が、時計IC13と通信して時刻書換え処理を実行して、時計IC13の時刻データを初期化時刻データに書換える。これにより、ステップS24の処理は完了し、時計IC制御処理は終了する。 In the process of step S24, the microcomputer 14 communicates with the clock IC 13 to execute the time rewrite process, and rewrites the time data of the clock IC 13 to the initialized time data. Thus, the process of step S24 is completed, and the clock IC control process ends.

マイクロコンピュータ14は、ステップS24の処理において時刻書換え処理の途中において、イグニションスイッチ5がオフとなって時計IC13との通信が切断された場合であっても、ステップS23の処理において初期化時刻データへの書換え要求が有るため(要求フラグF_CMDTXRTDが立っているため)、イグニションスイッチ5がオフとなった後のセルフシャットダウン処理において、再び最初から初期化時刻データへの書換え処理の実行を開始する。 Even if the ignition switch 5 is turned off and the communication with the clock IC 13 is cut off during the time rewriting process in the process of step S24, the microcomputer 14 restores the initialized time data in the process of step S23. (because the request flag F_CMDTXRTD is set), in the self-shutdown process after the ignition switch 5 is turned off, the execution of the rewriting process to the initialization time data is started again from the beginning.

具体的には、図5に示す時刻t=t1において、マイクロコンピュータ14は、時刻書換え処理の途中にイグニションスイッチ5がオフとなることにより、時刻書換え処理は終了すると共にセルフシャットダウン処理を開始する。 Specifically, at time t=t1 shown in FIG. 5, the ignition switch 5 is turned off during the time rewriting process, whereby the microcomputer 14 ends the time rewriting process and starts the self-shutdown process.

時刻t=t1からt=t2までの間において、マイクロコンピュータ14は、ステップS23の処理において初期化時刻データの書換え要求が有ると判定する。 Between times t=t1 and t=t2, the microcomputer 14 determines in the process of step S23 that there is a request to rewrite the initialization time data.

時刻t=t3において、マイクロコンピュータ14は、再び最初から時刻書換え処理の実行を開始する。 At time t=t3, the microcomputer 14 starts executing the time rewriting process from the beginning again.

時刻t=t4において、マイクロコンピュータ14は、時刻データの各時刻要素の初期化時刻データへの書換え処理を開始する。 At time t=t4, the microcomputer 14 starts rewriting each time element of the time data to initialized time data.

時刻t=t5において、マイクロコンピュータ14は、初期化時刻データへの書換え処理を終了する。 At time t=t5, the microcomputer 14 finishes rewriting to the initialization time data.

時刻t=t6において、マイクロコンピュータ14は、セルフシャトダウン処理を終了すると共に時計IC制御処理を終了して電源オフとなる。 At time t=t6, the microcomputer 14 terminates the self-shutdown process, terminates the clock IC control process, and turns off the power.

ここで、上記の時計IC制御処理のステップS23において、初期化時刻データへの書換え要求が有るか否かを判定したが、テスト時刻データへの書換え要求が有るか否かを判定するようにしてもよい。この場合には、マイクロコンピュータ14は、ステップS24の処理において、時計IC13と通信して時刻書換え処理を実行して、時計IC13の時刻データをテスト時刻データに書換える。そして、マイクロコンピュータ14は、ステップS24の処理においてテスト時刻データへの書換え処理の途中において、イグニションスイッチ5がオフとなって時計IC13との通信が切断された場合であっても、ステップS23の処理においてテスト時刻データへの書換え要求が有るため、イグニションスイッチ5がオフとなった後のセルフシャットダウン処理において初期化時刻データへの書換え処理の実行を開始する。 Here, in step S23 of the timepiece IC control process described above, it is determined whether or not there is a request to rewrite the initialization time data. good too. In this case, the microcomputer 14 communicates with the clock IC 13 to execute time rewrite processing in the process of step S24, and rewrites the time data of the clock IC 13 to the test time data. Even if the ignition switch 5 is turned off and the communication with the clock IC 13 is cut off during the process of rewriting the test time data in the process of step S24, the microcomputer 14 performs the process of step S23. Since there is a request to rewrite the test time data at , execution of the rewriting process to the initialization time data is started in the self-shutdown process after the ignition switch 5 is turned off.

以上の本実施形態における電子制御装置1では、時刻を計時する計時処理を実行する時計IC13と、時計IC13とは独立して時刻を計時する計時処理を実行すると共に、計時処理による計時結果と時計IC13による計時結果との比較に基づいて、時計IC13の異常を検出するマイクロコンピュータ14と、を有する電子制御装置1であって、マイクロコンピュータ14は、時計IC13の時刻データを時刻データの全ての時刻要素を所定時間内に更新可能なテスト時刻データに書換えて時計IC13に計時処理を実行させるWAIT処理を実行し、WAIT処理の開始時から所定時間が経過した際の計時処理により計時する時刻と時計IC13において計時処理により計時する時刻との比較結果に基づいて、時計13の異常を検出する異常検出処理を実行するものであるため、時計IC13に生じた異常を精度よく検出することができる。 In the electronic control unit 1 according to the present embodiment described above, the clock IC 13 for executing the clocking process for clocking the time and the clocking process for clocking the time independently from the clock IC 13 are executed. and a microcomputer 14 for detecting an abnormality of the clock IC 13 based on comparison with the result of time measurement by the IC 13. The microcomputer 14 converts the time data of the clock IC 13 into all the time data. WAIT processing is performed to rewrite the elements to test time data that can be updated within a predetermined time period, and to cause the clock IC 13 to perform timekeeping processing. Since the abnormality detection process for detecting an abnormality in the clock 13 is executed based on the result of comparison with the time measured by the clocking process in the IC 13, an abnormality occurring in the clock IC 13 can be detected with high accuracy.

また、本実施形態における電子制御装置1では、マイクロコンピュータ14が、WAIT処理においてテスト時刻データに書換える前の時計IC13の時刻データを読出して記憶し、異常検出処理において時計IC13が正常である場合において、WAIT処理の開始時から所定時間が経過した際に、記憶した時刻データの時刻に所定時間を加えた現在時刻の現在時刻データを時計IC13に書き戻すものであるため、異常検出処理を実行する場合において時計IC13に正確な現在時刻を継続して計時させることができる。 In addition, in the electronic control unit 1 of the present embodiment, the microcomputer 14 reads and stores the time data of the clock IC 13 before being rewritten to the test time data in the WAIT process, and when the clock IC 13 is normal in the abnormality detection process, , when the predetermined time has passed since the start of the WAIT process, the current time data obtained by adding the predetermined time to the time of the stored time data is written back to the clock IC 13. Therefore, the abnormality detection process is executed. In this case, the clock IC 13 can keep accurate current time continuously.

本発明は、部材の種類、形状、配置、個数等は前述の実施形態に限定されるものではなく、その構成要素を同等の作用効果を奏するものに適宜置換する等、発明の要旨を逸脱しない範囲で適宜変更可能であることはもちろんである。 The present invention is not limited to the above-described embodiments in terms of the types, shapes, arrangements, numbers, etc. of the members, and the gist of the invention is not deviated from, such as by appropriately replacing the constituent elements with those having equivalent effects. Of course, it can be appropriately changed within the range.

具体的には、上記実施形態において、電子制御装置1を車両に搭載して使用したが、電子制御装置を車両以外のコンピュータ等に搭載して使用してもよい。 Specifically, in the above embodiment, the electronic control device 1 is mounted on the vehicle and used, but the electronic control device may be mounted on a computer or the like other than the vehicle and used.

また、上記実施形態において、WAIT処理で経過する所定時間として100秒を例示したが、これに限らず、所定時間を時刻データの全ての時刻要素を更新可能な任意の時間にすることができる。この場合において、所定時間を短くするほどWAIT処理に要する時間を短くすることができ、時計IC13の異常を早期に検出することができる。 In the above-described embodiment, 100 seconds was exemplified as the predetermined time that elapses in the WAIT process, but the predetermined time is not limited to this, and can be any time that can update all the time elements of the time data. In this case, the shorter the predetermined time, the shorter the time required for the WAIT process, and the earlier the abnormality of the clock IC 13 can be detected.

また、上記実施形態において、時計IC13によってソーク時間等を計時したが、これに限らず、時刻要素毎に異なるデータ領域を有する任意の計時可能なIC等の電子部品を使用してソーク時間等を計時することができる。 In the above-described embodiment, the clock IC 13 measures the soak time and the like. However, the present invention is not limited to this. can be timed.

また、上記実施形態において、時刻データの時刻要素を年、月、日、時、分及び秒としたが、これに限らず、時刻データの時刻要素を、年、月、日、時、分及び秒のうちの一部にしてもよいし、年、月、日、時、分及び秒のうちの何れかを曜日等に代えてもよいし、又は、年、月、日、時、分及び秒に曜日等を加えてもよい。 In the above embodiment, the time elements of the time data are year, month, day, hour, minute, and second. It may be a part of the second, or any of the year, month, day, hour, minute and second may be replaced with the day of the week, etc., or the year, month, day, hour, minute and The day of the week, etc. may be added to the seconds.

また、上記実施形態において、時計IC13の時刻データを初期化時刻データに書換えて時計IC13によって計時処理することによりソーク時間を算出したが、これに限らず、ソーク時間以外の時間を算出してもよい。 In the above embodiment, the soak time is calculated by rewriting the time data of the clock IC 13 to the initialization time data and performing the timekeeping process by the clock IC 13. However, the invention is not limited to this, and a time other than the soak time may be calculated. good.

以上のように、本発明においては、計時部に生じた異常を精度よく検出することができる電子制御装置を提供することができるものであり、その汎用普遍的な性格から車両等の電子制御装置に広範に適用され得るものと期待される。 As described above, according to the present invention, it is possible to provide an electronic control device that can accurately detect an abnormality that has occurred in the timing section. It is expected that it can be widely applied to

1…電子制御装置
2…バッテリー
3…サブ電源
4…メイン電源
5…イグニションスイッチ
11…サブ電源供給IC
12…メイン電源供給IC
13…時計IC
14…マイクロコンピュータ
DESCRIPTION OF SYMBOLS 1... Electronic control unit 2... Battery 3... Sub power supply 4... Main power supply 5... Ignition switch 11... Sub power supply IC
12... Main power supply IC
13... Clock IC
14 Microcomputer

Claims (2)

時刻を計時する第1の計時処理を実行する計時部と、前記計時部とは独立して時刻を計時する第2の計時処理を実行すると共に、前記第2の計時処理による計時結果と前記第1の計時処理による計時結果との比較に基づいて、前記計時部の異常を検出する制御部と、を有する電子制御装置であって、
前記制御部は、
前記計時部の時刻データを前記時刻データの全ての時刻要素を所定時間内に更新可能なテスト時刻データに書換えて前記計時部に前記第1の計時処理を実行させるウェイト処理を実行し、前記ウェイト処理の開始時から前記所定時間が経過した際の前記第2の計時処理により計時する時刻と前記計時部において前記第1の計時処理により計時する時刻との比較結果に基づいて、前記計時部の異常を検出する異常検出処理を実行する、
ことを特徴とする電子制御装置。
A clocking unit for executing a first clocking process for clocking time, and a second clocking process for clocking time independently of the clocking part, and a clocking result of the second clocking process and the clocking result of the clocking process. a control unit that detects an abnormality of the time measuring unit based on a comparison with the result of the time measuring process of No. 1, the electronic control device comprising:
The control unit
rewriting the time data of the timekeeping unit into test time data in which all time elements of the time data can be updated within a predetermined period of time, executing a wait process for causing the timekeeping unit to execute the first timekeeping process; Based on the comparison result between the time measured by the second timekeeping process when the predetermined time has passed from the start of the process and the time measured by the first timekeeping process in the timekeeping unit, Execute anomaly detection processing to detect anomalies,
An electronic control device characterized by:
前記制御部は、
前記ウェイト処理において前記テスト時刻データに書換える前の前記計時部の前記時刻データを読出して記憶し、前記異常検出処理において前記計時部が正常である場合において、前記ウェイト処理の開始時から前記所定時間が経過した際に、記憶した前記時刻データの時刻に前記所定時間を加えた現在時刻の現在時刻データを前記計時部に書き戻す、
ことを特徴とする請求項1記載の電子制御装置。
The control unit
In the wait process, the time data of the timer section before being rewritten to the test time data is read and stored, and when the timer section is normal in the abnormality detection process, the predetermined time period is reached from the start of the wait process. when the time elapses, writes back the current time data of the current time obtained by adding the predetermined time to the time of the stored time data to the clock unit;
2. The electronic control device according to claim 1, wherein:
JP2020010810A 2020-01-27 2020-01-27 electronic controller Active JP7183205B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020010810A JP7183205B2 (en) 2020-01-27 2020-01-27 electronic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020010810A JP7183205B2 (en) 2020-01-27 2020-01-27 electronic controller

Publications (2)

Publication Number Publication Date
JP2021117112A JP2021117112A (en) 2021-08-10
JP7183205B2 true JP7183205B2 (en) 2022-12-05

Family

ID=77174657

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020010810A Active JP7183205B2 (en) 2020-01-27 2020-01-27 electronic controller

Country Status (1)

Country Link
JP (1) JP7183205B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005339331A (en) 2004-05-28 2005-12-08 Denso Corp Second counter test method for real-time clock IC

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3489548B2 (en) * 2000-06-29 2004-01-19 株式会社デンソー Electronic control unit for engine control
JP2010054412A (en) * 2008-08-29 2010-03-11 Epson Toyocom Corp Real-time clock

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005339331A (en) 2004-05-28 2005-12-08 Denso Corp Second counter test method for real-time clock IC

Also Published As

Publication number Publication date
JP2021117112A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
EP2187028B1 (en) Electronic control apparatus
RU2488875C2 (en) Dynamic control of voltage and frequency
JP3489548B2 (en) Electronic control unit for engine control
JP4214815B2 (en) Electronic control device for vehicle
US20170059416A1 (en) Semiconductor integrated circuit and electronic control unit
JP4345708B2 (en) Electronic control device for vehicle
US6556901B2 (en) Electronic control unit and method measuring and using electric power-off period
US20030093189A1 (en) Electronic control apparatus
JP3596433B2 (en) Automotive electronic control unit
CN105829989B (en) The modification method of microcomputer and its clock
JP7183205B2 (en) electronic controller
JP5892112B2 (en) Electronic control unit
JP5223630B2 (en) Electronic control unit
JP5477401B2 (en) Electronic control unit
JP3531589B2 (en) Electronic control unit for engine control
JP4952406B2 (en) Time correction method, microcomputer internal clock, electronic control unit
JP4472963B2 (en) Control device with time measurement function
JP5295213B2 (en) Control devices for vehicles, etc.
JP4685610B2 (en) Control devices for vehicles, etc.
JP2010067030A (en) Navigation apparatus
JP2000329874A (en) Electronic control unit
JP2002014720A (en) Electronic control unit
JPH04292545A (en) Electronic control device for automobile
JP5103418B2 (en) Electronic control device
JP4192379B2 (en) Electronic control system

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20210226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210408

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221024

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221122

R150 Certificate of patent or registration of utility model

Ref document number: 7183205

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250