|
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.
|