As shown , the watchdog timer is a chip external to the processor .
如图所示,看门狗定时器是处理器外面的一块芯片。
A watchdog timer is a useful tool in helping your system recover from transient failures .
看门狗定时器对帮助你的系统从短暂的崩溃中恢复是个很有用的工具。
This code would regularly restart the watchdog counter , and the watchdog might never bite .
这个代码会周期地重新开始看门狗计数器,看门狗可能永远也不会咬。
If there are many such places in your software , control of the watchdog can become problematic .
如果在你的软件中有很多这种地方,控制看门狗就会变得比较头疼。
In either case , the output from the watchdog timer is tied directly to the processor 's reset signal .
在两种情况下,看门狗定时器的输出都和处理器的重启信号直接相连。
An actual watchdog implementation would usually have an interface to the software that is more complex than the one in listing 1 .
一个实际的看门狗应用与软件的接口通常要比listing1中的要复杂得多。
If the watchdog is built into your microcontroller , it may not be enabled automatically when the device resets .
如果看门狗在你的微控制器内部,当微控制器重启时,它可能没有自动被使能。
If you are working on a mission-critical system , then either common sense or a regulatory body will insist that you use a watchdog .
如果你正在做的系统是关键任务型的,常识或一个监察机构都会要求你使用看门狗。
However , if it is to be effective , resetting the watchdog timer must be considered within the overall software design .
然而,如果要做到有效果,必须要在整个软件设计的框架内考虑看门狗定时器的重设问题。
To prevent this , many watchdog implementations require that a complex sequence of two or more consecutive writes be used to restart the watchdog timer .