KR101548923B1 - Electronic control unit and voltage drop perception method for electronic control unit - Google Patents

Electronic control unit and voltage drop perception method for electronic control unit Download PDF

Info

Publication number
KR101548923B1
KR101548923B1 KR1020090093782A KR20090093782A KR101548923B1 KR 101548923 B1 KR101548923 B1 KR 101548923B1 KR 1020090093782 A KR1020090093782 A KR 1020090093782A KR 20090093782 A KR20090093782 A KR 20090093782A KR 101548923 B1 KR101548923 B1 KR 101548923B1
Authority
KR
South Korea
Prior art keywords
power supply
voltage
power
voltage drop
electronic control
Prior art date
Application number
KR1020090093782A
Other languages
Korean (ko)
Other versions
KR20110036230A (en
Inventor
임한중
Original Assignee
콘티넨탈 오토모티브 시스템 주식회사
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 콘티넨탈 오토모티브 시스템 주식회사 filed Critical 콘티넨탈 오토모티브 시스템 주식회사
Priority to KR1020090093782A priority Critical patent/KR101548923B1/en
Publication of KR20110036230A publication Critical patent/KR20110036230A/en
Application granted granted Critical
Publication of KR101548923B1 publication Critical patent/KR101548923B1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/14Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries for charging batteries from dynamo-electric generators driven at varying speed, e.g. on vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Power Sources (AREA)

Abstract

차량용 전자제어장치의 전원 공급에 발생하는 이상 전압강하를 효과적으로 감지/판단하고 시스템을 재시작함으로써 전자제어장치를 안전하게 동작할 수 있는 전자제어장치 및 전자제어장치의 전압강하 감지 방법이 개시되어 있다. 본 발명의 전자제어장치는, 배터리로부터의 전원을 소정의 전압수준으로 정류하여 제공하는 전원공급장치와, 상기 전원공급장치로부터 제공되는 상기 전압수준의 전원을 이용하여 구동되며, 상기 전원공급장치로부터 제공되는 전원이 소정의 한계전압수준 이하로 전압강하되면 소정의 리셋경계시간이 경과하는지 여부를 판단하고, 상기 리셋경계시간이 경과하기 이전에 전압강하된 상기 전원의 전압이 기 설정된 디바운스시간 이상 동안 정상전압상태로 유지되는 경우 시스템을 재시작하는 마이크로컨트롤러를 포함한다.There is disclosed an electronic control apparatus capable of safely operating an electronic control apparatus by effectively detecting / judging an abnormal voltage drop occurring in the power supply of the vehicle electronic control apparatus and restarting the system, and a voltage drop detection method of the electronic control apparatus. An electronic control device of the present invention includes: a power supply device that rectifies and supplies power from a battery to a predetermined voltage level; and a control unit that is driven using the power supply of the voltage level provided from the power supply device, Determining whether a predetermined reset boundary time has elapsed when a voltage drop of the power supply is below a predetermined threshold voltage level and determining whether a voltage of the power source whose voltage has dropped before the reset boundary time elapses exceeds a predetermined debounce time Lt; RTI ID = 0.0 > state < / RTI >

전원, 불안정, 리셋, 전압강하 Power, Unstable, Reset, Voltage Drop

Description

전자제어장치 및 전자제어장치의 전압강하 감지 방법 {ELECTRONIC CONTROL UNIT AND VOLTAGE DROP PERCEPTION METHOD FOR ELECTRONIC CONTROL UNIT}TECHNICAL FIELD [0001] The present invention relates to an electronic control device and a voltage drop detection method for an electronic control device,

본 발명은 전자제어장치에 관한 것으로, 더욱 상세하게는 차량용 전자제어장치의 전원 공급에 발생하는 이상 전압강하를 효과적으로 감지/판단하고 시스템을 재시작함으로써 전자제어장치를 안전하게 동작할 수 있는 전자제어장치 및 전자제어장치의 전압강하 감지 방법에 관한 것이다.The present invention relates to an electronic control device, and more particularly, to an electronic control device capable of safely operating an electronic control device by effectively detecting / determining an abnormal voltage drop occurring in power supply of an automotive electronic control device and restarting the system, To a voltage drop sensing method of an electronic control unit.

일반적으로, 차량용 전자제어장치(ECU : Electronic Control Unit)는 전원공급장치, 마이크로컨트롤러, 메모리로 구성된다. 전자제어장치의 전원공급장치는 배터리부터의 12V 전원을 전자제어장치 내부의 타 회로에 필요한 전압수준으로 변환하여 제공한다. 즉, 전원공급장치는 배터리부터의 전원을 마이크로컨트롤러에 필요한 전압수준으로 변환하여 마이크로컨트롤러로 제공한다. 2. Description of the Related Art In general, an electronic control unit (ECU) for a vehicle includes a power supply, a microcontroller, and a memory. The power supply of the electronic control unit converts the 12V power from the battery to the voltage level necessary for other circuits in the electronic control unit. That is, the power supply converts the power from the battery to the voltage level required by the microcontroller and provides it to the microcontroller.

차량 내부의 전력 수급 상황은 차량의 동작상태에 따라 매우 동적으로 변하며, 이로 인해 차량 내부의 전원 공급상황이 불안정해져 전자제어장치의 전원공급장치 역시 동작이 불안정해질 수 있다. 이에, 외부적 또는 내부적인 요인으로 인해 전자제어장치의 전원공급장치가 마이크로컨트롤러로 제공하는 전원의 전압에 전압 강하가 발생할 수 있으며, 이처럼 전압강하가 발생하면 종래에는 시스템에 요구되는 최소한의 동작(debug정보 기록 등)을 수행하고 바로 소프트웨어를 리셋하여 시스템을 재시작한다.The power supply situation inside the vehicle changes very dynamically according to the operation state of the vehicle, and the power supply situation inside the vehicle is unstable, so that the operation of the power supply device of the electronic control device may become unstable. Accordingly, a voltage drop may occur in a voltage of a power supply provided to the microcontroller by the power supply of the electronic control unit due to an external or internal factor. When such a voltage drop occurs, conventionally, debug information, etc.) and immediately restart the software by resetting the system.

이와 같이, 종래의 전자제어장치 내 전압강하에 대한 처리 방식은, 차량에서 발생하는 여러 종류의 전압강하에 대하여 즉각적인 시스템 재시작만으로 대응하기 때문에, 만약 재시작 이후에도 전원 공급이 불안정하다면 마이크로컨트롤러의 명령어 수행에 정상적인 동작상태를 보장할 수 없다. 이에, 전자제어장치(ECU)의 소프트웨어의 시작 루틴이 실패하여 작동 불능상태에 빠지거나, 스타트업(Startup)이 성공하더라도 불완전한 명령어 수행으로 전자제어장치(ECU)나 차량의 전자푸붐에 손상을 야기할 수도 있다. 특히, 스타트업(Startup) 직후에 플래시 메모리에 데이터를 저장하는 경우 기록 중에 전원 불안정으로 인한 쓰기 동작이 실패하면 데이터가 무효화되거나, 최악에는 프로그램 메모리까지 파괴되어 전자제어장치(ECU)를 더 이상 사용할 수 없게 되기도 한다. As described above, since the conventional voltage drop method in the electronic control unit responds to various kinds of voltage drop occurring in the vehicle only by immediate system restart, if the power supply is unstable even after the restart, A normal operation state can not be guaranteed. Accordingly, even if the start routine of the software of the electronic control unit (ECU) fails and is put into an inoperable state, or even if the start-up is successful, the imperfect instruction execution causes damage to the electronic control unit (ECU) You may. Particularly, when data is stored in the flash memory immediately after the start-up, if the write operation due to power instability during recording fails, the data is invalidated or, at worst, the program memory is destroyed and the electronic control unit It can not be done.

본 발명은 상기한 사정을 감안하여 창출된 것으로서, 본 발명에서 도달하고자 하는 목적은 배터리로부터의 전원을 소정의 전압수준으로 정류하여 제공하는 전원공급장치와, 상기 전원공급장치로부터 제공되는 상기 전압수준의 전원을 이용하여 구동되며, 상기 전원공급장치로부터 제공되는 전원이 소정의 한계전압수준 이하로 전압강하되면 소정의 리셋경계시간이 경과하는지 여부를 판단하고, 상기 리셋경 계시간이 경과하기 이전에 전압강하된 상기 전원의 전압이 기 설정된 디바운스시간 이상 동안 정상전압상태로 유지되는 경우 시스템을 재시작하는 마이크로컨트롤러를 포함하는 전자제어장치를 제공하여, 전자제어장치의 전원 공급에 발생하는 이상 전압강하를 효과적으로 감지/판단하고 시스템을 재시작함으로써 전자제어장치를 안전하게 동작하는데 있다. SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and it is an object of the present invention to provide a power supply device for rectifying and supplying power from a battery to a predetermined voltage level, Wherein the control unit determines whether a predetermined reset boundary time has elapsed when a voltage supplied from the power supply unit drops below a predetermined threshold voltage level and before the reset boundary time elapses And a microcontroller for restarting the system when the voltage of the power source is maintained at a normal voltage state for a predetermined debounce time or longer. The present invention provides an electronic control device comprising: The electronic control device can be safely detected It is to start.

본 발명은 상기한 사정을 감안하여 창출된 것으로서, 본 발명에서 도달하고자 하는 다른 목적은 배터리로부터의 전원을 소정의 전압수준으로 정류하는 전원공급장치로부터 제공되는 상기 전압수준의 전원을 이용하여 구동되는 단계와, 상기 전원공급장치로부터 제공되는 전원이 소정의 한계전압수준 이하로 강하되는 전압강하를 감지하는 단계와, 상기 전압강하가 감지되면 소정의 리셋경계시간이 경과하는지 여부를 판단하는 단계와, 상기 리셋경계시간이 경과하기 이전에 전압강하된 상기 전원의 전압이 정상전압상태로 복귀되는지 여부를 감지하는 단계와, 상기 전원이 정상전압상태로 감지되면 상기 전원공급장치로부터 제공되는 상기 전원이 기 설정된 디바운스시간 경과하는 동안 상기 정상전압상태로 유지되는지 판단하는 단계와, 상기 디바운스시간이 경과하는 동안 상기 전원이 상기 정상전압상태로 유지된다고 판단되면, 시스템을 재시작하는 단계를 포함하는 전자제어장치의 전압강하 감지 방법을 제공하여, 전자제어장치의 전원 공급에 발생하는 이상 전압강하를 효과적으로 감지/판단하고 시스템을 재시작함으로써 전자제어장치를 안전하게 동작하는데 있다. The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a power supply apparatus and a method of driving the same, which is driven by using a power supply of the voltage level provided from a power supply apparatus for rectifying power from a battery to a predetermined voltage level Detecting a voltage drop in which the power supplied from the power supply unit drops below a predetermined limit voltage level; determining whether a predetermined reset boundary time has elapsed when the voltage drop is detected; Detecting whether a voltage of the power source whose voltage has been lowered returns to a normal voltage state before the reset boundary time elapses; and when the power source is detected as a normal voltage state, Determining whether the steady voltage state is maintained during a set debounce time; And a step of restarting the system when it is determined that the power source is maintained in the normal voltage state during the elapse of the service time, And to operate the electronic control unit safely by effectively detecting / judging the drop and restarting the system.

상기 목적을 달성하기 위한 본 발명의 제 1 관점에 따른 전자제어장치는, 배터리로부터의 전원을 소정의 전압수준으로 정류하여 제공하는 전원공급장치; 및 상기 전원공급장치로부터 제공되는 상기 전압수준의 전원을 이용하여 구동되며, 상기 전원공급장치로부터 제공되는 전원이 소정의 한계전압수준 이하로 전압강하되면 소정의 리셋경계시간이 경과하는지 여부를 판단하고, 상기 리셋경계시간이 경과하기 이전에 전압강하된 상기 전원의 전압이 기 설정된 디바운스시간 이상 동안 정상전압상태로 유지되는 경우 시스템을 재시작하는 마이크로컨트롤러를 포함한다.According to a first aspect of the present invention, there is provided an electronic control apparatus comprising: a power supply device for rectifying and supplying power from a battery to a predetermined voltage level; And a controller for determining whether or not a predetermined reset boundary time has elapsed when the voltage supplied from the power supply apparatus drops below a predetermined threshold voltage level And a microcontroller for restarting the system when the voltage of the power source whose voltage has been lowered before the reset boundary time has lapsed to a steady voltage state for more than a predetermined debounce time.

바람직하게는, 상기 마이크로컨트롤러는, 상기 전원공급장치로부터 제공되는 전원이 소정의 한계전압수준 이하로 전압강하된 상태로 상기 리셋경계시간이 경과하면 시스템을 재시작할 수 있다.Advantageously, the microcontroller is capable of restarting the system when the reset boundary time has elapsed with the voltage provided by the power supply being dropped below a predetermined threshold voltage level.

상기 목적을 달성하기 위한 본 발명의 제 2 관점에 따른 전자제어장치의 전압강하 감지 방법은, 배터리로부터의 전원을 소정의 전압수준으로 정류하는 전원공급장치로부터 제공되는 상기 전압수준의 전원을 이용하여 구동되는 단계; 상기 전원공급장치로부터 제공되는 전원이 소정의 한계전압수준 이하로 강하되는 전압강하를 감지하는 단계; 상기 전압강하가 감지되면 소정의 리셋경계시간이 경과하는지 여부를 판단하는 단계; 상기 리셋경계시간이 경과하기 이전에 전압강하된 상기 전원의 전압이 정상전압상태로 복귀되는지 여부를 감지하는 단계; 상기 전원이 정상전압상태로 감지되면 상기 전원공급장치로부터 제공되는 상기 전원이 기 설정된 디바운스시간 경과하는 동안 상기 정상전압상태로 유지되는지 판단하는 단계; 및 상기 디바운스시간이 경과하는 동안 상기 전원이 상기 정상전압상태로 유지된다고 판 단되면, 시스템을 재시작하는 단계를 포함한다.According to a second aspect of the present invention, there is provided a method of detecting a voltage drop in an electronic control device, the method comprising: using a power source of the voltage level provided from a power supply for rectifying power from a battery to a predetermined voltage level A driving step; Detecting a voltage drop in which the power provided by the power supply drops below a predetermined threshold voltage level; Determining whether a predetermined reset boundary time has elapsed when the voltage drop is detected; Detecting whether a voltage of the power source whose voltage has dropped before the reset boundary time elapses returns to a normal voltage state; Determining whether the power supplied from the power supply unit is maintained in the steady-state voltage for a predetermined debounce time period when the power source is detected as a normal voltage state; And restarting the system if it is determined that the power source remains in the steady-state voltage state for the elapse of the debounce time.

바람직하게는, 상기 리셋경계시간이 경과하는지 여부를 판단한 결과, 상기 전원공급장치로부터 제공되는 전원이 전압강하된 상태로 상기 리셋경계시간이 경과하면 시스템을 재시작하는 단계를 더 포함할 수 있다.The method may further include restarting the system when the reset boundary time has elapsed as a result of determining whether or not the reset boundary time has elapsed as a result of a voltage drop of the power provided from the power supply apparatus.

바람직하게는, 상기 디바운스시간 경과하는 동안 상기 전원이 정상전압상태로 유지되는지 판단한 결과, 상기 디바운스시간이 경과하기 이전에 상기 전원이 정상전압상태로 유지되지 않고 재 전압강하되면 상기 리셋경계시간이 경과하는지 여부를 판단하는 단계는 지속할 수 있다.Preferably, if it is determined that the power source is maintained in a normal voltage state during the elapse of the debounce time, if the power source is not maintained in a normal voltage state before the debounce time elapses, The step of judging whether or not the elapsed time has elapsed can be continued.

여기서, 상기 전압강하가 감지되면 시스템을 재시작하기 위해 요구되는 최소정보를 저장하는 단계; 및 기 설정된 소정의 저전력모드로 진입하는 단계를 더 포함하는 것이 바람직하다.Storing the minimum information required to restart the system when the voltage drop is detected; And entering the preset predetermined low power mode.

이에, 본 발명의 전자제어장치 및 전자제어장치의 전압강하 감지 방법에 의하면, 전자제어장치 내부의 전원공급장치로부터의 전원에서 전압강하가 감지되면 전압강하된 상태로 리셋경계시간이 경과되는 경우, 또는 리셋경계시간이 경과되기 이전에 디바운스시간 동안 전원공급장치로부터의 전원이 정상전압 상태로 유지되는 경우에 소프트웨어를 리셋하여 안정적으로 시스템을 재시작함으로써, 전원제어장치 내의 전원공급장치의 오동작으로 인한 이상 전압강하 또는 전원공급장치에 영향을 미치던 일시적인 전원 공급상황에 따른 전압강하인 것을 판단한 후에 시스템을 재시작할 수 있다. According to the voltage drop detection method of the electronic control apparatus and the electronic control apparatus of the present invention, when a voltage drop is detected in the power supply from the power supply apparatus inside the electronic control apparatus, Or by resetting the software and restarting the system stably when the power supply from the power supply remains at the normal voltage state for the debounce time before the reset boundary time has elapsed so that the power supply in the power supply controller malfunctions The system can be restarted after determining that it is a voltage drop or a voltage drop due to a temporary power supply condition that has affected the power supply.

