Searching \ for 'MPLAB Timer Simulation' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/timers.htm?key=time
Search entire site for: 'MPLAB Timer Simulation'.

Truncated match.
PICList Thread
'MPLAB Timer Simulation'
1999\11\02@120553 by Andy Baker

flavicon
face
Hi all,

The project I'm working on provides the control circuitry for a hifi preamp
(i.e. switching inputs, tape monitor, mutes, and display on an LCD display)
using a 16F84.

There are a number of timed events in the software, such as switch
debouncing, and pausing for a fraction of a second to allow the user to make
up their mind before making the necessary relay changes.

Most of this I have written and simulated as working. My problem is
simulating the timed events. The simulator runs so slowly (prescaled TMR0
counting at approx 10Hz rather than ~4kHz (4MHz / (4 * 256))), that the long
waits are interminable.

Anyone have any hints how to make the sim run faster (after all, I'm running
it in a PIII 550MHz with 128MB RAM, it should be able to simulate a 1 MIPS
PIC!).

Should I just resort to reducing the waits for simulated runs?

Thanks,

Andy

1999\11\02@121214 by Philippe

flavicon
face
At 17:03 02/11/99 -0000, you wrote:
>Most of this I have written and simulated as working. My problem is
>simulating the timed events. The simulator runs so slowly (prescaled TMR0
>counting at approx 10Hz rather than ~4kHz (4MHz / (4 * 256))), that the long
>waits are interminable.

Try UMPS, you will reach approximative real speed with it, about 1000 time
faster than MPLAB.
       UMPS eval version at:    http://www.vmdesign.com

Regards,
       Philippe.

1999\11\02@133419 by Eric Schlaepfer

picon face
Hi Andy,

> Anyone have any hints how to make the sim run faster
> (after all, I'm running
> it in a PIII 550MHz with 128MB RAM, it should be
> able to simulate a 1 MIPS
> PIC!).

There is a cute little program that speeds MPLAB up
considerably. If you want, I can send it to you as an
email attachment off the PIClist.

> Should I just resort to reducing the waits for
> simulated runs?

You might want to do that too. I have a project with
similar debounce delays. I usually don't use the MPLAB
simulator -- instead I go through the usual cycle:
debug, burn EPROM, power up circuit, curse, UV erase.

Later,

Eric

=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

1999\11\02@143629 by James Paul

flavicon
face
Eric,

I would like a copy of the MPLAB speedup program if you don't
mind.   I too have some code I'm running that has some lengthy
delays, and this could prove useful.  I appreciate it.

                                       Thanks and Regards,

                                              Jim



On Tue, 02 November 1999, Eric Schlaepfer wrote:

{Quote hidden}

spam_OUTjimTakeThisOuTspamjpes.com

1999\11\02@143848 by Jim Hartmann

flavicon
face
Also, make sure the asynchronous pin stimulation window is closed.  When
this window is open the simulator is many times slower than normal.

1999\11\02@144926 by John De Villiers

flavicon
face
oi, me 2 please

do you have a URL for it ?

John

> There is a cute little program that speeds MPLAB up
> considerably. If you want, I can send it to you as an
> email attachment off the PIClist.

1999\11\02@145320 by PSL

flavicon
face
Hi Eric

       It seems that the little program you are having is very popular why
don't you post it to the piclist if it is small

regards

----- Original Message -----
From: John De Villiers <.....jd62KILLspamspam@spam@PIXIE.CO.ZA>
To: <PICLISTspamKILLspamMITVMA.MIT.EDU>
Sent: Wednesday, November 03, 1999 3:49 AM
Subject: Re: MPLAB Timer Simulation


> oi, me 2 please
>
> do you have a URL for it ?
>
> John
>
> > There is a cute little program that speeds MPLAB up
> > considerably. If you want, I can send it to you as an
> > email attachment off the PIClist.

1999\11\02@145954 by Scott Newell

flavicon
face
>        It seems that the little program you are having is very popular why
>don't you post it to the piclist if it is small

I'll try and remember to put it up on a web page tonight.  I don't think I
have a current copy with me right now.


newell
(author of speed.exe)

1999\11\02@151016 by Matthew Fries

flavicon
face
Is there anyway you could post a URL for this? This sounds like a very
useful patch...



On Tue, 2 Nov 1999, James Paul wrote:

{Quote hidden}

1999\11\02@152236 by Jim Hartmann

flavicon
face
Oh, and it also helps to wiggle your mouse... seriously.

1999\11\02@153037 by Adam Bryant

picon face
Andy,
I usually resort to reducing the waits via pre-compiler directives, i.e.:

#define DEBUG

#ifdef DEBUG
       short wait/timing loop
#else
       normal wait/timing loop
#endif

It's ugly, but it works.  I usually step through things once or twice
using the non-debug version and the stopwatch function to insure that the
delays are correct, then do the "#define DEBUG" and finish my debugging.
(Keep in mind that depending on where you place your breakpoint, the
count in the stopwatch may be off by a few cycles).

I haven't tried UMPS as has been suggested as I am just a hobbyist and
can't justify spending the money for it when I already have a tool that
works (although slowly sometimes :)
Adam

On Tue, 2 Nov 1999 17:03:02 -0000 Andy Baker <EraseMEABspam_OUTspamTakeThisOuTDATCON.CO.UK> writes:
{Quote hidden}

