View Single Post
  #11   Spotlight this post!  
Unread 24-02-2004, 09:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Help with pots/interrupts

You can get some sleep after the robot ships.
Oh, wait you're a programmer!
No sleep until after Nationals!!!

As for your Clock...

A likely reason for the non-interrupting interrupt is incorrect initialization.
I assume you are using Kevin's edu_clock_demo_2 example?
I'll run through the obvious. Since you are sleep deprived double check all these even if you are sure you did them already.

- Are you calling Initialize_Timer_2(); from User_Initialization()?
- Are you using any other code that might be trying to utilize Timer 2 as well(e.g., beacon s/w)?
- Calling Timer_2_Int_Handler() from the interrupt handler in user_routines_fast.c?
- Clearing the timer interrupt flag?
- Make any mods to the clock_demo_2.c file?
- Including "clock_demo_2.h" in user_routines.c?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-02-2004 at 09:30.