11.07.2015 Views

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

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.

ATmega48A/PA/88A/PA/168A/PA/328/PThe following code example shows one assembly and one C function for changing the time-outvalue <strong>of</strong> the Watchdog Timer.Assembly Code Example (1)WDT_Prescaler_Change:; Turn <strong>of</strong>f global interruptcli; Reset Watchdog Timerwdr; Start timed sequencelds r16, WDTCSRori r16, (1

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

Saved successfully!

Ooh no, something went wrong!