Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] 3 debugging questions

2004-12-21 by David Kelly

On Dec 19, 2004, at 11:06 PM, wbounce wrote:
>
> Even small values for pnDelay take a long time in the simulator.  Is
> there some setting in AVR Studio that affects this?

I remember looking and not finding a way to set the timer0 clock 
frequency different than the main CPU clock in the simulator. Thought 
it would be nice to have a 32kHz clock in the simulator the way my real 
hardware would.

So while playing in the simulator I moved the timer0 clock back to he 
main CPU and set the divisor so that it ran very fast.

Another way to deal with it is to set breakpoints at the places you are 
interested in seeing. Then let the simulator run at its full speed 
until it gets there.

Another way to say it is, "Learn to choose your battles. Only debug 
broken or suspect code."  :-)  (as if it were that easy)

--
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.