IC1CONbits.ICM = 0b110; //Simple Capture Event mode – every edge, specified edge first and every edge thereafter IC1CONbits.FEDGE = 1; //Capture rising edge first IC1CONbits.C32 = 1; //32-bit timer resource capture IC1CONbits.ICI = 0; //Interrupt on every capture event IC1CONbits.ICSIDL = 0; Continue to operate in CPU Idle mode //Dupplication de la configuration sur tous les modules Input Capture IC2CON = IC1CON; IC3CON = IC1CON; IC4CON = IC1CON;