myru28
Member level 1
I've a code written for a PIC18F4620 that executes right on MPLAB on Debug mode.
But if the program is not being debugged it doesn't run at all, despite the only things that I change are that I eliminate Pickit2 wires from the board and I connect a 10 K resistor tied to 5V to the MCLR pin. (I'm sending 5 V from a external voltage also in debugging mode).
In fact on a PIC16F this problem hasn't appeared (moreover, I couldn't debug it so I just checked that it worked when I connected 5V with 10 K to MCLR, 5V to VDD, GND to GND pin and 4 Mhz quartz crystal along with their capacitors to the corresponding PIC16 pins and GND), so it might be something related to this family of microcontrollers.
Any idea?
But if the program is not being debugged it doesn't run at all, despite the only things that I change are that I eliminate Pickit2 wires from the board and I connect a 10 K resistor tied to 5V to the MCLR pin. (I'm sending 5 V from a external voltage also in debugging mode).
In fact on a PIC16F this problem hasn't appeared (moreover, I couldn't debug it so I just checked that it worked when I connected 5V with 10 K to MCLR, 5V to VDD, GND to GND pin and 4 Mhz quartz crystal along with their capacitors to the corresponding PIC16 pins and GND), so it might be something related to this family of microcontrollers.
Any idea?