KR100731506B1 - Micro controller having watchdog circuit and controlling method therefor - Google Patents

Micro controller having watchdog circuit and controlling method therefor Download PDF

Info

Publication number
KR100731506B1
KR100731506B1 KR1020050092580A KR20050092580A KR100731506B1 KR 100731506 B1 KR100731506 B1 KR 100731506B1 KR 1020050092580 A KR1020050092580 A KR 1020050092580A KR 20050092580 A KR20050092580 A KR 20050092580A KR 100731506 B1 KR100731506 B1 KR 100731506B1
Authority
KR
South Korea
Prior art keywords
microcomputer
signal
control signal
watchdog circuit
driving
Prior art date
Application number
KR1020050092580A
Other languages
Korean (ko)
Other versions
KR20070037253A (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 KR1020050092580A priority Critical patent/KR100731506B1/en
Publication of KR20070037253A publication Critical patent/KR20070037253A/en
Application granted granted Critical
Publication of KR100731506B1 publication Critical patent/KR100731506B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30029Logical and Boolean instructions, e.g. XOR, NOT

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Abstract

마이컴의 비정상적인 동작이 수행되는 경우 안전하게 시스템의 구동을 제어할 수 있도록 한 외치독 회로를 가지는 마이크로 컨트롤러 및 그 제어 방법이 개시되어 있다. 본 발명에 따르면, 시스템을 구동하기 위한 마이컴을 구비된 마이크로 컨트롤러에 있어서, 상기 마이컴의 외치독 신호를 전송하는 신호전송부와, 외부로부터 공급되는 인에이블 신호에 따라 동작되며 상기 신호 전송부의 출력 신호를 기초로 상기 마이컴의 정상을 판정하고 판정 결과에 따라 상기 시스템의 구동을 제어하기 위한 제어 신호를 출력하는 와치독 회로와, 상기 와치독 회로의 제어 신호 또는 상기 마이컴의 제어 신호에 따라 상기 시스템을 구동하기 위한 구동 신호를 발생하는 제어부와, 상기 제어부의 구동 신호에 따라 상기 시스템을 동작시키는 구동부를 포함하고, 상기 마이컴의 비정상적인 동작 수행됨이 감지될 때 상기 하드웨어 와치독 회로의 제어 신호에 따라 시스템이 구동되고, 더불어 상기 마이컴의 정상 상태가 감지될 때 상기 마이컴의 제어 신호에 따라 시스템이 구동되므로 시스템의 안정성을 확보하게 된다.Disclosed are a microcontroller having an externally readout circuit capable of safely controlling the driving of a system when an abnormal operation of a microcomputer is performed, and a control method thereof. According to the present invention, in the microcontroller provided with a microcomputer for driving the system, the signal transmission unit for transmitting the external read dog signal of the microcomputer and the output signal of the signal transmission unit is operated in accordance with the enable signal supplied from the outside A watchdog circuit for determining the normality of the microcomputer and outputting a control signal for controlling the driving of the system according to the determination result, and the system according to the control signal of the watchdog circuit or the control signal of the microcomputer. A control unit for generating a driving signal for driving, and a driving unit for operating the system according to the driving signal of the control unit, and when the system detects abnormal operation of the microcomputer, the system according to the control signal of the hardware watchdog circuit. And when the normal state of the microcomputer is detected The system is operated according to the control signal of the microcomputer, thereby ensuring the stability of the system.

마이컴, 와치독 Micom, Watchdog

Description

와치독 회로를 가지는 마이크로 컨트롤러와 그 제어 방법{MICRO CONTROLLER HAVING WATCHDOG CIRCUIT AND CONTROLLING METHOD THEREFOR }MICRO CONTROLLER HAVING WATCHDOG CIRCUIT AND CONTROLLING METHOD THEREFOR}

도 1은 종래 하드웨어적으로 처리되는 와치독을 설명하기 위한 그래프이며,1 is a graph illustrating a watchdog that is conventionally processed by hardware.

도 2는 본 발명에 따른 구성도이고,2 is a block diagram according to the present invention,

도 3은 도 2의 동작 상태를 설명하기 위한 플로우챠트이다.3 is a flowchart for explaining an operating state of FIG. 2.

<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>

100 : 마이크로 컨트롤러 11 : 마이컴100: microcontroller 11: microcomputer

13 : 충방전 회로 15 : 와치독 회로13: charge and discharge circuit 15: watchdog circuit

17 : 제어부 19 : 구동부17 control unit 19 drive unit

