Supervisor Mode
3-8
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
The interrupt handler for
IVG15
can be set to jump to the application code
starting address. An additional
RTI
is not required. As a result, the proces-
sor remains in Supervisor mode because
IPEND[15]
remains set. At this
point, the processor is servicing the lowest priority interrupt. This ensures
that higher priority interrupts can be processed.
Example Code for Supervisor Mode Coming Out of Reset
To remain in Supervisor mode when coming out of the Reset state, use
code as shown in
Listing 3-2
.
Listing 3-2. Staying in Supervisor Mode Coming Out of Reset
P0.L = LO(EVT15) ; /* Point to IVG15 in Event Vector Table */
P0.H = HI(EVT15) ;
P1.L = START ; /* Point to start of User code */
P1.H = START ;
[P0] = P1 ; /* Place the address of start code in IVG15 of EVT
*/
P0.L = LO(IMASK) ;
R0 = [P0] ;
R1.L = EVT_IVG15 & 0xFFFF ;
R0 = R0 | R1 ;
[P0] = R0 ; /* Set (enable) IVG15 bit in Interrupt Mask Register
*/
RAISE 15 ; /* Invoke IVG15 interrupt */
P0.L = WAIT_HERE ;
P0.H = WAIT_HERE ;
RETI = P0 ; /* RETI loaded with return address */
Содержание ADSP-BF53x Blackfin
Страница 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 780: ...Product Identification Register 21 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 994: ...Instructions Listed By Operation Code C 194 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...