Page 1 of 1

Interrupts

Posted: Wed Sep 12, 2007 6:48 am
by samlii
I was wondering if there was a technical reason for only using interrupt0? For a design I am thinking about I was going to put it at interrupt2.

Interrupt2 on the 8515 (my target chip) is an edge interrupt only, will this mess up the interrupts USB is trying to take advantage of?

Re: Interrupts

Posted: Wed Sep 12, 2007 11:56 am
by vobs
The code will work with Int2 (I've done that with an Mega162).
But beware: Int0 and Int1 have a higher priority than Int2. This might cause some problems, when using these Interrups.

Are you sure that the 8515 has an Int2? Or do you mean the Mega 8515?

Posted: Wed Sep 12, 2007 6:26 pm
by christian
Please also note that you need the most recent version (2007-08-07) of AVR-USB. Older versions had the interrupt vector hardcoded in the assembler modules.

Posted: Wed Sep 12, 2007 8:59 pm
by butrus.butrus
christian wrote:Please also note that you need the most recent version (2007-08-07) of AVR-USB. Older versions had the interrupt vector hardcoded in the assembler modules.


Is that the one, that comes with the latest AVR-Dopper? BTW, wouldn't it be possible to have releases just for AVR-USB (or even better to use SVN or simillar system)?

Thanks!

Posted: Wed Sep 12, 2007 9:05 pm
by christian
Yes, AVR-Doper ships with the latest library (as the version indicates).

If you want just AVR-USB, please download PowerSwitch. We prefer to ship a working example because that saves a lot of questions about how the library should be used.

Posted: Thu Sep 13, 2007 4:16 am
by samlii
Oh I see it now in the new version ;) Seems to make sense, thanks guys for thinking of us all.

Yes it is a mega8515, sorry about any confusion.