OCF1A Bug

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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! ):

.include "can32def.inc"
/*Start Timer 1*/
ldi r16, (1<<CS10);
sts TCCR1B, r16
LOOP:
rjmp LOOP

Soon as the timer starts counting the OCF1A flag is set. Why? :?

Just a noob in this crazy world trying to get some electrons to obey me.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is a cross post:

https://www.avrfreaks.net/index.p...

Moral: Don't trust the simulator.