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.

28335 代码执行时出现问题



代码很简单,.就是写下边几个IO口输出为0,  但是实际运行时,如果不加那些 NOP 延时的话.输出口会出现两个不能写为0的情况. 单步调试并没有这样的问题.

请问这是什么原因. 我只是想知道为什么会这样.   虽然用清除寄存器或别的方法可以避免这个问题.

GpioDataRegs.GPBDAT.bit.GPIO58 = 0;
NOP; NOP; NOP; NOP; NOP; NOP;


GpioDataRegs.GPBDAT.bit.GPIO59 = 0;
NOP; NOP; NOP; NOP; NOP; NOP;


GpioDataRegs.GPBDAT.bit.GPIO62 = 0;
NOP; NOP; NOP; NOP; NOP; NOP;


GpioDataRegs.GPBDAT.bit.GPIO63 = 0;
NOP; NOP; NOP; NOP; NOP; NOP;