6The TMS320C66x interrupts
6.1 Introduction
As with most microprocessors, the TMS320C66x allows normal program flow to be interrupted. In response to the interruption, the CPU finishes executing the current instruction(s) and branches to a procedure which services the interrupt. To service an interrupt, the user or the system must save the contents of the registers and the context of the current process, then service the interrupt task, restore the registers and the context of the process, and finally resume the original process (see Figure 6.1). The interrupt can come from an external device, an internal peripheral or simply a special instruction in the program.
Figure 6.1 Interrupt response procedure.
There are four types of interrupts on the TMS320CC66x CPUs. These are the two non‐maskable interrupts (Reset and NMI) and maskable interrupts (EXCEP and INT4–INT15) (see Figure 6.2 and Table 6.1). The interrupt controllers described in this chapter allow events to be mapped to any of the input interrupts from INT4 to INT15.
Figure 6.2 Various interrupts available.
Table 6.1 Interrupt sources ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access