Yahoo Groups archive

AVR-Chat

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

Thread

Sudio simulator

Sudio simulator

2005-08-26 by Dennis

Is there a way to "induce" and external interrupt in the Studio simulator?
Dennis

Re: [AVR-Chat] Sudio simulator

2005-08-27 by Bruce Parham

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

Re: [AVR-Chat] Sudio simulator

2005-08-27 by Laurinyecz Zoltán

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
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

Show quoted textHide quoted text
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

Re: [AVR-Chat] Sudio simulator

2005-08-28 by Dennis

OK ace. did that. What about the timers. Set the T1 overflow bit and it just 
kept cycling. Lance at his best. Are the timers special.
D
----- Original Message ----- 
Show quoted textHide quoted text
From: "Bruce Parham" <obparham@jpl.nasa.gov>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, August 26, 2005 7:10 PM
Subject: Re: [AVR-Chat] Sudio simulator


> 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
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

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.