I have been trying to get some timers to work and failing miserably. Normally its easy, but for some reason nothing wants to work for me when simulating with a AT90CAN32. I have reduced my programme to the following (and it still doesnt behave! ):
/*Start Timer 1*/
ldi r16, (1<<CS10);
sts TCCR1B, r16
Soon as the timer starts counting the OCF1A flag is set. Why? :?