So there is no special "counter" that I have to set up to count down as in a var word or something?
the "counter" is set at 900, because there are 900 seconds in 15 minutes.

the pause is the variable that you use to control how long you want to pause every time you go to the subroutine. This Pause I chose arbitrarily...to be 30 milliseconds. thus when you go to the subroutine 900 times (as the counter goes to zero) you are pausing a total of 900 x 30 millseconds = 27000 milliseconds of pause. which is approx. 2.7 min.

Now, you can adjust the counter or the pause statement to adjust to your 15 minute time. Making a bigger pause (like pause 1000) will cause your chip to "seem" slow, because the chip will be delaying 1 second before going on to your next step in the program. With this Pause 1000,you will have a little over 15 minutes before a light blinks. (900 x 1000)= 900,000 milliseconds which is 900 seconds which is 15 minutes (Plus the time it takes to execute all the rest of the code in your program, which will be very small).

With a pause of 30 and a counter equal to 30,000, you have approx 900,000 milliseconds also...which is 15 minutes. But your chip will only delay 30 milliseconds before executing its next step, NOT 1000 milliseconds.

Thus, if you are happy with only a 30 millisecond delay, and it does not affect any critical part of your project, you may just be happy letting your chip waste away time.

Dwayne

The program is not made to be "small", "efficient", or "conservative". Its just made to get a job done, and understandable for most to see.