본 발명은 와치독 회로를 가지는 마이크로 컨트롤러 및 그 제어 방법에 관한 것으로, 보다 상세하게는, 마이컴이 비정상적으로 동작될 때 와치독 회로의 제어 신호에 따라 시스템의 구동을 제어하도록 하는 마이크로 컨트롤러 및 그 제어 방법에 관한 것이다.The present invention relates to a microcontroller having a watchdog circuit and a control method thereof, and more particularly, to a microcontroller for controlling the driving of a system according to a control signal of a watchdog circuit when a microcomputer is abnormally operated. It is about a method.

일반적으로, 마이크로 컨트롤러를 사용하는 시스템에서는 시스템의 안정성을 확보하기 위해 다수 종의 모니터링 기능을 갖고 있으며, 이러한 모니터링 기능 중에는 시스템의 지속적인 동작 상태가 정상적인가를 판단하기 위한 와치독(Watchdog) 기능이 내장되어 있다.In general, a system using a microcontroller has a number of monitoring functions to ensure the stability of the system. Among these monitoring functions, a watchdog function is built in to determine whether the system is in a normal operating condition. have.

상기 마이크로 컨트롤러에 내장되어 있는 와치독 기능은 하드웨어로 구성되어 있으며, 디지털 또는 아날로그의 회로로 이루어져 있다. 또한, 마이컴으로 와치독 기능을 수행하는 마이크로 컨트롤러는 일측의 마이컴으로부터 출력되는 와치독 신호를 타측의 레귤레이터에서 검출토록 한 후, 상기 타측의 레귤레이터의 검출 결과에 기초하여 상기 일측의 마이컴을 초기화 시키는 것이다.The watchdog function embedded in the microcontroller is composed of hardware and is composed of a digital or analog circuit. In addition, the microcontroller performing a watchdog function with a microcomputer initializes the microcomputer of the one side based on the detection result of the other regulator after detecting the watchdog signal output from the microcomputer of one side. .

이와 같은 마이컴이 구비된 와치독 기능의 하드웨어가 아날로그일 경우를 살펴보면 다음과 같다.If the hardware of the watchdog function equipped with such a microcomputer is analog, it is as follows.

도 1은 하드웨어로 구성된(하드웨어 와치독 회로 또는 레귤레이터) 시스템에서의 와치독의 기능을 실행하기 위한 장치를 보인 도이다. 상기 도면을 참조하면, 상기 마이컴(1)에서 와치독 신호를 생성하고 별도의 레귤레이터(3)에서 상기 생성된 와치독 신호를 검출할 경우, 상기 레귤레이터(3)는 이 마이컴(3)의 정상적인 동작 상태를 와치독 신호에 의해 판단한다. 즉, 상기 마이컴(3)이 정상적으로 동작할 경우에는 와치독 신호(WD)가 일정 구간동안 규칙적으로 생성된다.1 shows an apparatus for performing the function of a watchdog in a system composed of hardware (hardware watchdog circuit or regulator). Referring to the drawing, when the watchdog signal is generated by the microcomputer 1 and the generated watchdog signal is detected by a separate regulator 3, the regulator 3 operates normally. The state is judged by the watchdog signal. That is, when the microcomputer 3 operates normally, the watchdog signal WD is regularly generated for a certain period.

이 때, 상기 레귤레이터(3)는 상기 와치독 신호(WD)에 따라 규칙적인 톱니파 신호를 생성하는데, 이는 레귤레이터(3)의 내부에 하드웨어로 구성된 충방전 회로에 의한 것으로 방전 그래프의 반전 형태로 출력하고 있다. 따라서 하드웨어 와치독 회로은 충전 그래프를 형성하다가 이 마이컴으로부터의 와치독 신호(WD)가 입력 될 때, 방전하는 것으로, 마이컴의 와치독 신호(WD)와 하드웨어 와치독 회로의 충전 그래프의 주기는 동일하다.At this time, the regulator 3 generates a regular sawtooth wave signal according to the watchdog signal WD, which is generated by the charge / discharge circuit composed of hardware inside the regulator 3 and output in the inverted form of the discharge graph. Doing. Therefore, the hardware watchdog circuit forms a charge graph and discharges it when the watchdog signal WD from the microcomputer is input. The period of the charge graph of the watchdog signal WD and the hardware watchdog circuit of the microcomputer is the same. .

또한, 상기 레귤레이터(3)의 방전 주기는 이 마이컴의 와치독 신호(WD)와 동일하므로, 상기 마이컴(1)으로부터의 와치독 신호(WD)가 입력되지 않을 경우에는 하드웨어 와치독 회로의 지속적인 충전으로 인해 충전 전압이 상승하고 있다. 상기 레귤레이터(3)는 피크 전압을 검출토록 하고, 이때 와치독 신호(WD)가 늦게 출력되거나 없을 경우에는, 레귤레이터(3)의 충전 전압이 늦어져 소정 시간을 넘어서게 되고, 이 때 레귤레이터(3)는 이 마이컴(1)의 동작 상태가 정상이 아님을 판단한다.In addition, since the discharge period of the regulator 3 is the same as the watchdog signal WD of the microcomputer, when the watchdog signal WD from the microcomputer 1 is not input, the hardware watchdog circuit is continuously charged. Due to this, the charging voltage is rising. The regulator 3 detects the peak voltage, and if the watchdog signal WD is outputted late or is absent, the regulator 3 charge voltage is delayed to exceed the predetermined time, at which time the regulator 3 Determines that the operation state of the microcomputer 1 is not normal.

상기 레귤레이터(3)의 판단 결과는 마이컴(1)을 리셋시키기 위한 리셋 신호를 출력하며, 상기 마이컴(1)은 상기 리셋 신호에 의거 시스템을 초기화 한다. 초기화된 마이컴(1)은 일정 시간(와치독 신호의 주기 이내)이 경과된 후, 전원부(5)로부터 공급되는 전원을 온시킨 후 시스템을 구동시키는 구동부(7)를 재정비하게 된다.The determination result of the regulator 3 outputs a reset signal for resetting the microcomputer 1, and the microcomputer 1 initializes the system based on the reset signal. After the predetermined time (within the period of the watchdog signal) has elapsed, the initialized microcomputer 1 rearranges the driving unit 7 for driving the system after turning on the power supplied from the power supply unit 5.

한편, 상기 마이컴(1)으로부터 와치독 신호(WD)가 입력되지 않을 경우, 상기 레귤레이터(3)의 피크 전압에 주기적으로 도달하게 되며, 이는 레귤레이터(3)가 주기적인 리셋 신호를 생성토록 하는 것으로, 주기적인 리셋 신호의 생성으로 인해 상기 마이컴(1)은 주기적으로 시스템을 초기화 한다.On the other hand, when the watchdog signal WD is not input from the microcomputer 1, the peak voltage of the regulator 3 is periodically reached, which causes the regulator 3 to generate a periodic reset signal. Due to the generation of a periodic reset signal, the microcomputer 1 periodically initializes the system.

이와 같은 동작하는 마이컴(1)의 데이터 입출력이 안정되지 못해 이 마이컴(1)으로부터 제어되는 주변 기기를 포함한 시스템의 안정성을 극히 저하시키며, 자 동자의 운행 중 이와 같은 마이컴(1)이 동작되면, 사고 발생 빈도가 상승되는 문제점이 종종 발생하게 되었다.If the data input / output of the operating microcomputer 1 is not stable, the stability of the system including the peripheral device controlled by the microcomputer 1 is extremely reduced. Problems often arise that increase the frequency of accidents.

본 발명은 이와 같은 문제점을 해결하기 위해 창출된 것으로, 본 발명의 목적은 마이컴의 주변 기기에 대한 안정성을 확보할 수 있도록 마이컴의 비정상적으로 동작될 때 와치독 신호를 출력함과 동시에 출력된 와치독 신호에 따라 마이컴의 주변 기기를 동작토록 하는 와치독 회로를 가지는 마이크로 컨트롤러 및 그 제어 방법을 제공함에 있다.The present invention was created to solve the above problems, and an object of the present invention is to output a watchdog signal and output a watchdog signal when the microcomputer is abnormally operated to ensure the stability of the peripheral device of the microcomputer. The present invention provides a microcontroller having a watchdog circuit for operating a peripheral device of a microcomputer according to a signal, and a control method thereof.

상기 목적을 달성하기 위한 본 발명의 제1 관점에 따른 와치독 회로를 가지는 마이크로 컨트롤러는, A microcontroller having a watchdog circuit according to a first aspect of the present invention for achieving the above object,

시스템을 구동하기 위한 제어 신호를 발생하는 마이컴을 구비된 마이크로 컨트롤러에 있어서, A microcontroller having a microcomputer for generating a control signal for driving a system,

