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 support@ccsinfo.com

LP oscillator losing time
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
ljbeng



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

PostPosted: Thu Mar 24, 2005 8:19 am     Reply with quote

Yes Mark, I will try your code today. I finally got it to compile. TIMER1_H was not a valid register so I just put

Code:

#asm
   BSF    0xF.7  //
#endasm


I wanted to see over 24 hr what my original code would do. I will try your idea today and will post the results....

Oh, by the way, I don't have a Shrek watch of my own, I will check ebay.... Smile
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Thu Mar 24, 2005 10:50 am     Reply with quote

How much time did does yours lose? If you look at my code,

Code:
#byte timer1_h = 0x0F


defines that location for you.
ljbeng



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

PostPosted: Thu Mar 24, 2005 11:57 am     Reply with quote

DUH! I didn't see your declaration for timer1_h....

So far today after ~3 hours, I have lost 1 second. There are no other interrupts, just sleep, wake up on timer1 overflow and go back to sleep.
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