View previous topic :: View next topic |
Author |
Message |
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
simulator question |
Posted: Mon Jan 17, 2005 9:13 am |
|
|
I know this is off topic but,...
Anyone know of a GOOD simulator software for the PIC?
I want some software that runs on the PC, loads up my PIC hex code and simulates it, and I want to see where the bulk of the PIC uP time is spent.
It would allso be neat to the the pin status at different times in the code.
I wouldn't normally ask this type of question in THIS forum, but I trust you guys.
tjr
Last edited by treitmey on Mon Jan 17, 2005 2:10 pm; edited 1 time in total |
|
|
Thomas Blake
Joined: 18 Jan 2004 Posts: 22 Location: Burbank CA
|
Mathias |
Posted: Mon Jan 17, 2005 11:39 am |
|
|
Microchip has an emulation advantage over some other types because they make MCU package versions that bond out the internal signals. So a hardware emulator can be pretty cheap.
I use the Clearview Mathias emulator. It's serially controlled and it takes a few moments to load the program down the serial cable after a build, but otherwise I'm quite happy with it. It can be powered by a wart or directly from the target chip socket.
There's a base unit, a family unit (14-bit, etc.) and a member module (16F87x, 12C67x, etc.). Advantages: You don't have to buy all the member modules at once. Disadvantage: You do have to buy as many member modules as you have PIC types.
Also, there's a trace/timing module that you don't have to buy but it sure comes in handy.
The biggest gripe I have about the system is that the included IDE doesn't support syntax coloring.
You can get the unit from digikey.com or from tech-tools.com
Good luck! |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Jan 17, 2005 12:56 pm |
|
|
I think he means simulator instead of emulator |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon Jan 17, 2005 2:09 pm |
|
|
Yes simulator. I was a little wishy/washy on that.
I want a PC SOFTWARE only solution. |
|
|
pop
Joined: 18 Sep 2004 Posts: 22
|
|
Posted: Mon Jan 17, 2005 8:47 pm |
|
|
I work with 2 simulators:
1. MPLAB (e.g. MPSIM comes with MPLAB)
I use MPLAB5.7 although some later (MPLAB MPSIM) 6.XX versions like 6.4 are reported to be stable. Judging from Microchip's forum there are apparently still many unresolved problems with MPLAB 7.00 simulator, although it's simulator has many great features and is very user friendly.
However, for PIC16F877 I find MPSIM5.7 adequate. It traces through the code, indicating what each variable contains and how much time is spent in each function. Also, it supports asynchronous and synchronous digital inputs.
The only major problem that I had with it (though I finally found a work-around) was its file based stimulus. I could not simulate a 10 bit ADC using file stimulus although 8 bit ADC values seemed to work fine. However, this version of MPLAB allows you to write your own values into registers during program simulation, and that is how you can simulate a 10bit ADC.
Finally, it allows you to see which of your port pins are high or low. There are some things you can't do with it (very rare) and they are indicated in the help file.
2. Although MPLAB is free and is perhaps a best simulator, I find that it's user interface is not as friendly as that of PIC Simulator IDE.
The PIC Simulator IDE is available for download at www.oshonsoft.com (30 day trial) and if you find that you like it, then it costs only $20 U.S to purchase it with all of its future updates.
The PIC simulator IDE is more limited in functionallity of 16F devices but it does have modules like an LCD screen, digital scope and function generators. I find it especially useful for programming a LCD output.
Anyway my suggestion is to start with MPLAB first cause it's free. |
|
|
johnl
Joined: 30 Sep 2003 Posts: 120
|
|
|
|