wdt_enable (timeout) 中timeout为超时时间,当超过这个时间后没有喂狗,则单片机重启。 ... 2、Setup函数中启动看门狗,并设置超时时间为两秒:wdt_enable(WDTO_2S);.
確定! 回上一頁