Proteus Simulation of PIC CPU Program Memory

Status
Not open for further replies.

teomondo

Newbie
Joined
May 9, 2009
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
Dear Sirs
I am wondering if and how can I simulate read/write operation from/to Internal PIC EEprom memory. It could help me in developing a BootLoader.
For istance if I write to Internal PIC EEprom Memory may I see the change by the PIC CPU Program memory Window?
Thanks in advance for your help
Teo
 

Click at the Debug menu, and then, at the bottom of the just unfolded submenu, select the microcontroller, and a secondary submenu will open at its right side with the uC`s designator (e.g U3), and finally select the EEPROM option. The following screenshot is for the AVR core, but the procedure is applicable for PIC as well for any other microcontroller.



During execution of the code, once you pause the simulation, and select the `Source code` tab, a watch window will be now available.

 

Thanks for the answer. May I do that with the program memory as well? I mean if I write, during execution of my code, into
the program memory may I do what you suggested for the EEprom?
Best regards
 

The program memory addresses are shown at the left side of the code being debugged.
You can see that at the 2nd picture above attached (`main.c` panel).
 

I see the program memory window. My issue is "does Proteus simulator support write and read to and from program memory"?
I mean if my code write something to the program memory the Proteus simulator shows me what I have written in the proram memory window?
Thank a lot for your time
 

I mean if my code write something to the program memory the Proteus simulator shows me what I have written in the proram memory window?

It has been a long time since I worked with PIC, but as far as I know, its architecture does not support that the program write in the program area, that is, on its Flash. By the way, which specifically PIC family are you using?
 

Hi,

does Proteus simulator support write and read to and from program memory
Can´t you just try it to see what happens?

A simple program ... un button press it writes some bytes in the program area... with another button it writes some other values to the same program memory location.
A simple LED can be used to show a software_verify_state ... to indicate if the microcontroller truely has wirtten the bytes in real world.

Klaus
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…