Programming 8051 in Multisim (Using C)

Multisim 11
when i 'm getting start writing C for 8051 in multisim, an error occurs.
I used to use keil c compiler,so I don't know how to use hi-tech compiler.
even so, I wrote a simple LED blanking program, which has problemsin it.
the following is my code
===========================================================
#include    <htc.h>
#define LEDPin=P27;
void delay(unsigned int);
void main()
    while(1){
        LEDPin = 1;
        delay(10000);
        LEDPin = 0;
        delay(10000);
void delay(unsigned int x)
    unsigned int i;
    for(i=0;i<x;i++);
===========================================================
When I tried to build it, it kept saying that there's error in the line with red mark.(expression syntax)
Could anyone tell me where I did wrong?

Your define statement appears to be incorrect.
#define LEDPin=P27
should be......
#define LEDPin   P27
Also, I use PIC micros and the naming convention used is (for example) RA5 which means Port A, bit 5.  Check to make sure P27 actually maps to a pin.  Sometimes the assembly definitions are not the same as the C definitions.

Similar Messages

  • I want to write ABAP Program in web dynpro Using se80 tra.code

    hi
    I want to write ABAP Program in web dynpro Using se80 tra.code and to Create URL for the same.
    Please let me know the steps to do.
    Thanks

    Hi Shiva,
    I understood ,  you want to create a Webdynpro Applicaiton and run it.
    this will help you
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cb243c45-0801-0010-eb9c-88669007f130
    Regards
    Abhimanyu

  • Calling a Report Program In Web Dynpro Using Submit statment

    Hi all,
             Can any one suggest how can i call a report program form Web Dynpro using Submit statment. I tried to call it its showing Field symbols not defined error. Is their any other ways to call Report in a Web Dynpro?. I have posted the error message when i tried using SUBMIT ZRR AND RETURN CONTROL
    Field symbol has not yet been assigned.
    The error occurred on the application server mnghcmsap_HRS_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: CHECKBOX_OUT of program SAPLKKBL
    Form: GEN_LINE_OUT of program SAPLKKBL
    Form: DATA_OUT_SIMPLE of program SAPLKKBL
    Form: LIST_OUTPUT_NEW of program SAPLKKBL
    Form: FIRST_LIST_DISPLAY of program SAPLKKBL
    Module: LIST_DISPLAY of program SAPLKKBL
    Function: K_KKB_LIST_DISPLAY of program SAPLKKBL
    Method: PRINT_BACKEND of program CL_GUI_ALV_GRID===============CP
    Method: SET_TABLE_FOR_FIRST_DISPLAY of program CL_GUI_ALV_GRID===============CP
    Form: PBO of program SAPLSLVC_FULLSCREEN
    Edited by: VINMANO on Jul 22, 2009 2:54 PM

    HI,
    Its possible to call report program from Web dunpro...
    chk out dis link,
    calling report(se38) in webdynpro abap
    By the way are using field symbol anywhere and left it unassigned?
    Thanks,
    Divya.S

  • I cannot open photo's stored in my i photo library to edit in Photoshop Elements.  Adobe comes up with the message program error. I use a Macbook Air.

    I cannot open photo's stored in my i photo library to edit in Photoshop Elements.  Adobe comes up with the message program error. I use a Macbook Air.

    No, that is done deliberately, since letting other programs poke around in the iphoto library is the fastest known way to corrupt it and make it wither up and die, along with your photos. If you want to use PSE with iphoto you have two choices:
    1. Set PSE as your external editor and send the photos from iphoto. Edit them, then save without changing the name or format and iphoto will remember your last saved edits + original, although you have to lose the edits to see the original again. You may need to set the editor prefs>saving files>on first save to save over existing to make this work.
    2. Export the photos from iphoto, use file>open in PSE, make all the changes of any sort that you like, save the file, and import it to iphoto as a new file.

  • I have always used microsoft word, we just bought a mac, what program should I now use?

    I have always used microsoft word, we just bought a mac, what program should I now use?

    You can use Microsoft Office for Mac, one of the free Office clones such as LibreOffice or Apple's iWork suite of apps. The iWork apps - Keynote (presentation), Pages (word processing & page layout) & Numbers (spreadsheet) are available individually from the Mac App Store. There are also versions for iOS available separately. And, coming this fall, iWork for iCloud.

  • What do I do with the Beta 10.9.3 program I've been using these past several weeks, now that 10.9.3 is out and downloaded.......I still have 'feedback assistant' in my dock........are there files I need to do something with ???  thanx

    What do I do with the Beta 10.9.3 program I've been using these past several weeks, now that 10.9.3 is out and downloaded.......I still have 'feedback assistant' in my dock........are there files I need to do something with ???  thanx..............75 yrs old and still swimmin' upstream.........

    from : OS X Beta Seed Program FAQ
    How do I get a shipping version of OS X back on my Mac?
    To get a shipping release of OS X on your Mac, you can simply install the final version of the software you are testing when it appears in Software Update.
    How do I leave the OS X Beta Seed Program?
    To leave the program, visit the Leave Program page and follow the instructions to remove your Apple ID and your computers from the OS X Beta Seed Program. This will stop pre-release updates from appearing in the Mac App Store on your computers.
    You only need to do more than you already have, if you'd rather not see future pre-release updates.

  • How to create documentation for report programs and how to use it

    how to create documentation for report programs and how to use it in the selection screen by placing an icon in the Applicatin Tool bar. If i click this icon the help documentation has to display.
      Note: Exaple <b>RSTXSCRP</b> programs selection screen

    Hi
    1 goto SE38 transaction, give the program name
    2 Click on documentation radiobutton & then press change
    3 Write your PURPOSE, PREREQUISITES etc details
    4 Save the same & Activae it.
    The icon will come automatically on selection screen
    Thanks
    Sandeep
    Reward if useful

  • Can't start video, try closing other programs that might be using your webcam

    I am using skype on win8. It was perfectly fine until last week. This message "can't start video, try closing other programs that might be using your webcam" is always there. I investigated this problem in the forum.  I did this but it did not help at all. I checked nothing was using webcam! Try to reset skype settings Exit Skype : From the system tray >> right click on the skype icon and click "Quit Skype" Click Start >> Run Type: %appdata% Rename folder "Skype" to "Old_Skype" Re-run Skype 
    I tried some other chatting software and it gives me the same problem. However, the metro app camara is working perfectly fine. I have the latest driver and I also tried another webcam from logitech and it gives the same problem!!!! 

    Most likely this is one of the registry keys that need to be modified. However, be very careful when you make any changes to your Registry Database. Make always a copy of this data base before making any changes, so you can always revert to the original settings if something will go wrong. The relevant keys are these that refer to Imaging devices. On my system I have 3 such devices: Logitech c920 webcam, LifeCam VX-5000 webcam and CanoScan LiDE 25 Scanner. The last is installed but not currently connected to the computer. You can make a search in your registry database using this item: imaging devices. For all the items I could find on my system, the main key of the type, HKEY_LOCAL_MACHINE\SYSTEM\ControlSet00X\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F} was looking like this:   There is neither LowerFilters nor UpperFilters value defined. You can open the subkeys of the type 0000, 0001, 0002, etc. and see what device they are referring to.

  • In email, when I click on a "pdf" file, how do i get it to just open instead of being asked what program I want to use?

    When I get a "pdf" in an email and I click on the "pdf" button, I am always asked what program I want to use. How do I get the file to just open automatically?

    You can specify in Windows what program to use for a given extension, for instance Adobe Acrobat Reader, for files with PDF extension. How you can connect the program and the extension, is described in this article; [http://windows.microsoft.com/en-US/windows-vista/Change-which-programs-Windows-uses-by-default "Change which programs Windows uses by default"]
    In Firefox PDF links get opened automatically with Acrobat reader. When clicking on PDF attachments in Thunderbird, however, you will need to associate the program and the extension as described in the above article.
    Hope it helps!

  • Being that I have a Mac Pro, what program I have to use to download movies from the Veehd website?

    Being that I have a Mac Pro cpu, what program I have to use to download movies from the Veehd website?

    If you want to download veehd videos, remember not to download any plugins. I have suffered by its redirecting my homepage many times.  If you want to download the video still, you can refer to the post from which I succeeded at last after using the suggested tools.

  • Function Module or Program to get where used list

    Hi,
    I´ve been searching for Function Module or program to get where used list for an object.
    I try using the FM 'RS_TOOL_ACCESS' with parameters operation = 'CROSSREF', objectname = 'ZMYPROG', object_type = 'PROG'
    and in effect i get the list of object where the program is used, but the list is showed in standard screen.
    is there a function or program to obtain the used list for an object but in an internal table?
    I'm using version 4.6B.
    I checked the function module RS_INFOSYSTEM_CREATE_REQUEST, but i didn't obtain any result, is there a funcion or combination or FM to get the used list?
    thanks,
    Alejandro
    Message was edited by: Alejandro López

    Hi Alejandro,
    Please check this sample program.
    DATA: OBJTYPE TYPE  EUOBJ-ID.
    DATA: OBJECTS TYPE RINFOOBJ.
    APPEND P_OBJECT_NAME TO OBJECTS.
    OBJTYPE = P_OBJECT_TYPE.
    CALL FUNCTION 'RS_INFOSYSTEM_CREATE_REQUEST'
      EXPORTING
        OBJTYPE            = OBJTYPE
        ACTION             = SWBM_C_OP_WHERE_USED_LIST
      IMPORTING
        INFOSYSTEM_REQUEST = P_WB_REQUEST
      TABLES
        OBJLIST            = OBJECTS
        DEVCLASS           = p_scope_devclass
        OBJKEY             = p_scope_objkey
        I_SCOPE_OBJECT_CLS = P_SCOPE_OBJECT_TYPES
        I_SCOPE_OBJECTS    = P_SCOPE_OBJECTS
        EDITOR_SOURCE      = P_EDITOR_SOURCE
      EXCEPTIONS
        NOT_EXECUTED       = 1
        BATCH              = 2
        OTHERS             = 3.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • What are the pros and cons of using people keywords, given that my catalogue is already uptodate with regular keywording of all subjects?  e.g., will the people keyword transfer to other programs?, can I use the same name for a people keyword and regular

    What are the pros and cons of using people keywords, given that my catalog is already up to date with regular keywording of all subjects?  e.g., will the people keyword transfer to other programs?, can I use the same name for a people keyword and regular keyword in the same photo?

    What are the pros and cons of using people keywords, given that my catalog is already up to date with regular keywording of all subjects?  e.g., will the people keyword transfer to other programs?, can I use the same name for a people keyword and regular keyword in the same photo?

  • Frequency Modulation circuit simulation in Multisim Using 566.

    How can I get Frequency Modulation circuit simulation in Multisim Using 566? In Multisim I dont have IC 566.. And I have attached the image of the circuit i want... I dont want to use FM signal source directly.
    Attachments:
    FM CIRCUIT USING IC566.PNG ‏21 KB

    Hello,
    This component is not available in Multisim; I tried to locate a SPICE model for LM566 with no luck. It seems that the component is obsolete now.
    Take a look of this old forum post, it explains an alternate method to build the FM circuit.
    Hope this helps.
    Fernando D.
    National Instruments

  • Error when generating program when creating CVC using infoprovider

    We are receiving the message "Error when generating program" when
    creating CVC using infoprovider.
    This may have something to do with the fact that we added an attribute
    to the infoObject 9ALOCNO. We are getting an information message if we
    run a consistency check in the POS.
    We had this same issue in our development system. Here, I deactivated
    and then reactivated the CVCs and this resolved the problem. However,
    this is not a good solution since this is also a problem in our
    production system and we do not want to deactivate the POS.
    is there another option to fix this problem?
    Thank you,
    Rumi

    Hi Rumi,
    i would try these:
    1. Make sure the cube is active and every thing ok there
    2. Run programs /SAPAPO/TS_PSTRU_CONS_CHECK on POS and /SAPAPO/TS_LCM_CONS_CHECK on planning area respectively.
    3. Check the CVC creation log in transaction /n/sapapo/mc62 for more details.

  • How to find which programs (and other objects) use the field LGORT

    Hi, Im an Abap freshman, and I have been asked to search all programs and objects that use the field LGORT (Storage Location), regardless of what table it is in.
    Is it possible to do it using the "Where-Used List"?
    This will be important since a new Storage Location will be created for MM, and we have to assure that no other programs that reference to it will be affected.
    I would appreciate any help. Thanks!!

    Hi George,
    Go to transaction SE11, choose radiobutton Data Element then enter the name LGORT. Now using the where-used-list in the toolbar, choose programs checkbox in the subsequent dialog and press enter. It should show all programs using the field LGORT irrespective of table name.
    Hope this helps.
    Cheers,
    Sougata.
    Using ECC6.0

Maybe you are looking for

  • Query on using Variables in Oracle Query

    Hi i am new to Oracle, i have tried extracting data from the Oracle Database using the following Query which includes 1 variable SYSDATE_UTS, however when i try to execute the Query i get an error. Please let me know what am i doing wrong and how can

  • Failed to export the report in Crystal Reports 2008

    I am using Crystal Reports 2008 version 12.1.0.892, when i try to export data to Microsoft Excel(Data Only) it's failing with the error "Failed to export the report.", please help in resolving this issue.

  • Rank function in Answers

    Hi, I have to produce a bar-chart with Number of Projects(Y axis), Project Phase(X axis). For example, x axis should have labels like Phase-1, Phase-2 etc., and in each phase teh number of projects should be the bar. The catch is , the number of proj

  • Install Oracle EBS on Windows Server 2003 R2 hosted on Oracle VM VirtualBox

    I had run md5sum to verify the integrity of the stage 12.1.1 area directory successfully installation process stopped on Step 3 of 5 at 53 % (The lower Status bar shows 92% ) with the common error "Oraccle JAAS Exception : 9" I had Install VS 2005 ex

  • Working with creative suites

    I am wondering if anyone has experienced not being able to size a vector drawing copied from that program and placed into the layout software. Yes, I realize that this is not a specific Mac question, however, creative Mac OS operators and their forum