基于8051 0832 电源 #include #define uint unsigned int #define uchar unsigned char sbit wn=P3^6; sbit en=P2^7; sbit key1=P3^2; uchar num,num1,num2,num3; uint tmp; void delay(uint z) { uint x,y; for(x=z;x>0;x--) for(y=110;y>0;y--); } void main() { tmp=0xcd; en=0; wn=1;