Yahoo Groups archive

AVR-Chat

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

Thread

AVRstudio simulator bug feedback & software interrupts

AVRstudio simulator bug feedback & software interrupts

2005-04-28 by arhodes19044

I sent a sample code of the ATmega128 TC1 timer bug I had mentioned 
here a week ago.  They got back to me confirming that they 
reproduced the error.  It will not be able to be fixed in the 
upcoming update, but will be addressed in the future.

It is odd that the bug is there because the 103 simulator works 
perfectly regarding this operation.  Since the 128 is so similar to 
the 103 (?), I would have thought that they would have just taken 
the functioning 103 simulator and then modify only certain necessary 
parts.

------------

Anyway, Another question.  Are there known issues with the 
simulation of "software" interrupts?

I have TC1 running as a millisecond timer, it will update a couple 
of counters, and then if 1000ms have passed it is supposed to 
generate a "software" interrupt.  External interrupt 4 is used with 
rising edge.  The pin is configured as input with no pull-up.   I 
have a pull-down 10k resistor to ground on the pin.  The timer 
interrupt sets the pull-up on INT4's pin, and then resets the pull-
up.  No INT4 flag got set.

I thought that maybe I did not leave the pin high long enough.  I 
then inserted an instruction to wait until the flag gets set.  No 
setting of the flag happened in the simulator.  [I have the actual 
atmega128 device running in a long-term timer calibration, so it is 
not available to me for a couple of days].

So, either I am doing something wrong [likely], or the simulator has 
a bug [not unlikely].  Any known issues here?

-Tony

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.