Hello Leonardo,
Code:
Minutes VAR Word
Hours VAR Word
Days VAR Word
loop:
HIGH LED
GOTO LOOP
OPTION_REG = $7f
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
Leaonardo, Dave gave you some wonderful working code... You can do it on your 675 if you want....
Now about your code...
>>
loop:
HIGH LED
GOTO LOOP
<<
None of your pins are assigned to outputs... granded HIGH changes it to OUTPUT, but turn off your AD's and compariters for "Habit" sake.
you have this loop, and it is going to turn on your LED...but never turn it off...
Your interput is not configured properly... check out the manual on how to use interupts...
your subroutine of 40 days is does not have a return, nor does it have a interupt turnoff.
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks