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

PIC12F629 Timer issue
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
Hans Wedemeyer



Joined: 15 Sep 2003
Posts: 226

View user's profile Send private message

PostPosted: Wed Jul 26, 2006 4:55 pm     Reply with quote

PCM programmer wrote:
Quote:
you can embed a goto at the end of the timer0 routine to jump back to the beginning of the interrupt flag test in the CCS interrupt handler.

That seems very risky. Why not do a test of the interrupt flag for
Timer1 while inside the Timer0 isr ? Then if it's set, clear it, and
execute the Timer1 isr code at that time. (Put a copy of the Timer1
code inside the Timer0 isr). Do a similar thing for the other Timer isr.
This is much more clean method.


Thats similar to what you told me a long time ago, and I have it somewhere in my code snippets.

Thanks
hansw
Eugeneo



Joined: 30 Aug 2005
Posts: 155
Location: Calgary, AB

View user's profile Send private message

PostPosted: Fri Jul 28, 2006 4:37 am     Reply with quote

Since you're not doing anything else with the 629, i'm sure you've all ready tried this but i'm curious. How many cycles are you "out" if you just have a loop that counts, compares then triggers?
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