Page 1 of 1

Timers in AVR ATMEGA32

Posted: Sat May 05, 2012 11:53 am
by rags
hello sir,

my project is to start a timer untill i recieve a high pulse in any of i/o port, and print the timer value in a 16x2 lcd

am thorough with LCD but can any one guide me with timers pls??

thank you
ragesh

Re: TIMERS IN AVR ATMEGA32

Posted: Thu Aug 09, 2012 12:57 pm
by Enamul
Hi,
Here I put LCD and TMR/COUNTER1, as you said the LCD will print time when sw goes high...But the issue is with internal 4MHz clock the TMR1 overflows very quickly...so you can't display TMR register contents as that will be meaning less...that's why I have printed TIME value every time you press the sw....so by knowing the interrupt occurring time, value in LCD you can determine the time elapsed...Elapsed_Time=TIME*INT_TIME
Hope this will be a start :)

Re: Timers in AVR ATMEGA32

Posted: Thu Aug 09, 2012 5:40 pm
by DavidA
Hi rags,

Please stop making topics with All caps titles.