Hi,
I think u should select a proper prescaler for timer1.
If the pprescaler is zero, means timer will not run.
Check the data sheet again about prescaler.
bye.
Don AE5K wrote:
Don AE5K wrote:
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
YAHOO! GROUPS LINKS
- Visit your group "AVR-Chat" on the web.
- To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--------
Praveen Gudi,
Embedded Software Engineer,
Invictus Technologies,
Bangalore- 560 044
Ph: 080-23355875
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2ยข/min with Yahoo! Messenger with Voice.