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.

F28027操作GPIO



我用F28027操作GPIO时,连续对两个IO口进行赋值时,之间要加延时才能成功,比如:GPIO2和GPIO6都配置为输出

 GpioDataRegs.GPADAT.bit.GPIO2 = 1;

 GpioDataRegs.GPADAT.bit.GPIO6 = 1;

这样的话.只有GPIO6会被置1,但如果在中间加延时,

 GpioDataRegs.GPADAT.bit.GPIO2 = 1;

DELAY_US(1)

 GpioDataRegs.GPADAT.bit.GPIO6 = 1;

则两个IO口都会置1,请问操作两个IO口中间是必须要加延时吗?