懵圈了,求指导
EA=1;ENLED=0;
ADDR3=0;
TMOD=0x01;
TH0=0xFC;
TL0=0x67;
ET0=1;
TR0=1;
while(1);
}
void InterruptTimer0() intrerrupt 1
{
static unsigned char i=0;
TH0=0xFC;
TL0=0x67;
P0=0xFF;
switch(i)
{
case 0:ADDR2=0;ADDR1=0;ADDR0=0;i++;P0=0x00;break;
case 1:ADDR2=0;ADDR1=0;ADDR0=1;i++;P0=0x00;break;
case 2:ADDR2=0;ADDR1=1;ADDR0=0;i++;P0=0x00;break;
case 3:ADDR2=0;ADDR1=1;ADDR0=1;i++;P0=0x00;break;
case 4:ADDR2=1;ADDR1=0;ADDR0=0;i++;P0=0x00;break;
case 5:ADDR2=1;ADDR1=0;ADDR0=1;i++;P0=0x00;break;
case 6:ADDR2=1;ADDR1=1;ADDR0=0;i++;P0=0x00;break;
case 7:ADDR2=1;ADDR1=1;ADDR0=1;i=0;P0=0x00;break;
default:break;
}
}
---------------------------------------------------------------------------------------------
22102922.C(28): error C244: 'P0': can't initialize, bad type or class
22102922.C(28): error C132: 'P0': not in formal parameter list
22102922.C(30): error C141: syntax error near 'switch'
22102922.C(31): error C129: missing ';' before '{'
Target not created