How to count the resets caused by WDT - LDmicro/LDmicro GitHub Wiki

How to count the resets сaused by WDT?
Atmel AVR datasheet...
image
If WDRF = 1, then increment the WDT_reset_counter variable, stored in EEPROM.
image

image

LD, Hex, Asm, Poteus files in ATmega2560.zip

Any questions to [email protected]