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

 
 

sr #108815: added support for attiny4313

Submitter:  rjp <james123>
Submitted:  Tue 12 May 2015 12:28:10 PM UTC
   
 
Category:  features Priority:  5 - Normal
Severity:  1 - Wish Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Component Version:  * simulavr
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 Files:
   
   
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
  • -email is unavailable- added by onnokort (Posted a comment)
  • -email is unavailable- added by james123 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-12 james123 Attached File- Added attiny4313.cpp, #33985
        Attached File- Added attiny4313.h, #33986

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code