Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Timing Profiler.

2004-08-07 by erikc

----- Original Message -----
From: "Alexandre Guimaraes" <listas@logikos.com.br>
To: <AVR-Chat@yahoogroups.com>
Sent: Saturday, August 07, 2004 04:21
Subject: [AVR-Chat] Timing Profiler.


> Hi,
>
>     Does anyone have a ready made structure to make a
"profiler" for a
> program that has the usual embedded structure of some
timer routines that
> take quite some time to execute and a small main loop ??
>
>     I have an application where I maybe pretty close to
use all CPU time
> available and I would love to find a way to check how
close I am without
> having to count all the cycles in all possible paths of
the program. That
> get's even harder with the timer interrupts.
>
>     Any ideas ??
>
> best regards,
> Alexandre Guimaraes

If you have a spare I/O pin, you could set that pin on entry
to a function and clear it on exit.  You can then either
observe the pulse width on a scope or make an integrator and
read the duty cycle directly on a volt meter.

Erikc  - firewevr@airmail.net
///
"An Fhirinne in aghaidh an tSaoil."
"The Truth against the World."
        -- Bardic Motto
///I did NOT lose my mind!  It's backed up on the server
(and the network's down....)

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.