CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Counting time between clicks
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
CCS NewBee
Guest







PostPosted: Thu Jan 06, 2005 11:35 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Thu Jan 06, 2005 12:41 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group