Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Stack

2004-12-23 by Paul Maddox

Dave,

> What's the chip??

sorry, I should've said.

MEga16

> What's your vector table look like?

fairly straight forward ;-
.ORG RESET
  RJMP INIT

.ORG INT0addr
  RJMP READPORTS

.ORG INT1addr
  RJMP SYNC

> I've seen some systems that only partially fill the vector table, but I
> really get squeamish at that.
> I prefer a full table, with at least RETI's on the unused ints, and
ideally
> a little code to turn them off in case they get accidentally turned on..

Hmmm, worth a go.

> Put that in your template for a given processor, and then just populate
the
> ones you want.  If you get pushed for space, then sacrifice the turnoffs
> for RETI's again.

Thanks, I'll take a look

Paul

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.