Description: # include< Reg51. H>
# include< Intrins. H>
# define uchar unsigned char
# define uint unsigned int
# define busy 0 x80
#define DATAPORT P1 // data port
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 the 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 0 x80
#define DATAPORT P1 // data port
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 the display (uchar dd)
Void displayonechar(uchar x,uchar y,uchar wdata)
Void epustr(uchar x,uchar y,uchar code* PTR)
File list (Check if you may need any files):
1602驱动程序.c