Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: Speed Trap

2004-03-11 by Bernd Felsche

On Wednesday 10 March 2004 23:42, Clark, Andy wrote:
> > Bullets are typically fast, designing around 1400M/S at the high end

But the AVR is faster than a speeding bullet. :-)

> You need to start somewhere so try over the top, using Timer1 of a Mega8
> running at 16MHz - before firing, clear Timer1, sit in a tight asm loop

You could use a free-running timer and use an external interrupt to
capture the initial value.

Then use another interrupt to capture the second value.

Just remember to count the intermediate overflows of the time.

Depending on the method used, you may even be able to go into a
low-power mode up to the first interrupt.

-- 
/"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia
\ /  ASCII ribbon campaign | I'm a .signature virus!
 X   against HTML mail     | Copy me into your ~/.signature
/ \  and postings          | to help me spread!

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.