文件名称:1602_Diver
介绍说明--下载内容均来自于网络,请自行研究使用
#include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define busy 0x80
#define DATAPORT P1 //数据端口
sbit RS=P3^5
sbit RW=P3^6
sbit ENABLE=P3^7
code char example[]="Waitting for you"
void delay400ms(void)
void delay5ms(void)
void lcdwritedata(char data w)
void waitforenable(void)
void lcdwritecommand(uchar CMD,uchar ATT)
void lcdreset(void)
void display(uchar dd)
void displayonechar(uchar x,uchar y,uchar wdata)
void epustr(uchar x,uchar y,uchar code *ptr)
-#include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define busy 0x80
#define DATAPORT P1 //数据端口
sbit RS=P3^5
sbit RW=P3^6
sbit ENABLE=P3^7
code char example[]="Waitting for you"
void delay400ms(void)
void delay5ms(void)
void lcdwritedata(char data w)
void waitforenable(void)
void lcdwritecommand(uchar CMD,uchar ATT)
void lcdreset(void)
void display(uchar dd)
void displayonechar(uchar x,uchar y,uchar wdata)
void epustr(uchar x,uchar y,uchar code*ptr)
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define busy 0x80
#define DATAPORT P1 //数据端口
sbit RS=P3^5
sbit RW=P3^6
sbit ENABLE=P3^7
code char example[]="Waitting for you"
void delay400ms(void)
void delay5ms(void)
void lcdwritedata(char data w)
void waitforenable(void)
void lcdwritecommand(uchar CMD,uchar ATT)
void lcdreset(void)
void display(uchar dd)
void displayonechar(uchar x,uchar y,uchar wdata)
void epustr(uchar x,uchar y,uchar code *ptr)
-#include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define busy 0x80
#define DATAPORT P1 //数据端口
sbit RS=P3^5
sbit RW=P3^6
sbit ENABLE=P3^7
code char example[]="Waitting for you"
void delay400ms(void)
void delay5ms(void)
void lcdwritedata(char data w)
void waitforenable(void)
void lcdwritecommand(uchar CMD,uchar ATT)
void lcdreset(void)
void display(uchar dd)
void displayonechar(uchar x,uchar y,uchar wdata)
void epustr(uchar x,uchar y,uchar code*ptr)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1602驱动程序.c