sanaprog
Newbie level 6
hi everybody...i am beginner of pic...i have made my own pic trainer cct...with 20MHz crytal.(also check with 8MHz)...but the problem is when i burn some example of mikroC n run the cct..it works good..bt when i burn my own simplest program of just sending any value to port d it doesn't work...:-(..... even the crystal shows no oscillations...
EXAMPLE code:
void main()
{
trisd=0;
portd=0;
while(1)
{
portd=~portd;
delay_ms(1000);
}
}
//////////////////////////////////////////
my code:
void main()
{
trisd=0;
portd=0x3f;
}
so simple but..not working:-( .........i am using mikro C8.....
EXAMPLE code:
void main()
{
trisd=0;
portd=0;
while(1)
{
portd=~portd;
delay_ms(1000);
}
}
//////////////////////////////////////////
my code:
void main()
{
trisd=0;
portd=0x3f;
}
so simple but..not working:-( .........i am using mikro C8.....