Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: wait vs sleep vs deep sleep vs backup
PostPosted: Wed Aug 10, 2011 5:27 pm 
Offline

Joined: Wed Feb 25, 2009 9:00 pm
Posts: 1
I'm learning about using WFE and WFI to put the processor into power saving modes, but I'd like to learn a little about how the different modes differ from each other.

Do any in-pipe or pending instructions get lost in the sleep/wakeup event boundary?

What happens when waking up, does the processor reboot, does it continue as it was before the sleep/wait command, or is there a wakeup routine?

How does backup mode compare to the wait and sleeps? Does it reboot on wakeup or anything differently than the others?


Top
 Profile  
 
 Post subject: Re: wait vs sleep vs deep sleep vs backup
PostPosted: Mon Aug 15, 2011 2:31 pm 
Offline

Joined: Tue Jul 13, 2010 12:54 pm
Posts: 29
Do any in-pipe or pending instructions get lost in the sleep/wakeup event boundary?
If you use WFI, the processor stops executing instructions immediately, and enters sleep mode. If there is a pending event, and you try to enter sleep mode using WFE, the processor will continue executing instructions without entering sleep mode.

What happens when waking up, does the processor reboot, does it continue as it was before the sleep/wait command, or is there a wakeup routine?
Backup Mode: Processor restarts (Reset)
Wait Mode: Processor resumes from point of entering wait - Main and PLL Clocks need to be restored - allow time for the start of the crystal oscillator and setup of the PLL.
Sleep Mode: Processor resumes from point of entering sleep. Only core clocks are disabled in sleep mode, peripheral clocks can be enabled.

How does backup mode compare to the wait and sleeps? Does it reboot on wakeup or anything differently than the others? Backup mode reboots on wakeup. pin states in backup mode are input with pull-up.

Refer to Table 5-1 of the datasheet - Low Power Mode Summary table, and section 13.17.11 WFE, and 13.17.12. WFI


Top
 Profile  
 
 Post subject: Re: wait vs sleep vs deep sleep vs backup
PostPosted: Mon Aug 15, 2011 2:32 pm 
Offline

Joined: Tue Jul 13, 2010 12:54 pm
Posts: 29
The datasheet I'm referring to is that of the AT91SAM3U


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron