Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Proteus Simulation,.how can i view the content of W in runtime

Status
Not open for further replies.

skyassasin16

Junior Member level 2
Joined
Jan 10, 2011
Messages
24
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,453
Is there is a way i can view the contents of flags, accumalator, addresses, etc, during the simulation? I wanna see how it changes during the execution of blocks of my code. Im using Proteus for the simulating a pic16f877a.
 

Hi,

After you start simulation, pause it then right-click on the processor to activate pop-up menu, then go to "PIC16 CPU" (at lowest). Select the required category you want to see.
 
Works great!! Thanks,. dineshSL,. one more question,. since i am pausing it,. it seems that, it is so hard for me to time up the pause input execution in my circuit since it is everything around is in milliseconds, Can i able to slow or instantly pause the simulation for every input I give?
 

Ok,

To start simulation you normally press "Play" button, Is it ?
Forget it and just press "Pause" button first. This will load the program and do all initialization but will not execute any code; and will show you time is 0. After that you can proceed with play or step buttons !
 
You can add a breakpoint in your code, go to the code window select the line you want and right click add breakpoint,
the simulation will stop every time it gets to that point.
You can also use the watch list to vie the content of any variable or register while the simulation is running,
from the debug menu select the watch list to be visible and add what you want, you can also drag and drop variables in it from the code window but be careful because the watch window shows a specific memory address so when you change your code and the variable is in a different memory address you will see wrong data, you need to delete and add the variable so that the new address shows correctly.

Alex
 
How can i access the the code window? Because I am using MPLAB in creating a HEX code then double click the PIC in Proteus then add a program file HEX there.
 

I have only used AVR with codevision or winavr and uvision with ARM so i can't help for PIC and I don't know about MPLA either.
The other compilers i have used have both a hex file and a coff (codevision) or elf (gcc) file or axf (uvision).
You have to use this file instead of the hex file to be able to use the code.

Alex

---------- Post added at 12:50 ---------- Previous post was at 12:47 ----------

I have found ww1.microchip.com/downloads/en/DeviceDoc/51833A.pdf
read page 10

Alex
 
Last edited:
Hi,

In Proteus you can add *.cof file generated by mplab. This will enable you to see the code and insert breakpoints.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top