我在使用28377D,遇到一个问题,有一个变量(定位cnt吧),在中断和主循环中都有对cnt的修改操作,就是cnt加1或者减1。
会不会当在主循环操作cnt的时候,中断进来,打断了对cnt的操作,中断执行完成之后再继续主循环中的cnt的操作?
谢谢!
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.
我在使用28377D,遇到一个问题,有一个变量(定位cnt吧),在中断和主循环中都有对cnt的修改操作,就是cnt加1或者减1。
会不会当在主循环操作cnt的时候,中断进来,打断了对cnt的操作,中断执行完成之后再继续主循环中的cnt的操作?
谢谢!