
这是用位或给P1.0端口赋值,与直接给P1.0端口赋值(P1DIR=0X01; //设置P1.0端口为输出端口
P1OUT=0x01; //设置 P1.0口的输出为高电平)的现象是一样的,不知是为什么,这两者有什么区别?
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.