Good day, I have some sleeping issues. I start Deep Sleep with the external interrupt active as follow:void startDeepSleep(void) {
//Set interrupt 0 to input.
TRISBbits.TRISB7 = 1;
//Enable Deep Sleep
DSCONbits.DSEN = 1;
..