상기 마이컴의 와치독 신호를 전송하는 신호 전송부와, A signal transmitter for transmitting a watchdog signal of the microcomputer;

외부로부터 공급되는 인에이블 신호에 따라 동작되며 상기 신호 전송부의 출력 신호를 기초로 상기 마이컴의 정상을 판정하고, 판정 결과에 따라 상기 시스템의 구동을 제어하기 위한 제어 신호를 출력하는 와치독 회로와, A watchdog circuit operating according to an enable signal supplied from the outside and determining the normality of the microcomputer based on the output signal of the signal transmission unit, and outputting a control signal for controlling driving of the system according to the determination result;

상기 와치독 회로의 제어 신호 또는 상기 마이컴의 제어 신호에 따라 상기 시스템을 구동하기 위한 구동 신호를 발생하는 제어부와, A control unit which generates a driving signal for driving the system according to a control signal of the watchdog circuit or a control signal of the microcomputer;

상기 제어부의 구동 신호에 따라 상기 시스템을 동작시키는 구동부를 포함하는 것을 특징으로 한다.And a driving unit for operating the system according to the driving signal of the control unit.

여기서, 상기 와치독 회로는, 외부로부터 공급되는 인에이블 신호에 따라 동작되며, 상기 마이컴의 비 정상적인 동작 수행 시 시스템을 구동시키기 위한 제어 신호를 출력하고, 상기 마이컴이 정상적인 동작 수행 시 상기 제어 신호의 출력을 정지시킨 후 상기 마이컴의 제어 신호에 따라 시스템을 구동시키도록 구비되는 것을 특징으로 한다.Here, the watchdog circuit is operated according to an enable signal supplied from an external device, and outputs a control signal for driving a system when the micom performs an abnormal operation, and outputs a control signal when the micom performs a normal operation. After stopping the output is characterized in that it is provided to drive the system according to the control signal of the microcomputer.

상기 제어부는, 상기 와치독 회로의 제어 신호와 마이컴의 제어 신호를 리곱하여 제어 신호를 출력하는 앤드 게이트로 구비되는 것을 특징으로 하고, 또한 상기 제어부는, 상기 와치독 회로의 제어 신호와 마이컴의 제어 신호를 논리합하여 제어 신호를 출력하는 오아 게이트로 구비되는 것을 특징으로 한다.The control unit is provided with an AND gate for outputting a control signal by multiplying the control signal of the watchdog circuit and the control signal of the microcomputer, and the control unit further controls the control signal of the watchdog circuit and the microcomputer. And an OR gate for outputting a control signal by ORing the signals.

또한, 본 발명의 다른 관점에 따른 와치독 회로를 가지는 마이크로 컨트롤러의 제어 방법은,In addition, a control method of a microcontroller having a watchdog circuit according to another aspect of the present invention,

마이컴의 동작 상태에 따라 시스템을 동작시키기 위한 제어 신호를 발생하여 시스템에 공급하는 와치독 회로를 가지는 마이크로 컨트롤러의 제어 방법에 있어서, In the control method of a microcontroller having a watchdog circuit for generating and supplying a control signal for operating the system according to the operation state of the microcomputer,

a) 외부로부터 공급되는 인에이블 신호에 따라 상기 와치독 회로를 동작시키는 단계;a) operating the watchdog circuit in accordance with an enable signal supplied from an external device;

b) 상기 와치독 회로에서 상기 마이컴으로부터 공급되는 와치독 신호를 기초로 상기 마이컴의 정상 또는 비정상 동작인 지를 체크하여 상기 마이컴의 비정상 동작인 경우 상기 와치독 회로의 제어 신호를 출력하는 단계;b) checking, by the watchdog circuit, whether the micom is in normal or abnormal operation based on the watchdog signal supplied from the micom and outputting a control signal of the watchdog circuit in the abnormal operation of the micom;

c) 상기 와치독 회로의 제어 신호를 통해 상기 시스템이 동작되는 단계c) operating the system via a control signal of the watchdog circuit

d) 상기 b) 단계를 통해 상기 마이컴의 정상 동작인 경우 상기 와치독 회로의 제어 신호의 출력을 정지시키고, 상기 마이컴의 제어 신호를 상기 시스템에 공급하는 단계를 포함하는 것을 특징으로 한다.and d) stopping output of the control signal of the watchdog circuit in the normal operation of the microcomputer, and supplying the microcomputer control signal to the system.

