-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi David,
On 10/12/2013 01:05 PM, David Wallis wrote: >> Are you sure, you want to do this with the watchdog timer? Isn't the >> watchdog timer only able to generate a reset? > > > Thanks for your code Erich. I was keen to use the watchdog timer because it > works with the lowest power mode (power down) and doesn't need external > components. > > It seems to be a fairly common method. The watchdog can either generate a > reset or trigger an interrupt, or both. This interrupt can also be used as > a wake up from power down. (At least on the 324P that I'm using). "or an interrupt". Aha. Looking into the datasheets again: atmega32 (the on I use most often): WDT generates a reset only. atmega644p (of which I have some): WDT generates an interrupt or a reset. So I learned something. Thanks for enlightening me. :-) > The other way I was considering was with timer 2 in synchronous mode (so I > don't need external components) and use power save mode. Did you ever look > at synchronous mode? No, not yet. But maybe I should ... Cheers, Erich -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJSWUQCAAoJEHx024vXVRNQnboQAIwx9HJnREwP2niJl2z0P7zn dINhPAioYBdyd1PDhZEZn3WphhlApTP5tbHrGJF5Uv9vqsvZPt2jsNrcL7/0e5Js aGFlySF1aUc92/MEK97hNLDjpsXlZ0i3prC2FRrD8dJ5bS3OezB6uB3tNxrWnEJg 2KgttJU3ytSTVZhiqzoodh6VfVY0+9LgHqdQDsDmCN1XtsW4up2m6a9fVCkP9ZOh 8WH50zCCRHL9s8IB1VzfM5i8ixaMfkw70QWREIqTXcFKyNjJWknKzpCfIz5Jg1F8 mjNJERIt3u8R4s1B78nxjgrbTNVE7/D7cHNAhjMTYyXGhXE9BQTi5ONzIhhOWw4p ReOCBkDXR9T4msbBZ/znqjo2MMiSvbXYmYdbDaT8cpnszb2TAzLYbWDZFvNr0AIZ UzkD7PO6L++aSCsUuSPOXUSzDJsq1CLwZgeMkcmNF59drOoU9S+Of64TOo1XLoxP V6AXPx2R/SnLgPK+mu48vpjNdxIyUv51Uu+icMzTdMFuZ+lpV6ckSBB61V+jhK41 kFZOupNS3NLd8CiWc9RWqDwtKuRIqK4Kzs7vFbNETxcKW4q6o36RXmaFmonLWbhY p2LYontLygzPTr7SW6tMcAbMqLLJ89eYei7bIKhc5cM4eNYnUrb6lAITF3bUvfOy Oi7pKtaFzUaSgC5vCnTY =tFuz -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel