p0_1=p0_1^0x01是什么意思?while(1) { clock(RunSpeed); P0_1=P0_1^0x01; }

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 04:51:05
p0_1=p0_1^0x01是什么意思?while(1) { clock(RunSpeed); P0_1=P0_1^0x01; }
x)+07qfΎg-ڗgdjj*T+$'gkhZ+ttZ+$0n(W 0/tOӳi/Oxn5t| ugXc&K7=ZU1Ɏ%OvzO>Pݓ͛t3h%P( 0J<3(vO?bN]O7\ z=; y Tg$Aq~~ HRI

p0_1=p0_1^0x01是什么意思?while(1) { clock(RunSpeed); P0_1=P0_1^0x01; }
p0_1=p0_1^0x01是什么意思?
while(1)
{
clock(RunSpeed);
P0_1=P0_1^0x01;
}

p0_1=p0_1^0x01是什么意思?while(1) { clock(RunSpeed); P0_1=P0_1^0x01; }
^为异或运算符,也称XOR运算符.它的规则是若参加运算的两个二进位同号,则结果为0(假);异号则为1(真).
等式右边是将P0_1的数据与0x01相异或,再将结果赋给P0_1.

C语言