patchSimulavr: an AVR simulator - Patches: patch #4609, Add Initial ATMega48 Simulator

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #4609: Add Initial ATMega48 Simulator

Submitter:  Michael N. Moran <mnmoran>
Submitted:  Thu 10 Nov 2005 08:09:33 PM UTC
   
 
Category:  feature add Priority:  5 - Normal
Status:  In Progress Privacy:  Public
Assigned to:  zfrdh Open/Closed:  Closed
Component Version:  simulavrxx

Thu 26 Mar 2009 07:05:11 PM UTC, comment #1: 

Updated and committed to cvs head.  atmega48 example does
not run.  Assuming follow up patches will address that.

It should be easier to provide small bug fixes than resubmitting
this patch with minor changes.

Joel Sherrill <joelsherrill>
Group administrator
Thu 10 Nov 2005 08:09:33 PM UTC, original submission:  

This patch builds upon patch #4599, adding support for the ATMega48.

Included in this patch is a examples/atmega48, which contains an AVR program, Makefile, and TCL script that demonstrates the new ATMega48 simulator.

The atmega48.* files were cloned and modified from the atmega128.* files.

To support the ATMega48 ADC6 and ADC7 pins, the HWAdmux class was modified to support two additional/optional analog input pins. Since the ADC6 and ADC7 pins do not belong to a GPIO port (e.g. PORTC), the HWAdmux was modified to work directly with the Pin class instead of the PinAtPort class. This change mandaded minor changes to at4433.cpp and atmega128.cpp since they also use the HWAdmux.

To support the unique properties of the ATMega48 Timer0, the hwmegaextirq.* , hwmegatimer.* , and hwmegax8timerirq.* were copied to the hwmega48extirq.* , hwmegax8timer.* , and hwmegax8timerirq.* respectively, and modified to support the ATMega48.

As of this time, only TIMER zero is supported, and its implementation is only partial.

The main.cpp file was modified to add an option to support the ATMega48 called ... atmega48 ... duh.



Michael N. Moran <mnmoran>

 

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

Attached Files
file #6476:  5.atmega48.patch added by mnmoran (69KiB - application/octet-stream - Initial ATMega48 Support)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joelsherrill (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Updated 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.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-03-26 joelsherrill Open/ClosedOpen Closed
    2009-03-22 joerg_wunsch Component VersionNone simulavrxx
    2006-03-07 zfrdh StatusNone In Progress
        Assigned toNone zfrdh
    2005-11-10 mnmoran Attached File- Added 5.atmega48.patch, #5458

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code