Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC 16F676 programming help needed

Status
Not open for further replies.

arslsaad

Newbie level 1
Joined
May 15, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
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
 

First of all you must which IDE u are using and which Compiler are u using...

Like MPLAB IDE provided by Microchip and Hi-Tech C Compiler by Htsoft
mikroC IDE by mikroelektronika and its compiler mikroc

u must know following basic things...


Have a look at these links..

https://sites.google.com/site/coolembeddedlaboratory/home/pic18f4550

https://sites.google.com/site/coolembeddedlaboratory/home/pic18f4550/tutorial-list

https://www.youtube.com/watch?v=ZiH...DvjVQa1PpcFN3jrpICArnuiQ4kdVQlnvwrpEutbrZhqg=

https://www.youtube.com/watch?v=1C6JHqrkwSY&feature=g-upl&context=G2fb2594AUAAAAAAAEAA

---------- Post added at 20:46 ---------- Previous post was at 20:43 ----------

According to your code it looks like..

that it is written in MPLAB IDE along with Hi-Tech C Compiler for PIC10/12/16 Series

And u are getting this error because u haven't installed the proper compiler's on your PC

---------- Post added at 20:47 ---------- Previous post was at 20:46 ----------

According to your code it looks like..

that it is written in MPLAB IDE along with Hi-Tech C Compiler for PIC10/12/16 Series

And u are getting this error because u haven't installed the proper compiler's on your PC
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top