Watchdog in mega48

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm cutting down my power consumption in my mega48 gcc program. One thing I have to implement is a delay. The 64ms watchdog option looks interesting. Can you point me to any code examples using watchdog interrupt mode to implement delays?

Greetings,

Børge

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

you might want to check out the section of the datasheet that talksabout sleep modes and such. also i believe the watchdog runs off a separate RC osc. so if you want precise delays thats probably out.