Instead of using the interrupts and blocking my port and all... i inserted the counter section into my main loops and making it count as it was in the interrupt, and without even enabling or disabling everything works fine and as had to... the section for timer now is
timerin =1333333 ' The value depends on the program length, for my program length this value represents 1Minute or 60Seconds
Main:
'TIMER ROUTINE
If TimerOn = 1 Then
CountIntTimer = CountIntTimer + 1
If CountIntTimer = TimerIn Then
Power = 1 'Power Off
TimerOn = 0
EndIf
EndIf
if PortB.0 = 1 Then
countinttimer = 0
power = 0
endif
goto main
end
Bookmarks