Can you simulate more more Ram that the chip has?

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

I know that this I kind of odd. But what I want to do is to simulate some code on a tiny13, and for some data output I would like to make a extra 2K ram output buffer my "hacked" output can write to.
I would like to avoid to use an other AVR for the simulation if I can.
Are there a way to do that?

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

You can try finding the iotn13.h file and changing the value of RAMEND if you are using avr-gcc.

There are also settings in Atmel\AVR Tools\Partdescriptionfiles\ATtiny13.xml

Regards,
Steve A.

The Board helps those that help themselves.

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

Thanks it worked with the xml file
I had tryed the def in the ASM part but the def did not work
And it would not work with 2k of extern RAM
but now I have 2K normal RAM starting at 0x60

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

But I'm stupid.
One of the reasons to keep the simulation in a TINY13 and not simulate on a bigger AVR was that LD and ST on a tiny13 only is 8 bit(XH, YH ZH are not used), but as soon I gave the tiny13 more RAM they became 16 bit :(