89C51实现电子秤的部分程序
LCD显示程序: void pulse() { e=1;e=0; } void busy_check(char right) { P0=0xff; if (right==1) { P2=0x13; // P2=0x13; while(!busy); } if(right==0) { P2=0x0b; //0b while(!busy); } } void cmd_w(char cmd,char right) { busy_check(right); if (right==1) P2=0x10; if (right==0) { P2=0x
下载地址
用户评论