KR960018893A - Controller with Watchdog Timer - Google Patents

Controller with Watchdog Timer Download PDF

Info

Publication number
KR960018893A
KR960018893A KR1019940031491A KR19940031491A KR960018893A KR 960018893 A KR960018893 A KR 960018893A KR 1019940031491 A KR1019940031491 A KR 1019940031491A KR 19940031491 A KR19940031491 A KR 19940031491A KR 960018893 A KR960018893 A KR 960018893A
Authority
KR
South Korea
Prior art keywords
register
timer
address
jump
value
Prior art date
Application number
KR1019940031491A
Other languages
Korean (ko)
Other versions
KR100311366B1 (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 KR1019940031491A priority Critical patent/KR100311366B1/en
Publication of KR960018893A publication Critical patent/KR960018893A/en
Application granted granted Critical
Publication of KR100311366B1 publication Critical patent/KR100311366B1/en

Links

Classifications

    • 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

Landscapes

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

Abstract

본 발명은 워치독 타이머 기능을 갖는 콘트롤러에 관한 것으로, 종래에는 프로그래머는 프로그램의 흐름을 정확히 파악하여 각 프로그램의 사이클을 정확히 계산해서 타이머 레지스터 값이 로드 레지스터와 매치되기 전에 일일이 타이머 레지스터를 클리어시켜 주어야 함에 따라 프로그램머에게 부담을 줌과 아울러 그 프로그래머의 판단잘못으로 인하여 엉뚱하게 리셋이 걸리게 되는 점과, 프로그램상의 실행과정에서 이상이 생겨 워치독 타이어(WDT) 기능에 의하여 리셋이 걸린다 하더라도 그 원인에 대하여는 프로세서가 전혀 알지못하여 문제헤결이 어려워진다.The present invention relates to a controller having a watchdog timer function. In the related art, a programmer must accurately grasp the flow of a program to accurately calculate a cycle of each program, and clear the timer register before the timer register value matches the load register. As a result of the burden on the programmer, the programmer is incorrectly reset due to a mistake of the programmer's judgment, and even if a reset occurs by the watchdog tire (WDT) function due to an abnormality in the program execution process, It is difficult to solve the problem because you do not know at all.

따라서 본 발명은 프로그램 실행시에 이상이 생겼을때 리켓신호를 시스템으로 출력하여 주도록 함과 아울러 이상이 어디에서 발생했는지에 대한 어드레스를 출력하여 주어 빨리 복구가 가능하도록 하고, 높은 신뢰성이 요구되는 제품에 응용되도록 한다.Therefore, the present invention outputs a ricket signal to the system when an error occurs when the program is executed, and also outputs an address of where the error occurs so that recovery can be performed quickly, and a product that requires high reliability is required. To be applied.

Description

워치독 타이머 기능을 갖는 콘트롤러Controller with Watchdog Timer

본 내용은 요부공개 건이므로 전문내용을 수록하지 않았음As this is a public information case, the full text was not included.

제2도는 본 발명의 워치독 타이머 기능을 갖는 콘트롤러 구성도.2 is a controller configuration having a watchdog timer function of the present invention.

제3도는 제2도에서 에러핀과 외부포트핀을 갖는 마이크로프로세서의 구성도.3 is a schematic diagram of a microprocessor having an error pin and an external port pin in FIG.

Claims (7)

점프명령시부터 다음 점프명령시까지 머쉰사이클은 카운트하는 타이머 카운터(10)와, 가장작은 루프의 머쉰사이클 수를 저장하는 타이머-캡쳐 레지스터(20)와, 매 점프명령마다 그 어드레스를 로드하는 점프-어드레스 레지스터(30)와, 가장작은 루프의 점프명령 어드레스를 저장하는 점프-어드레스-캡쳐 레지스터(40)와, 가장작은 루프의 반복횟수를 카운트하는 루프 레지스터(50)와, 유저가 정의하는 최대의 루프 반복횟수를 나나태는 디파인 레지스터(60)와, 무한 루프에 빠져 내부 리셋이 걸린 횟수를 나타내는 디버그 레지스터(70)와, 상기 타이머 레지스터(10)와 타이머-캡적 레지스터(20), 루프 레지스터(50)와 디파인 레지스터(60)의 값이 같아지면 리셋신호을 출력하는 비교기(80)로 구성된 것을 특징으로 하는 워치독 타이머 기능을 갖는 콘트롤러.From the jump instruction to the next jump instruction, the machine cycle is counted by a timer counter 10 that counts, a timer-capture register 20 that stores the smallest number of machine cycles, and a jump that loads the address for each jump instruction. An address register 30, a jump-address-capture register 40 for storing the jump instruction address of the smallest loop, a loop register 50 for counting the number of repetitions of the smallest loop, and a user defined maximum A fine register (60) indicating a loop iteration number of times, a debug register (70) indicating the number of times an internal reset is made by entering an infinite loop, the timer register (10), a timer-caption register (20), and a loop register And a comparator (80) for outputting a reset signal if the values of the (50) and the fine registers (60) are equal to each other. 제1항에 있어서, 비교부는 타이머 레지스터의 값이 타이머-캡쳐 레지스터(20)의 값을 각각 받아들여 타이머 레지스터의 값이 타이머 타이머-캡쳐 레지스터값보다 작을때 상기 타이머 레지스터의 값을 타이머-캡적 레지스터로 로드되고, 점프-어드레스 레지스터의 값이 점프-어드레스-캡쳐 레지스터로 로드되도록 하는 것을 특징으로 하는 워치독 타이머 기능을 갖는 콘트롤러.The timer-capturing register according to claim 1, wherein the comparing unit accepts the value of the timer-capturing register 20, respectively, and compares the value of the timer-register with the timer-capturing register when the value of the timer register is smaller than the timer-capturing register value. And a watchdog timer function, such that the value of the jump-address register is loaded into the jump-address-capture register. 제2항에 있어서, 비교부는 타이머 레지스터의 값이 타이머-캡쳐 레지스터의 값이 같으면 점프-어드레스 레지스터와 점프-어드레스-캡쳐 레지스터의 값을 받아들이도록 하는 워치독 타이머 기능을 갖는 콘트롤러.3. The controller of claim 2, wherein the comparing unit accepts a value of a jump-address register and a jump-address-capture register if the value of the timer register is the same value of the timer-capture register. 제3항에 있어서, 비교부는 점프-어드레스 레지스터와 점프-어드레스-캡쳐 레지스터의 값을 비교하여 같으면 루프 레지스터의 값을 1증가시키고 다르면 타이머 레지스터를 “0”부터 다음 점프명령을 만날때까지 카운트하도록 하는 것을 특징으로 하는 워치독 타이머 기능을 갖는 콘트롤러.The method of claim 3, wherein the comparing unit compares the values of the jump-address register and the jump-address-capture register to increase the value of the loop register by 1 if the value is equal and to count the timer register from “0” until the next jump instruction when the value is different. A controller having a watchdog timer function, characterized in that. 제1항에 있어서, 디버그 레지스터는 비교부로부터 리셋신호를 소정개이상 입력되면 무한루프로 판단하고 점프-어드레스-캡쳐 레지스터로부터 이상 어드레스를 출력하도록 하는 것을 특징으로 하는 워치독 타이머 기능을 갖는 콘트롤러.The controller having a watchdog timer function according to claim 1, wherein the debug register determines that the predetermined number of reset signals is input from the comparator and is an infinite loop and outputs an abnormal address from a jump-address-capture register. 제1항에 있어서, 비교부로부터 리셋신호를 입력받아 외부에 내수상황을 알려주는 프로세서를 포함하여 구성된 것을 특징으로 하는 워치독 타이머 기능을 갖는 콘트롤러.The controller as claimed in claim 1, further comprising a processor configured to receive a reset signal from the comparator and inform the outside of the water condition. 제6항에 있어서, 프로세서는 무한루프 발생시 외부에 알려줌과 아울러 시스템다운시키는 에러핀과 점프-어드레스-캡쳐 레지스터의 이상 어드레스를 출력하는 외부포트를 갖는 것을 특징으로 하는 워치독 타이머 기능을 갖는 콘트롤러.7. The controller of claim 6, wherein the processor has an external port for notifying externally when an infinite loop is generated and outputting an error address of a system down and an abnormal address of a jump-address-capture register. ※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: The disclosure is based on the initial application.
KR1019940031491A 1994-11-28 1994-11-28 Controller having watch dog timer function KR100311366B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019940031491A KR100311366B1 (en) 1994-11-28 1994-11-28 Controller having watch dog timer function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019940031491A KR100311366B1 (en) 1994-11-28 1994-11-28 Controller having watch dog timer function

Publications (2)

Publication Number Publication Date
KR960018893A true KR960018893A (en) 1996-06-17
KR100311366B1 KR100311366B1 (en) 2002-02-19

Family

ID=37531015

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019940031491A KR100311366B1 (en) 1994-11-28 1994-11-28 Controller having watch dog timer function

Country Status (1)

Country Link
KR (1) KR100311366B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100722476B1 (en) * 2005-12-02 2007-05-28 엘지노텔 주식회사 Watchdog apparatus with error log creation function and the method thereof

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100975228B1 (en) 2003-04-30 2010-08-11 매그나칩 반도체 유한회사 microcomputer with watchdog timer
KR101673303B1 (en) 2014-11-12 2016-11-22 현대자동차주식회사 Method and apparatus for controlling watchdog

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2197507A (en) * 1986-11-03 1988-05-18 Philips Electronic Associated Data processing system
JPH04236637A (en) * 1991-01-18 1992-08-25 Mitsubishi Electric Corp Microprocessor fault detecting circuit
JPH05204715A (en) * 1991-09-20 1993-08-13 Sharp Corp Watchdog timer circuit
JPH05257750A (en) * 1992-03-13 1993-10-08 Fujitsu Ltd Watchdog timer control circuit
KR960015223A (en) * 1994-10-22 1996-05-22 김광호 Watchdog Timer to Prevent Program Malfunction

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100722476B1 (en) * 2005-12-02 2007-05-28 엘지노텔 주식회사 Watchdog apparatus with error log creation function and the method thereof

Also Published As

Publication number Publication date
KR100311366B1 (en) 2002-02-19

Similar Documents

Publication Publication Date Title
US4338660A (en) Relational break signal generating device
US4956807A (en) Watchdog timer
US5717851A (en) Breakpoint detection circuit in a data processor and method therefor
KR960018893A (en) Controller with Watchdog Timer
JPH01140350A (en) Circuit for detecting runway of program in microcomputer
KR920003909B1 (en) Debugging supporting circuit
WO1981003078A1 (en) Relational break signal generating device
JPH02284238A (en) Program debugging device
KR100705847B1 (en) Data processor with a debug circuit
JPH04225432A (en) Interruption processing time control system for one-chip microcomputer
JPH04107748A (en) Microcomputer
JPH03134742A (en) Debug device
JP2516711B2 (en) Watchdog timer device
KR200293236Y1 (en) Watchdog Timer Apparatus
JPH0573361A (en) Microcomputer
JPH0764822A (en) Microcomputer
JPH0322042A (en) Mircoprocessor control system
JPH04332056A (en) Microcomputer
JPS6385831A (en) Control circuit for microprocessor
JPS5935250A (en) Program controller
JPH0340039A (en) Firmware diagnostic device
JPH04148430A (en) Time out control system in emulator
JPH01241637A (en) Program loop supervising device
JPS62102340A (en) Coincidence detection circuit
JPS61175736A (en) Microcomputer for program evaluation

Legal Events

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

Payment date: 20050607

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee