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.

关于PRUSS 中断处理的问题



C6748 的PRUSS单元有没有中断入口?我看了官网的汇编例子都是以查询方式的,如下:

POLL:
// Poll for receipt of interrupt on host 0
QBBS FUNC, eventStatus, 30
JMP POLL

如我做外部中断时,这样的机制跟我“直接查询IO口的电平”  响应速度有什么区别?

  • PRU不支持中断向量跳转机制。只能通过查询中断状态标志。

    user5216633 说:
    如我做外部中断时,这样的机制跟我“直接查询IO口的电平”  响应速度有什么区别?

     

    主要区别在我看来,中断状态标志会记录中断信号的状态,直到用户清除。而IO状态是由外部信号变化决定的,如果中断处理不及时,而外部IO状态变化又比较快,那么有可能漏掉状态的变化。