Thanks for the help guys,
The problem is solved :D
It turns out that in the timer2 isr there was a: Toggle portb.0 in there...
I never really check the isr's so it went unnoticed by me until this morning when I was checking in there.
So every time the isr fired, It would toggle that output to the next state.
Robert
↧