ʲôǿT(watchdog) T,ֽ watchdog timer,һr·, һһݔ,ι,һݔMCURST,MCUĕr,ÿһ˕rgݔһ̖ι,o WDT ,^Ҏ(gu)ĕrgι,(һڳwr),WDT r^,ͻؽoһ(f)λ̖MCU,MCU(f)λ. ֹMCUC. TþǷֹl(f)ѭh(hun)fw ԭϵy(tng)\ԺҲ͆˿TӋ(sh)T_ʼԄӋ(sh)һĕrg߀ȥ忴TôTӋ(sh)͕ĶTДϵy(tng)(f)λʹпTоƬrҪע忴T ӲTһrO(jin)\Ҳf\^҂Ҫڶrrg֮ǰrM(jn)Џ(f)λF(xin)ѭh(hun)fPCָᘲܻôrrg͕ʹƬC(f)λõWDTоƬMAX813 ,5045, IMP 813,r4~10Ԫ. ܛTg(sh)ԭ@ֻ^ܛķF(xin)҂߀51ϵЁv҂֪51ƬCЃɂr҂Ϳ@ɂr팦\M(jn)бO(jin)҂ԌT0O(sh)һĶrrg(dng)a(chn)rДĕr?q)һ׃M(jn)xֵ@׃\е_ʼѽ(jng)һֵ@҂ҪO(sh)ĶrֵҪС\Еrg@β׃ֵM(jn)Дֵ࣬l(f)A(y)ڵ׃fT0Д]аl(f)׃tʹ(f)λT1҂ÁO(jin)\҂oT1O(sh)һĶrrgЌM(jn)Џ(f)λһĕrgM(jn)Џ(f)λT1 ĶrД͕ʹƬC(f)λ@T1ĶrrgҪO(sh)Ĵ\ЕrgoһĵԣT1Дc҂T0rДӳO(jin)ҕ@Ӿ͉һѭh(hun)T0O(jin)ҕT1T1O(jin)ҕցO(jin)ҕT0ĶCϵy(tng)ķ(wn)\ 51 ϵЌTĿTr,ϵy(tng)lM(jn)зlӋ(sh),rr,(f)λ.TO(sh),ҲɆΪÁ鶨rʹ. 61ĿT^һһǕrgһڶǹڌHʹֻѭh(hun)(dng)м幷ָOK C8051FxxxƬC(ni)Ҳһ21λʹϵy(tng)r犵Ķrԓrzy Ĵăɴضĕrgg@rgg^˾̵ĘOֵa(chn)һWDT(f)λ -------------------------------------------------------------------------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