Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] 3 debugging questions

2004-12-20 by Russell Shaw

wbounce wrote:
> I am using a 128 with WINAVR producing a dwarf2 and using avrstudio 4.1
> for debugging.  
> I use timer0 with a SIGNAL routine in most of the programs I have
> written to provide a 1 ms timer. 
> 
> When I debug my code I have problems with delays. I have a function
> called delay that does this
> 
> cli();
> ms_count = 0;
> sei();
> while (ms_count< pnDelay)
> 	;
> 
> Even small values for pnDelay take a long time in the simulator.  Is
> there some setting in AVR Studio that affects this?

The simulator runs much slower than real hardware, so you'll need to
use a smaller count or comment it out.

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.