发明名称 Method for detecting execution errors of a microprocessor
摘要 According to the method of the present invention for detecting errors in executing a program including a main routine and an interrupt routine in a microprocessor, execution errors can be detected irrespective of whether it occurred in a main routine or an interrupt routine. A cancel code for a watchdog timer is entered in the variable value data DT in the main routine, and a count value TC of a watchdog canceling timer is incremented by one in the interrupt routine. If the count value TC has reached a prescribed value, the value of the data DT is supplied to the watchdog timer, and both the count value TC and the data DT are set to zero. In case of an execution error preventing the program flow from advancing from the main routine to the interrupt routine, the data DT is not supplied to the watchdog timer, and the watchdog time is allowed to reset the microprocessor. In case of an execution error preventing the program flow from returning from the interrupt routine to the main routine, the data DT is may be supplied to the watchdog timer but because the data DT continues to hold the zero value, the watchdog time is again allowed to reset the microprocessor. Therefore, in either case, the watchdog timer is not canceled, and the microprocessor is reset by the watchdog timer circuit without fail.
申请公布号 US5761414(A) 申请公布日期 1998.06.02
申请号 US19960761112 申请日期 1996.12.05
申请人 MITSUBA CORPORATION 发明人 AKAISHI, TSUYOSHI;KANEKO, YOSHIHIRO
分类号 F02D45/00;F02D41/22;G06F11/00;G06F11/30;(IPC1-7):G06F11/30 主分类号 F02D45/00
代理机构 代理人
主权项
地址
您可能感兴趣的专利