Other Parts Discussed in Thread: CONTROLSUITE
在28335编程的过程中,某个子程序里面为了不让中断影响一些变量的赋值,可以用DINT,EINT吗?会不会对正在运行的其他中断产生影响?后果严重吗?谢谢!
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.
Other Parts Discussed in Thread: CONTROLSUITE
在28335编程的过程中,某个子程序里面为了不让中断影响一些变量的赋值,可以用DINT,EINT吗?会不会对正在运行的其他中断产生影响?后果严重吗?谢谢!
DINT是关掉所有的中断,个人感觉还是最好用PIE关掉部分对你的变量有影响的中断。用DINT关掉中断的例程可以在controlSUITE的IEC60730库例程中找到。参考下面帖子:
https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/528504