EasyManua.ls Logo

Texas Instruments C28 Series

Texas Instruments C28 Series
342 pages
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...
Accessing Interrupts / Status Register
Accessing Interrupts / Status Register
Accessing Interrupts / Status Register
Accessing Interrupts / Status Register
Initialize via C :
Initialize via C :
extern
extern
cregister
cregister
volatile unsigned
volatile unsigned
int
int
IFR;
IFR;
extern
extern
cregister
cregister
volatile unsigned
volatile unsigned
int
int
IER;
IER;
. . .
. . .
IER &= ~Mask;
IER &= ~Mask;
//clear desired bits
//clear desired bits
IER |= Mask;
IER |= Mask;
//set desired bits
//set desired bits
IFR = 0x0000;
IFR = 0x0000;
//clear prior interrupts
//clear prior interrupts
Interrupt Enable & Interrupt Flag Registers (IER, IFR) are not
Interrupt Enable & Interrupt Flag Registers (IER, IFR) are not
memory mapped
memory mapped
Only limited instructions can access IER & IFR (more in interrup
Only limited instructions can access IER & IFR (more in interrup
t
t
chapter)
chapter)
The compiler provides extern variables for accessing the IER & I
The compiler provides extern variables for accessing the IER & I
FR
FR
D- 6 C28x – C Programming

Table of Contents

Other manuals for Texas Instruments C28 Series

Related product manuals