KeilC语言编程老出现: error C100:unprintable character 0xA1 skipped 哪错了啊
有几个汉字的空格,已经删除。
试试下面的:
#include
#defineMODE_RTPWR_UP=1;csn=1;ce=0;//收发
#defineMODE_CFPWR_UP=1;csn=0;ce=1;//设置
#defineMODE_SBPWR_UP=1;csn=0;ce=0;//空闲
#defineMODE_PDPWR_UP=0;//关机
#defineucharunsignedchar
#defineuintunsignedint
ucharcodesetdata[]={0x8E,0x08,0x1C,
0x20,0x50,0x0A,0x0B,0x0C,0x0D,0x0E,0x0A,
0x28,0x0A,0x0B,0x0C,0xA3,0x6F,0x65};
sbitmosi=P0^1;
sbitce=P0^7;
sbitiqr=P0^2;
sbitmiso=P0^5;
sbitclk=P0^6;
sbitcsn=P0^0;
sbitPWR_UP=P0^3;
voiddelay(ucharz)
uintx,y;
for(x=z;x>0;x--)
for(y=20;y>0;y--);
voidwritebyte(unsignedcharch)
unsignedchari=8;
while(i--)
clk=0;
mosi=(bit)(ch&0x80);
ch<<=1;
clk=1;
unsignedcharreadbyte(void)
unsignedchari=8,ch;
while(i--)
clk=0;
ch=(ch<<1)|mosi;
clk=1;
returnch;
voidset_up()
uchari;
MODE_CF
delay(10);
//setdata[18]={};
for(i=0;i<15;i++)
writebyte(setdata[i]);
ce=0;