>> >>but where is wdt_reset and wdt_enable defined? which headers/libs do I >>need? > >That's part of avr-libc and requires > #include <avr/wdt.h> With ICCAVR use void WdtEnable(void) { WDTCR = 0x0F; asm("wdr"); } void WdtDisable(void) { WDTCR = 0x1F; WDTCR = 0x00; } Harald