[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] mega128 timers

From: Michael Hudson
Subject: RE: [avr-gcc-list] mega128 timers
Date: Thu, 18 Sep 2003 15:42:37 -0600

Setup the Prescaler to 1, set the Compare register OCR0 to 100, enable
the Compare Interrupt and Clear Count on Compare bits.  Presto, you get
an interrupt every 100 clocks of the processor.

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Torsten Hahn
Sent: Thursday, September 18, 2003 3:29 PM
To: address@hidden
Subject: [avr-gcc-list] mega128 timers


i am a bit confused about all the options of the mega128's timers 
described in the datasheet. What i need is a simple timer interrupt, 
which executes every 100 clock cycles (i want to use timer0 for this) 
but i was unable to figure out, which bits i have to set. Was somebody 
able to understand the manual and can help me ?


avr-gcc-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]