Skip to content

How to count the resets caused by WDT

LDmicroGitHub edited this page Jun 5, 2017 · 3 revisions

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 LDmicro.GitHub@gmail.com

Clone this wiki locally