Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Timing Profiler.

2004-08-07 by Robert Adsett

At 01:22 AM 8/7/04 -0300, you wrote:
>     Just to check it out... A free pin a 1K resistor and a 100nf cap to
>ground. VCC at the junction is 100% of the time and vcc/2 is around 50%.
>Sounds nice.... All the other times that I needed this I used a 32bit timer
>summing up a cpu timer but that disturbs the results a little.. That should
>do the trick...

That'll do it, although I'd use a larger resistor (5-10K or more) to reduce 
any loading effects.  I'd also sink rather than source but either should 
work.  I've used this a lot for verification and debugging myself.  It's 
really useful when verifying responses to an event or faster inner loops 
for jitter and elapsed time.

I also wouldn't bother with the cap.  If you are using a DMM let it do the 
input filtering and if you are using an oscilloscope then you can get a 
direct reading of usage and period.  Of course if you are using a poor DMM 
or want to read the average directly on an oscilloscope without averaging......

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.