There is a utility "speed.exe" available somewhere that can speed up MPLAB by generating mouse interrupts or something. Possibly the latest version of MPLAB doesn't benefit but earlier versions did run noticeably faster if you rattled your mouse around the screen while carrying out simulations. Richard P Dear Andy, It's a great idea. I never think about it! So it seems like there is no "tweak" to speed up MPLAB simulation, right? Thomas >From: Andrew Warren >Reply-To: pic microcontroller discussion list >To: PICLIST@MITVMA.MIT.EDU >Subject: Re: Faster Delay Simulation >Date: Mon, 12 Mar 2001 17:38:01 -0800 > >Thomas N 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 --- aiw@cypress.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 >mailto:piclist-unsubscribe-request@mitvma.mit.edu > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu