Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Studio simulator-tiny45- TC1

2006-04-27 by praveen gudi

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






--------
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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.