카테고리 없음 2013. 8. 16. 21:54

AVR / Atmega watchdog - 워치독


Using watchdog timer in your projects

http://www.embedds.com/using-watchdog-timer-in-your-projects/


지정된 시간내에 리세하지 않으면 시스템을 리셋시키는 개...


Watchdog Interrup를 사용하면 또는 정해진 시간마다 깨어나서 작동후 다시 잠들게 할수 있다


http://tushev.org/articles/arduino/item/46-arduino-and-watchdog-timer



AVR132: Using the Enhanced Watchdog Timer - Atmel Corporation

www.atmel.com/Images/doc2551.pdf - 이 페이지 번역하기
Rev. 2551C-AVR-06/08. 1 Introduction. “Well designed watchdog timers fire off every day, quietly saving systems and lives without the esteem offered to human ...


First of all, you need to include corresponding header file:

#include <avr/wdt.h>

In the next step we should enable WDT as well as configure it:

wdt_enable(WDTO_2S);

In most cases you'll have to put that line to init(){} section, however, Watchdog timer may be enabled at any moment.

==============================================

You may also like -


posted by 털보네i
: