I know I'm pretty close. If I uncomment the line INTCONbits.INT0IF = 1, the interrupt functions as it should. So I know that the interrupt is properly coded and stuff.
Also, I know that the button works. I have a multimeter on the RD0 pin, and it is changing from 5V to 0V when I push the button.
Basically, the voltage change on the RD0 pin is not setting the INT0 flag, and I don't know why? Am I missing initializing something?
Hmm, I cannot even get one of Microchip's interrupts to work. I've tried the one found in this document: alumni.ipt.pt/~wilson/PCBDriller/_private/MPLab_get_started.pdf
Ha, I noticed that TRISD thing a few minutes ago (, still a no go.
Also, I'm not sure LATDbits will do anything (I don't even know what the difference is; will research), because when I set the INT0 flag myself, everything works as supposed.
I'm still pretty sure its just a matter of setting the flag