Part Number:TMS320C5515
亲爱的TI技术官,你好。
我在使用5515外部中断INT1时发现,中断触发信号的采样时钟频率不是系统时钟SYSCLK,而是SYSCLK的固定N分之一,N约为100。实在找不到N值在哪里设置,还是说不可设置,所以发帖求助!!!
实测发现:
1.当我设置系统时钟为100MHz时,能稳定触发的中断频率频率为256KHz,因为中断触发要求两个时钟高电平,两个时钟低电平,所以N值约为100MHz/256KHz/4=97.65625;
2.当我时钟系统时钟为10MHz时,能稳定触发的中断信号频率为25.6KHz,同样N=97.65625。
Shine:
根据数据手册5.8.1 Interrupts Electrical Data/Timinghttps://www.ti.com/lit/ds/symlink/tms320c5515.pdfP = 1/SYSCLK clock frequency in ns. For example, when the CPU core is clocked at 100 MHz, use P = 10 ns. For example, when the CPU core is clocked at 120 MHz, use P = 8.3 ns.应该小于1/4P的中断频率都能触发,没有N值需要配置。
请问使用的是TI的EVM板吗?
,
xiaoyuan zhang:
不是TI的EVM板,是自己设计的电路板。数据手册5.8.1 Interrupts Electrical Data/Timing我也看到了,和实际有出入。硬件上将触发信号接入INT1管脚,软件上在INT1中断函数内计数器累加统计中断次数,测试结果就是如提问中所述。
5515用户手册1.6.2有如下描述:
The interrupt signals on the external interrupts pins (INT0 and INT1) are detected with a synchronous negative edge detector circuit. To reliably detect the external interrupts, the interrupt signal must have at least 2 SYSCLK high followed by at least 2 SYSCLK low.
,
Shine:
累加中断次数是一次都没有还是有漏中断的情况?
,
xiaoyuan zhang:
存在漏中断的情况
,
Shine:
中断子程序里只做计数吗?有做其他处理吗?
,
xiaoyuan zhang:
验证这个问题的时候,只做了计数,没有其他处理。