avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Sleep modes


From: Pat Deegan
Subject: Re: [avr-gcc-list] Sleep modes
Date: Mon, 14 Jun 2004 12:36:54 -0400

Hello,

On Mon, 2004-06-14 at 12:19, address@hidden wrote:
> I suppose the best mode is the
> idle mode but I dont know how to put the processor in this mode. How to 
> executed
> the Sleep instruction?

Check the power management page at
http://www.nongnu.org/avr-libc/user-manual/group__avr__sleep.html

I believe you want to:


#include <avr/sleep.h>

/* setup idle mode sleeps: */

set_sleep_mode(SLEEP_MODE_IDLE);

/* and when you are ready go into ... */
sleep_mode (void)


HTH.

Regards,
-- 
Pat Deegan
http://www.psychogenic.com/
PGP Key: http://www.keyserver.net 0x03F86A50



reply via email to

[Prev in Thread] Current Thread [Next in Thread]