EasyManua.ls Logo

Texas Instruments TMS320C28x - Page 275

Texas Instruments TMS320C28x
695 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
IRET
6-118
Example
; Full interrupt context Save and Restore:
; Vector table:
INTx: .long INTxService ; INTx interrupt vector
.
.
.
; Interrupt context save:
INTxService: ; ACC, P, T, ST0, ST1, DP, AR0,
; AR1, IER, DPGSTAT registers saved
; on stack.
; Return PC saved on stack.
; IER bit corresponding to INTx
; is disabled.
; ST1(EALLOW bit = 0).
; ST1(LOOP bit = 0).
; ST1(DBGM bit = 1).
; ST1(INTM bit = 1).
PUSH AR1H:AR0H ; Save remaining registers.
PUSH XAR2
PUSH XAR3
PUSH XAR4
PUSH XAR5
PUSH XAR6
PUSH XAR7
PUSH XT
; Interrupt user code:
.
.
.
; Interrupt context restore:
POP XT ; Restore registers.
POP XAR7
POP XAR6
POP XAR5
POP XAR4
POP XAR3
POP XAR2
POP AR1H:AR0H
IRET ; Return from interrupt.

Table of Contents

Related product manuals