View Single Post
  #3   Spotlight this post!  
Unread 23-01-2008, 00:08
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Second clock/timer causes red light of death

Quote:
Originally Posted by pogenwurst View Post
Can anyone point me in the right direction?
Did you enable the ISR at the top of ifi_frc.h and the timer 1 ISR in timers.h? If not, Timer_1_ISR() won't be called from Interrupt_Handler_Low() and the interrupt flag won't get cleared, causing the RLOD.

Edit: Your code looks very good. The counter variables need to be global though. My bet is that you just forgot to enable the timer 1 ISR in ifi_frc.h.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org

Last edited by Kevin Watson : 23-01-2008 at 00:13.