EasyManuals Logo

Texas Instruments TMS320C28x User Manual

Texas Instruments TMS320C28x
695 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 #87 background imageLoading...
Page #87 background image
Maskable Interrupts: INT1INT14, DLOGINT, and RTOSINT
3-7CPU 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 32. 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)
Figure 31 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 31. Interrupt Flag Register (IFR)
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
15
ÁÁÁÁÁ
ÁÁÁÁÁ
14
ÁÁÁÁ
ÁÁÁÁ
13
ÁÁÁÁÁ
ÁÁÁÁÁ
12
ÁÁÁÁ
ÁÁÁÁ
11
ÁÁÁÁ
ÁÁÁÁ
10
ÁÁÁÁÁ
ÁÁÁÁÁ
9
ÁÁÁÁ
ÁÁÁÁ
8
ÁÁ
ÁÁ
Á
Á
RTOSINT
ÁÁÁÁÁ
ÁÁÁÁÁ
DLOGINT
ÁÁÁÁ
ÁÁÁÁ
INT14
ÁÁÁÁÁ
ÁÁÁÁÁ
INT13
ÁÁÁÁ
ÁÁÁÁ
INT12
ÁÁÁÁ
ÁÁÁÁ
INT11
ÁÁÁÁÁ
ÁÁÁÁÁ
INT10
ÁÁÁÁ
ÁÁÁÁ
INT9
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W0
ÁÁÁÁ
ÁÁÁÁ
R/W0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W0
ÁÁÁÁ
ÁÁÁÁ
R/W0
ÁÁÁÁ
ÁÁÁÁ
R/W0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W0
ÁÁÁÁ
ÁÁÁÁ
R/W0
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
7
ÁÁÁÁÁ
ÁÁÁÁÁ
6
ÁÁÁÁ
ÁÁÁÁ
5
ÁÁÁÁÁ
ÁÁÁÁÁ
4
ÁÁÁÁ
ÁÁÁÁ
3
ÁÁÁÁ
ÁÁÁÁ
2
ÁÁÁÁÁ
ÁÁÁÁÁ
1
ÁÁÁÁ
ÁÁÁÁ
0
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
INT8
ÁÁÁÁÁ
ÁÁÁÁÁ
INT7
ÁÁÁÁ
ÁÁÁÁ
INT6
ÁÁÁÁÁ
ÁÁÁÁÁ
INT5
ÁÁÁÁ
ÁÁÁÁ
INT4
ÁÁÁÁ
ÁÁÁÁ
INT3
ÁÁÁÁÁ
ÁÁÁÁÁ
INT2
ÁÁÁÁ
ÁÁÁÁ
INT1
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W0
ÁÁÁÁ
ÁÁÁÁ
R/W0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W0
ÁÁÁÁ
ÁÁÁÁ
R/W0
ÁÁÁÁ
ÁÁÁÁ
R/W0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W0
ÁÁÁÁ
ÁÁÁÁ
R/W0
ÁÁ
ÁÁ
Á
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Note: R = Read access; W = Write access; value following dash () is value after reset.
ÁÁ
ÁÁ

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments TMS320C28x Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320C28x
CategoryProcessor
LanguageEnglish

Related product manuals