Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] What happens to timer counter after output compare?

2005-04-15 by David Kelly

On Fri, Apr 15, 2005 at 11:27:05AM -0000, arhodes19044 wrote:
> 
> I am setting up a timer. I am trying to measure milliseconds. I have 
> set the output compare on timer 1 (prescale of 1) to 16000. 
> 
> I get the interrupt triggered, and I am able to increment the 
> millisecond counter. Does the timer's counter get reset to zero 
> automatically and immediately? I suppose it does not. What do I do to 
> force it to reset? 

Atmel's doc2505.pdf covers what you need to read.

-- 
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.

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.