#includereg52.h>#defineuintunsignedint#defineucharunsignedcharuchartemp,key=16;sbitduan=P2^6;sbit
代码:#includereg52.h>#defineuintunsignedint#defineucharunsignedchar//sbitA=P2^0;//sbitB=P2^1;//sbit
#includeat89X52.hsbitLCD_RS=P2^0;sbitLCD_RW=P2^1;sbitLCD_E=P2^2;sbitADC_CS=P2^3;sbitADC_WR=P3^6;sbit