You've got it... except in your example you should set T1 to have a value BEFORE your first usage of PAUSE.
Here's an example that will vary the length of time an LED will stay ON...
MyDelay var WORD
LED var PortB.0
TRISB=0
Loop:
For MyDelay=1000 to 10000 step 1000
High LED
Pause MyDelay
Low LED
Pause 1000
Next MyDelay
Goto Loop




Bookmarks