[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] (Fwd) WinAVR 20030424
From: |
Marek Michalkiewicz |
Subject: |
Re: [avr-libc-dev] (Fwd) WinAVR 20030424 |
Date: |
Sat, 3 May 2003 13:00:36 +0200 |
User-agent: |
Mutt/1.4i |
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