Interrupts
4 - 14 TMS320F2837xD Microcontroller Workshop - Reset and Interrupts
Interrupt Global Mask Bit (INTM)
Interrupt Global Mask Bit
INTM used to globally enable/disable interrupts:
Enable: INTM = 0
Disable: INTM = 1 (reset value)
INTM modified from assembly code only:
INTM
ST1
Bit 0
/*** Global Interrupts ***/
asm(“ CLRC INTM”); //enable global interrupts
asm(“ SETC INTM”); //disable global interrupts
Peripheral Interrupt Expansion (PIE)
Peripheral Interrupt Expansion - PIE
IFR
IER
INTM
28x
Core
Core Interrupt logic
PIE module for 192 Interrupts
INT1.y interrupt group
INT2.y interrupt group
INT3.y interrupt group
INT4.y interrupt group
INT5.y interrupt group
INT6.y interrupt group
INT7.y interrupt group
INT8.y interrupt group
INT9.y interrupt group
INT10.y interrupt group
INT11.y interrupt group
INT12.y interrupt group
INT1 – INT12
12 Interrupts
192
INT1.1
INT1.2
INT1.16
1
0
1
•
•
•
•
•
•
INT1
PIEIFR1 PIEIER1
Interrupt Group 1
(TINT1)
(TINT2)
INT13
INT14
NMI
Peripheral Interrupts 12 x 16 = 192
The C28x CPU core has a total of fourteen interrupt lines, of which two interrupt lines are directly
connected to CPU Timers 1 and 2 (on INT13 and INT14, respectively) and the remaining twelve