i changed my code now.
the var counter works fine.
Code:
LOOP:
Sec=12
Mins=34
hr=56
if counter3=>100 then
blink=1
else
blink=0
endif
goto loop
end
This is with only the return-command.
I'm going to change the loop now. I try to set more gosubs in it, maby it works..
[s]It looks like there is a problem between the I2C and interrupt. Do's I2C also use timer2 for it's clocksignal or something?[/s]
edit:
I found a mistake:
@ loop:
goto coldstart
@ coldstart
return

not all the problems are solved now, but at least return at the end of the ISR dos have any effect!
edit2:
after changing the tris settings to
TRISA=%11111111
TRISB=%11111111
I can make some input with the buttons. The problem now is that it's menu is not working right.
It looks like it just runs the routine for once and not wait for any other input.(possible a mistake when I did change it from only loops to interrrupt I might have did something wrong..). I have to look at that for now..
Bookmarks