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的DELAY_US()会不会被中断打断,影响怎样的?



TI的DELAY_US()会不会被中断打断,相互之间的影响怎样的?

比如100us的定时中断,DELAY_US(X),X=10,100,1000等;

  • 如果是在主程序中的DELAY_US()应该是会被中断打断的。如果是在中断中的DELAY_US()则不会被中断打断,除非中断中使用了中断嵌套。
    “影响”的话应该就是需要等到退出中断了再继续计时。