EmbeddedRelated.com
Forums

Simulator for 80C320

Started by Rowan Sylvester-Bradley February 6, 2010
Can anyone recommend a simulator/debugger for 8051 family microcomputers 
(specifically I need it to support the Dallas 80C320)? It needs to:
 - run on Windows, preferably Vista but failing that, XP
 - allow code to run and be debugged without hardware
 - allow breakpoints to be inserted, single stepping, step-into etc.
 - allow the values of registers and memory locations to be inspected and if 
necessary changed when the code is stopped
 - allow the states of hardware inputs (usually digital input pins) to be 
changed and outputs to be inspected when the code is stopped
 - be free or a lot cheaper than the Keil package, which I would use if I 
could justify it for this project.

Of course it could do a lot more besides, but the above would be enough as a 
minimum.

I've seen many packages recommended or mentioned in this group and 
elsewhere, but many of these recommendations go back 5 or 10 years, don't 
mention modern versions of Windows, or the packages they refer to don't seem 
to be available any more (Medwin, for example).

Thanks - Rowan 

"Rowan Sylvester-Bradley" <rowan@sylvester-bradley.org> wrote in message 
news:Xcibn.52155$_96.20962@newsfe02.iad...
> Can anyone recommend a simulator/debugger for 8051 family microcomputers > (specifically I need it to support the Dallas 80C320)? It needs to: > - run on Windows, preferably Vista but failing that, XP > - allow code to run and be debugged without hardware > - allow breakpoints to be inserted, single stepping, step-into etc. > - allow the values of registers and memory locations to be inspected and > if necessary changed when the code is stopped > - allow the states of hardware inputs (usually digital input pins) to be > changed and outputs to be inspected when the code is stopped > - be free or a lot cheaper than the Keil package, which I would use if I > could justify it for this project. > > Of course it could do a lot more besides, but the above would be enough as > a minimum. > > I've seen many packages recommended or mentioned in this group and > elsewhere, but many of these recommendations go back 5 or 10 years, don't > mention modern versions of Windows, or the packages they refer to don't > seem to be available any more (Medwin, for example). > > Thanks - Rowan
I use this.... http://www.edsim51.com/ It may not support the 320/450 but should go a long way. Also consider using the inbuilt ISP and RS232 to develop your own internal debug dump routines....nad op data to a PC vioa the com port. easy....
Thanks for your reply.
> I use this.... http://www.edsim51.com/ > It may not support the 320/450 but should go a long way.
If it won't simulate the features of the 80C320 that my code uses, then it won't really do the job, it seems to me. I have written to the author to see if either he will enhance it to do this, or will allow me to do so. No reply yet.
> Also consider using the inbuilt ISP and RS232 to develop your own internal > debug dump routines....nad op data to a PC vioa the com port. easy....
Yes - it's worth considering this technique, but my first requirement is to be able to debug the code in a simulator environment. Does anyone know of _any_ simulator/debugger that will definitely simulate the 80C320, and that's cheaper than the Keil? Thanks - Rowan
On Feb 9, 6:09=A0am, "Rowan Sylvester-Bradley"
> Does anyone know of _any_ simulator/debugger that will definitely simulat=
e
> the 80C320, and that's cheaper than the Keil?
Google finds this ? http://gsim51.sourceforge.net/ -jg
On Feb 9, 6:58=A0am, -jg <jim.granvi...@gmail.com> wrote:
>
Google finds this ?http://gsim51.sourceforge.net/ and also this - somewhat newer ? http://sol.gfxile.net/files/emu8051_4.pdf -but I could not see a Source URL. If EdSim is table based, on the Opcode-times, it should be simple enough to spin a 80320 version. There are a lot of C51 core variants now, so you'd need half a dozen timing tables at least. - and some have more than one timing choice. -jg
On Mon, 8 Feb 2010 17:09:21 -0000, "Rowan Sylvester-Bradley"
<rowan@sylvester-bradley.org> wrote:

