CNENbits.CNEN2 = 1;
CNPUEbits.CNPUE2 = 1;
IPC6bits.CNIP = 1; IEC1bits.CNIE = 1; IFS1bits.CNIF = 0;
INTCONbits.MVEC = 1; asm volatile(“ei”); ~~~ than i wrote the ISR as follow : ~~~ void __ISR(CHANGENOTICE_VECTOR, IPL1SOFT) vCNInterruptHandler (void) {
MyFlag = 1;
IFS1bits.CNIF = 0;
}
~~~
About the hardware connection it’s all’ok, i already tested the EOC (end of conversion) signal presence and the Pic pin (corresponding to RB0 PORT).
The issue is that the ISR is never executed.
Thanks in advance.
Best Regards