[Top][All Lists]

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

Re: [avr-gcc-list] Newbie question

From: David Kelly
Subject: Re: [avr-gcc-list] Newbie question
Date: Wed, 25 Feb 2009 11:56:45 -0600
User-agent: Mutt/

On Wed, Feb 25, 2009 at 11:05:02AM -0500, David VanHorn wrote:
> :)
> Interrupt latency.
> I have an app on a Mega32L, running at 4 MHz.
> I'm trying to measure the widths of pulses that could be as short as 5uS.
> The theory was to detect the first rising edge, and zero T1.
> Then on the second rising edge, grab the count from T1, which is
> running at CK/1

Use an input capture I/O bit and let the hardware take a snapshot of the
timer value when the edge is detected. Zero latency as long as it
doesn't occur faster than you can reset the input capture..

David Kelly N4HHE, address@hidden
Whom computers would destroy, they must first drive mad.

reply via email to

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