I'm not sure if I am missing something or if the simulator of the AVR Studio 4.12 with service pack 2 (or SP1 too) is broken, but in simulation I cannot seem to get Timer/counter 1 counting in my tiny45 code. I have TCCR1 = 0x41, and OCR1C = 0xF4, all the remaining registers are at their default 0 value. In addition, PRR=0x00, PLLCSR=0x00 and CLKPR=0x00. Is there some other bit somewhere I must set to get this counter working? TCNT1 remains at 0 when simulator is run. Haven't gotten any further to see if the counter is counting in real life. Hints? Experience? Thanks, Don
Message
Studio simulator-tiny45- TC1
2006-04-26 by Don AE5K