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.

Source code in C does not compile, please check it

Status
Not open for further replies.

thvigan

Newbie level 4
Joined
Jan 9, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,329
problem with c

i have source code written in c but i cannot compile, im not sure what is wrong with source code. can some one check the code for me. i have attached the code
 

banh

Advanced Member level 1
Joined
Dec 16, 2004
Messages
458
Helped
17
Reputation
34
Reaction score
5
Trophy points
1,298
Activity points
3,937
problem with c

can you post the compilation errors?
and for which microcontroller are you writing?
 

thvigan

Newbie level 4
Joined
Jan 9, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,329
Re: problem with c

im writing for pic16f72
 

VSMVDD

Banned
Joined
Jun 12, 2005
Messages
646
Helped
92
Reputation
184
Reaction score
34
Trophy points
1,308
Location
scotland uk
Activity points
0
Re: problem with c

do{
}while (TRUE);


try changing the loop
 

arunragavan

Advanced Member level 1
Joined
Jul 1, 2004
Messages
417
Helped
30
Reputation
60
Reaction score
9
Trophy points
1,298
Location
India
Activity points
5,030
problem with c

using the do{}while() or while(){} doesnt make much of a difference. Try use a numerical value insted of true.. like try to pass positive value within the while( condition) so as to execute the loop.

with regards,
arun
 

thvigan

Newbie level 4
Joined
Jan 9, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,329
Re: problem with c

im still getting some errors i have attached the errors.
 

darko79

Newbie level 6
Joined
Mar 15, 2005
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,417
Re: problem with c

Hi,
Problem is in header file. You must include header file for 16F72. For example if you use Hi-tech it's pic16f7x.h.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top