PDA

View Full Version : How long does this circle take?



IAmTheAnswer
- 9th May 2010, 12:08
How long does the green part take if not excecuted, so the verification whether switch = pushed ?


DEFINE OSC 4

WHILE 1 = 1
TOGGLE Led
For counter = 1 to Zeit
if switch = pushed then
Pause 475
WHILE switch = unpushed
WEND
Pause 475
EndIf
Pauseus 990
Next counter
WEND

Regards
IAmTheAnswer

IAmTheAnswer
- 9th May 2010, 14:17
Is there another picbasic-forum being more frequented?

Bruce
- 9th May 2010, 15:06
It takes about 6uS to test switch and jump to Pauseus 990 if switch is not = pushed.

IAmTheAnswer
- 9th May 2010, 15:14
Thanks ..........