I am trying to write a program for PIC18LF14K50 using MPLAB X and XC8 compiler. So far everything was working fine, but as soon as I set RC3 (input) to 0 and go back to 1, the pic goes into a frozen mode and wont work until I set RC3 to 0 again. The same code was working perfectly fine when written under MikroC.
I have even tried disabling MCLR bit, disabling watch dog, using MCC to generate the code for me, all to no avail.
My only guess is that the pin has been mapped to MCLR but the programmer is working perfectly fine while programming.
the problem persists with/without the programmer connected.
thanks for the help!