The circuit has the pullup resistor for MCLR pin. The code is lacking CONFIG bits settings. Are you using MPLAB IDE ?
Turn WDT and LVP. WDTEN = 0 and LVP = 0.
To be honest I tried, a long time ago, G540 programmer; but Chinese product.....never works.
It was better for you to buy PICKIT2 or 3 rather than G540 programmer.
P.S: on what frequency your PIC is running? change the oscillator frequency bits
1 is for off, its already off.In CONFIG settings I think KBUG = DEBUG. Turn it OFF.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?