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.
Message
Re: [AVR-Chat] 3 debugging questions
2004-12-21 by David Kelly
Attachments
- No local attachments were found for this message.