Hello Darrel,

Thank you for the code, I want that when push RB.0 he lights the led on RB.1 after the fixed time lapses I have carried out the tests and I have not been able to make it work, you can help me and to say eats up I please make it.

I am using a PIC16F628.

Thank you






Quote Originally Posted by Darrel Taylor
Well, if it doesn't need to be exact, you might do something like this.
Code:
Minutes   VAR  Byte
Hours     VAR  Byte
Days      VAR  Byte

Wait40Days:
    For Days = 1 to 40
        For Hours = 1 to 24
            For Minutes = 1 to 60
                PAUSE 60000         ; 60 Seconds
            Next Minutes
        Next Hours
    Next Days
<BR><BR>