EasyManuals Logo

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
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
Page #67 background imageLoading...
Page #67 background image
Interrupts
C2000 Microcontroller Workshop - Reset and Interrupts 4 - 11
Interrupt Flag Register (IFR)
Interrupt Flag Register (IFR)
RTOSINT DLOGINT INT14 INT13
INT12 INT11
INT10 INT9
8
9
10
11
121314
15
INT8 INT7 INT6 INT5 INT4 INT3 INT2 INT1
0
1
2
3
456
7
Pending : IFR
Bit
= 1
Absent : IFR
Bit
= 0
Compiler generates atomic instructions (non-interruptible) for setting/clearing IFR
If interrupt occurs when writing IFR, interrupt has priority
IFR(bit) cleared when interrupt is acknowledged by CPU
Register cleared on reset
/*** Manual setting/clearing IFR ***/
extern cregister volatile unsigned int IFR;
IFR |= 0x0008; //set INT4 in IFR
IFR &= 0xFFF7; //clear INT4 in IFR
Interrupt Enable Register (IER)
Interrupt Enable Register (IER)
RTOSINT DLOGINT INT14
INT13
INT12 INT11 INT10
INT9
8
9
10
11
121314
15
INT8 INT7 INT6 INT5 INT4 INT3 INT2 INT1
0
1
2
3
456
7
Enable: Set IER
Bit
= 1
Disable: Clear IER
Bit
= 0
Compiler generates atomic instructions (non-interruptible)
for setting/clearing IER
Register cleared on reset
/*** Interrupt Enable Register ***/
extern cregister volatile unsigned int IER;
IER |= 0x0008; //enable INT4 in IER
IER &= 0xFFF7; //disable INT4 in IER

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C2000 and is the answer not in the manual?

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals