+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Newbie level 2
    Points: 1,553, Level: 9

    Join Date
    May 2004
    Posts
    2
    Helped
    0 / 0
    Points
    1,553
    Level
    9

    Assembly PIC18 Simulation with Proteus 6.3

    Hi guys, just found out this great board.

    I try to simulate a circuit based on a PIC18F452 with code written on assembly in Proteus, and even though the code runs OK (as it does in the prototype), I get bogus results in Proteus' CPU Source Code window when I break the code. Although I see my code with instructions like movff, movwf, etc, in the comments, the program displays other dissasembly (gray colored) codes like skpf, incf, and others that have nothing to do with my code. And then when I try to single step the code it jumps or follows instructions that aren't either in the real code (my code) or in the "fictional" dissasemblied code. If I run unconditionaly the code again, it works as it should, until I break it again.

    Any ideas?

    Moved here by Cluricaun

    •   Alt19th May 2004, 19:21

      advertising

        
       

  2. #2
    Advanced Member level 3
    Points: 6,852, Level: 19
    SphinX's Avatar
    Join Date
    Jan 2002
    Location
    EGYPT
    Posts
    822
    Helped
    56 / 56
    Points
    6,852
    Level
    19

    Assembly PIC18 Simulation with Proteus 6.3

    Hi,

    Try to ask your problem in "Microcontroller" or "PCB Routing & Schematic Layout software & Simulation" forums.

    SphinX



    •   Alt19th May 2004, 21:47

      advertising

        
       

  3. #3
    Full Member level 1
    Points: 2,738, Level: 12

    Join Date
    Jan 2004
    Posts
    113
    Helped
    15 / 15
    Points
    2,738
    Level
    12

    Assembly PIC18 Simulation with Proteus 6.3

    It's possible that, for whatever reason, a software protection mechanism has been activated. Would suggest you contact Labcenter with your customer number and attach the design and source in question.

    Of course, it's also possible that it's a gremlin in the PIC18 model..



    •   Alt16th June 2004, 09:37

      advertising

        
       

  4. #4
    Advanced Member level 4
    Points: 41,501, Level: 49
    Fragrance's Avatar
    Join Date
    Jul 2002
    Location
    East Of Earth
    Posts
    1,177
    Helped
    212 / 212
    Points
    41,501
    Level
    49

    Re: Assembly PIC18 Simulation with Proteus 6.3

    Quote Originally Posted by spiliot
    Hi guys, just found out this great board.

    I try to simulate a circuit based on a PIC18F452 with code written on assembly in Proteus, and even though the code runs OK (as it does in the prototype), I get bogus results in Proteus' CPU Source Code window when I break the code. Although I see my code with instructions like movff, movwf, etc, in the comments, the program displays other dissasembly (gray colored) codes like skpf, incf, and others that have nothing to do with my code. And then when I try to single step the code it jumps or follows instructions that aren't either in the real code (my code) or in the "fictional" dissasemblied code. If I run unconditionaly the code again, it works as it should, until I break it again.

    Any ideas?


    Moved here by Cluricaun

    hi

    what i think if you assemble your code in side the proteus, then may be this occur due to bug in Mpasmddx asebler lanching tool which was fixed in new release 6.5 try to get new Mpasmddx tool from lab center and copy this in tools> mpasm folder

    hope this will solve your problem



  5. #5
    Newbie level 2
    Points: 1,553, Level: 9

    Join Date
    May 2004
    Posts
    2
    Helped
    0 / 0
    Points
    1,553
    Level
    9

    Assembly PIC18 Simulation with Proteus 6.3

    Thanks for the replies guys.

    Apparently it was a file version problem with a file which I copied by accident while getting some libraries to Proteus.



+ Post New Thread
Please login