Elastic Sheep

Because elasticdog was already taken

Elastic Sheep header image 2

Software reset of an ATMEGA168

December 30th, 2009 · No Comments · Uncategorized

Could be useful sometime in the future:

#include <avr/wdt.h>
void reboot() {
  while (1) {}

The watchdog is enabled with the minimum time-out of 15ms. Then a system reset is triggered when the time-out is reached.

Note: the reset source can be determined at boot time by reading the MCUSR register (watchdog system reset, brown-out reset, external reset or power-on reset).

Tags: ·

No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment