You will have to poll this button and check it often if you want it to respond. You could also use an interrupt to detect it if it is on the right pin of the pic.
** OK i will try.
Timers:
Hmm, before i ask how to :--) i know i have to use timer1 becuse im using sleep mode and i need wakeup. So, this is a bit tricky now..
After activating the sleep function the counter should continue to countdown.
He ??? some example for my case would be very nice :-)
I saw this ex_rtc example but this is not what i need and i have searched thru the forum for some topics but i cant found no real countdown example..
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Thu Jan 06, 2005 12:41 pm
If you mean the PIC is actually sleeping, that is, you execute the sleep instruction then the timers will not run since the osc is turned off. About the only thing that will wake you up is a wdt, external reset, or through some of the interrupts.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
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 vote in polls in this forum