Computer problems,Computer help
*AX SOFT>>>Programming & Design

8051 microprocessor assembly language code?


i am planning to rotate a unipolar stepper motor using 8051 microcontroller for this i wrote the following assembly language code:

MOV a,#66H
LOOP1:
MOV p3 , a
RR a
CALL DELAY
JMP LOOP1:

DELAY:
MOV r0 , #246
LOOP2:
DJNZ r0 , LOOP2
NOP
RET

Now when i run this code in "Edsim51" it runs properly by setting the update frequency at 10000. And i also created its ASM file using edsim51. But when i try to convert this ASM file into HEX file, using "ASM51" OR "8051 cross-assembler, version 1.2k by MetaLink corporation"
it gives 2 errors
Please tell me what's wrong with the code and suggest changes to the code or the new/alternate code

Don't understand why the NOP instruction is there. Try another x-assembler such as http://plit.de/asem-51/

MOV r0 , #246

I think in asm you need to move a value into a register. ax dx or something.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • How can I tell if I have Sun Java SDK installed?

    All jdk come with a java compiler which is javac.exe search for javac.exe. It should be in jdk....../bin/javac.exe if you can find one.Then jdk is installed. Set path variable to get access fr...

  • Is there a benefit of using "rel=nofollow" on internal and external links?

    rel=nofollow was added by the search engines to mean "don't count this link as a vote". For example, part of how PageRank works is the number of incoming links a page receives. If...

  • I want to host myself of my webcam, I want to get paid for this.?

    Depending on what you're planning to do in front of your camera, I might just host the thing myself! ;)

    ...
  • Can someone check how this webpage look in other browsers?

    there is a site which will take a snapshot of what a site looks like in many different browsers, on many different operating systems, which you can then view - you can find it here: ...

  • C Programmers I need help!!?

    Hon, the best way to learn is to teach yourself! There is always room for improvement. I'm sure that you will certainly get better if you practice more and get the hang of it. If you want I c...

  • About content management for website?

    Try drupal/vbulletin/joomla or else you may contact a web designer at website like ...

  • Can you help correct my java code?

    type, out, name Change type to typex, out to outx, and name to namex just to make sure you are not using reserved words. ------------- double celcius needs a semicolon. ---------------- Is t...

  • For which one should i go for C++ or JAVA ?

    You can go for either of them it won't matter too much in the log term which language you select. But what will matter is how you build upon the base language. Look in Software Industry the...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster