arslsaad
Newbie level 1
Hello,
I am a newbie as far as PIC is concerned and I am currently working on the programming of PIC 16F676.I found the following code on the internet:
____________________________________________________________________________________
#include<pic16f676.h>
#include<stdio.h>
#include<conio.h>
#include<htc.h>
__CONFIG(BGHIGH & UNPROTECT & BORDIS & MCLRDIS & PWRTEN & INTOSCCLKO & WDTDIS);
#define _XTAL_FREQ 4000000
void main()
{
TRISC=0;
for(;
{
PORTC=0x1f;
PORTC=0;
}
}
___________________________________________________________________________________
I am getting the following errors when i try to build the program:
make[2]: *** [dist/default/production/cng1.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
I would be highly grateful if somebody lends me a helping hand.
Thanks and Regards,
Aslan
I am a newbie as far as PIC is concerned and I am currently working on the programming of PIC 16F676.I found the following code on the internet:
____________________________________________________________________________________
#include<pic16f676.h>
#include<stdio.h>
#include<conio.h>
#include<htc.h>
__CONFIG(BGHIGH & UNPROTECT & BORDIS & MCLRDIS & PWRTEN & INTOSCCLKO & WDTDIS);
#define _XTAL_FREQ 4000000
void main()
{
TRISC=0;
for(;
{
PORTC=0x1f;
PORTC=0;
}
}
___________________________________________________________________________________
I am getting the following errors when i try to build the program:
make[2]: *** [dist/default/production/cng1.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
I would be highly grateful if somebody lends me a helping hand.
Thanks and Regards,
Aslan