script ".stim" for interruptions with Studio7

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello…

 

To simulate an interruption with Avrstudio 7 (Version 7.0.2397) , I work with this:

 

https://www.codeproject.com/tips/1107908/introduction-to-simulate-external-interrupts-using

 

The example works (flip-flop on PIND2), but I want to adapt it to my program (written in assembler).

 

But the author does not say how to write a ".stim" script. How to adapt it? With what language? Is there a written tutorial (not spoken like youtube) from for that?

 

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello, and Welcome to AVR Freaks!

 

I believe you will find some information in the AS7 Help. As I recall, it is well hidden.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

Last Edited: Sat. Jun 27, 2020 - 07:54 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's a Post I wrote on this a little while ago:

Stimulus File Description/Definiton

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello and thank you

 

The AS7 documentation encourages listening to oral explanations that are not worth good written documentation, and I found nothing on the ".stim" scripts.

 

I am going to look at the “Help viewer” which seems to contain what I am looking for, after having loaded the documentation which is absent on my site.

 

The simulation with Studio 4 was much easier, but “why make it simple when you can make it complicated” as the Shadocks say. But after learning, working with scripts should be that easy. I have to change my habits.

 

Excuse me if my english is bad, it's not my native language ...

 

Thanks again

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

abra.xx wrote:
The simulation with Studio 4 was much easier

I stand to be corrected but from a user's point-of-view (I.e. Internal interfaces excepted); Simulator in Atmel Studio7 is exactly Simulator2 in AVRStudio4 without change.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Not exactly.

 

For example, in "Debug" + "I / O", it was possible to display several functions: an 'I / O Port "and' Externals Interrupts' and a 'Timer / Counter' which was very convenient ....
Now only one, the others successively. And to simulate INT0 it was enough to document the corresponding pin ...

 

Maybe a display setting should be changed?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

abra.xx wrote:
For example, in "Debug" + "I / O"

That isn't anything to do with the Simulator that's a Debugger View.

 

abra.xx wrote:
it was possible to display several functions: an 'I / O Port "and' Externals Interrupts' and a 'Timer / Counter' which was very convenient

You're right here. I believe the whole IO View is a bad/broken UI.

 

In AVR-Studio4 every peripheral had a sub-tree which showed the register values associated with that peripheral. In Studio7 only peripherals with a configuration aspect like a TIMER for example get a sub-tree. Several peripherals like EEPROM and the GPIO do not. This means that to inspect their register contents you must toggle open the register view pane.

 

Those Toggle Buttons for Peripheral Select and Register View as carry-overs from AVR-Studio4 no longer make much sense. Now if we could create multiple IO-View windows that would be a work-round.

 

Last Edited: Sun. Jun 28, 2020 - 01:54 PM