用AT89C51单片机设计利用AD590传感器和ADC0809转换器的温度计。现在用keil编译C程序出现missing✀;✀before

2024-12-16 16:48:52
推荐回答(1个)
回答1:

Unsigned char numb[]={0x3f,0x30,0x5b,0x79,0x74,0x6d,0x6f,0x38,0x7f,0x7d,0x8f,0x40,0xff,0x00};

改成:
unsigned char numb[]={0x3f,0x30,0x5b,0x79,0x74,0x6d,0x6f,0x38,0x7f,0x7d,0x8f,0x40,0xff,0x00};

void InitIO()//你写成Void了
{
PinData = 0xff;
//PinA = 0;
//PinB = 0;
//PinC = 0;
PinSTART = 1;
PinOE = 1;
PinEOC = 1;
}

void two_ten(int num)//你写成Void
{
numb1=num/100;
num=num%100;
numb2=num/10;
num=num%10;
numb3=num;
//return;这里是void不能有返回
}

Void nNop(uchar i)改成void nNop(uchar i)