Is it possible to use a variable with the Pause command?
Here's my code. It seems to compile but won't run on my 16f88. To test it I connected an LED to Port A.2 that should flash on/off with longer and longer duration:
i var word
ii var word
ii = 200
For i = 1 to 100
HIGH PORTA.2 ' Turn on LED connected to PORTA.2
Pause ii ' Delay
Low PORTA.2 ' Turn off LED connected to PORTA.2
Pause ii ' Delay
ii = ii + 200
Next i
Bookmarks