Put the Interrupt definitions before the HID stuff.

That's the way it was originally. But it got reversed in your program.

Also, don't mess with all the INTCON and RCON registers.
DT_INTS handles all those for you.
If you change them, it can interfere with the interrupt system.
<br>