Maskable Interrupts: INT1
−
INT14, DLOGINT, and RTOSINT
3-7
CPU Interrupts and Reset
Once an interrupt has been requested and properly enabled, the CPU pre-
pares for and then executes the corresponding interrupt service routine. For
a detailed description of this process, see section 3.4.
Table 3
−
2. Requirements for Enabling a Maskable Interrupt
Interrupt-Handling Process
Interrupt Enabled If ...
Standard
INTM = 0 and bit in IER is 1
DSP in real-time mode and CPU halted
Bit in IER is 1 and bit in DBGIER is 1
As an example of varying interrupt-enable requirements, suppose you want
interrupt INT5 enabled. This corresponds to bit 4 in the IER and bit 4 in the
DBGIER. Usually, INT5 is enabled if INTM = 0 and IER(4) = 1. In real-time
emulation mode with the CPU halted, INT5 is enabled if IER(4) = 1 and
DBGIER(4) = 1.
3.3.1 CPU Interrupt Flag Register (IFR)
1 shows the IFR. If a maskable interrupt is pending (waiting for ap-
proval from the CPU), the corresponding IFR bit is 1; otherwise, the IFR bit is
0. To identify pending interrupts, use the PUSH IFR instruction and then test
the value on the stack. Use the OR IFR instruction to set IFR bits, and use the
AND IFR instruction to clear pending interrupts. When a hardware interrupt is
serviced, or when an INTR instruction is executed, the corresponding IFR bit
is cleared. All pending interrupts are cleared by the AND IFR, #0 instruction
or by a hardware reset.
Notes:
When an interrupt is requested by the TRAP instruction, if the corresponding
IFR bit is set, the CPU does not clear it automatically. If an application re-
quires that the IFR bit be cleared, the bit must be cleared in the interrupt ser-
vice routine.
Figure 3
−
1. Interrupt Flag Register (IFR)
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
15
ÁÁÁÁÁ
ÁÁÁÁÁ
14
ÁÁÁÁ
ÁÁÁÁ
13
ÁÁÁÁÁ
ÁÁÁÁÁ
12
ÁÁÁÁ
ÁÁÁÁ
11
ÁÁÁÁ
ÁÁÁÁ
10
ÁÁÁÁÁ
ÁÁÁÁÁ
9
ÁÁÁÁ
ÁÁÁÁ
8
ÁÁ
ÁÁ
Á
Á
RTOSINT
ÁÁÁÁÁ
ÁÁÁÁÁ
DLOGINT
ÁÁÁÁ
ÁÁÁÁ
INT14
ÁÁÁÁÁ
ÁÁÁÁÁ
INT13
ÁÁÁÁ
ÁÁÁÁ
INT12
ÁÁÁÁ
ÁÁÁÁ
INT11
ÁÁÁÁÁ
ÁÁÁÁÁ
INT10
ÁÁÁÁ
ÁÁÁÁ
INT9
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W
−
0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W
−
0
ÁÁÁÁ
ÁÁÁÁ
R/W
−
0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W
−
0
ÁÁÁÁ
ÁÁÁÁ
R/W
−
0
ÁÁÁÁ
ÁÁÁÁ
R/W
−
0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W
−
0
ÁÁÁÁ
ÁÁÁÁ
R/W
−
0
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
7
ÁÁÁÁÁ
ÁÁÁÁÁ
6
ÁÁÁÁ
ÁÁÁÁ
5
ÁÁÁÁÁ
ÁÁÁÁÁ
4
ÁÁÁÁ
ÁÁÁÁ
3
ÁÁÁÁ
ÁÁÁÁ
2
ÁÁÁÁÁ
ÁÁÁÁÁ
1
ÁÁÁÁ
ÁÁÁÁ
0
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
INT8
ÁÁÁÁÁ
ÁÁÁÁÁ
INT7
ÁÁÁÁ
ÁÁÁÁ
INT6
ÁÁÁÁÁ
ÁÁÁÁÁ
INT5
ÁÁÁÁ
ÁÁÁÁ
INT4
ÁÁÁÁ
ÁÁÁÁ
INT3
ÁÁÁÁÁ
ÁÁÁÁÁ
INT2
ÁÁÁÁ
ÁÁÁÁ
INT1
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W
−
0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W
−
0
ÁÁÁÁ
ÁÁÁÁ
R/W
−
0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W
−
0
ÁÁÁÁ
ÁÁÁÁ
R/W
−
0
ÁÁÁÁ
ÁÁÁÁ
R/W
−
0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W
−
0
ÁÁÁÁ
ÁÁÁÁ
R/W
−
0
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Note:
R = Read access; W = Write access; value following dash (
−
) is value after reset.
ÁÁ
ÁÁ
Summary of Contents for TMS320C28x
Page 30: ...1 12...
Page 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Page 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Page 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Page 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Page 585: ...This page intentionally left blank 7 32 This page intentionally left blank...