写中断函数的时候 vectors.asm 文件有什么用,还有导入vectors.asm 文件到工程中 报错,此时的cmd文件如何修改?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
先看一下文档swpu073e里的interupt章节,了解一下中断的基本原理。
5.2 Interrupt Vectors and Priorities
The TMS320C55x DSP supports 32 interrupt service routines (ISRs). After
receiving and acknowledging an interrupt request, the CPU generates an
interrupt vector address. At the vector address, the CPU fetches the vector that
points to the corresponding ISR. When multiple hardware interrupts occur
simultaneously, the CPU services them one at a time, according to their
predefined hardware interrupt priorities. Table 5−1 shows the vectors sorted
by ISR number. Table 5−2 shows the vectors sorted by priority. Both tables
show only a general representation of the C55x DSP vectors. To see which
interrupt corresponds to each of the vectors, see the data manual for your
C55x DSP.
You must write the desired interrupt vectors (ISR start address) at the vector
addresses. Each interrupt vector must contain 8 bytes. Byte 0 of the reset
vector contains the setting for the stack mode. Byte 0 of the remaining vectors
is ignored. Bytes 1−3 encode the 24-bit byte address of the interrupt service
routine (ISR). Bytes 4−7 must be filled with NOP instructions.
Vector pointers IVPD and IVPH point to up to 32 interrupt vectors in program
space. IVPD points to the 256-byte program page for interrupt vectors 0–15
and 24–31. IVPH points to the 256-byte program page for interrupt vectors
16–23. Refer to chapter 2, CPU Registers, for a detailed description of
these registers.