simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] Adding ATmega1281


From: Marius Monton
Subject: Re: [Simulavr-devel] Adding ATmega1281
Date: Tue, 31 Jan 2012 15:40:15 +0100

On Tue, Jan 31, 2012 at 1:19 PM, Petr Hluzín <address@hidden> wrote:

> On 31 January 2012 11:21, Marius Monton <address@hidden> wrote:
> > Hi,
> >
> > I'm adding ATmega1281 to simulavr. Currently I've mapped I/O pins and
> > instantiate some of the perihperals, but I have some doubts about Timers
> > and how to connect them. There's some documentation available about that?
> > I'm open to send to the list or to main developer my code to be added to
> > the main project if it is good enough :)
>
> I guess ATmega1281 will be similar to ATmega128. Application note
> AVR097 says: "ATmega128 and ATmega1281/2561 are designed to be a pin
> and functionality compatible sub family.". The appnote also says that
> TIMSK register changed for timers 1 and 3 and that timers 0 and 2 are
> completely swapped (I guess those guys at Atmel were smoking pot at
> the time), see Timers chapter. There is no documentation on how to add
> a device support in general or how to add timer support in particular.
>

There's issues about "ExternalIRQHandler" and PrescalerMultiplexer that
currently I don't understand and I can't see how to change that piece of
code simulate the atmega1281.


> I did tinker around peripheral creation before, I think I can add
> timers to a device.
>
> Either send the files to the list or create a new entry in savannah
> patch tracker. I suppose you did not need to patch other files.
>
> I only created two new files (atmega1281.h and atmega1281.cpp), I'll clean
up the code and I'll send to the list.

Màrius

> --
> Petr Hluzin
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]