Yahoo Groups archive

AVR-Chat

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

Thread

simulation problems

simulation problems

2007-01-24 by Thomas Keller

OK.  I am simulating in AVR Studio 4.12, and I have a problem.  My 
code depends on external asynchronus interrupts to work.  how do I 
simulate these in the AVR Studio environment, so I can test the code?

Specifically, I have 4 to 8 Hall effect sensors interrupting on input 
pins on port B, and I need to be able to see if the code does what it 
should when each one interrupts (and sometimes, when multiple, 
sequential interrupts have occurred)   How do I simulate external 
interrupts in AVR STudio (I am coing in assembly, if it matters to anyone).

tom

Re: [AVR-Chat] simulation problems

2007-01-24 by John Samperi

At 09:11 AM 25/01/2007, you wrote:
>How do I simulate external
>interrupts in AVR STudio

The only way I know of is to go to the I/O view and click on
the flag you expect to be set, the next cycle, whether in
single step or run mode will see the flag and start the int
sequence.


Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: [AVR-Chat] simulation problems

2007-01-24 by Bruce Parham

In Studio, go to Debug->AVR Simulator Options. Highlight Stimuli and Logging.
In the Function box, check Stimuli and enter your file name in the, now input,
file box. Check the on-line Tools help under Simulator->Simulator Options for
the required file format. Have fun!

Bruce


Thomas Keller wrote:
Show quoted textHide quoted text
>   OK.  I am simulating in AVR Studio 4.12, and I have a problem.  My 
> code depends on external asynchronus interrupts to work.  how do I 
> simulate these in the AVR Studio environment, so I can test the code?
> 
> Specifically, I have 4 to 8 Hall effect sensors interrupting on input 
> pins on port B, and I need to be able to see if the code does what it 
> should when each one interrupts (and sometimes, when multiple, 
> sequential interrupts have occurred)   How do I simulate external 
> interrupts in AVR STudio (I am coing in assembly, if it matters to anyone).
> 
> tom

Re: [AVR-Chat] simulation problems

2007-01-25 by Thomas Keller

Thanks, Bruce.  That got it.

tom

Bruce Parham wrote:
Show quoted textHide quoted text
>
> In Studio, go to Debug->AVR Simulator Options. Highlight Stimuli and 
> Logging.
> In the Function box, check Stimuli and enter your file name in the, 
> now input,
> file box. Check the on-line Tools help under Simulator->Simulator 
> Options for
> the required file format. Have fun!
>
>

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.