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
[EMAIL PROTECTED]
_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat