Interrupt Sources
Interrupt Flag Register (IFR)
Interrupt Flag Register (IFR)
RTOSINT
RTOSINT
DLOGINT
DLOGINT
INT14
INT14
INT13
INT13
INT12
INT12
INT11
INT11
INT10
INT10
INT9
INT9
8
8
9
9
10
10
11
11
12
12
13
13
14
14
15
15
INT8
INT8
INT7
INT7
INT6
INT6
INT5
INT5
INT4
INT4
INT3
INT3
INT2
INT2
INT1
INT1
0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
Pending :
Pending :
IFR
IFR
Bit
Bit
= 1
= 1
Absent :
Absent :
IFR
IFR
Bit
Bit
= 0
= 0
Compiler generates atomic instructions (non
Compiler generates atomic instructions (non
-
-
interruptible) for setting/clearing IFR
interruptible) for setting/clearing IFR
If interrupt occurs when writing IFR, interrupt has priority
If interrupt occurs when writing IFR, interrupt has priority
IFR(bit) cleared when interrupt is acknowledged by CPU
IFR(bit) cleared when interrupt is acknowledged by CPU
Register cleared on reset
Register cleared on reset
/*** Manual setting/clearing IFR ***/
/*** Manual setting/clearing IFR ***/
extern
extern
cregister
cregister
volatile unsigned
volatile unsigned
int
int
IFR;
IFR;
IFR |= 0x0008;
IFR |= 0x0008;
//set INT4 in IFR
//set INT4 in IFR
IFR &= 0xFFF7;
IFR &= 0xFFF7;
//clear INT4 in IFR
//clear INT4 in IFR
Interrupt Enable Register (IER)
Interrupt Enable Register (IER)
RTOSINT
RTOSINT
DLOGINT
DLOGINT
INT14
INT14
INT13
INT13
INT12
INT12
INT11
INT11
INT10
INT10
INT9
INT9
8
8
9
9
10
10
11
11
12
12
13
13
14
14
15
15
INT8
INT8
INT7
INT7
INT6
INT6
INT5
INT5
INT4
INT4
INT3
INT3
INT2
INT2
INT1
INT1
0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
Enable: Set IER
Enable: Set IER
Bit
Bit
= 1
= 1
Disable: Clear IER
Disable: Clear IER
Bit
Bit
= 0
= 0
Compiler generates atomic instructions (non
Compiler generates atomic instructions (non
-
-
interruptible)
interruptible)
for setting/clearing IER
for setting/clearing IER
Register cleared on reset
Register cleared on reset
/*** Interrupt Enable Register ***/
/*** Interrupt Enable Register ***/
extern
extern
cregister
cregister
volatile unsigned
volatile unsigned
int
int
IER;
IER;
IER |= 0x0008;
IER |= 0x0008;
//enable INT4 in IER
//enable INT4 in IER
IER &= 0xFFF7;
IER &= 0xFFF7;
//disable INT4 in IER
//disable INT4 in IER
4 - 8
C28x - Reset and Interrupts
Summary of Contents for C28 Series
Page 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Page 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Page 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Page 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Page 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Page 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Page 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Page 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Page 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Page 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...