View previous topic :: View next topic |
Author |
Message |
uhoh_robbo Guest
|
Help me my interrupts have gone! |
Posted: Mon Dec 26, 2005 8:41 am |
|
|
Hey guys,
I programmed a pic 18F4680 with some code that uses interrupts, this all works perfectly. But when I try to program the same PIC, using the same source files, the same version of PICC, the same version of MPLAB and, even the same PIC start plus programmer my interrupts dont work. Infact none of the interrupts work again until the pic is re-programmed using the original setup, even though the rest of the program is running fine.
Are there any modes or setup in the compilier that could have caused this? Does anyone know what the problem could be? I'm using 3.216 of PCWH.
Cheers |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Dec 26, 2005 10:40 am |
|
|
Do any of the following bug fixes from the CCS versions page apply to your problem ?
http://www.ccsinfo.com/versions.shtml
Quote: | 3.217 The PIC18 compiler now only disables low priority ints to prevent reentrancy
3.218 A bug with interrupt handling is fixed. If you use FAST ints see readme.txt.
3.219 A bug in #INT_DEFAULT is fixed affecting code located outside page 0
|
|
|
|
uhoh_robbo Guest
|
|
Posted: Mon Dec 26, 2005 3:16 pm |
|
|
No i dont think so as I am using the same version at both locations. But I will try to get the updates.
Any other suggestions?
Cheers |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Dec 26, 2005 3:41 pm |
|
|
Maybe I didn't understand your original post. In the 2nd sentence
you say everything is the same. But then you refer to the "original
setup". So, that implies a difference. What is the difference between
the two setups ? |
|
|
Guest
|
|
Posted: Mon Dec 26, 2005 5:25 pm |
|
|
Hey,
The difference between the two setups is that 1 is at uni and one is at my house (other than that there is no difference i can think of). But as you suggested I updated my version of PIC C and that has seemed to have resolved the problem. Cheers.
Thanks a lot |
|
|
|