12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ATmega32A</strong>The WDP2, WDP1, and WDP0 bits determine the Watchdog Timer prescaling when the WatchdogTimer is enabled. The different prescaling values and their corresponding Timeout Periodsare shown in Table 10-1.Table 10-1.WDP2 WDP1 WDP0Watchdog Timer Prescale SelectNumber of WDTOscillator CyclesTypical Time-outat V CC = 3.0VTypical Time-outat V CC = 5.0V0 0 0 16K (16,384) 17.1ms 16.3ms0 0 1 32K (32,768) 34.3ms 32.5ms0 1 0 64K (65,536) 68.5ms 65ms0 1 1 128K (131,072) 0.14s 0.13s1 0 0 256K (262,144) 0.27s 0.26s1 0 1 512K (524,288) 0.55s 0.52s1 1 0 1,024K (1,048,576) 1.1s 1.0s1 1 1 2,048K (2,097,152) 2.2s 2.1sThe following code example shows one assembly and one C function for turning off the WDT.The example assumes that interrupts are controlled (for example by disabling interrupts globally)so that no interrupts will occur during execution of these functions.Assembly Code ExampleWDT_off:; reset WDTwdr; Write logical one to WDTOE and WDEin r16, WDTCRori r16, (1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!