Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
External wake from CPUSleep()

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
mdown



Joined: 03 Feb 2006
Posts: 62
Location: Dallas, Texas

Posted: 11 October 2007, 15:22 PM    Post subject: External wake from CPUSleep() Reply with quote

The ATMEGA644 Docs hint at the possibilty to wake the cpu from powersave via I2C. Have any of you done this? What I2C device did you use? I am trying to find an I2C RTC device were we could set an alarm for say 30 min or longer and after that period of time it wakes the CPU.

-Mike
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2593
Location: Portland, OR

Posted: 11 October 2007, 15:45 PM    Post subject: Re: External wake from CPUSleep() Reply with quote

mdown wrote:
The ATMEGA644 Docs hint at the possibilty to wake the cpu from powersave via I2C.
It is true that an I2C interrupt can wake up an AVR from a power save mode. For this to work, the I2C interface needs to be configured as a slave (which it isn't in the ZX) and the I2C interrupt needs to be enabled (which it isn't in the ZX).

The only wake up sources that are available on the ZX are: external reset, watchdog reset, brown-out reset, external interrupt (INT0-2 or pin change), Timer2 compare or overflow, and (in some sleep modes) ADC conversion complete.


Last edited by dkinzer on 12 October 2007, 1:25 AM; edited 1 time in total
Back to top
stevech



Joined: 23 Feb 2006
Posts: 688

Posted: 11 October 2007, 19:32 PM    Post subject: Reply with quote

some of the RTC chips have an alarm pin- goes true when the alarm goes on. And some have a low frequency square-wave output. Either could be connected to the AVR chip's external interrupt (INT0..2) pin, I'd think.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group