이에, 본 발명의 전자제어장치 및 전자제어장치의 전압강하 감지 방법에 의하면, 차량에서 발생하는 여러 종류의 전압강하에 대하여 판단 없이 즉각적으로 시스템을 재시작하는 종래의 전자제어장치 내 전압강하에 대한 처리 방식의 문제점들을 해결하고, 전원제어장치 내의 전원공급장치의 오동작으로 인한 이상 전압강하 또는 전원공급장치에 영향을 미치던 일시적인 전원 공급상황에 따른 전압강하인 것을 판단한 후에 시스템을 재시작함으로써 차량용 전자제어장치의 전원 공급에 발생하는 이상 전압강하를 효과적으로 감지/판단하고 시스템을 재시작할 수 있다. Thus, according to the voltage drop detection method of the electronic control apparatus and the electronic control apparatus of the present invention, it is possible to perform the processing for the voltage drop in the conventional electronic control apparatus that immediately restarts the system without judging the various kinds of voltage drop occurring in the vehicle And after restarting the system after determining that the voltage drop is caused by an abnormal voltage drop due to a malfunction of the power supply device in the power supply control device or a temporary power supply condition that has affected the power supply device, It is possible to effectively detect / judge the abnormal voltage drop occurring in the power supply of the power supply unit and to restart the system.

이하에서는, 도 1을 참조하여 본 발명에 따른 전자제어장치의 일 실시예를 설명하도록 한다.Hereinafter, an embodiment of an electronic control apparatus according to the present invention will be described with reference to FIG.

도 1에 도시된 바와 같이 본 발명의 전자제어장치(ECU : Electronic Control Unit)(100)는, 전원공급장치(20)와, 마이크로컨트롤러(30)와, 메모리(40)를 포함한다. An electronic control unit (ECU) 100 of the present invention includes a power supply unit 20, a microcontroller 30, and a memory 40 as shown in FIG.

전원공급장치(20)는, 외부의 배터리(10)로부터의 인가되는 전원을 전자제어장치(100) 내의 각 회로부에 적합한 소정의 전압수준으로 정류하는 역할을 한다. 즉, 배터리(10)로부터의 인가되는 12V전압의 전원을 마이크로컨트롤러(30) 및 메모리(40) 각각에 필요한 전압수준으로 정류한 전원을 마이크로컨트롤러(30) 및 메모리(40) 각각에 제공한다.The power supply unit 20 rectifies the power supplied from the external battery 10 to a predetermined voltage level suitable for each circuit unit in the electronic control unit 100. [ That is, the microcomputer 30 and the memory 40 supply power to the microcontroller 30 and the memory 40, respectively, which are rectified to the voltage levels required by the microcontroller 30 and the memory 40, respectively.

여기서, 전원 공급상황이 불안정해짐에 따라 전원공급장치(20)의 전원 제공동작이 불안정해져 마이크로컨트롤러(30)로 제공하는 전원의 전압수준을 맞출 수 없는 경우를 마이크로컨트롤러(30)에 알리는 수단이 필요할 것이다. 이에, 전원공급장치(20)에서 마이크로컨트롤러(30)로 제공하는 전원의 소정의 한계전압수준 이하로 전압강하되는지 여부를 알리기 위해, 전원공급장치(20)는 5V_RST신호단자를 구비하여 이를 통해 5V_RST신호를 마이크로컨트롤러(30)로 제공한다. 물론, 5V_RST신호단자 이외에도, 마이크로컨트롤러(30)로 제공하는 전원의 전압수준을 맞출 수 없는 경우를 마이크로컨트롤러(30)에 알리는 다양한 방식들 중 어느 하나를 채택할 수 있음이 당연하다.Here, the means for informing the microcontroller 30 that the power supply operation of the power supply device 20 becomes unstable as the power supply condition becomes unstable and the voltage level of the power supplied to the microcontroller 30 can not be adjusted You will need it. In order to inform the power supply device 20 whether or not the voltage is dropped below a predetermined limit voltage level of the power supplied to the microcontroller 30, the power supply device 20 is provided with a 5V_RST signal terminal, And provides a signal to the microcontroller 30. Of course, it is of course possible to adopt any of various methods of notifying the microcontroller 30 that the voltage level of the power supplied to the microcontroller 30 can not be adjusted in addition to the 5V_RST signal terminal.

메모리(40)는, 마이크로컨트롤러(30)의 구동 및 동작에 필요한 다양한 소프트웨어와 마이크로컨트롤러(30)의 동작에 따라 기록되는 데이터가 저장되는 등 다양한 데이터를 저장한다. The memory 40 stores various data required for driving and operating the microcontroller 30 and data recorded according to the operation of the microcontroller 30.

마이크로컨트롤러(30)는, 전원공급장치(20)로부터 제공되는 상기 전압수준의 전원을 이용하여 구동되며, 전원공급장치(20)로부터 제공되는 전원이 소정의 한계전압수준 이하로 전압강하되면 소정의 리셋경계시간이 경과하는지 여부를 판단하고, 리셋경계시간이 경과하기 이전에 전압강하된 전원의 전압이 기 설정된 디바운스시간 이상 동안 정상전압상태로 유지되는 경우 시스템을 재시작한다.The microcontroller 30 is driven by using the power supply of the voltage level provided from the power supply device 20 and when the power supplied from the power supply device 20 drops in voltage below a predetermined limit voltage level, Determines whether the reset boundary time has elapsed, and restarts the system if the voltage of the voltage-dropped power source remains at the steady voltage state for more than a predetermined debounce time before the reset boundary time elapses.

마이크로컨트롤러(30)를 좀 더 상세히 설명하면, 마이크로컨트롤러(30)는 전원공급장치(20)로부터 제공되는 상기 전압수준의 전원 즉 마이크로컨트롤러(30)가 동작하는데 필요한 정상전압상태의 전원을 이용하여 구동/동작한다.The microcontroller 30 may use the power supply of the voltage level provided from the power supply unit 20 or the power supply of the normal voltage state required for the microcontroller 30 to operate Drive / operate.

이러한, 마이크로컨트롤러(30)는, 전원공급장치(20)로부터 제공되는 전원이 소정의 한계전압수준 이하로 전압강하되는지 여부를 감지한다. 예를 들면, 마이크 로컨트롤러(30)는 전원공급장치(20)로부터 제공되는 5V_RST신호를 지속적으로 감시하여, 5V_RST신호가 5V 전압에서 소정치만큼 전압강하되면 이를 전원공급장치(20)로부터 제공되는 정상전압상태의 전원이 소정의 한계전압수준 이하로 전압강하되는 것으로 판단할 수 있다. 물론, 마이크로컨트롤러(30)는, 전원공급장치(20)로부터 제공되는 정상전압상태의 전원의 전압을 직접 감시함으로써 전원공급장치(20)로부터 제공되는 정상전압상태의 전원이 소정의 한계전압수준 이하로 전압강하되는지 여부를 감지하는 등 다양한 방식을 통해 전압강하를 감지할 수 있다.The microcontroller 30 senses whether or not the power supplied from the power supply unit 20 has a voltage drop below a predetermined threshold voltage level. For example, the microcontroller 30 continuously monitors the 5V_RST signal provided from the power supply 20, and when the 5V_RST signal drops in voltage by a predetermined value at a voltage of 5V, it is supplied from the power supply 20 It can be determined that the voltage of the power source in the steady-state voltage is lowered to the predetermined limit voltage level or lower. Of course, the microcontroller 30 directly monitors the voltage of the power supply in the steady-state voltage provided from the power supply device 20 so that the power of the steady-state voltage provided from the power supply 20 is at a predetermined threshold voltage level or lower Such as by sensing whether a voltage drop is present in the voltage drop across the device.

이에, 5V_RST신호가 5V 전압에서 소정치만큼 전압강하되는 등에 따라 전원공급장치(20)로부터 제공되는 정상전압상태의 전원이 소정의 한계전압수준 이하로 전압강하된다고 감지하면, 마이크로컨트롤러(30)는, 전압강하된 상태로 소정의 리셋경계시간(T1)이 경과하는지 여부를 판단한다. If the 5V_RST signal senses that the voltage of the steady-state voltage supplied from the power supply 20 drops to a predetermined limit voltage level or lower, for example, the voltage drops by a predetermined value at the 5V voltage, the microcontroller 30 , It is determined whether or not a predetermined reset boundary time T1 has elapsed in a voltage-lowered state.

여기서, 마이크로컨트롤러(30)는, 전압강하된 상태로 소정의 리셋경계시간(T1)이 경과하는지 여부를 판단하기 전에 추후에 시스템을 재시작하기 위해 요구되는 최소정보(예 : debug정보 기록 등)를 저장하는 것이 바람직하다. 이는, 전원공급장치(20)로부터 제공되는 정상전압상태의 전원에 대한 전압강하가 감지되는 시점부터 메모리(40)로부터 읽어오는 데이터를 신뢰할 수 없기 때문에, 모든 동작을 마이크로컨트롤러(30) 내부의 램에서 수행되어야 하기 때문이다. 따라서, 전압강하가 감지되면 바로 마이크로컨트롤러(30)의 램에서 추후 동작을 수행할 수 있도록, 필요한 최소의 소프트웨어를 미리 마이크로컨트롤러(30)의 램에 상주시켜 두어야 한다.Here, the microcontroller 30 sets the minimum information (for example, a debug information record or the like) required to restart the system at a later time before determining whether or not the predetermined reset boundary time T1 has elapsed in a voltage drop state . This is because the data read from the memory 40 can not be relied upon from when the voltage drop to the power supply in the normal voltage state provided from the power supply unit 20 is sensed, . Therefore, the minimum required software must be stored in advance in the RAM of the microcontroller 30 so that the RAM of the microcontroller 30 can perform the subsequent operation immediately after the voltage drop is detected.

또한 마이크로컨트롤러(30)는, 전압강하된 상태로 소정의 리셋경계시간이 경과하는지 여부를 판단하기 전에 기 설정된 소정의 저전력모드로 진입하는 것이 바람직하다. 이는, 전원공급장치(20)로부터 제공되는 정상전압상태의 전원에 대한 전압강하가 감지되는 시점부터 전자제어장치(100)가 이용할 수 있는 전력은 극히 제한적일 수 있기 때문에, 전자제어장치(100)는 최소한의 전력만을 소비하면서 추후의 동작을 완료해야하기 때문이다. 따라서, 전압강하가 감지되면 바로 마이크로컨트롤러(30)는 기 설정된 소정의 저전력모드(예 : 슬립모드, 동작 주파수 낮춤 등)로 진입하여 동작 전력을 최소화한다.It is also preferable that the microcontroller 30 enters a preset predetermined low power mode before determining whether or not a predetermined reset boundary time has elapsed in a voltage lowered state. This is because the electronic control apparatus 100 can use only a limited amount of electric power that the electronic control apparatus 100 can utilize from the time when a voltage drop to a power supply of a normal voltage state provided from the power supply apparatus 20 is sensed This is because it is necessary to complete the subsequent operation while consuming a minimum amount of power. Accordingly, immediately after the voltage drop is detected, the microcontroller 30 enters predetermined predetermined low power mode (e.g., sleep mode, operation frequency lowering, etc.) to minimize the operating power.

그리고, 전술하였듯이 마이크로컨트롤러(30)는, 전원공급장치(20)로부터 제공되는 정상전압상태의 전원이 소정의 한계전압수준 이하로 전압강하된 상태로 소정의 리셋경계시간(T1)이 경과하는지 여부를 판단한다. 즉, 마이크로컨트롤러(30)는, 전압강하 시점부터 리셋경계시간(T1)을 카운팅하기 시작한다. As described above, the microcontroller 30 determines whether or not the predetermined reset boundary time T1 has elapsed in a state in which the power of the steady-state voltage supplied from the power supply unit 20 is dropped to a predetermined limit voltage level or lower . That is, the microcontroller 30 starts counting the reset boundary time T1 from the voltage drop point.

여기서, 마이크로컨트롤러(30)는, 리셋경계시간(T1)이 경과하기 이전에 전압강하된 상기 전원의 전압이 정상전압 상태로 복귀되는지 여부를 지속적으로 감지한다. 전압강하된 전원의 전압이 리셋경계시간(T1)이 경과하기 이전에 정상전압 상태로 복귀한다는 것은, 일시적인 노이즈로 인한 복귀이거나, 또는 전원공급장치(20)에 영향을 미치던 일시적인 전원 공급상황의 불안정이 해결된 경우를 의미한다. 여기서, 정상전압 상태로 복귀되는지 여부를 감지하는 것은, 전술의 전압강하는 감지하는 방식과 대응할 것이다.Here, the microcontroller 30 continuously detects whether or not the voltage of the power source whose voltage has been lowered returns to the normal voltage state before the reset boundary time T1 elapses. The fact that the voltage of the voltage-dropped power supply returns to the normal voltage state before the reset boundary time T1 has elapsed is due to a temporary noise return or a temporary power supply situation that has affected the power supply 20 This means that instability has been resolved. Here, sensing whether or not to return to the normal voltage state will correspond to a method of detecting the above-described voltage drop.

이에, 전원공급장치(20)로부터 제공되는 전압강하된 전원이 리셋경계시 간(T1)이 경과하기 이전에 정상전압 상태로 복귀함에 따라 정상전압 상태가 감지되면, 마이크로컨트롤러(30)는 기 설정된 디바운스시간(T2)이 경과하는 동안에 전원공급장치(20)로부터의 전원이 정상전압 상태로 유지되는지 여부를 판단한다.If the normal voltage state is detected as the voltage-dropped power supplied from the power supply unit 20 returns to the normal voltage state before the reset boundary time T1 elapses, the microcontroller 30 sets It is determined whether the power from the power supply device 20 is maintained in the normal voltage state during the elapse of the debounce time T2.

이에, 디바운스시간(T2)이 경과하는 동안 상기 전원공급장치(20)로부터의 전원이 정상전압 상태로 유지된다고 판단되면, 전원공급장치(20)에 영향을 미치던 일시적인 전원 공급상황의 불안정이 해결된 경우에 해당하므로, 마이크로컨트롤러(30)는 소프트웨어를 리셋하여 안정적으로 시스템을 재시작한다. Accordingly, if it is determined that the power from the power supply device 20 is maintained in the normal voltage state during the elapse of the debounce time T 2, the instability of the temporary power supply condition that affects the power supply device 20 The microcontroller 30 resets the software and restarts the system in a stable manner.

한편, 디바운스시간(T2)이 경과하기 이전에 전원공급장치(20)로부터의 전원이 정상전압 상태로 유지되지 않고 재 전압강하되면, 마이크로컨트롤러(30)는 정상전압 상태로 복귀가 일시적인 노이즈로 인한 복귀인 경우에 해당하므로 이를 무시하고, 전술에서 카운팅하고 있는 리셋경계시간(T1)이 경과하는지 여부를 판단하는 것을 지속한다. On the other hand, if the power from the power supply device 20 is not maintained in the normal voltage state before the debounce time T2 elapses and the voltage drops again, the microcontroller 30 returns to the normal voltage state, It is ignored and continues to determine whether the reset boundary time T1 counted in the foregoing is over.

이에, 전압강하된 상태로 소정의 리셋경계시간(T1)이 경과하면, 마이크로컨트롤러(30)는 전원공급장치(20)의 오동작으로 인한 이상 전압강하인 것으로 판단하고 소프트웨어를 리셋하여 안정적으로 시스템을 재시작한다.Accordingly, when the predetermined reset boundary time T1 elapses in a voltage drop state, the microcontroller 30 determines that the abnormal voltage is due to a malfunction of the power supply 20, resets the software, Restart.

이상에서 설명한 바와 같이, 본 발명에 따른 전원제어장치(100)에 따르면, 전원공급장치(20)로부터의 전원에서 전압강하가 감지되면 전압강하된 상태로 리셋경계시간(T1)이 경과되는 경우, 또는 리셋경계시간(T1)이 경과되기 이전에 디바운스시간(T2) 동안 전원공급장치(20)로부터의 전원이 정상전압 상태로 유지되는 경우에 소프트웨어를 리셋하여 안정적으로 시스템을 재시작함으로써, 전원제어장 치(100) 내의 전원공급장치(20)의 오동작으로 인한 이상 전압강하 또는 전원공급장치(20)에 영향을 미치던 일시적인 전원 공급상황에 따른 전압강하인 것을 판단한 후에 시스템을 재시작할 수 있다. As described above, according to the power control apparatus 100 according to the present invention, when a voltage drop is detected from the power supply 20, if the reset boundary time T1 elapses in a voltage drop state, Or by restarting the system reliably by resetting the software when the power from the power supply 20 remains at the normal voltage state during the debounce time T2 before the reset boundary time T1 has elapsed, It is possible to restart the system after determining that the abnormal voltage is caused by a malfunction of the power supply 20 in the apparatus 100 or a voltage drop due to the temporary power supply condition that has affected the power supply 20. [

이에, 본 발명에 따른 전원제어장치(100)에 따르면, 차량에서 발생하는 여러 종류의 전압강하에 대하여 판단 없이 즉각적으로 시스템을 재시작하는 종래의 전자제어장치 내 전압강하에 대한 처리 방식의 문제점들을 해결하고, 전원제어장치(100) 내의 전원공급장치(20)의 오동작으로 인한 이상 전압강하 또는 전원공급장치(20)에 영향을 미치던 일시적인 전원 공급상황에 따른 전압강하인 것을 판단한 후에 시스템을 재시작함으로써 차량용 전자제어장치(100)의 전원 공급에 발생하는 이상 전압강하를 효과적으로 감지/판단하고 시스템을 재시작할 수 있다. Therefore, according to the power supply control apparatus 100 according to the present invention, the problem of the conventional voltage reduction method in the electronic control apparatus that immediately restarts the system without judging the various kinds of voltage drop occurring in the vehicle can be solved It is determined that the abnormal voltage is caused by a malfunction of the power supply device 20 in the power supply control device 100 or a voltage drop due to a temporary power supply condition that has affected the power supply device 20 and then the system is restarted It is possible to effectively detect / judge the abnormal voltage drop occurring in the power supply of the vehicle electronic control apparatus 100 and to restart the system.

이러한 전술의 전원제어장치(100) 듀얼 파워(dual-power) 시스템에 적용되는 것이 바람직할 것이다.It would be desirable to apply the power control apparatus 100 to the dual-power system described above.

이하에서는, 상술한 바와 같이 구성된 본 발명에 따른 전자제어장치(100)에 대응하는 전압강하 감지 방법의 제어 흐름을 도 2를 참조하여 설명하도록 한다. 여기서, 설명의 편의를 위해 전술한 도 1에 도시된 구성은 해당 참조번호를 언급하여 설명하겠다. Hereinafter, a control flow of the voltage drop detection method corresponding to the electronic control apparatus 100 constructed as described above according to the present invention will be described with reference to FIG. Here, for convenience of description, the components shown in FIG. 1 will be described with reference to corresponding reference numerals.

먼저, 전자제어장치(100) 내의 마이크로컨트롤러(30)는, 배터리(10)로부터의 전원을 소정의 전압수준으로 정류하는 전원공급장치(20)로부터 제공되는 전압수준의 전원 즉 마이크로컨트롤러(30)가 동작하는데 필요한 정상전압상태의 전원을 이용하여 구동/동작한다(S10).First, the microcontroller 30 in the electronic control unit 100 controls the voltage level of the power supplied from the power supply unit 20 that rectifies the power from the battery 10 to a predetermined voltage level, that is, (Step S10).

여기서, 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법은, 전원공급장치(20)로부터 마이크로컨트롤러(30)로 제공되는 전원이 소정의 한계전압수준 이하로 전압강하되는지 여부를 감지한다(S10). 예를 들면, 마이크로컨트롤러(30)는 전원공급장치(20)로부터 제공되는 5V_RST신호를 지속적으로 감시하여, 5V_RST신호가 5V 전압에서 소정치만큼 전압강하되면 이를 전원공급장치(20)로부터 제공되는 정상전압상태의 전원이 소정의 한계전압수준 이하로 전압강하되는 것으로 판단할 수 있다. 물론, 마이크로컨트롤러(30)는, 전원공급장치(20)로부터 제공되는 정상전압상태의 전원의 전압을 직접 감시함으로써 전원공급장치(20)로부터 제공되는 정상전압상태의 전원이 소정의 한계전압수준 이하로 전압강하되는지 여부를 감지하는 등 다양한 방식을 통해 전압강하를 감지할 수 있다.Here, the voltage drop detection method of the electronic control device 100 according to the present invention detects whether the voltage supplied from the power supply device 20 to the microcontroller 30 drops below a predetermined threshold voltage level (S10). For example, the microcontroller 30 continuously monitors the 5V_RST signal provided from the power supply 20, and when the 5V_RST signal drops in voltage by 5V, It can be determined that the power source in the voltage state is dropped to a voltage lower than a predetermined threshold voltage level. Of course, the microcontroller 30 directly monitors the voltage of the power supply in the steady-state voltage provided from the power supply device 20 so that the power of the steady-state voltage provided from the power supply 20 is at a predetermined threshold voltage level or lower Such as by sensing whether a voltage drop is present in the voltage drop across the device.

이에, 전원공급장치(20)로부터 제공되는 5V_RST신호가 5V 전압에서 소정치만큼 전압강하되는 등에 따라 전원공급장치(20)로부터 마이크로컨트롤러(30)로 제공되는 정상전압상태의 전원이 소정의 한계전압수준 이하로 전압강하된다고 감지하면, 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법은, 전압강하된 상태로 소정의 리셋경계시간(T1)이 경과하는지 여부를 판단한다(S40). When the 5V_RST signal provided from the power supply unit 20 is dropped from the 5V voltage by a predetermined value or the like and the power from the power supply unit 20 to the microcontroller 30 is supplied to the predetermined limit voltage The voltage drop detection method of the electronic control apparatus 100 according to the present invention determines whether a predetermined reset boundary time T1 has elapsed in a voltage drop state at step S40.

여기서, 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법은, S40단계를 수행하기 전에 추후에 시스템을 재시작하기 위해 요구되는 최소정보(예 : debug정보 기록 등)를 저장하는 것이 바람직하다(S20). 이는, 전원공급장치(20)로부터 제공되는 정상전압상태의 전원에 대한 전압강하가 감지되는 시점부터 메모리(40)로부터 읽어오는 데이터를 신뢰할 수 없기 때문에, 모든 동작을 마이크로컨 트롤러(30) 내부의 램에서 수행되어야 하기 때문이다. 따라서, S10단계에서 전압강하가 감지되면 바로 마이크로컨트롤러(30)의 램에서 추후 동작을 수행할 수 있도록, 필요한 최소의 소프트웨어를 미리 마이크로컨트롤러(30)의 램에 상주시켜 두어야 한다.Here, it is preferable that the voltage drop detection method of the electronic control unit 100 according to the present invention stores minimum information (e.g., debug information record) required for restarting the system at a later time before performing step S40 (S20). This is because the data read from the memory 40 can not be relied upon from the time when the voltage drop of the normal voltage state power supplied from the power supply device 20 is sensed, This is because it must be done in RAM. Therefore, the minimum required software must be stored in the RAM of the microcontroller 30 in advance so that the microprocessor 30 can perform the subsequent operation immediately after the voltage drop is detected in step S10.

또한 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법은, S20단계 후 S40단계를 수행하기 전에 기 설정된 소정의 저전력모드로 진입하는 것이 바람직하다(S30). 이는, 전원공급장치(20)로부터 제공되는 정상전압상태의 전원에 대한 전압강하가 감지되는 시점부터 전자제어장치(100)가 이용할 수 있는 전력은 극히 제한적일 수 있기 때문에, 전자제어장치(100)는 최소한의 전력만을 소비하면서 추후의 동작을 완료해야하기 때문이다. 따라서, 전압강하가 감지되면 바로 마이크로컨트롤러(30)는 기 설정된 소정의 저전력모드(예 : 슬립모드, 동작 주파수 낮춤 등)로 진입하여 동작 전력을 최소화한다.It is preferable that the voltage drop detection method of the electronic control apparatus 100 according to the present invention enters a predetermined low power mode before performing step S40 after step S20. This is because the electronic control apparatus 100 can use only a limited amount of electric power that the electronic control apparatus 100 can utilize from the time when a voltage drop to a power supply of a normal voltage state provided from the power supply apparatus 20 is sensed This is because it is necessary to complete the subsequent operation while consuming a minimum amount of power. Accordingly, immediately after the voltage drop is detected, the microcontroller 30 enters predetermined predetermined low power mode (e.g., sleep mode, operation frequency lowering, etc.) to minimize the operating power.

그리고, 전술하였듯이 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법은, 전원공급장치(20)로부터 마이크로컨트롤러(30)로 제공되는 정상전압상태의 전원이 소정의 한계전압수준 이하로 전압강하된 상태로 소정의 리셋경계시간(T1)이 경과하는지 여부를 판단하는 S40단계를 수행한다. 즉, 마이크로컨트롤러(30)는, 전압강하 시점부터 리셋경계시간(T1)을 카운팅하기 시작한다. As described above, in the voltage drop sensing method of the electronic control unit 100 according to the present invention, when the power of the steady-state voltage supplied from the power supply unit 20 to the microcontroller 30 is lower than a predetermined threshold voltage level It is determined whether or not a predetermined reset boundary time T1 has elapsed in a descending state. That is, the microcontroller 30 starts counting the reset boundary time T1 from the voltage drop point.

여기서, 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법은, 리셋경계시간(T1)이 경과하기 이전에 전압강하된 마이크로컨트롤러(30)로의 전원 전압이 정상전압 상태로 복귀되는지 여부를 지속적으로 감지한다(S50). 전압강하된 전원의 전압이 리셋경계시간(T1)이 경과하기 이전에 정상전압 상태로 복귀한다는 것은, 일시적인 노이즈로 인한 복귀이거나, 또는 전원공급장치(20)에 영향을 미치던 일시적인 전원 공급상황의 불안정이 해결된 경우를 의미한다. 여기서, 정상전압 상태로 복귀되는지 여부를 감지하는 것은, 전술의 전압강하는 감지하는 방식과 대응할 것이다.Here, the method of detecting the voltage drop of the electronic control unit 100 according to the present invention determines whether or not the power supply voltage to the microcontroller 30 whose voltage has been lowered before the reset boundary time T1 elapses is returned to the normal voltage state (S50). The fact that the voltage of the voltage-dropped power supply returns to the normal voltage state before the reset boundary time T1 has elapsed is due to a temporary noise return or a temporary power supply situation that has affected the power supply 20 This means that instability has been resolved. Here, sensing whether or not to return to the normal voltage state will correspond to a method of detecting the above-described voltage drop.

이에, 전원공급장치(20)로부터 제공되는 전압강하된 전원이 리셋경계시간(T1)이 경과하기 이전에 정상전압 상태로 복귀함에 따라 정상전압 상태가 감지되면, 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법은, 기 설정된 디바운스시간(T2)이 경과하는 동안에 전원공급장치(20)로부터 마이크로컨트롤러(30)로 제공되는 전원이 정상전압 상태로 유지되는지 여부를 판단한다(S60). 즉, 마이크로컨트롤러(30)는 전원공급장치(20)로부터의 전원이 정상전압 상태로 복귀된 뒤 디바운스시간(T2)이 경과하는지 여부를 판단한다.If the normal voltage state is detected as the voltage-dropped power supplied from the power supply unit 20 returns to the normal voltage state before the reset boundary time T1 elapses, the electronic control apparatus 100 ) Determines whether the power supplied from the power supply 20 to the microcontroller 30 is maintained in a normal voltage state during a predetermined debounce time T2 elapses (S60) . That is, the microcontroller 30 determines whether or not the debounce time T2 has elapsed after the power from the power supply device 20 is returned to the normal voltage state.

이에, 디바운스시간(T2)이 경과하는 동안에 전원공급장치(20)로부터 마이크로컨트롤러(30)로 제공되는 전원이 정상전압 상태로 유지되면, 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법은 마이크로컨트롤러(30)를 리셋하여 시스템을 재시작한다(S70). 즉, 디바운스시간(T2)이 경과하는 동안에 전원공급장치(20)로부터 마이크로컨트롤러(30)로 제공되는 전원이 정상전압 상태로 유지되면, 전원공급장치(20)에 영향을 미치던 일시적인 전원 공급상황의 불안정이 해결된 경우에 해당하므로, 마이크로컨트롤러(30)는 소프트웨어를 리셋하여 안정적으로 시스템을 재시작한다. Accordingly, if the power supplied from the power supply device 20 to the microcontroller 30 is maintained at the steady voltage state during the elapse of the debounce time T2, the voltage drop of the electronic control device 100 according to the present invention The method resets the microcontroller 30 and restarts the system (S70). That is, if the power supplied from the power supply 20 to the microcontroller 30 remains at the normal voltage state during the elapse of the debounce time T2, the temporary power supply When the instability of the situation is solved, the microcontroller 30 resets the software and restarts the system stably.

한편, S60단계에서의 판단 결과, 디바운스시간(T2)이 경과하기 이전에 전원공급장치(20)로부터의 전원이 정상전압 상태로 유지되지 않고 재 전압강하되면, 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법에 따라 마이크로컨트롤러(30)는 정상전압 상태로 복귀가 일시적인 노이즈로 인한 복귀인 경우에 해당하므로 이를 무시하고, S40단계에서 카운팅하고 있는 리셋경계시간(T1)이 경과하는지 여부를 판단하는 것을 지속한다. If it is determined in step S60 that the power from the power supply unit 20 is not maintained in the normal voltage state and the voltage drops again before the debounce time T2 elapses, 100, the microcontroller 30 ignores the return to the normal voltage state due to temporary noise, so that the reset boundary time T1 counted in step S40 has elapsed And continue to judge whether or not.

이에, 전압강하된 상태로 소정의 리셋경계시간(T1)이 경과하면, 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법은 마이크로컨트롤러(30)를 리셋하여 시스템을 재시작한다(S70). 즉, 전압강하된 상태로 리셋경계시간(T1)이 경과하는 것이 전원공급장치(20)의 오동작으로 인한 이상 전압강하인 것으로 판단하고, 마이크로컨트롤러(30)는 소프트웨어를 리셋하여 안정적으로 시스템을 재시작한다. When the predetermined reset boundary time T1 elapses in a voltage drop state, the voltage drop detection method of the electronic control unit 100 according to the present invention resets the microcontroller 30 and restarts the system (S70) . That is, it is determined that the elapse of the reset boundary time (T1) in the voltage drop state is the abnormal voltage drop due to the malfunction of the power supply device 20, and the microcontroller 30 resets the software and restarts the system do.

이하에서는 도 3을 참조하여, 일반적인 전원의 불안정케이스에서 본 발명에 따른 전자제어장치(100)의 전압강하 감지 방법에 따라 전압강하를 감지하고 시스템을 재시작하는 과정을 설명하도록 한다.Hereinafter, a process of detecting a voltage drop and restarting the system according to the voltage drop detection method of the electronic control unit 100 according to the present invention in a case of a general power supply unstable will be described with reference to FIG.

먼저, 일반적으로 전자제어장치(100)에서 전원의 불안정케이스는, 크게 다음의 세가지 경우(Case)로 나눌 수 있다.First, generally, an unstable case of the power supply in the electronic control unit 100 can be roughly divided into the following three cases (Case).

C1. 대량의 전력 소모 장치의 작동으로 인한 일시적인 전압강하C1. Temporary voltage drop due to operation of a large number of power consumption devices

C2. 정상적인 시스템전원차단으로 인한 영속적인 전압강하C2. Persistent voltage drop due to normal system shutdown

C3. 전원공급장치(20)의 오작동에 의한 전원 제공 불능 상태C3. Power supply failure state due to malfunction of the power supply device 20

예를 들어, 배터리(10)는 엔진 시동시 스타트모터에 전력을 공급하는 역할을 하는데, 스타트모터가 처음 구동되는 순간 다량의 전류가 공급되므로 큰폭의 전압강하가 생기게 된다. 대개의 경우 이 전압강하의 폭은 전자제어장치(100)의 전원공급장치(20)가 안정적인 전원을 제공하는데 문제가 없는 범위 내에 속하지만, 배터리(10)의 충전 불량 또는 외부조건의 영향으로 성능이 감소한 경우 그 범위를 초과할 수 있는데 이러한 경우가 C1.에 해당한다.For example, the battery 10 serves to supply power to the start motor at the start of the engine. Since a large amount of current is supplied at the moment when the start motor is first driven, a large voltage drop occurs. In most cases, the width of the voltage drop is within a range in which the power supply 20 of the electronic control unit 100 does not have a problem in providing a stable power supply. However, due to poor charging of the battery 10 or influence of external conditions, If this is the case, it may exceed the range, which corresponds to C1.

그리고, C2.는 전자제어장치(100)가 속한 전체 시스템이 정상적인 시스템전원차단에 의해 시스템전원이 다운되는 경우에 해당하며, C3.는 전자제어장치(100)의 외부 조건은 모두 정상이지만 전자제어장치(100)내의 전원공급장치(20)가 오동작을 일으킨 경우에 해당한다.C2 corresponds to a case where the entire system to which the electronic control apparatus 100 belongs is turned off due to normal system power shutdown and C3. This corresponds to a case where the power supply device 20 in the apparatus 100 malfunctions.

이에, 도 3의 A1.은 C1.의 경우 본 발명에 따른 처리흐름을 보여주고, A2.는 C2.의 처리흐름, A3.는 C3의 처리흐름을 보여주고 있다.3 shows the processing flow according to the present invention in case of C1. A2. Shows the processing flow of C2., And A3. Shows the processing flow of C3.

먼저, A1.을 설명하면, 대량의 전력 소모 장치(예 : 스타트모터)가 t1시각에 작동하여 전원제공장치(20)로부터 마이크로컨트롤러(30)로 제공되는 전원에 전압강하가 감지되면, 본 발명은 리셋경계시간(T1)을 카운팅한다. 그리고, 대량의 전력 소모 장치(예 : 스타트모터) 구동된 후 이로 인한 일시적인 전압강하가 해소되는 t2시각에 본 발명은 다시 정상전압 상태로 복귀됨을 인지하고 t2시간부터 디바운스시간(T2)을 카운팅한다. C1.은 대량의 전력 소모 장치(예 : 스타트모터)의 작동으로 인한 일시적인 전압강하이기 때문에, A1.과 같이 정상전압 상태가 유지될 것이고, 본 발명은 정상전압 상태가 디바운스시간(T2) 동안 유지된다고 판단하는 t3시각에 마이크로컨트롤러(30)의 소프트웨어를 리셋하여 안정적으로 시스템을 재시작 할 것이다.First, when a large amount of power consumption device (for example, start motor) operates at time t1 and a voltage drop is detected from the power supply device 20 to the microcontroller 30, Lt; RTI ID = 0.0 > T1. ≪ / RTI > At time t2 when the transient voltage drop due to the driving of a large amount of power consumption device (e.g., start motor) is solved, the present invention recognizes that the voltage returns to the normal voltage state and counts the debounce time T2 from time t2 do. Since C1 is a transient voltage drop due to the operation of a large amount of power consumption device (e.g., start motor), a steady voltage condition will be maintained as in A1. The microcomputer 30 resets the software of the microcontroller 30 at the time t3 when it is judged to be maintained and restarts the system stably.

A2.를 설명하면, 정상적인 시스템전원차단이 발생하는 t1시각에 전원제공장치(20)로부터 마이크로컨트롤러(30)로 제공되는 전원에 전압강하가 감지되면, 본 발명은 리셋경계시간(T1)을 카운팅한다. 그리고, 일시적인 노이즈로 인해 전압강하가 해소되는 t2시각에 본 발명은 다시 정상전압 상태로 복귀됨을 인지하고 t2시간부터 디바운스시간(T2)을 카운팅한다. C2.는 정상적인 시스템전원차단에 의해 영속적인 전압강하이기 때문에, A2.와 같이 디바운스시간(T2)이 경과하기 전에 일시적 노이즈가 사라지고 재 전압강하 된 후 전압강하가 유지될 것이고, 리셋경계시간(T1)이 경과하기 전에 시스템전원차단 동작이 종료되는 t4시각에 시스템전원이 다운되고 전자제어장치(20)의 전원도 오프될 것이다. A2, when a voltage drop is detected in the power supplied from the power supply device 20 to the microcontroller 30 at the time t1 when the normal system power-off occurs, the present invention counts the reset boundary time T1 do. At time t2 when the voltage drop is eliminated due to the transient noise, the present invention recognizes that the voltage returns to the normal voltage state and counts the debounce time T2 from time t2. Since C2 is a permanent voltage drop due to the normal system power-off, the temporary noise will disappear before the debounce time (T2) elapses as in A2, and the voltage drop will be maintained after the re- The power of the system will be turned off and the power of the electronic control unit 20 will be turned off at time t4 when the system power-off operation is completed before the elapse of the time T1.

A3.를 설명하면, 전원공급장치(20)의 오작동에 의한 전원 제공 불능 상태가 발생하는 t1시각에 전원제공장치(20)로부터 마이크로컨트롤러(30)로 제공되는 전원에 전압강하가 감지되면, 본 발명은 리셋경계시간(T1)을 카운팅한다. 그리고, 일시적인 노이즈로 인해 전압강하가 해소되는 t2시각에 본 발명은 다시 정상전압 상태로 복귀됨을 인지하고 t2시간부터 디바운스시간(T2)을 카운팅한다. C3.는 전원공급장치(20)의 오작동에 의한 전원 제공 불능 상태로 인한 전압강하이기 때문에, A3.와 같이 디바운스시간(T2)이 경과하기 전에 일시적 노이즈가 사라지고 재 전압강하 된 후 전압강하가 유지될 것이고, 결국 본 발명은 리셋경계시간(T1)이 경과함을 인지하는 t5시각에 마이크로컨트롤러(30)의 소프트웨어를 리셋하여 안정적으로 시스템을 재시작할 것이다.A3. When a voltage drop is detected in the power supplied from the power supply device 20 to the microcontroller 30 at the time t1 when the power supply disabled state occurs due to malfunction of the power supply device 20, The invention counts the reset boundary time (T1). At time t2 when the voltage drop is eliminated due to the transient noise, the present invention recognizes that the voltage returns to the normal voltage state and counts the debounce time T2 from time t2. Since C3 is a voltage drop due to a power failure due to a malfunction of the power supply device 20, the temporary noise disappears before the debounce time T2 elapses and the voltage drop after the re- And eventually the present invention will reset the software of the microcontroller 30 at time t5 to recognize that the reset boundary time T1 has elapsed and restart the system in a stable manner.

이상에서 설명한 바와 같이, 본 발명에 따른 전원제어장치(100)의 전압감지 방법에 따르면, 전원공급장치(20)로부터의 전원에서 전압강하가 감지되면 전압강하된 상태로 리셋경계시간(T1)이 경과되는 경우, 또는 리셋경계시간(T1)이 경과되기 이전에 디바운스시간(T2) 동안 전원공급장치(20)로부터의 전원이 정상전압 상태로 유지되는 경우에 소프트웨어를 리셋하여 안정적으로 시스템을 재시작함으로써, 전원제어장치(100) 내의 전원공급장치(20)의 오동작으로 인한 이상 전압강하 또는 전원공급장치(20)에 영향을 미치던 일시적인 전원 공급상황에 따른 전압강하인 것을 판단한 후에 시스템을 재시작할 수 있다. As described above, according to the voltage sensing method of the power control apparatus 100 according to the present invention, when a voltage drop is detected in the power supply from the power supply device 20, Or if the power from the power supply 20 remains at the normal voltage state during the debounce time T2 before the reset boundary time T1 elapses, the software is reset to reliably restart the system It is determined that the abnormal voltage is caused by a malfunction of the power supply 20 in the power supply control apparatus 100 or a voltage drop due to the temporary power supply condition that has affected the power supply 20 and then the system is restarted .

이에, 본 발명에 따른 전원제어장치(100)의 전압감지 방법에 따르면, 차량에서 발생하는 여러 종류의 전압강하에 대하여 판단 없이 즉각적으로 시스템을 재시작하는 종래의 전자제어장치 내 전압강하에 대한 처리 방식의 문제점들을 해결하고, 전원제어장치(100) 내의 전원공급장치(20)의 오동작으로 인한 이상 전압강하 또는 전원공급장치(20)에 영향을 미치던 일시적인 전원 공급상황에 따른 전압강하인 것을 판단한 후에 시스템을 재시작함으로써 차량용 전자제어장치(100)의 전원 공급에 발생하는 이상 전압강하를 효과적으로 감지/판단하고 시스템을 재시작할 수 있다. Therefore, according to the voltage sensing method of the power supply control apparatus 100 according to the present invention, it is possible to provide a processing method for the voltage drop in the electronic control unit, which immediately restarts the system without judging the various kinds of voltage drop occurring in the vehicle And determines that the voltage is a voltage drop due to an abnormal voltage drop due to a malfunction of the power supply device 20 in the power supply control device 100 or a temporary power supply condition that affects the power supply device 20 It is possible to effectively detect / judge an abnormal voltage drop occurring in the power supply of the vehicle electronic control apparatus 100 and to restart the system by restarting the system.

지금까지 본 발명을 바람직한 실시 예를 참조하여 상세히 설명하였지만, 본 발명이 상기한 실시 예에 한정되는 것은 아니며, 이하의 특허청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변형 또는 수정이 가능한 범위까지 본 발명의 기 술적 사상이 미친다 할 것이다.While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, It will be understood by those of ordinary skill in the art that various changes and modifications can be made without departing from the scope of the present invention.

전원공급장치로부터의 전원에서 전압강하가 감지되면 전압강하된 상태로 리셋경계시간이 경과되는 경우, 또는 리셋경계시간이 경과되기 이전에 디바운스시간 동안 전원공급장치로부터의 전원이 정상전압 상태로 유지되는 경우에 소프트웨어를 리셋하여 안정적으로 시스템을 재시작함으로써, 전원제어장치 내의 전원공급장치의 오동작으로 인한 이상 전압강하 또는 전원공급장치에 영향을 미치던 일시적인 전원 공급상황에 따른 전압강하인 것을 판단한 후에 시스템을 재시작할 수 있는 본 발명의 전원제어장치 및 전원제어장치의 전압감지 방법을 적용할 경우, 관련 전자부품 보호, 차량 운용의 안정성 개선 및 사용자의 만족도 면에 매우 큰 진보를 가져올 수 있으며, 적용되는 차량의 시판 또는 영업의 가능성이 충분할 뿐만 아니라 현실적으로 명백하게 실시할 수 있는 정도이므로 산업상 이용가능성이 있는 발명이다.If a voltage drop is detected on the power supply from the power supply, the power supply from the power supply remains in a normal voltage state during the debounce time before the reset boundary time elapses from a voltage drop, or before the reset boundary time has elapsed The system is restarted stably to determine whether the voltage is a voltage drop due to an abnormal voltage drop due to a malfunction of the power supply in the power supply control device or a temporary power supply condition that has affected the power supply, The power supply control device of the present invention and the voltage detection method of the power supply control device of the present invention which can restart the power supply control device of the present invention can significantly improve the stability of the related electronic parts, It is not only a possibility that the vehicle is sold or operated, Because the extent that may be carried out an invention that has industrial applicability.

도 1은 본 발명의 실시예에 따른 전자제어장치의 제어 블록도이다.1 is a control block diagram of an electronic control apparatus according to an embodiment of the present invention.

도 2는 본 발명의 실시예에 따른 전자제어장치의 전압강하 감지 방법의 제어 흐름도이다.2 is a control flowchart of a voltage drop detection method of an electronic control apparatus according to an embodiment of the present invention.

도 3은 일반적인 전원의 불안정케이스에서 본 발명에 따라 전압강하를 감지하고 시스템을 재시작하는 과정을 예로 보여주는 예시도이다.FIG. 3 is a diagram illustrating an example of a process of detecting a voltage drop and restarting a system according to the present invention in an unstable case of a general power supply.

<도면의 주요 부분에 대한 부호의 설명>Description of the Related Art

10 : 배터리10: Battery

20 : 전원공급장치20: Power supply

30 : 마이크로프로세서30: Microprocessor

40 : 메모리40: Memory

100 : 전자제어장치100: Electronic control device

Claims (6)

전자제어장치에 있어서,In the electronic control device, 배터리로부터의 전원을 소정의 전압수준으로 정류하여 제공하는 전원공급장치; 및A power supply device for rectifying and supplying power from the battery to a predetermined voltage level; And 상기 전원공급장치로부터 제공되는 상기 전압수준의 전원을 이용하여 구동되며, 상기 전원공급장치로부터 제공되는 전원이 소정의 한계전압수준 이하로 전압강하되면 소정의 리셋경계시간이 경과하는지 여부를 판단하고, 상기 리셋경계시간이 경과하기 이전에 전압강하된 상기 전원의 전압이 기 설정된 디바운스시간 이상 동안 정상전압상태로 유지되는 경우 시스템을 재시작하는 마이크로컨트롤러를 포함하는 것을 특징으로 하는 전자제어장치.Wherein the power supply control unit is driven using a power supply of the voltage level provided from the power supply unit and determines whether a predetermined reset boundary time has elapsed when the power supplied from the power supply unit drops in voltage below a predetermined threshold voltage level, And a microcontroller for restarting the system when the voltage of the power-downed power source is maintained at a normal voltage state for more than a predetermined debounce time before the reset boundary time elapses. 제 1 항에 있어서,The method according to claim 1, 상기 마이크로컨트롤러는,The microcontroller includes: 상기 전원공급장치로부터 제공되는 전원이 소정의 한계전압수준 이하로 전압강하된 상태로 상기 리셋경계시간이 경과하면 시스템을 재시작하는 것을 특징으로 하는 전자제어장치.And restarts the system when the reset boundary time elapses in a state in which the power supplied from the power supply device is dropped to a predetermined limit voltage level or lower. 전자제어장치의 전압강하 감지 방법에 있어서,A method of detecting a voltage drop of an electronic control device, 배터리로부터의 전원을 소정의 전압수준으로 정류하는 전원공급장치로부터 제공되는 상기 전압수준의 전원을 이용하여 구동되는 단계; The method comprising: driving by using a power supply of the voltage level provided from a power supply that rectifies power from a battery to a predetermined voltage level; 상기 전원공급장치로부터 제공되는 전원이 소정의 한계전압수준 이하로 강하되는 전압강하를 감지하는 단계;Detecting a voltage drop in which the power provided by the power supply drops below a predetermined threshold voltage level; 상기 전압강하가 감지되면 소정의 리셋경계시간이 경과하는지 여부를 판단하는 단계;Determining whether a predetermined reset boundary time has elapsed when the voltage drop is detected; 상기 리셋경계시간이 경과하기 이전에 전압강하된 상기 전원의 전압이 정상전압상태로 복귀되는지 여부를 감지하는 단계;Detecting whether a voltage of the power source whose voltage has dropped before the reset boundary time elapses returns to a normal voltage state; 상기 전원이 정상전압상태로 감지되면 상기 전원공급장치로부터 제공되는 상기 전원이 기 설정된 디바운스시간 경과하는 동안 상기 정상전압상태로 유지되는지 판단하는 단계; 및Determining whether the power supplied from the power supply unit is maintained in the steady-state voltage for a predetermined debounce time period when the power source is detected as a normal voltage state; And 상기 디바운스시간이 경과하는 동안 상기 전원이 상기 정상전압상태로 유지된다고 판단되면, 시스템을 재시작하는 단계를 포함하는 것을 특징으로 하는 전자제어장치의 전압강하 감지 방법.And restarting the system when it is determined that the power supply is maintained in the steady voltage state during the elapse of the debounce time. 제 3 항에 있어서,The method of claim 3, 상기 리셋경계시간이 경과하는지 여부를 판단한 결과, 상기 전원공급장치로부터 제공되는 전원이 전압강하된 상태로 상기 리셋경계시간이 경과하면 시스템을 재시작하는 단계를 더 포함하는 것을 특징으로 하는 전자제어장치의 전압강하 감지 방법.Further comprising the step of restarting the system when the reset boundary time has elapsed as a result of determining whether or not the reset boundary time has elapsed as a result of a voltage drop of the power provided from the power supply device Method of detecting voltage drop. 제 3 항 또는 제 4 항에 있어서,The method according to claim 3 or 4, 상기 디바운스시간 경과하는 동안 상기 전원이 정상전압상태로 유지되는지 판단한 결과, 상기 디바운스시간이 경과하기 이전에 상기 전원이 정상전압상태로 유지되지 않고 재 전압강하되면 상기 리셋경계시간이 경과하는지 여부를 판단하는 단계는 지속하는 것을 특징으로 하는 전자제어장치의 전압강하 감지 방법.As a result of determining whether the power source is maintained in a normal voltage state during the elapse of the debounce time, if the power source is not maintained in a normal voltage state before the debounce time elapses, Wherein the step of determining the voltage drop of the electronic control unit is continued. 제 5 항에 있어서,6. The method of claim 5, 상기 전압강하가 감지되면 시스템을 재시작하기 위해 요구되는 최소정보를 저장하는 단계; 및Storing the minimum information required to restart the system when the voltage drop is sensed; And 기 설정된 소정의 저전력모드로 진입하는 단계를 더 포함하는 것을 특징으로 하는 전자제어장치의 전압강하 감지 방법.Further comprising the step of entering a predetermined low power mode.
KR1020090093782A 2009-10-01 2009-10-01 Electronic control unit and voltage drop perception method for electronic control unit KR101548923B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090093782A KR101548923B1 (en) 2009-10-01 2009-10-01 Electronic control unit and voltage drop perception method for electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090093782A KR101548923B1 (en) 2009-10-01 2009-10-01 Electronic control unit and voltage drop perception method for electronic control unit

Publications (2)

Publication Number Publication Date
KR20110036230A KR20110036230A (en) 2011-04-07
KR101548923B1 true KR101548923B1 (en) 2015-09-02

Family

ID=44044222

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090093782A KR101548923B1 (en) 2009-10-01 2009-10-01 Electronic control unit and voltage drop perception method for electronic control unit

Country Status (1)

Country Link
KR (1) KR101548923B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004318267A (en) 2003-04-11 2004-11-11 Denso Corp Electronic controller for vehicle

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004318267A (en) 2003-04-11 2004-11-11 Denso Corp Electronic controller for vehicle

Also Published As

Publication number Publication date
KR20110036230A (en) 2011-04-07

Similar Documents

Publication Publication Date Title
EP1717664B1 (en) Computer circuit
US7707376B2 (en) Verifying the validity of data saved at power down by comparing the time of save to time of power-off upon start up
JP6011162B2 (en) Electronic control unit
US8595530B2 (en) Information processing apparatus and control method of information processing apparatus
CN113280468A (en) Operation control method of air conditioner, air conditioner and computer readable storage medium
JP2006205795A (en) Power control device
JP5976074B2 (en) Computer system and operation method thereof
JP2015217911A (en) Electronic control apparatus
JP2000228829A (en) Vehicle computer with vehicle battery protective function
KR101548923B1 (en) Electronic control unit and voltage drop perception method for electronic control unit
JP2004070767A (en) Controller
CN111475339A (en) BIOS firmware updating method, device, equipment and storage medium
CN112783354A (en) Control method, device and equipment of touch device and storage medium
KR101003738B1 (en) Apparatus for detecting and restoring failure in wireless LAN communication system, and method thereof
JP4731995B2 (en) Electronic device apparatus and processing method thereof
CN103902398A (en) Server and fan fault protecting method thereof
CN117708886B (en) File system protection method and device for Internet of things equipment
JP2019000704A (en) Battery-driven cleaner
JP2007075633A (en) Power source cutoff device and method
CN218524856U (en) Chip reset detection circuit and power consumption equipment
US11181963B2 (en) Information processing device and control method for the same
JP3921168B2 (en) Electronic device operation mode setting device and setting method
JP3950453B2 (en) Control method of control device and control device
JP7261080B2 (en) Control device and control method
JP3266192B2 (en) Operation monitoring method and system

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20180816

Year of fee payment: 4