상기 마이컴의 비정상적인 동작 수행됨이 감지될 때 상기 와치독 회로의 제어 신호에 따라 시스템이 구동되고, 더불어 상기 마이컴의 정상 상태가 감지될 때 상기 마이컴의 제어 신호에 따라 시스템이 구동되므로 마이컴의 불안정한 동작으로 인해 저하된 시스템의 안정성을 확보하는 효과를 얻는다.When the microcomputer detects abnormal operation of the microcomputer, the system is driven according to the control signal of the watchdog circuit, and when the normal state of the microcomputer is sensed, the system is driven according to the control signal of the microcomputer. The effect of ensuring the stability of the system is reduced.

이하, 본 발명을 첨부된 예시도면에 의거 상세히 설명하면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명의 실시 예를 설명하기 위한 구성도이다. 도 3은 본 발명의 동작을 설명하기 위한 플로우챠트이다. 참조 도면에 따른 구성은, 마이컴(11), 신호전송부(13), 와치독 회로(15), 제어부(17), 및 구동부(19)로 설계된다.2 is a configuration diagram for explaining an embodiment of the present invention. 3 is a flowchart for explaining the operation of the present invention. The configuration according to the reference figure is designed by the microcomputer 11, the signal transmission unit 13, the watchdog circuit 15, the control unit 17, and the drive unit 19.

상기 신호전송부(13)는 마이컴(11)의 와치독 신호를 상기 와치독 회로(15)에 전송하기 위한 캐패시터 소자를 포함하는 충방전 회로로 사용되며, 상기 와치독 회로(15)는 외부로부터 공급되는 인에이블 신호(En)에 따라 초기 동작되며, 상기 신호 전송부(13)로부터 공급되는 와치독 신호(WD)에 따라 마이컴(11)의 정상 상태를 판정하고 판정 결과에 따라 시스템을 동작시키는 제어 신호(DS)를 제어부(17)를 통해 구동부(19)로 제공하여 시스템을 동작시킨다. 즉, 판정 결과가 마이컴(11)이 정상으로 동작하는 경우 상기 제어 신호(DS)가 출력되지 않으므로 상기 마이컴(11)의 제어신호를 기초하여 시스템이 구동된다. 여기서, 상기 마이컴(11)의 제어 신호와 와치독 회로(15)의 제어 신호는 동일한 신호이다. The signal transmission unit 13 is used as a charge / discharge circuit including a capacitor element for transmitting a watchdog signal of the microcomputer 11 to the watchdog circuit 15, and the watchdog circuit 15 is externally connected. Initially operated according to the supplied enable signal En, the normal state of the microcomputer 11 is determined according to the watchdog signal WD supplied from the signal transmission unit 13 and the system is operated according to the determination result. The control signal DS is provided to the driving unit 19 through the control unit 17 to operate the system. That is, since the control signal DS is not output when the microcomputer 11 operates normally, the system is driven based on the control signal of the microcomputer 11. Here, the control signal of the microcomputer 11 and the control signal of the watchdog circuit 15 are the same signal.

한편, 상기 판정 결과가 마이컴(11)이 비 정상으로 동작하는 경우 상기 제어 신호(DS)가 제어부(17)를 통해 구동부(19)를 제공되므로 상기 제어 신호(DS)를 기초로 시스템이 동작된다.On the other hand, when the microcomputer 11 operates abnormally as a result of the determination, the control signal DS is provided with the driving unit 19 through the control unit 17 so that the system is operated based on the control signal DS. .

여기서, 상기 제어부(17)는 사용자의 설계에 따라 마이컴(11)의 제어 신호와 와치독 회로(15)의 제어 신호(DS) 중 하나 이상의 신호가 입력될 때 시스템을 동작시키는 구동 신호를 상기 구동부로 공급하는 오아 게이트로 구비되거나, 마이컴(11)의 제어 신호와 와치독 회로(15)의 제어 신호(DS)가 모두 입력될 때 시스템을 동작시키는 구동 신호를 상기 구동부로 공급하는 앤드 게이트로 구비될 수도 있다.The control unit 17 may drive a drive signal for operating the system when one or more of a control signal of the microcomputer 11 and a control signal DS of the watchdog circuit 15 are input according to a user's design. Or gate for supplying a driving signal for operating the system when the control signal of the microcomputer 11 and the control signal DS of the watchdog circuit 15 are input to the driving unit. May be

