xpress_embedo
Advanced Member level 4
Hello!! i just purchased Pic Kit 3 and programming is working perfectly...
But i had purchased it for debugging application...
And i don't know how to solve this problem..
Its giving Error 40... Check your Configuration bits so on....like that...
Here is my Code:-
But its not working for debugging...
how to use debugging feature
But i had purchased it for debugging application...
And i don't know how to solve this problem..
Its giving Error 40... Check your Configuration bits so on....like that...
Here is my Code:-
Code:
#include <p18f4550.h>
#include <delays.h>
/*******Configuration Settings********/
#pragma config PLLDIV = 5 //To be changed when different value crystal is used
#pragma config USBDIV = 2
#pragma config CPUDIV = OSC1_PLL2
#pragma config FOSC = HSPLL_HS //To be changed when different value crystal is used
#pragma config FCMEN = OFF
#pragma config PWRT = OFF
#pragma config BOR = OFF
#pragma config WDT = OFF
#pragma config PBADEN = OFF
#pragma config LVP = OFF
#pragma config DEBUG = ON
#pragma config MCLRE = ON
#pragma config ICPRT = ON
/*************************************/
void Delay_ms(unsigned int time);
void main()
{
TRISB = 0x00;
TRISC = 0x00;
LATB = 0x00;
while(1)
{
LATC = 0x55;
LATB = 0x55;
Delay_ms(1000);
LATB = 0xAA;
LATC = 0xAA;
Delay_ms(1000);
}
}
void Delay_ms(unsigned int time)
{
unsigned int i;
unsigned int t;
for(i=0;i<time;i++)
{
for(t=0;t<650;t++)
Delay1TCY();
}
}
But its not working for debugging...
how to use debugging feature