Adam Bryant (age 0x23)
abryantspamspam_OUTpeaktech.com (work)
@spam@adamdbKILLspamspamjuno.com (home)
Parker, CO, USA
Robotics, RC Airplanes, anything using a PIC

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: dl.http://www.juno.com/dynoget/tagj.

1999\11\02@182333 by Adam Bryant

picon face
IIRC I have seen this program on Myke Predko's web site at http://www.myke.com.

On Tue, 2 Nov 1999 21:49:03 +0200 John De Villiers <KILLspamjd62KILLspamspamPIXIE.CO.ZA>
writes:
> oi, me 2 please
>
> do you have a URL for it ?
>
> John
>
> > There is a cute little program that speeds MPLAB up
> > considerably. If you want, I can send it to you as an
> > email attachment off the PIClist.

Adam Bryant (age 0x23)
RemoveMEabryantTakeThisOuTspampeaktech.com (work)
spamBeGoneadamdbspamBeGonespamjuno.com (home)
Parker, CO, USA
Robotics, RC Airplanes, anything using a PIC

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: dl.http://www.juno.com/dynoget/tagj.

1999\11\03@041301 by Andy Baker

flavicon
face
Thanks, I got it from the "PIC Micro Applications" page on this site.

I'll be trying it tonight!

Andy

{Original Message removed}

1999\11\03@101504 by Carlos Fiestas

flavicon
face
part 0 1357 bytes
Execute the atached program during MPLAB session. This will decrease your
program simulation times.

I hope this help you...




-----Mensaje original-----
De: Andy Baker <TakeThisOuTABEraseMEspamspam_OUTDATCON.CO.UK>
Para: RemoveMEPICLISTspamTakeThisOuTMITVMA.MIT.EDU <PICLISTEraseMEspam.....MITVMA.MIT.EDU>
Fecha: martes, 02 de noviembre de 1999 12:10
Asunto: MPLAB Timer Simulation


>Hi all,
>
>The project I'm working on provides the control circuitry for a hifi preamp
>(i.e. switching inputs, tape monitor, mutes, and display on an LCD display)
>using a 16F84.
>
>There are a number of timed events in the software, such as switch
>debouncing, and pausing for a fraction of a second to allow the user to
make
>up their mind before making the necessary relay changes.
>
>Most of this I have written and simulated as working. My problem is
>simulating the timed events. The simulator runs so slowly (prescaled TMR0
>counting at approx 10Hz rather than ~4kHz (4MHz / (4 * 256))), that the
long
>waits are interminable.
>
>Anyone have any hints how to make the sim run faster (after all, I'm
running
>it in a PIII 550MHz with 128MB RAM, it should be able to simulate a 1 MIPS
>PIC!).
>
>Should I just resort to reducing the waits for simulated runs?
>
>Thanks,
>
>Andy

Attachment converted: wonderland:Speed.exe (bina/mdos) (0000EC33)

1999\11\03@102534 by Roger Morella

flavicon
face
Carlos,

Thanks.

BTW,  what exactly does this program do?

Carlos Fiestas wrote:

{Quote hidden}

1999\11\03@102537 by Roger Morella

flavicon
face
Carlos,

Thanks.   BTW, what exactly does this program do?

Roger

Carlos Fiestas wrote:

> Hi,
>
> Execute the atached program during MPLAB session. This will decrease your
> program simulation times.

1999\11\03@105715 by Carlos Fiestas

flavicon
face
Hi, Roger

It looks like Windows messages for other applications are slowly managed
so MPLAB have more chance for this messages. Increasing the number the
events in the textbox MPLAB increase its run time simulation. Be careful
because
a great number would decrease another Windows applications performance.
I got this program a long time ago from this list.

Sorry for my bad English :)

Carlos


-----Mensaje original-----
De: Roger Morella <RemoveMErjmTakeThisOuTspamspamBUFFNET.NET>
Para: EraseMEPICLISTspamspamspamBeGoneMITVMA.MIT.EDU <RemoveMEPICLISTKILLspamspamMITVMA.MIT.EDU>
Fecha: miircoles, 03 de noviembre de 1999 10:33
Asunto: Re: MPLAB Timer Simulation


{Quote hidden}

1999\11\03@105931 by Dave Johnson

flavicon
face
Roger Morella wrote:

>Thanks.   BTW, what exactly does this program do?
According to Myke's site, it just sends null events to MPLAB, which is
the same thing wiggling the mouse does :-)

Dave

1999\11\03@150014 by Eric Schlaepfer

picon face
Hello PICList,

Due to popular request, I have put this program up on
my FTP site. The URL is:

ftp://ftp.sonic.net/pub/users/schlae/speed.zip

Later,

Eric



=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

1999\11\03@202813 by John De Villiers

flavicon
face
GOTIT!!!

And it works too  ;-)

On my PIII 500 i now get to 1,250,000 cycles in about 20 seconds. Before it
took me upwards of about 3 minutes!!!!

> {Original Message removed}


'MPLAB Timer Simulation'
2000\02\17@151117 by Larry G. Nelson Sr.
flavicon
face
Do the newer versions of MPLAB still benefit from this or have they fixed
it internally?

At 11:03 AM 11/3/99 -0500, you wrote:
{Quote hidden}

Larry G. Nelson Sr.
EraseMEL.NelsonspamEraseMEieee.org
http://www.ultranet.com/~nr

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...