Maker Pro
Maker Pro

AVR timing loops

R

Roy

Jan 1, 1970
0
I'm new to the AVR chips but have used PIC chips IDE in which they have a
STOPWATCH to test timing of the code.

Does the AVR IDE have similar function or how do I test timing loops in the
AVR IDE environment?

Roy
 
R

Rich Webb

Jan 1, 1970
0
I'm new to the AVR chips but have used PIC chips IDE in which they have a
STOPWATCH to test timing of the code.

Does the AVR IDE have similar function or how do I test timing loops in the
AVR IDE environment?

Yes, AVR Studio 4 has both a "cycle counter" and a "stopwatch" in the
processor tree of the workspace debugger window. The stopwatch value can
be reset to zero by the user (the usual right-click popup menu).
 
R

Roy

Jan 1, 1970
0
Thanks - missed that in the first pass :-(
Roy

Rich Webb said:
Yes, AVR Studio 4 has both a "cycle counter" and a "stopwatch" in the
processor tree of the workspace debugger window. The stopwatch value can
be reset to zero by the user (the usual right-click popup menu).
 
S

snidely

Jan 1, 1970
0
Roy said:
I'm new to the AVR chips but have used PIC chips IDE in which they have a
STOPWATCH to test timing of the code.

Does the AVR IDE have similar function or how do I test timing loops in the
AVR IDE environment?

Roy
Well some loops and nops will sometimes do the trick.
Just add up the cycle counts.
 
Top