Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: Any way to make interrupts faster, please?

2010-01-20 by Don Kinzer

>I suppose only the Rxx that are inside the ISR in the lss
>file need savin'
That is clearly true.  The problem is, however, that you can't guarantee that some future version of the compiler won't use different registers compared to the one you're using now.  Even with the same version of the compiler, if you build your application for a different AVR the registers used might change.  These are clearly "accidents waiting to happen" and you can probably count on them happening at the most inopportune time.

In situations like this I would highly recommend moving the entire ISR to a .S file where you'll have complete control and the assurance of no surprises in the future.

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.