avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] new to avr-libc programming: interrupt handling


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] new to avr-libc programming: interrupt handling
Date: Mon, 3 Mar 2003 11:57:22 +0100
User-agent: Mutt/1.2.5i

As Joerg Wunsch wrote:

> now.  That's the prefered syntax.  If i were you, i'd rather use
> 
>       TCCR0 = _BV(COM00) | _BV(COM01) | _BV(CS02) | _BV(CS01);
> 
> That makes it more obvious that your description didn't match your hex
> values :) (clk/256 vs. clk/1024).

Btw., you probably also want to add _BV(WGM01).  That'll turn on CTC
mode (clear timer on compare match).
-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

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