PDA

View Full Version : pause loop lockup with mplab sim



power67
- 11th February 2005, 17:34
Ok all;
I am new to picbasic pro and this one is driving me nuts.
I am working with a pic16f88 and attempting to simulate it within mplab ide v7.00. When I even load the simple led blink program, the sim goes into a continious loop within the pause section of the program.
it appears to hang on this section of the pbpic14.lib file

pauseusloop nop ; 1
addwf R0, F ; 1
btfsc STATUS, C ; 1 / 2
goto pauseusloop ; 2 / 0
addwf R0, F ; 1 Do an extra countdown

can someone let me know what I am doing wrong

thanks in advance

Bruce
- 11th February 2005, 18:26
Software simulation in MPLAB can take hours to run through a PBP PAUSE command depending on the period.

Try PAUSEUS set to the absolute minimum delay period for the osc speed you're using. Or just comment out the PAUSE for software simulation.

If you really want to watch it simulate a long PAUSE, then you can speed things up by changing the MPLAB sim Animate step time.

In MPLAB click Debugger >> Settings, then select the Debugger Animation tab, and set Animate step time to 1mS.

That will help speed things up, but you'll still want to avoid long PAUSE periods during software sim.

Acetronics2
- 12th February 2005, 13:10
Hi, Power 67

I encountered such lockings ( computer error ...) with old releases of MPLAB.

I didn' t see those since 6.x releases ...

Only a little problem when simulating with 16F84 or 16F84a ( one of them ...)

Alain