At 12:26 PM 1/09/2005, you wrote:
>If you look at the RET and RETI instructions, the stack operations are the
>same, according to the manual.
Which they are.
>However, the RET does return to the
>instruction following the CALL
Which is correct.
>whereas the RETI returns to the instruction
>at point of interrupt.
Which is incorrect. If I well remember you had
a RJMP LOOP so the next instruction is always
RJMP LOOP...as many of us pointed out...so it
will NEVER go past that point as you expected :-)
>In the case of the RETI, after much debate and RTFM
>bull, you have to use a polled type of interrupt.
You didn't have to. You would only have to change your
code at the RJMP LOOP to do some simple test and then exit
the loop. Again as some of us pointed out :-)
Regards
John Samperi
******************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495 Fax (02) 9674-8745
Email: samperi@ampertronics.com.au
Website http://www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
******************************************************Message
Re: Re: [AVR-Chat] Errors in manuals ...
2005-09-01 by John Samperi
Attachments
- No local attachments were found for this message.