>From: Andrew Warren <
TakeThisOuTaiwEraseME
spam_OUTCYPRESS.COM>
>Reply-To: pic microcontroller discussion list <
RemoveMEPICLIST
TakeThisOuTMITVMA.MIT.EDU>
>To:
PICLISTEraseME
.....MITVMA.MIT.EDU
>Subject: Re: Faster Delay Simulation
>Date: Mon, 12 Mar 2001 17:38:01 -0800
>
>Thomas N <
EraseMEPICLIST
MITVMA.MIT.EDU> wrote:
>
> > I think the GPSIM is not designed for Window (it's for Linux). I am
> > using Window 98, so this software doesn't work for me.
> >
> > Is there any tweak in MPLAB to speed up the simulation?
>
>Thomas:
>
>Why not just add a conditional-assembly directive to your code, so
>the program will be built dfifferently for the simulator than for the
>real product? For example:
>
> DEBUG SET 1 ;1 = Shorten all delay loops.
> ;0 = Don't.
> ....
>
> DELAY_1_SECOND:
>
> IF (DEBUG)
> MOVLW 1 ;Do a short delay for the simulator.
> ELSE
> MOVLW 100 ;Do a normal-length delay.
> ENDIF
>
> MOVWF COUNT
>
> ... delay loop here ...
>
> DECFSZ COUNT
> GOTO LOOP
>
> RETURN
>
>-Andy
>
>
>=== Andrew Warren ---
RemoveMEaiwEraseME
EraseMEcypress.com
>=== IPD Systems Engineering, CYSD
>=== Cypress Semiconductor Corporation
>===
>=== Opinions expressed above do not
>=== necessarily represent those of
>=== Cypress Semiconductor Corporation
>
>--
>
http://www.piclist.com hint: To leave the PICList
>
RemoveMEpiclist-unsubscribe-requestspam_OUT
KILLspammitvma.mit.edu
>
>