He may not be talking about the beginning of the entire program but, say, the beginning of an infinite loop that was broken by the interrupt and then returning to the beginning of that loop. Dennis ----- Original Message ----- From: "Don AE5K" <don@ae5k.us> To: <AVR-Chat@yahoogroups.com> Sent: Monday, January 02, 2006 12:01 PM Subject: Re: Re: [AVR-Chat] Interrupt routine > James Washer wrote: >> when you say "start from the beginning", are you saying you want a FULL >> RESET? >> >> If so, you'd need to build and trigger an external reset hardware, or >> enable the watchdog timer and then just spin until a watchdog reset >> occurs. >> >> - jim >> >> On Mon, 2 Jan 2006 04:19:44 -0800 (PST) >> Moataz Hussein <husseinmoataz@yahoo.com> wrote: >> >> >>>I am working on a test project on AVR 1200, I have a question regarding >>>the external interrupt. I understand that after the interrupt occurs the >>>interrupt handling routine is called, after it is finished the program >>>goes back to where it has stopped. >>> >>> I have a question: >>> >>> Is it possible and how to; After the interrupt handling routine is >>> completed. Can the program starts from the begining not where it stopped >>> when the interrupt routine was called. >>> >>> Thank for help. >>> > > All you need to do is to jump to the beginning of your program at the > end of the interrupt service routine instead of using the usual RETI > (return from interrupt) instruction. Of course, this depends on how you > initialize things too -- if you start out your program from reset and do > not assume anything is initialized and do the full initialization of > everything, then you should be OK. Just beware of the state of the > interrupt enable. All this is predicated on using assembly language and > not C. > > Don > > -- > Confidence is the feeling you have before you really understand the > problem. > > > > > Yahoo! Groups Links > > > > > > >
Message
Re: Re: [AVR-Chat] Interrupt routine
2006-01-02 by Dennis
Attachments
- No local attachments were found for this message.