Searching \ for 'MPLAB help - stimulation with delay loops' 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=delay
Search entire site for: 'MPLAB help - stimulation with delay loops'.

Truncated match.
PICList Thread
'MPLAB help - stimulation with delay loops'
2000\01\24@213140 by Charles L. Stackhouse

flavicon
face
When running MPLAB stimulator in single step fashion to try to debug an LCD
control program, I ran into some 10msec delay loops - OUCH!  What takes a
short time when the PIC is running, takes many hundreds of mouse clicks or
more to step through the program.
Even the "Animate" mode was taking way too long to get through these delay
loops.

What is the easiest way to deal with this? I haven't figured out  how to use
breakpoints yet but would a breakpoint at the end of the delay loop stop the
program here so I can resume the single step stimulation? I don't want to
comment out the delay loops as I am not sure the program will run properly
then.

Thanks.

Charlie WA2IPZ
Burley, Idaho

2000\01\24@213805 by Erik Reikes

flavicon
face
At 07:21 PM 1/24/00 -0700, you wrote:
>When running MPLAB stimulator in single step fashion to try to debug an LCD
>control program, I ran into some 10msec delay loops - OUCH!  What takes a
>short time when the PIC is running, takes many hundreds of mouse clicks or
>more to step through the program.
>Even the "Animate" mode was taking way too long to get through these delay
>loops.
>
>What is the easiest way to deal with this? I haven't figured out  how to use
>breakpoints yet but would a breakpoint at the end of the delay loop stop the
>program here so I can resume the single step stimulation? I don't want to
>comment out the delay loops as I am not sure the program will run properly
>then.
>

Set breakpoints by right clicking and setting the breakpoint.  The line of
code will turn red indicating a break there.

It will still take a while to go through but will be much faster than
clicking with the mouse.



>Thanks.
>
>Charlie WA2IPZ
>Burley, Idaho

Erik Reikes
Software Engineer
Xsilogy, Inc.

spam_OUTereikesTakeThisOuTspamxsilogy.com
ph : (858) 535-5113
fax : (858) 535-5163
cell : (858) 663-1206

2000\01\24@222636 by Charles Linquist

picon face
I just comment out (or jump around) the delay loop during
the simulation phase.




----- Original Message -----
From: "Charles L. Stackhouse" <.....cstackKILLspamspam@spam@SAFELINK.NET>
To: <PICLISTspamKILLspamMITVMA.MIT.EDU>
Sent: Monday, January 24, 2000 6:21 PM
Subject: MPLAB help - stimulation with delay loops


> When running MPLAB stimulator in single step fashion to try to debug an
LCD
> control program, I ran into some 10msec delay loops - OUCH!  What takes a
> short time when the PIC is running, takes many hundreds of mouse clicks or
> more to step through the program.
> Even the "Animate" mode was taking way too long to get through these delay
> loops.
>
> What is the easiest way to deal with this? I haven't figured out  how to
use
> breakpoints yet but would a breakpoint at the end of the delay loop stop
the
> program here so I can resume the single step stimulation? I don't want to
> comment out the delay loops as I am not sure the program will run properly
> then.
>
> Thanks.
>
> Charlie WA2IPZ
> Burley, Idaho

2000\01\24@225353 by Dennis Gearon

flavicon
face
OR.............manually change the values that determine how long the loop is
taking, in the memory of the simulator to speed things up.



Erik Reikes wrote:

{Quote hidden}

--
-----------------------------------------------------------------
Time Spent With Your Dog(Kid) is Time Well Spent
-----------------------------------------------------------------
   Sincerely, Dennis Gearon

2000\01\25@122206 by Edson Brusque

face
flavicon
face
> OR.............manually change the values that determine how long the loop
is
> taking, in the memory of the simulator to speed things up.

   OR.... (:^) put the loop values on a EQU in the start of the program.
Change it to a low value when simulating, return it to the correct high
value when burning.

   As I'm using CCS, I change the line "#USE DELAY(clock=20000000)" to
"#USE DELAY(clock=1000)" when simulating/debugging.

   Bes regards,

   Brusque
+----------------------+
|    Edson  Brusque    |
|   Tech Development   |
| http://www.citronics.com.br |
+----------------------+

2000\01\25@122620 by Harold M Hallikainen

picon face
       If the delay loop is a separate subroutine, you can use F8 to run the
subroutine at full speed, then stop when it returns.

Harold

On Mon, 24 Jan 2000 19:26:14 -0800 Charles Linquist
<EraseMEclinquistspam_OUTspamTakeThisOuTMINDSPRING.COM> writes:
> I just comment out (or jump around) the delay loop during
> the simulation phase.
>
>
>

FCC Rules Online at http://hallikainen.com/FccRules
Lighting control for theatre and television at http://www.dovesystems.com

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
dl.http://www.juno.com/get/tagj.

2000\01\25@142824 by Anthony Ryan

picon face
I had exactly the same problem with a LCD routine too.

If your delay is a subroutine, add a label such as "DELAY_TRAP" on (or just
before) your RETURN instruction.

Then from the BREAK SETTINGS menu option, select DELAY_TRAP (from the pull
down label list) as your break point. The break point will then have a tick
next to it if it is enabled.

Whenever you reach the delay loop during single step, just press F9 to run
through the delay.

Regards

Tony

2000\01\25@173101 by Larry G. Nelson Sr.

flavicon
face
Is it something you can use step over on? Otherwise you can comment out the
delay or modify the program counter to jump past the loop. You can also
modify the counter register to shorten the loop while stepping thru.


At 07:21 PM 1/24/00 -0700, you wrote:
{Quote hidden}

Larry G. Nelson Sr.
L.Nelsonspamspam_OUTieee.org
http://www.ultranet.com/~nr

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