avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] (Fwd) WinAVR 20030424


From: E. Weddington
Subject: Re: [avr-libc-dev] (Fwd) WinAVR 20030424
Date: Mon, 05 May 2003 10:54:24 -0600

On 3 May 2003 at 13:00, Marek Michalkiewicz wrote:

> On Sat, May 03, 2003 at 09:55:35AM +0200, Joerg Wunsch wrote:
> > > 2. The vectors of the AT86RF401 are 2 word vectors ( requires JMP,
> > > rather than RJMP) like the newer mega devices, even tho there
> > > would never be a requirement to address beyond the range of an
> > > rjmp :)
> > 
> > No idea about this...
> 
> I think this can be fixed by inserting two dummy interrupt vectors (1
> and 3) between the real ones, like this:
> 
> #define SIG_TXDONE _VECTOR(2)
> #define SIG_TXBE   _VECTOR(4)
> 
> #define _VECTORS_SIZE 10
> 
> The datasheet clearly says that reset must be JMP or RJMP, and that
> SIG_TXBE handler can start directly at address 8 (word 4), so using
> RJMP there should be safe.
> 
> Marek


Do you mean *replacing* this (in the current file):

#define SIG_TXDONE              _VECTOR(1)
#define SIG_TXBE                     _VECTOR(2)

#define _VECTORS_SIZE 6


With your new definitions above?

Eric




reply via email to

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