[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] iom128.h vector table mismatch
From: |
Ned Konz |
Subject: |
Re: [avr-chat] iom128.h vector table mismatch |
Date: |
Sun, 5 Feb 2006 20:27:36 -0800 |
On Feb 5, 2006, at 7:05 PM, Aly El-Osery wrote:
The vector table in avr/iom128.h seems to be different from what is
listed on page 57 of the atmega128L data sheet
http://www.atmel.com/dyn/resources/prod_documents/doc2467.pdf
For example
In iom128.h
#define SIG_INPUT_CAPTURE3 _VECTOR(25)
while in the data sheet input capture 3 is vector number 26 not 25.
In know I am probably missing something but I can't figure it out.
Please help.
Thanks
The numbering in the datasheet is 1-relative; the vector numbering in
avr-libc is 0-relative. Hence the "off by 1" you're seeing.
That is, vector 0 is reset, but shows up as vector 1 in the datasheet.
--
Ned Konz
address@hidden