Searching \ for '[PIC]:simulting using delay function' 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/microchip/time.htm?key=delay
Search entire site for: 'simulting using delay function'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]:simulting using delay function'
2001\11\09@070555 by MATTHEWS, DEAN (D.)

picon face
To all,

When simulating the code below when stepping through the program, when the line delay_ms(100); is executed the program jumps to #use delay(clock=20000000) and it seems to just stay there!  Is this true or is it just implementing the delay of 10mS (which is goinig to take a hell of a lot of steps to acieve manually.  Because when I run the program normally it seems that the program gets stuck on #use delay(clock=20000000).


{Quote hidden}

Dean Matthews

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\11\09@081054 by D Lloyd

flavicon
face
part 1 1945 bytes content-type:text/plain; charset=us-ascii
Hi,

I hate to reply on this issue because it's a while since I messed with the
CCS stuff (and PIC for that matter) but I do remember that the simulator
will hang around executing the code fragment which implements the delay. As
the simulator is deliberately slow, it will appear that the code has hung
up in the delay. Try wiggling the mouse while the code is in the delay -
that seemed to speed up the operation if I remember correctly.

Dan





(Embedded     "MATTHEWS, DEAN (D.)" <spam_OUTdmatth14TakeThisOuTspamFORD.COM>TakeThisOuTspamMITVMA.MIT.EDU>> image moved   09/11/2001 10:24
to file:
pic17993.pcx)





Please respond to pic microcontroller discussion list
     <
.....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU>
Sent by:  pic microcontroller discussion list <PICLISTspamKILLspamMITVMA.MIT.EDU>


To:   .....PICLISTKILLspamspam.....MITVMA.MIT.EDU
cc:
Subject:  Re: [PIC]:simulting using delay function

Security Level:?         Internal


To all,

When simulating the code below when stepping through the program, when the
line delay_ms(100); is executed the program jumps to #use
delay(clock=20000000) and it seems to just stay there!  Is this true or is
it just implementing the delay of 10mS (which is goinig to take a hell of a
lot of steps to acieve manually.  Because when I run the program normally
it seems that the program gets stuck on #use delay(clock=20000000).


{Quote hidden}

Dean Matthews

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics






part 2 165 bytes content-type:application/octet-stream; (decode)

part 3 144 bytes
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\11\09@103744 by Lawrence Lile

flavicon
face
Comment out all delays during simulation if you want the simulation to
finish before you grow a long grey beard.

--Lawrence

{Original Message removed}

2001\11\09@105718 by Scott Dattalo

face
flavicon
face
On Fri, 9 Nov 2001, Lawrence Lile wrote:

> Comment out all delays during simulation if you want the simulation to
> finish before you grow a long grey beard.

Or get a simulator that runs faster than a PIC ;).

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


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