|
From: | Artur Lipowski |
Subject: | Re: [avr-libc-dev] problem ! |
Date: | Wed, 12 Nov 2003 08:36:05 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031110 Thunderbird/0.4a |
IsoA wrote:
If you do not use interrupts then you can calculate exact delay by counting machine cycles (using assembler listing). But IMO these functions are not for exactly such purpose.I have one question if you can anwer that. i have questions of these _delay_loop_1() and _delay_loop_2() functions. how i know the real delay what it is. so the question is, how do i know the exact delay .
If you want reliable time measurement you must use hardware - timers (embedded or external) and it is probably the easiest way (at least for me) for time measurement. Especially mixed with interrupts and sleep instruction they can give quite accurate results. There are some Atmel app notes and AVR Freaks "Academy" section contains some info about this topic.or is there another delay function. i cant find any topic of those either
Regards, -- Artur Lipowski
[Prev in Thread] | Current Thread | [Next in Thread] |