论文部分内容阅读
总结了常用单片机自恢复方法,分析了采用常用的自恢复方法后有时仍死机的原因,尤其对包含复位“看门狗”_指令的死循环,失控程序改变中断设置方式、关闭某些有用中断造成程序局部瘫痪,失控程序修改单片机专用寄存器内容,使它进入掉电或睡眠工作方式等问题作了探讨。最后提出了三种提高自恢复能力和解决实际问题的自恢复方法。其中相互监视系统具有简单、可靠,软件和CPU时间开销少的优点.保证在单故障的情况下,不会出现系统风机或局部瘫痪。
This paper summarizes the commonly used self-recovery methods of SCM and analyzes the reasons why the SCM sometimes crashes after using the commonly used self-recovery method. Especially for the infinite loop including resetting the “watchdog” instruction, the runaway program changes the interrupt setting mode and turns off some useful interrupts Resulting in partial paralysis of the program, out of control program to modify the microcontroller registers, make it into power-down or sleep work and other issues were discussed. Finally, three self-recovery methods to improve self-recovery ability and solve practical problems are proposed. The mutual monitoring system has the advantages of simplicity, reliability, less software and CPU time overhead. In case of a single fault, there will be no system blower or partial paralysis.