I am trying to change the watchdog prescalar in an ATmega32 application. The data sheet implies that the watchdog timer registers can be written at time with no special requirements. Is this the case? I am finding that the following code works in AVR Studio but not in the hardware.
void WatchdogInit(void) { WDR(); WDTCSR = 8; // Set prescalar to ~1/4 second timeout. }
Compiler is Imagecraft 7.08.
Any clues.