DSPRelated.com
Forums

Basic doubt

Started by ANAND September 29, 2004
Hello all
I am a fresher to the Blackfin family.(working on
BF535)
can anybody please guide me,under what all contexts
the instruction RTI is used.please give me a clear
idea of the use of instruction "rti" concerned with
supervisor mode and user mode.Please accept advanced
thanks

Waiting for your reply soon
Anand



On Wed, 29 Sep 2004, ANAND wrote:

> Hello all
> I am a fresher to the Blackfin family.(working on
> BF535)
> can anybody please guide me,under what all contexts
> the instruction RTI is used.please give me a clear
> idea of the use of instruction "rti" concerned with
> supervisor mode and user mode.Please accept advanced
> thanks

rti means "return from interrupt". You use it at the end of an interrupt
subroutine because it pops more stuff from the stack than rts. It had
better generate an exception if it gets used in user mode, interrupts are
always automaticly in supervisor mode. An exception is another interrupt,
so if you're going to halt the machine with multiple exceptions, you won't
get a lot done. Try reading the manual about excpetion processing and
interrupts as well as the registers associated with those processes.

Patience, persistence, truth,
Dr. mike