程序: #include "reg52.h" #define uchar unsigned char typedef bit BOOL ; sbit rs = P2^6 ; sbit rw = P3^6 ; sbit ep = P2^7 ; void delay(uchar ms) { // 延时子程序 uchar i ; while(ms--) { for(i = 0 ; i