MCUdude / MegaCore

Arduino hardware package for ATmega64, ATmega128, ATmega165, ATmega169, ATmega325, ATmega329, ATmega640, ATmega645, ATmega649, ATmega1280, ATmega1281, ATmega2560, ATmega2561, ATmega3250, ATmega3290, ATmega6450, ATmega6490, AT90CAN32, AT90CAN64 and AT90CAN128
Other
374 stars 115 forks source link

How to wake up from sleep using WDT reset? (atmega64) #197

Open MFahreza69 opened 1 year ago

MFahreza69 commented 1 year ago

I am new in microcontroller programming, and i still confuse for waking up atmega64 from sleep using WDT reset because its not like atmega328 who has WDT interrupt, anyone can explain or give some simple code? Thank You

MCUdude commented 1 year ago

It seems like you can't wake up using the WDT on the ATmega64. It's an older device compared to newer chips like the ATmega1281, so its features are a bit limited.

From the ATmega64 datasheet: image

From the ATmega328P datasheet: image

MFahreza69 commented 1 year ago

Thank you for your response :D, i see that atmega64 hasn't wake up source using WDT but is that possible for using the WDT timeout period and reseting the chip for wake up source?