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.
Message
Re: [AVR-Chat] 3 debugging questions
2004-12-20 by Russell Shaw