Hi,
You have an other chance to simulate external
interrupts. If you want simulate a keypress for instance you have to create a
file based on fallowing structure
000000100:00
000000110:10
000000300:00
000000310:10
000000110:10
000000300:00
000000310:10
The number on the left hand side of the colon
is the number of processor cycle when the external interrupt occurs It is in
decimal format. The number on the right hand side is the value of the port that
is configured as an input in hexadecimal format. Be careful you need'nt use
0x... prefix in this case!
When stimuli file is created you have to chose Debug>AVR Simulator Options in the
menu (or press Alt+O). First chose the PortX where button is connected then
klick on radio button highlighted "stimuli" then browse your file just created.
Finally klick ADD Entry button.
Further informations in the Help of AVR Studio.
Make a search with keyword "stimuli"
sorry for my English:lauri
Dennis wrote:
> Is there a way to "induce" and external interrupt in the Studio simulator?
> Dennis
>
Sure. Just stop the sim and set the port pin. I.E. INT0 is connected to port
X, bit Y. Expand the I/O port X window and click pin Y. (The actual port# and
bit# depend on what processor you are using - so RTFM.)
If you're debugging assembly, step the sim one, two or three steps and bingo,
you're in the isr routine. If you are debugging C, usually only one step is
needed.
Bruce