Quote:
Originally Posted by JBotAlan
OK, the code that is causing me problems is posted:
http://jbotalan.frih.net/07_code.zip
No printfs work anywhere.
I'm re-writing from the default user code. It will make for cleaner code. I would be interested in finding out why the heck this broke.
I'm going to try CVS.
JBot
|
Could you add the following to timer_handler.c in the InitializeTimer() function?
Code:
PIE1bits.TMR1IE = 0;
Since you don't have an interrupt handler for that timer, but you start it, it is wise to make sure it's set to not create an interrupt. It might start out that way by default, but this is much safer. An interrupt that is generated but not handled can do very bizarre things.
If i understand your original post correctly, it stopped working when you moved the function calls into your abstraction files?
I noticed you did not call "Initialize_Camera()" in your abstraction file (or anywhere in your project). Try adding that to user_routines.c in the User_Initialization() function.
Let me know if any of these work.
-Eric