51单片机程序:
#include<reg51.h>
#include<sting.h>
#define uchar unsigned char
#define uint unsigned int
sbit RS=P2^0;
sbit RW=P2^1;
sbit E=P2^2;
uchar tab1[]={“1433223 “};
uchar tab2[]={” 1433223”};
void delay(uint x)
{
uint i,j;
for(i=0;i<x;i++)
for(j=0;j<110;j++);
}
void writecmd(uchar com)
{
E=0;
RS=0;
RW=0;
P3=com;
delay(2);
E=1;
delay(2);
E=0;
}
void writedata(uchar dat)
{
E=0;
RS=1;
RW=0;
P3=dat;
delay(2);
E=1;
delay(2);
E=0;
}
void init(void)
{
delay(15);
writecmd(0x