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.

CCS5.0用 Index=0 1<<Index 出错。程序是移动0位的,编译 仿真 移动了1位。



Index=0;

for(;;)
{
P3OUT=0xFF;
P1OUT=table[Index];
P3OUT=~(1<<Index);
while(1);
if(++Index==8) Index=0;
delayms(1);
//while(1);
}

//其中table[0]=0;