Howard,
if the code examples really are what you have tried, PAUSE is working as designed.
loop:
high PortB.0
low PortB.0
goto loop
works fine. LED lights.
>> In this example the LED is turned on and off over and over again, it is on about 50% of the time and due to the execution speed of the program you cant see any flickering.
loop:
high PortB.0
low PortB.0
goto loop
PAUSE 500
>>see first example, the Pause command will never be executed as there is a Loop....Goto Loop
or,
PAUSE 500
loop:
high PortB.0
low PortB.0
goto loop
>> This is almost the same as the other two examples, with one difference, there is a 500ms delay until the loop starts.
try this:
loop:
high PortB.0
PAUSE 500
low PortB.0
PAUSE 500
goto loop
rgds
Ralph
Bookmarks