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

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

Re: [avr-libc-dev] _delay_us() - Documentation for maximum possible dela


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] _delay_us() - Documentation for maximum possible delay
Date: Mon, 4 Oct 2010 12:58:54 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

As Boyapati, Anitha wrote:

> I am trying to see what factors influenced to go for a 16-bit
> counter in one case and only 8-bit counter in the other. Why not
> 16-bit counter for both?

_delay_loop_2 has a coarser granularity (4 ticks vs. 3 for
_delay_loop_1).

Basically, both these functions were introduced as "convenience
wrappers" for _delay_loop_1 and _delay_loop_2, respectively, to
make it easier for people to calculate the delay timing.
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

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