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
Posted: Fri Jul 28, 2006 4:37 am
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?
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