Try: ADCON1 = 15
Does it work now?
Actually, I just stumbled on the fix. The clue was this warning I was getting when I compiled the code in MPLab.. it was saying the symbol _XINST_OFF_4L didn't exist. I kept looking at the P18F4620.INC and it was there, so I didn't know what was going on.
Finally, I realized that I was looking at the P18F4620.Inc from the MPLab folder and not the one the code was using, inside the PBP folder. The PBP folder one was a bit different.
After replacing the PBP file, the interrupts worked!!! I guess some other registers were wrong as well.
I guess a WORD OF CAUTION for anyone else out there with wacky problems... Use the MPlab version of the .INC file.
What file did you replace?
The PBP 18F4620.inc file includes "default" config fuse settings, and includes the P18F4620.inc file in your MPLAB directory at assembly time, and the Microchip P18F4620 file includes _XINST_OFF_4L which is a perfectly valid config fuse option?
Bookmarks