Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] How to measure a pulse width

2006-03-08 by Zack Widup

On Tue, 7 Mar 2006, Ned Konz wrote:

> 
> > I guess I forgot to say I was operating at 16MHZ. 16us is probably  
> > close enough. So I hook the sensor to PIND4 and set timer1 to a  
> > prescale of 256
> 
> OK, that'd give you a resolution of 1/16 MHz (or 16usec).
> 

1/(16 MHz) = 0.0625 usec (62.5 nsec).  Much faster!

Zack

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.