Need help in Proteus simulation!!!!!

Discussion in 'Electronics Resources' started by hashim5003, Oct 24, 2013.

  1. hashim5003

    Thread Starter Member

    Apr 29, 2013
    32
    0
    I have interfaced lcd with 8051 in Proteus. Now I don't know how to write code in c language in protues for simulation.
    Can anybody help me????? :(
     
  2. hashim5003

    Thread Starter Member

    Apr 29, 2013
    32
    0
    no one here to help??????
     
  3. DerStrom8

    Well-Known Member

    Feb 20, 2011
    2,428
    1,328
    It would help if you had made your title sound less demanding, for starters.

    Second, nobody here is going to teach you how to write code for an 8051 from start to end, if that's what you're asking. Nobody has that sort of time. If you have the C code already written for your chip, load it into a compiler. You should be able to then take the hex code (returned by your compiler) and load the file into proteus by right-clicking the chip and selecting the load option (can't remember exactly what it's called).

    For future posts, i suggest you don't be so demanding. Avoid multiple exclamation points and question marks. They make you sound rude and spoiled. Instead, politely ask a question by giving us a background on your project, tell us what you've done so far, and what exactly you want to do. Otherwise you'll never get any good answers (if any). I usually make it a point to ignore posts like this one because I don't usually want to deal with rude, bratty kids. I'm not saying you are one, I'm just asking that you try to make it sound more polite and mature. Do you understand?

    Regards,
    Matt
     
    hexreader likes this.
  4. hashim5003

    Thread Starter Member

    Apr 29, 2013
    32
    0
    Thanks Matt
    I already wrote a code in c language. but when i run in proteus It gives error that no code is found. I think I am not following method. This is error I am getting.
     
    Last edited: Oct 25, 2013
  5. DerStrom8

    Well-Known Member

    Feb 20, 2011
    2,428
    1,328
    Okay, that makes things a bit easier. Do you have the hex file returned by your compiler? Loading a .c file onto the chip will not work. You'll need the .hex file instead. Also, did you right-click on the model of the chip in your schematic? Or did you just import the code to proteus itself? In order to load the code onto the chip, you have to do as I said earlier and right-click the chip, choose the "load" option, and import your hex code straight to the chip.

    Could you go over the process you tried that is returning that error? Start with where you have the C code written and the schematic drawn. First: Did you compile the C code and find the .hex file yet?

    Once we know that, we'll go from there.

    Regards
     
  6. hashim5003

    Thread Starter Member

    Apr 29, 2013
    32
    0
    Thankx Matt for your help.
    I figured it out. I wrote the code in keil and, in protues by right clicking the 8051 proprties from there I loaded the .hex file.
     
  7. DerStrom8

    Well-Known Member

    Feb 20, 2011
    2,428
    1,328
    Excellent, exactly how I thought it worked.

    Glad to be of help.

    Matt
     
Loading...