마이크로 컨트롤러에 전원단(미도시됨)에 전원이 공급된 후 상기 마이컴(11)에 공급되고(단계 101), 상기 마이컴(11)은 시스템을 구동하기 위한 제어 신호 및 와치독 신호(WD)를 발생하며(단계 103), 이 제어신호는 제어부(17)를 통해 구동부(19)에 공급되어 시스템을 구동시킨다(단계 105).The microcontroller is supplied with power to a power terminal (not shown) and then supplied to the microcomputer 11 (step 101), and the microcomputer 11 supplies a control signal and a watchdog signal WD for driving the system. (Step 103), this control signal is supplied to the drive unit 19 via the control unit 17 to drive the system (step 105).

이때 외부로부터 공급되는 인에이블 신호(En)가 와치독 회로(15)에 공급되어 이 와치독 회로(15)는 상기 인에이블 신호(En)에 의거 동작한다. At this time, the enable signal En supplied from the outside is supplied to the watchdog circuit 15 so that the watchdog circuit 15 operates based on the enable signal En.

한편, 상기 마이컴(11)으로부터 공급되는 와치독 신호(WD)는 충방전 회로(13)를 통해 충방전된 후 와치독 회로(15)로 공급되고, 와치독 회로(15)는 충방전 회로(13)의 출력 신호에 따라 마이컴(11)의 동작 상태를 판정하고, 판정 결과에 따라 상기 마이컴(11)의 비정상 동작 수행 시 구동부를 동작시킨다.On the other hand, the watchdog signal WD supplied from the microcomputer 11 is charged and discharged through the charge / discharge circuit 13 and then supplied to the watchdog circuit 15, and the watchdog circuit 15 is a charge / discharge circuit ( The operation state of the microcomputer 11 is determined according to the output signal of 13), and the driving unit is operated when the microcomputer 11 performs abnormal operation according to the determination result.

즉, 상기 신호전송부(13)를 통해 공급된 와치독 신호(WD)를 수신한 와치독 회로(15)는 이 수신된 와치독 신호를 기초로 마이컴(11)의 동작 상태를 판정하고( 단계 107), 판정 결과 마이컴(11)이 정상 동작인 지를 체크하며(단계 109), 정상 동작인 경우 상기 단계(103)로 진행한다.That is, the watchdog circuit 15 having received the watchdog signal WD supplied through the signal transmission unit 13 determines the operation state of the microcomputer 11 based on the received watchdog signal (step 107) It is checked whether the microcomputer 11 is in normal operation as a result of the determination (step 109).

상기 단계(109)를 통해 마이컴(11)이 비정상적으로 동작 수행하는 경우 상기 와치독 회로(15)는 시스템의 구동을 유지시키기 위한 제어 신호(DS)를 출력하고(단계 113), 이 제어 신호(DS)는 제어부(17)를 통해 구동부(19)에 공급되며, 구동부(19)는 이 제어 신호(DS)에 따라 계속 작동된다. When the microcomputer 11 performs abnormally through the step 109, the watchdog circuit 15 outputs a control signal DS for maintaining the driving of the system (step 113), and the control signal ( The DS is supplied to the drive unit 19 through the control unit 17, and the drive unit 19 continues to operate in accordance with this control signal DS.

상기의 과정은 마이크로 컨트롤러의 전원 공급이 정지될 때 까지 반복 실행된다.The above process is repeated until the power supply of the microcontroller is stopped.

이상 설명된 바와 같이 본 발명에 따른 와치독 회로를 가지는 마이크로 컨트롤러 및 그 제어 방법은, 상기 마이컴의 비정상적인 동작 수행됨이 감지될 때 상기 와치독 회로의 제어 신호에 따라 시스템이 구동되고, 더불어 상기 마이컴의 정상 상태가 감지될 때 상기 마이컴의 제어 신호에 따라 시스템이 구동되므로 마이컴의 불안정한 동작으로 인해 저하된 시스템의 안정성을 확보하는 효과를 얻는다.As described above, the microcontroller having a watchdog circuit and a control method thereof according to the present invention, when it is detected that the abnormal operation of the microcomputer is performed, the system is driven in accordance with the control signal of the watchdog circuit, and the When the steady state is detected, the system is driven according to the control signal of the microcomputer, thereby obtaining the effect of securing the stability of the system that is degraded due to the unstable operation of the microcomputer.

이상에서 설명한 것은 본 발명에 따른 와치독 제어 방법을 실시하기 위한 하나의 실시예에 불과한 것으로, 본 발명은 상기한 실시예에 한정되지 않고, 이하의 특허청구범위에서 청구하는 바와 같이 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변경 실시가 가능한 범위까지 본 발명의 기술적 정신이 있다고 할 것이다.What has been described above is only one embodiment for implementing the watchdog control method according to the present invention, and the present invention is not limited to the above-described embodiment, and as claimed in the following claims, the gist of the present invention Without departing from the technical spirit of the present invention to the extent that any person of ordinary skill in the art to which the present invention pertains various modifications can be made.

Claims (5)

시스템을 구동하기 위한 제어 신호를 발생하는 마이컴을 구비된 마이크로 컨트롤러에 있어서, A microcontroller having a microcomputer for generating a control signal for driving a system, 상기 마이컴의 와치독 신호를 전송하는 신호 전송부와, A signal transmitter for transmitting a watchdog signal of the microcomputer; 외부로부터 공급되는 인에이블 신호에 따라 동작되며 상기 신호 전송부의 출력 신호를 기초로 상기 마이컴의 정상을 판정하고, 판정 결과에 따라 상기 시스템의 구동을 제어하기 위한 제어 신호를 출력하는 와치독 회로와, A watchdog circuit operating according to an enable signal supplied from the outside and determining the normality of the microcomputer based on the output signal of the signal transmission unit, and outputting a control signal for controlling driving of the system according to the determination result; 상기 와치독 회로의 제어 신호 또는 상기 마이컴의 제어 신호에 따라 상기 시스템을 구동하기 위한 구동 신호를 발생하는 제어부와, A control unit which generates a driving signal for driving the system according to a control signal of the watchdog circuit or a control signal of the microcomputer; 상기 제어부의 구동 신호에 따라 상기 시스템을 동작시키는 구동부를 포함하는 것을 특징으로 하는 와치독 회로를 가지는 마이크로 컨트롤러.And a driver configured to operate the system in response to a drive signal of the controller. 제1항에 있어서, 상기 와치독 회로는, 외부로부터 공급되는 인에이블 신호에 따라 동작되며, 상기 마이컴의 비 정상적인 동작 수행 시 시스템을 구동시키기 위한 제어 신호를 출력하고, 상기 마이컴이 정상적인 동작 수행 시 상기 제어 신호의 출력을 정지시킨 후 상기 마이컴의 제어 신호에 따라 시스템을 구동하는 것을 특징으로 하는 와치독 회로를 가지는 마이크로 컨트롤러.The watchdog circuit of claim 1, wherein the watchdog circuit is operated according to an enable signal supplied from an external device, and outputs a control signal for driving a system when the micom performs an abnormal operation, and when the micom performs a normal operation. And stopping the output of the control signal and driving the system according to the control signal of the microcomputer. 제2항에 있어서, 상기 제어부는, The method of claim 2, wherein the control unit, 상기 와치독 회로의 제어 신호와 마이컴의 제어 신호를 논리곱하여 구동 신호를 출력하는 앤드 게이트로 구비되는 것을 특징으로 하는 와치독 회로를 가지는 마이크로 컨트롤러.And a gate gate for outputting a driving signal by ANDing the control signal of the watchdog circuit and the control signal of the microcomputer. 제2항에 있어서, 상기 와치독 회로의 제어 신호와 마이컴의 제어 신호를 논리합하여 구동 신호를 출력하는 오아 게이트로 구비되는 것을 특징으로 하는 와치독 회로를 가지는 마이크로 컨트롤러.The microcontroller having a watchdog circuit according to claim 2, wherein the watchdog circuit is provided as an OR gate for outputting a driving signal by ORing the control signal of the watchdog circuit and the control signal of the microcomputer. 마이컴의 동작 상태에 따라 시스템을 동작시키기 위한 제어 신호를 발생하여 시스템에 공급하는 와치독 회로를 가지는 마이크로 컨트롤러의 제어 방법에 있어서, In the control method of a microcontroller having a watchdog circuit for generating and supplying a control signal for operating the system according to the operation state of the microcomputer, a) 외부로부터 공급되는 인에이블 신호에 따라 상기 와치독 회로를 동작시키는 단계;a) operating the watchdog circuit in accordance with an enable signal supplied from an external device; b) 상기 와치독 회로에서 상기 마이컴으로부터 공급되는 와치독 신호를 기초로 상기 마이컴의 정상 또는 비정상 동작인 지를 체크하여 상기 마이컴의 비정상 동작인 경우 상기 와치독 회로의 제어 신호를 출력하는 단계;b) checking, by the watchdog circuit, whether the micom is in normal or abnormal operation based on the watchdog signal supplied from the micom and outputting a control signal of the watchdog circuit in the abnormal operation of the micom; c) 상기 와치독 회로의 제어 신호를 통해 상기 시스템이 동작되는 단계c) operating the system via a control signal of the watchdog circuit d) 상기 b) 단계를 통해 상기 마이컴의 정상 동작인 경우 상기 와치독 회로의 제어 신호의 출력을 정지시키고, 상기 마이컴의 제어 신호를 상기 시스템에 공급하는 단계를 포함하는 것을 특징으로 하는 와치독 회로를 가지는 마이크로 컨트롤러의 제어 방법.d) stopping the output of the control signal of the watchdog circuit in the normal operation of the microcomputer through step b), and supplying the control signal of the microcomputer to the system. Control method of a microcontroller having a.
KR1020050092580A 2005-09-30 2005-09-30 Micro controller having watchdog circuit and controlling method therefor KR100731506B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050092580A KR100731506B1 (en) 2005-09-30 2005-09-30 Micro controller having watchdog circuit and controlling method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050092580A KR100731506B1 (en) 2005-09-30 2005-09-30 Micro controller having watchdog circuit and controlling method therefor

