A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
i just want to ask how to put a PIC16F877 into sleep mode for 3 minutues after power up...hope you can help me...thanks --------------------------------------------------------- Emmanuel A. Gonzalez IEEE Student Member Visit ECE Society http://www.ecesociety.com For engineering-related topics, visit http://www.emmgonfreenotes.cjb.net My personal website is in http://www.geocities.com/emmgon _________________________________________________________________ Unlimited Internet access for only $21.95/month. Try MSN! http://resourcecenter.msn.com/access/plans/2monthsfree.asp |
|
|
|
the best methode I have in my mind is to use tmr1 in external osc mode and to use weak-up on tmr1 Emanuel = " God is always with me " in old hebrew language so you must have no problems... :) regards, Vasile http://www.geocities.com/vsurducan On Tue, 5 Nov 2002, Emmanuel Gonzalez wrote: > i just want to ask how to put a PIC16F877 into sleep mode for 3 minutues > after power up...hope you can help me...thanks > > --------------------------------------------------------- > Emmanuel A. Gonzalez > IEEE Student Member > > Visit ECE Society > http://www.ecesociety.com > > For engineering-related topics, visit > http://www.emmgonfreenotes.cjb.net > > My personal website is in > http://www.geocities.com/emmgon > > > _________________________________________________________________ > Unlimited Internet access for only $21.95/month. Try MSN! > http://resourcecenter.msn.com/access/plans/2monthsfree.asp > > To unsubscribe from this group, send an email to: |
|
hello piclisters and ratringers...how do i put my 877 to sleep for about three minutes after power startup? thanks a lot..happy new year --------------------------------------------------------- Emmanuel A. Gonzalez IEEE Student Member Visit ECE Society http://www.ecesociety.com For engineering-related topics, visit http://www.emmgonfreenotes.cjb.net My personal website is at http://www.geocities.com/emmgon how do i _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |
|
|
|
after you put the pic in sleep mode you need an event to wake up the pic after 3 minutes regards, Vasile http://www.geocities.com/vsurducan On Sun, 5 Jan 2003, Emmanuel Gonzalez wrote: > hello piclisters and ratringers...how do i put my 877 to sleep for about > three minutes after power startup? thanks a lot..happy new year > --------------------------------------------------------- > Emmanuel A. Gonzalez > IEEE Student Member > > Visit ECE Society > http://www.ecesociety.com > > For engineering-related topics, visit > http://www.emmgonfreenotes.cjb.net > > My personal website is at http://www.geocities.com/emmgon > how do i > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > to unsubscribe, go to http://www.yahoogroups.com and follow the instructions |
|
hi folks...can anyone help me create a code that will put PIC16F877 into sleep for 3 minutes from power startup. i also plan to put a switch to enable or disable sleep when starting-up...thanks a lot Emmanuel A. Gonzalez _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |
|
Hi
Although I do not understand your reasoning it does not
sound logic. Sleep mode is used normally during a long term running program to shut
down everything to save power to absolute minimum. The processor will only sleep for
a couple of hundred milli seconds max at a time so you will have to get it to keep waking
and sleeping until the 3 minutes is reached.
If it has nothing to do with power saving it will be a
different kettle of fish all together and a timer loop of some sort is used. Does
the design have a second oscillator running to time the 3 minutes?
regards
Martin
|
|
Hi,
The sleep mode is used save energy in products that use
battery and It stay all the time in sleep mode, only wake up when
happen one interrupt and the microcontroller
execute the interrupt and It sleep again.
For make what you want, you should have one extern
interrupt to each 3 minutis in one pin that have interrupt for wake up the
microcontroller to each 3 Minutes and sleep
again.
Best Regards,
gilmar
|
|
hi.... i need to put the pic into sleep mode at start because i need to heat up my gas sensors for three minutes...this way, i can save energy because im just using a battery for my mobile robot...so what i really need is a code that put the pic into sleep mode at power on for three minutes --------------------------------------------------------- Emmanuel A. Gonzalez IEEE Student Member >From: "Gilmar" <> >Reply-To: >To: <> >Subject: Re: [piclist] sleep mode >Date: Tue, 9 Sep 2003 08:02:28 -0300 >MIME-Version: 1.0 >Received: from engine.ieee.org ([140.98.193.23]) by mc12-f1.hotmail.com >with Microsoft SMTPSVC(5.0.2195.5600); Tue, 9 Sep 2003 04:03:41 -0700 >Received: from orion2.ieee.org (gemini4.ieee.org [140.98.193.189])by >engine.ieee.org (Switch-3.1.0/Switch-3.1.0) with ESMTP id h89B0riA005836for ><>; Tue, 9 Sep 2003 07:00:53 -0400 (EDT) >Received: from n39.grp.scd.yahoo.com (n39.grp.scd.yahoo.com >[66.218.66.107])by orion2.ieee.org (Switch-2.2.6/Switch-2.2.6) with SMTP id >h89B3XS16146for <>; Tue, 9 Sep 2003 07:03:34 -0400 (EDT) >Received: from [66.218.67.201] by n39.grp.scd.yahoo.com with NNFMP; 09 Sep >2003 11:03:34 -0000 >Received: (qmail 59305 invoked from network); 9 Sep 2003 11:03:30 -0000 >Received: from unknown (66.218.66.166) by m9.grp.scd.yahoo.com with QMQP; >9 Sep 2003 11:03:30 -0000 >Received: from unknown (HELO mail.mg.sense.com.br) (200.202.216.186) by >mta5.grp.scd.yahoo.com with SMTP; 9 Sep 2003 11:03:32 -0000 >Received: (from root@localhost)by mail.mg.sense.com.br (8.11.6p2/8.11.6) id >h89BdAM19326for <>; Tue, 9 Sep 2003 08:39:10 -0300 >Received: from gedgilmar (MQ-152.mg.sense.com.br [192.168.2.152] (may be >forged))by mail.mg.sense.com.br (8.11.6p2/8.11.4) with SMTP id >h89Bcu119283for <>; Tue, 9 Sep 2003 08:38:56 -0300 >X-Message-Info: JGTYoYF78jFefUiOhJHw0V0dMj9doh11 >X-eGroups-Return: > >X-Sender: >X-Apparently-To: >Message-ID: <> >References: <> ><028701c376bd$29ea3fe0$441558db@desk> >X-Priority: 3 >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook Express 6.00.2800.1158 >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 >X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) >X-Yahoo-Profile: gilmar_ribeiro2002 >Mailing-List: list ; contact > >Delivered-To: mailing list >Precedence: bulk >List-Unsubscribe: <mailto:> >Return-Path: > >X-OriginalArrivalTime: 09 Sep 2003 11:03:43.0715 (UTC) >FILETIME=[08A32B30:01C376C2] > >Hi, > >The sleep mode is used save energy in products that use battery and It stay >all the time in sleep mode, only wake up when >happen one interrupt and the microcontroller execute the interrupt and It >sleep again. >For make what you want, you should have one extern interrupt to each 3 >minutis in one pin that have interrupt for wake up the >microcontroller to each 3 Minutes and sleep again. > >Best Regards, >gilmar > > ----- Original Message ----- > From: martin de lange > To: > Sent: Tuesday, September 09, 2003 7:28 AM > Subject: Re: [piclist] sleep mode > Hi > > Although I do not understand your reasoning it does not sound logic. >Sleep mode is used normally during a long term running program to shut down >everything to save power to absolute minimum. The processor will only >sleep for a couple of hundred milli seconds max at a time so you will have >to get it to keep waking and sleeping until the 3 minutes is reached. > > If it has nothing to do with power saving it will be a different kettle >of fish all together and a timer loop of some sort is used. Does the >design have a second oscillator running to time the 3 minutes? > > regards > Martin > ----- Original Message ----- > From: Emmanuel Gonzalez > To: ; > Sent: Tuesday, September 09, 2003 8:08 PM > Subject: [piclist] sleep mode > hi folks...can anyone help me create a code that will put PIC16F877 >into > sleep for 3 minutes from power startup. i also plan to put a switch to > enable or disable sleep when starting-up...thanks a lot > Emmanuel A. Gonzalez > > _________________________________________________________________ > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > http://join.msn.com/?page=features/virus > > to unsubscribe, go to http://www.yahoogroups.com and follow the >instructions > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > Yahoo! Groups Sponsor > ADVERTISEMENT > > > to unsubscribe, go to http://www.yahoogroups.com and follow the >instructions > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |
|
|
|
Emmanuel By using TMR1 on a midrange processor you can wake it up after a longer time. Quoting fom M'chip specs for the 16F88: If control bit T1SYNC (T1CON<2>) is set, the external clock input is not synchronized. The timer continues to increment asynchronous to the internal phase clocks. The timer will continue to run during SLEEP and can generate an interrupt on overflow that will wake-up the processor. However, special precautions in software are needed to read/write the timer (Section 7.5.1). In Asynchronous Counter mode, Timer1 cannot be used as a time-base for capture or compare operations. END quote /Sven > hi.... > > i need to put the pic into sleep mode at start because i need to heat up my > > gas sensors for three minutes...this way, i can save energy because im just > > using a battery for my mobile robot...so what i really need is a code that > put the pic into sleep mode at power on for three minutes > > --------------------------------------------------------- > Emmanuel A. Gonzalez > IEEE Student Member > > >From: "Gilmar" <> > >Reply-To: > >To: <> > >Subject: Re: [piclist] sleep mode > >Date: Tue, 9 Sep 2003 08:02:28 -0300 > >MIME-Version: 1.0 > >Received: from engine.ieee.org ([140.98.193.23]) by mc12- f1.hotmail.com > >with Microsoft SMTPSVC(5.0.2195.5600); Tue, 9 Sep 2003 04:03:41 -0700 > >Received: from orion2.ieee.org (gemini4.ieee.org [140.98.193.189])by > >engine.ieee.org (Switch-3.1.0/Switch-3.1.0) with ESMTP id > h89B0riA005836for > ><>; Tue, 9 Sep 2003 07:00:53 -0400 (EDT) > >Received: from n39.grp.scd.yahoo.com (n39.grp.scd.yahoo.com > >[66.218.66.107])by orion2.ieee.org (Switch-2.2.6/Switch-2.2.6) with SMTP > id > >h89B3XS16146for <>; Tue, 9 Sep 2003 07:03:34 -0400 > (EDT) > >Received: from [66.218.67.201] by n39.grp.scd.yahoo.com with NNFMP; 09 Sep > > >2003 11:03:34 -0000 > >Received: (qmail 59305 invoked from network); 9 Sep 2003 11:03:30 - 0000 > >Received: from unknown (66.218.66.166) by m9.grp.scd.yahoo.com with QMQP; > > >9 Sep 2003 11:03:30 -0000 > >Received: from unknown (HELO mail.mg.sense.com.br) (200.202.216.186) by > >mta5.grp.scd.yahoo.com with SMTP; 9 Sep 2003 11:03:32 -0000 > >Received: (from root@localhost)by mail.mg.sense.com.br (8.11.6p2/8.11.6) > id > >h89BdAM19326for <>; Tue, 9 Sep 2003 08:39:10 - 0300 > >Received: from gedgilmar (MQ-152.mg.sense.com.br [192.168.2.152] (may be > >forged))by mail.mg.sense.com.br (8.11.6p2/8.11.4) with SMTP id > >h89Bcu119283for <>; Tue, 9 Sep 2003 08:38:56 - 0300 > >X-Message-Info: JGTYoYF78jFefUiOhJHw0V0dMj9doh11 > >X-eGroups-Return: > >sentto-150366-2539-1063105411- > >X-Sender: > >X-Apparently-To: > >Message-ID: <> > >References: <> > ><028701c376bd$29ea3fe0$441558db@desk> > >X-Priority: 3 > >X-MSMail-Priority: Normal > >X-Mailer: Microsoft Outlook Express 6.00.2800.1158 > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 > >X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) > >X-Yahoo-Profile: gilmar_ribeiro2002 > >Mailing-List: list ; contact > > > >Delivered-To: mailing list > >Precedence: bulk > >List-Unsubscribe: <mailto:> > >Return-Path: > >sentto-150366-2539-1063105411- > >X-OriginalArrivalTime: 09 Sep 2003 11:03:43.0715 (UTC) > >FILETIME=[08A32B30:01C376C2] > > > >Hi, > > > >The sleep mode is used save energy in products that use battery and It > stay > >all the time in sleep mode, only wake up when > >happen one interrupt and the microcontroller execute the interrupt and It > >sleep again. > >For make what you want, you should have one extern interrupt to each 3 > >minutis in one pin that have interrupt for wake up the > >microcontroller to each 3 Minutes and sleep again. > > > >Best Regards, > >gilmar > > > > ----- Original Message ----- > > From: martin de lange > > To: > > Sent: Tuesday, September 09, 2003 7:28 AM > > Subject: Re: [piclist] sleep mode > > > > > > Hi > > > > Although I do not understand your reasoning it does not sound logic. > >Sleep mode is used normally during a long term running program to shut > down > >everything to save power to absolute minimum. The processor will only > >sleep for a couple of hundred milli seconds max at a time so you will have > > >to get it to keep waking and sleeping until the 3 minutes is reached. > > > > If it has nothing to do with power saving it will be a different kettle > > >of fish all together and a timer loop of some sort is used. Does the > >design have a second oscillator running to time the 3 minutes? > > > > regards > > Martin > > ----- Original Message ----- > > From: Emmanuel Gonzalez > > To: ; > > Sent: Tuesday, September 09, 2003 8:08 PM > > Subject: [piclist] sleep mode > > > > > > hi folks...can anyone help me create a code that will put PIC16F877 > >into > > sleep for 3 minutes from power startup. i also plan to put a switch > to > > enable or disable sleep when starting-up...thanks a lot > > > > > > Emmanuel A. Gonzalez > > > > _________________________________________________________________ > > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > > http://join.msn.com/?page=features/virus > > > > > > > > to unsubscribe, go to http://www.yahoogroups.com and follow the > >instructions > > > > Milton Medicinteknik KB Backgårdsgatan 15 S-590 49 Vikingstad SWEDEN Ph. +46 13 83 202 Fax +46 13 83 204 Mobile: +46 70 679 0489 |
|
There is a posibility to built a monostable using a CD4093, one transistor and two capacitors up to 2...3 minutes. Then the monostable output can wake up the PIC on rising edge. What pic do you have ? You can also clock the pic with a very low frequency and after 3 minutes change to a high speed clock. In this way the battery will live longer. top 10 wishes, Vasile http://surducan.netfirms.com On Tue, 9 Sep 2003, Emmanuel Gonzalez wrote: > hi.... > > i need to put the pic into sleep mode at start because i need to heat up my > gas sensors for three minutes...this way, i can save energy because im just > using a battery for my mobile robot...so what i really need is a code that > put the pic into sleep mode at power on for three minutes > > --------------------------------------------------------- > Emmanuel A. Gonzalez > IEEE Student Member > > >From: "Gilmar" <> > >Reply-To: > >To: <> > >Subject: Re: [piclist] sleep mode > >Date: Tue, 9 Sep 2003 08:02:28 -0300 > >MIME-Version: 1.0 > >Received: from engine.ieee.org ([140.98.193.23]) by mc12-f1.hotmail.com > >with Microsoft SMTPSVC(5.0.2195.5600); Tue, 9 Sep 2003 04:03:41 -0700 > >Received: from orion2.ieee.org (gemini4.ieee.org [140.98.193.189])by > >engine.ieee.org (Switch-3.1.0/Switch-3.1.0) with ESMTP id h89B0riA005836for > ><>; Tue, 9 Sep 2003 07:00:53 -0400 (EDT) > >Received: from n39.grp.scd.yahoo.com (n39.grp.scd.yahoo.com > >[66.218.66.107])by orion2.ieee.org (Switch-2.2.6/Switch-2.2.6) with SMTP id > >h89B3XS16146for <>; Tue, 9 Sep 2003 07:03:34 -0400 (EDT) > >Received: from [66.218.67.201] by n39.grp.scd.yahoo.com with NNFMP; 09 Sep > >2003 11:03:34 -0000 > >Received: (qmail 59305 invoked from network); 9 Sep 2003 11:03:30 -0000 > >Received: from unknown (66.218.66.166) by m9.grp.scd.yahoo.com with QMQP; > >9 Sep 2003 11:03:30 -0000 > >Received: from unknown (HELO mail.mg.sense.com.br) (200.202.216.186) by > >mta5.grp.scd.yahoo.com with SMTP; 9 Sep 2003 11:03:32 -0000 > >Received: (from root@localhost)by mail.mg.sense.com.br (8.11.6p2/8.11.6) id > >h89BdAM19326for <>; Tue, 9 Sep 2003 08:39:10 -0300 > >Received: from gedgilmar (MQ-152.mg.sense.com.br [192.168.2.152] (may be > >forged))by mail.mg.sense.com.br (8.11.6p2/8.11.4) with SMTP id > >h89Bcu119283for <>; Tue, 9 Sep 2003 08:38:56 -0300 > >X-Message-Info: JGTYoYF78jFefUiOhJHw0V0dMj9doh11 > >X-eGroups-Return: > > > >X-Sender: > >X-Apparently-To: > >Message-ID: <> > >References: <> > ><028701c376bd$29ea3fe0$441558db@desk> > >X-Priority: 3 > >X-MSMail-Priority: Normal > >X-Mailer: Microsoft Outlook Express 6.00.2800.1158 > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 > >X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) > >X-Yahoo-Profile: gilmar_ribeiro2002 > >Mailing-List: list ; contact > > > >Delivered-To: mailing list > >Precedence: bulk > >List-Unsubscribe: <mailto:> > >Return-Path: > > > >X-OriginalArrivalTime: 09 Sep 2003 11:03:43.0715 (UTC) > >FILETIME=[08A32B30:01C376C2] > > > >Hi, > > > >The sleep mode is used save energy in products that use battery and It stay > >all the time in sleep mode, only wake up when > >happen one interrupt and the microcontroller execute the interrupt and It > >sleep again. > >For make what you want, you should have one extern interrupt to each 3 > >minutis in one pin that have interrupt for wake up the > >microcontroller to each 3 Minutes and sleep again. > > > >Best Regards, > >gilmar > > > > ----- Original Message ----- > > From: martin de lange > > To: > > Sent: Tuesday, September 09, 2003 7:28 AM > > Subject: Re: [piclist] sleep mode > > > > > > Hi > > > > Although I do not understand your reasoning it does not sound logic. > >Sleep mode is used normally during a long term running program to shut down > >everything to save power to absolute minimum. The processor will only > >sleep for a couple of hundred milli seconds max at a time so you will have > >to get it to keep waking and sleeping until the 3 minutes is reached. > > > > If it has nothing to do with power saving it will be a different kettle > >of fish all together and a timer loop of some sort is used. Does the > >design have a second oscillator running to time the 3 minutes? > > > > regards > > Martin > > ----- Original Message ----- > > From: Emmanuel Gonzalez > > To: ; > > Sent: Tuesday, September 09, 2003 8:08 PM > > Subject: [piclist] sleep mode > > > > > > hi folks...can anyone help me create a code that will put PIC16F877 > >into > > sleep for 3 minutes from power startup. i also plan to put a switch to > > enable or disable sleep when starting-up...thanks a lot > > > > > > Emmanuel A. Gonzalez > > > > _________________________________________________________________ > > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > > http://join.msn.com/?page=features/virus > > > > > > > > to unsubscribe, go to http://www.yahoogroups.com and follow the > >instructions > > > |