>Thanks for your reply. >> I use this.... http://www.edsim51.com/ >> It may not support the 320/450 but should go a long way. > >If it won't simulate the features of the 80C320 that my code uses, then it >won't really do the job, it seems to me. I have written to the author to see >if either he will enhance it to do this, or will allow me to do so. No reply >yet. > >> Also consider using the inbuilt ISP and RS232 to develop your own internal >> debug dump routines....nad op data to a PC vioa the com port. easy.... > >Yes - it's worth considering this technique, but my first requirement is to >be able to debug the code in a simulator environment. > >Does anyone know of _any_ simulator/debugger that will definitely simulate >the 80C320, and that's cheaper than the Keil?
You can try Avocet. I used their stuff donkey years ago on DOS. Was quite useable then, no idea how they are now. Look at http://www.avocetsystems.com/company/techshee/asheets/8051.htm They have a downloadable demo, so you can see whether it will work for you or not. Regards Anton Erasmus
-jg wrote:
> On Feb 9, 6:58 am, -jg <jim.granvi...@gmail.com> wrote: > > Google finds this ?http://gsim51.sourceforge.net/ > > and also this - somewhat newer ? > http://sol.gfxile.net/files/emu8051_4.pdf > -but I could not see a Source URL. > > If EdSim is table based, on the Opcode-times, it should be simple > enough to spin a 80320 version. > There are a lot of C51 core variants now, so you'd need half a dozen > timing tables at least. - and some have more than one timing choice.
Other variations in the 8051 devices are more complex: - Dual or multiple DPTR registers, with various SFR-based methods for selecting the active DPTR (some devices can even auto-switch, toggling the active DPTR choice after each MOVX...) The 80320 has dual DPTRs. - SFR-controlled MOVX timing, dynamically adjustable as the program runs. - Nonstandard "unified" address mappings, for example letting MOVX instructions access internal data and SFRs. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .
In message <Xcibn.52155$_96.20962@newsfe02.iad>, Rowan Sylvester-Bradley
<rowan@sylvester-bradley.org> writes
>Can anyone recommend a simulator/debugger for 8051 family >microcomputers (specifically I need it to support the Dallas 80C320)?
You will need the Keil simulator. There is nothing else to touch it particularly for the Dallas cores. Keil worked very closely with Dallas during development of the parts. AFAIK none of the other simulators come close as the Dallas parts used many extensions to the hardware. BTW There are over 50 different 8051 family cores with different timing and extensions.
>It needs to: >- run on Windows,
All do
>preferably Vista but failing that, XP
:-) It was Vista that failed.
>- be free or a lot cheaper than the Keil package, which I would use if >I could justify it for this project.
Sorry but the "free" stuff is just not going to cut it for these parts. It is not a standard 8051 core. Where most do a reasonable simulation for the standard cores the Dallas parts had a lot of extensions. Also all the free/open source/shareware tools are going to be quite old I would think as the circus moved on to ARM years ago. SO I doubt you will get anything that is Vista compatible except by luck BTW which compiler are you using? You will need a compiler that will output the relevant extended OMF debug files. Otherwise you will be debugging assembler not C. -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
In message <9zXbn.37384$Fm7.30236@newsfe16.iad>, Rowan Sylvester-Bradley
<rowan@sylvester-bradley.org> writes
> >Does anyone know of _any_ simulator/debugger that will definitely >simulate the 80C320, and that's cheaper than the Keil?
No. IF you want to use a free/cheap set of tools you will have to restrict yourself to the "standard" 8051 parts with no major extensions. -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
>Thanks for your reply. >> I use this.... http://www.edsim51.com/ >> It may not support the 320/450 but should go a long way. > >If it won't simulate the features of the 80C320 that my code uses, then it
>won't really do the job, it seems to me. I have written to the author to
see
>if either he will enhance it to do this, or will allow me to do so. No
reply
>yet. >
Try http://home.arcor.de/jensaltmann/jsim_entry.htm The author has released the source code and it already has rudimentary 80C320 support. Beware of pop-ups on entry. --------------------------------------- Posted through http://www.EmbeddedRelated.com