Publications (2)

Publication Number Publication Date
KR20070037253A KR20070037253A (en) 2007-04-04
KR100731506B1 true KR100731506B1 (en) 2007-06-21

Family

ID=38159200

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050092580A KR100731506B1 (en) 2005-09-30 2005-09-30 Micro controller having watchdog circuit and controlling method therefor

Country Status (1)

Country Link
KR (1) KR100731506B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10572326B2 (en) * 2017-07-31 2020-02-25 Lg Chem, Ltd. Self-diagnosing watchdog monitoring system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5404356A (en) 1990-10-23 1995-04-04 Mitsubishi Denki Kabushiki Kaisha Microcomputer with watchdog timer and I/O port control
KR960015223A (en) * 1994-10-22 1996-05-22 김광호 Watchdog Timer to Prevent Program Malfunction
KR20000027903A (en) * 1998-10-29 2000-05-15 윤종용 Apparatus and method for processing a watchdog timer reset in a wireless local loop terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5404356A (en) 1990-10-23 1995-04-04 Mitsubishi Denki Kabushiki Kaisha Microcomputer with watchdog timer and I/O port control
KR960015223A (en) * 1994-10-22 1996-05-22 김광호 Watchdog Timer to Prevent Program Malfunction
KR20000027903A (en) * 1998-10-29 2000-05-15 윤종용 Apparatus and method for processing a watchdog timer reset in a wireless local loop terminal

Also Published As

Publication number Publication date
KR20070037253A (en) 2007-04-04

Similar Documents

Publication Publication Date Title
CN105446851B (en) Processor monitoring method and system and MCU for monitoring processor
EP1870794B1 (en) Microcomputer with reset pin and electronic control unit with the same
JP2011063231A (en) Electronic control device for vehicle
CA1168371A (en) Dual deadman timer circuit
JP5455826B2 (en) Power-on control circuit
KR100731506B1 (en) Micro controller having watchdog circuit and controlling method therefor
US6992470B1 (en) Switching power supply system for automatically regulating circuit operating frequency and method thereof
KR20040098577A (en) Regulator protection circuit and power supply apparatus incorporating it
US20030140261A1 (en) Control apparatus
JP2016118885A (en) Control device for outputting maintenance diagnosis information and diagnosis information recording display device
US6882903B2 (en) Electric device
JP2007252012A (en) Regulator damage preventing system
JP7128137B2 (en) portable electronics
KR20050082777A (en) Display apparatus and control method thereof
US11048324B2 (en) Method for controlling a low consumption mode of an electronic circuit unit, control device, and motor vehicle
KR100775328B1 (en) Apparatus for resetting micoms
JPH103409A (en) Microcomputer monitor system and semiconductor integrated circuit device used for the same
KR20020068911A (en) A controlling method of watchdog
JPH05181709A (en) Watchdog timer for intermittent operation
JP4381948B2 (en) Power control system, MFP
KR20020057321A (en) Fan fail alarm
JP2000148542A (en) Watchdog timer monitor device
EP1710661A1 (en) Monitoring circuit
KR20040096346A (en) Apparatus and method for blocking automatically electric power source
JP2001351184A (en) Gas leakage alarm

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130607

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20140605

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20150604

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20160602

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20170601

Year of fee payment: 11