free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Freddy
Wed Sep 17 2008, 02:53AM

 User Offline
Registered Member #9399
Joined: Mon Jul 28 2008, 10:01PM

Posts: 38
Thanked 0 times in 0 posts
I have tried to use IF, ENDIF statement for 8051 in Keil, but got error.

is it possible to use IF, ENDIF statements in 8051 ?

something like this :
CODE:

IF (A>31)
   setb P1.1

ELSE
   clr P1.1

ENDIF





Build target 'Target 1''
linking...
Program Size: data=8.0 xdata=0 code=709
creating hex file from "Final Year Project"...
"Final Year Project" - 0 Error(s), 0 Warning(s).
Back to top


pdi33
Wed Sep 17 2008, 11:30AM

 User Offline
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 770
Thanked 185 times in 180 posts
which programming language are u talking about c,basic or assembly?


[ Edited Wed Sep 17 2008, 11:30AM ]

* inspired to develop,developing to inspire *
Back to top


Freddy
Wed Sep 17 2008, 12:02PM

 User Offline
Registered Member #9399
Joined: Mon Jul 28 2008, 10:01PM

Posts: 38
Thanked 0 times in 0 posts
i was referring to the assembly language

sorry about that.


Build target 'Target 1''
linking...
Program Size: data=8.0 xdata=0 code=709
creating hex file from "Final Year Project"...
"Final Year Project" - 0 Error(s), 0 Warning(s).
Back to top


Ajay
Wed Sep 17 2008, 12:56PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4042
Thanked 753 times in 712 posts
you can use IF in assembly, rather IF can be used as preprocessor programming part.
which does not come in picture during execution but plays its role when linking the program.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
 Freddy 
Freddy
Mon Sep 22 2008, 05:04AM

 User Offline
Registered Member #9399
Joined: Mon Jul 28 2008, 10:01PM

Posts: 38
Thanked 0 times in 0 posts
aaaaaaaaa, I'll get to that later...
thx~


Build target 'Target 1''
linking...
Program Size: data=8.0 xdata=0 code=709
creating hex file from "Final Year Project"...
"Final Year Project" - 0 Error(s), 0 Warning(s).
Back to top


funa
Wed Sep 24 2008, 08:14AM
 User Offline
Registered Member #8083
Joined: Mon May 26 2008, 07:47PM

Posts: 8
Thanked 0 times in 0 posts
Freddy, it seems to me you are a beginner with 8051. I would suggest to try first Pascal language, get some experience and then, if needed, switch to C, assembler or whatever.

Try Turbo51, it's free!
http://turbo51.com/


Turbo51 - Free Pascal compiler for 8051
http://turbo51.com
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems