Is "PAUSE 0" a valid command
Hi All,
Subject says it all really.
I am just wondering if ZERO is a valid value for the PAUSE command or whether ONE is the minimum allowable delay.
I want to have an adjustable delay whilst I develop some code so that I can slow things down to observe what is happening but I want to be able to run the code at as close to real speed as possible.
I realise that if ZERO is a valid value it would still take a few microseconds to complete but that is still much faster than a 1mS delay.
If ZERO isnt a valid value then I will use a GOSUB and have something like this...
Code:
Gosub WasteSomeTime
WasteSomeTime:
If DebugDelay = 0 then
return
Else
PAUSE DebugDelay
Endif
return
Thanks
Pulse wanted or not ?????
Hi,
Made some trails this morning ( 16F628 @4Mhz, internal Clock )
While m_a
outp = 1
Pause 0
outp = 0
Pauseus 100
Wend
Result is a beautiful 18.2 ... µS High pulse. ( @ 4Mhz !!! ) ( The bypass .1µF cap effect clearly shown ...)
as expected, it's not so far from Pauseus minimum duration ...
Keep in mind this "Ghost" pulses can easily trigger an unwanted event ... an a special test on the 0 value might be added.
Alain
PS for Bob : you might give a cup of strong coffee to your scope ... reading a 2 or 3 µS pulse is not that difficult for my Hameg 203-4 ( a basic 20Mhz scope aged ... 20 years these days !!! )