helpSimulavr: an AVR simulator - Support: sr #108815, added support for attiny4313

 
 

sr #108815: added support for attiny4313

Submitted by:  rjp <james123>
Submitted on:  Tue 12 May 2015 12:28:10 PM UTC  
 
Category: featuresPriority: 5 - Normal
Severity: 1 - WishStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenComponent Version: simulavr
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 10 Oct 2015 07:25:55 PM UTC, comment #1:

As no one else commented on this yet:

Looks good, but I think it would be great to make it a ATtinyx313 parametrizable MCU model like it is done for the 25/45/85 variants - so that code duplication can be avoided.

Cheers,

Onno

Onno Kortmann <onnokort>
Project Member
Tue 12 May 2015 12:28:10 PM UTC, original submission:

Hi,

First I want to thank all of those who have contributed to make this simulator. It is a great tool!

I am not sure if this makes sense to you or not, but I have tinkered with Simulavr 1.1dev and added files to support the ATTINY4313. I believe it is functioning OK as I basically took the ATTINY2313 files and augmented them for the increased memory. I know there are some other slight differences in terms of the registers (for example PCINT now has PCINT0, PCINT1 and PCINT2 on ATTINY2313a and ATTINY4313) but I am not sure how to augment them. Also for the stack I increased the 8 to 16 as I was not able to flash my program properly. I am not sure if 16 is the right value but 8 was too small :-) (stack = new HWStackSram(this, 16);).

As you can tell by this point, I am a novice and probably know just enough to get myself into trouble.

My variant of attiny4313 seems to simulate my program well enough, but I certainly know that it would be great to have someone knowledgeable look at my attempt and correct it for the register changes, etc.

Thanks,
James

rjp <james123>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #33985:  attiny4313.cpp added by james123 (7KiB - text/plain - here are my files...)
file #33986:  attiny4313.h added by james123 (3KiB - text/plain - here are my files...)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by onnokort (Posted a comment)
  • -unavailable- added by james123 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 12 May 2015 12:28:10 PM UTCjames123Attached File-=>Added attiny4313.cpp, #33985
      Attached File-=>Added attiny4313.h, #33986

    Back to the top


    Powered by Savane 3.1-cleanup1