View previous topic :: View next topic |
Author |
Message |
ljbeng
Joined: 10 Feb 2004 Posts: 205
|
|
Posted: Thu Mar 24, 2005 8:19 am |
|
|
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.... |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Thu Mar 24, 2005 10:50 am |
|
|
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
|
|
Posted: Thu Mar 24, 2005 11:57 am |
|
|
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. |
|
|
|