精选优质文档-倾情为你奉上这其中包括1602驱动头文件,和解析主程序,使用时分开粘贴到对应的 文件中/*LCD1602驱动,兼容LCD2402*/sbit LCD_DB0= P00;sbit LCD_DB1= P01;sbit LCD_DB2= P02;sbit LCD_DB3= P03;sbit LCD_DB4= P04;sbit LCD_DB5= P05;sbit LCD_DB6= P06;sbit LCD_DB7= P07;sbit LCD1602_RS=P24;sbit LCD1602_RW=P25; sbit LCD1602_EN=P26;void LCD_write_char( unsigned x,unsigned char y,unsigned char dat);/在指定位置显示字符void LCD_write_string(unsigned char X,unsigned char Y,unsigned char *s);/在指定位置显示字符串