EasyManua.ls Logo

Texas Instruments TMS320C28x - Code to Clear the IFR Register; Code to Enable an Interrupt; D.4.3 Context Save;Restore

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...
Code Examples
Table D3. Code to Enable an Interrupt
C2xLP C28x
SETC INTM
LDP #0
LACL IMR
OR #INTx
SACL IMR
CLRC INTM
OR IER,#INTx
;operation is atomic and
;will not be interrupted.
Table D4. Code to Clear the IFR Register
C2xLP C28x
;write 1 to clear
SETC INTM
LDP #0
SPLK #0FFFFh,IFR
CLRC INTM
;write 0 to clear
AND IFR,#~INTx
;operation is atomic and
;will not be interrupted
D.4.3 Context Save/Restore
The C28x automatically saves a number of registers on each interrupt. To per-
form a full context save, some additional code must be added. Table D5
shows a typical full context save and restore for both processors.

Table of Contents

Related product manuals