|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Timers causing code errors?
im pretty sure im using timer 1, and im also certain that im not corrupting memory or taking too much time... i think.
|
|
#2
|
||||
|
||||
|
Re: Timers causing code errors?
Quote:
-Kevin |
|
#3
|
|||
|
|||
|
Re: Timers causing code errors?
Check and make sure "#pragma ... save=" is saving all of the required registers. Which ones are dependent upon your interrupt service routine code and what is used.
Posting the #pragma and the ISR code pertaining to the timer would help. |
|
#4
|
|||||
|
|||||
|
Re: Timers causing code errors?
We implemented the interrupt-based timer described in the IFI white paper.
It has worked fine for us without errors. |
|
#5
|
||||
|
||||
|
Re: Timers causing code errors?
ok, ill post it next time i get my hands on the code (tomorrow probably)
and i think i am clearing the flag... the error only occurs when we do a hard reset of the robot, and a soft reset fixes it. Last edited by Uberbots : 22-01-2008 at 02:12. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Code error causing robot to go into programming mode. | MJD | Programming | 14 | 30-10-2007 14:21 |
| Code Errors With "Bells and Whistles" | Ryan O | Programming | 2 | 31-01-2006 19:29 |
| Timers | MarkVH | Programming | 1 | 13-02-2005 11:30 |
| Timers ? | Gal Longin | Programming | 5 | 12-02-2005 06:15 |
| Timers | bludstayne | Programming | 1 | 19-01-2004 19:25 |