elt42at
Newbie level 6
Hello!
There is a problem with my microchip pic18 circuit.
I am using internal oscillator and enabled PLL (4x multiplier)
In my initialization of board i set primary clock source and PLL than wait for a while.
Now, the problem is debugging.
I am using PICKIT3. In debug mode, the circuit and code running. When i press HALT button, MPLAB sayas
To be agree! I closed PLL then, debugging is worked perfect!
Is there any problem with PLL and DEBUG together!
Thanks!!!
There is a problem with my microchip pic18 circuit.
I am using internal oscillator and enabled PLL (4x multiplier)
Code C - [expand] 1 2 #pragma config FOSC = INTIO2 // Oscillator: Internal RC oscillator #pragma config PLLCFG = ON // PLL x4 Enable bit: Enabled
In my initialization of board i set primary clock source and PLL than wait for a while.
Code C - [expand] 1 2 3 4 OSCCON = 0x70; OSCCON2 = 0x00; OSCTUNE = 0xDF; DelayMs(250);
Now, the problem is debugging.
I am using PICKIT3. In debug mode, the circuit and code running. When i press HALT button, MPLAB sayas
Code C - [expand] 1 2 3 4 5 Running... Halting... Target halted PK3Err0031: Failed to get PC
To be agree! I closed PLL then, debugging is worked perfect!
Is there any problem with PLL and DEBUG together!
Thanks!!!