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.
我看了TI网站提供的例程中没有关于HRcapture的例子,同时在系统与中断控制手册中 PIE vector Table中也没有HRcapture 的中断的入口地址。
是手册错了,还是28035压根就没有高分辨率捕捉口那?
Shusheng,
F28035有HRCAP,应该是手册没及时更新。F28069的技术手册上就有表明在第4组的7,8。
另外也可以从F28035的例程中看到HRCAP的中断向量表位置。
// Group 4 PIE Vectors
ECAP1_INT_ISR, // 4.1 ECAP-1
rsvd_ISR, // 4.2
rsvd_ISR, // 4.3
rsvd_ISR, // 4.4
rsvd_ISR, // 4.5
rsvd_ISR, // 4.6
HRCAP1_INT_ISR, // 4.7 HRCAP-1
HRCAP2_INT_ISR, // 4.8 HRCAP-2
Eric
你用的源文件是类似TI例程的结构吗?
如果是的话,要添加HRCAP的ISR的话可以用下面的代码:
EALLOW; // This is needed to write to EALLOW protected registers
PieVectTable.HRCAP1_INT = &HRCAP1_Isr;
EDIS; // This is needed to disable write to EALLOW protected registers
如果没有HRCAP1_INT,就找到DSP2803x_PieVect.h头文件在PieVectTable中添加就可以了。
Eric