资源简介

该资料是包含DOFLY中的mini80e单片机的所有资料,包含了驱动HL340,相应的驱动程序,希望能给刚刚学习51单片机的同学,提供借鉴和指导

资源截图

代码片段和文件信息

sbit p_csa=P2^6;
sbit p_csb=P2^7;
sbit p_gnda=P2^5;
sbit p_gndb=P2^4;
sbit p_di=P2^3;
sbit p_rw=P2^2;
sbit p_e=P2^1;

                                          //忙判别
void lcd_busy(void) 
{
p_di=0;p_rw=1;P0=0xff;
while (1) 
{
p_e=1;
if (P0<0x80) break;
p_e=0;

p_e=0;
}
//设置xy
void set_xy(unsigned char xunsigned char y) 
{
if (x>=64) {p_csa=0;p_csb=1;} else {p_csb=0;p_csa=1;}
lcd_busy();
p_di=p_rw=0;P0=0x40|x;p_e=1;p_e=0;
lcd_busy();
p_di=p_rw=0;P0=0xb8|y;p_e=1;p_e=0;
P0=0xff;
}
void lw(unsigned char xunsigned char yunsigned char dd) 
{
set_xy(xy);
lcd_busy();p_di=1;p_rw=0;P0=dd;p_e=1;p_e=0;
P0=0xff;
}
//显示初始化
#pragma disable
void lcd_init(void) 
{
unsigned char xy;
p_gnda=p_gndb=0;
                                //开显示
p_e=p_di=p_rw=0;
p_csa=p_csb=0;
p_csa=1;P0=0x3f;p_e=1;p_e=0;p_csa=0;
p_csb=1;P0=0x3f;p_e=1;p_e=0;p_csb=0;
                               //0行开始显示
p_csa=1;lcd_busy();p_di=p_rw=0;P0=0xc0;p_e=1;p_e=0;p_csa=0;
p_csb=1;lcd_busy();p_di=p_rw=0;P0=0xc0;p_e=1;p_e=0;p_csb=0;
for (y=0;y<8;y++) 
{
for (x=0;x<128;x++) lw(xy0);
}
}

unsigned char code asc[]={
0x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x0
0x00x00x380xfc0xfc0x380x00x00x00x00x00xd0xd0x00x00x0
0x00xe0x1e0x00x00x1e0xe0x00x00x00x00x00x00x00x00x0
0x200xf80xf80x200xf80xf80x200x00x20xf0xf0x20xf0xf0x20x0
0x380x7c0x440x470x470xcc0x980x00x60xc0x80x380x380xf0x70x0
0x300x300x00x800xc00x600x300x00xc0x60x30x10x00xc0xc0x0
0x800xd80x7c0xe40xbc0xd80x400x00x70xf0x80x80x70xf0x80x0
0x00x100x1e0xe0x00x00x00x00x00x00x00x00x00x00x00x0
0x00x00xf00xf80xc0x40x00x00x00x00x30x70xc0x80x00x0
0x00x00x40xc0xf80xf00x00x00x00x00x80xc0x70x30x00x0
0x800xa00xe00xc00xc00xe00xa00x800x00x20x30x10x10x30x20x0
0x00x800x800xe00xe00x800x800x00x00x00x00x30x30x00x00x0
0x00x00x00x00x00x00x00x00x00x00x100x1e0xe0x00x00x0
0x800x800x800x800x800x800x800x00x00x00x00x00x00x00x00x0
0x00x00x00x00x00x00x00x00x00x00x00xc0xc0x00x00x0
0x00x00x00x800xc00x600x300x00xc0x60x30x10x00x00x00x0
0xf00xf80xc0xc40xc0xf80xf00x00x30x70xc0x80xc0x70x30x0
0x00x100x180xfc0xfc0x00x00x00x00x80x80xf0xf0x80x80x0
0x80xc0x840xc40x640x3c0x180x00xe0xf0x90x80x80xc0xc0x0
0x80xc0x440x440x440xfc0xb80x00x40xc0x80x80x80xf0x70x0
0xc00xe00xb00x980xfc0xfc0x800x00x00x00x00x80xf0xf0x80x0
0x7c0x7c0x440x440x440xc40x840x00x40xc0x80x80x80xf0x70x0
0xf00xf80x4c0x440x440xc00x800x00x70xf0x80x80x80xf0x70x0
0xc0xc0x40x840xc40x7c0x3c0x00x00x00xf0xf0x00x00x00x0
0xb80xfc0x440x440x440xfc0xb80x00x70xf0x80x80x80xf0x70x0
0x380x7c0x440x440x440xfc0xf80x00x00x80x80x80

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8930  2005-03-22 10:29  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\12232屏\34.c

     文件      15287  2005-03-22 10:30  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\12864屏\35.c

     文件      12872  2005-03-22 10:31  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\12896屏\36.c

     文件       1077  2005-03-21 17:55  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\16进制BCD转换\23.c

     文件       1338  2005-03-21 17:07  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\7219显示通信程序\15.c

     文件       4539  2005-03-21 17:07  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\89C51系列编程\14.c

     文件       5126  2005-03-20 16:11  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\93C46系列读写\13.c

     文件        850  2005-03-21 17:56  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\AVR串口通信\25.c

     文件       5767  2005-03-22 10:14  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\DS1302时钟程序\27.c

     文件       1586  2005-03-21 17:14  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IIC 协议\17.c

     文件       1518  2007-01-07 17:05  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\02.lst

     文件        405  2007-01-07 17:05  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\02.obj

     文件       2760  2007-01-07 17:11  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\06.lst

     文件        658  2007-01-07 17:11  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\06.obj

     文件        735  2000-11-11 16:31  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\main.c

     文件       1789  2004-06-18 09:23  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\main.LST

     文件        379  2004-06-18 09:23  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\main.OBJ

     文件        604  2007-01-07 17:11  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\portio

     文件        172  2007-01-07 17:11  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\portio.hex

     文件         42  2007-01-07 17:11  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\portio.lnp

     文件       3025  2007-01-07 17:11  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\portio.M51

     文件       1231  2007-01-07 17:18  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\portio.Opt

     文件        521  2007-01-07 17:18  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\portio.plg

     文件       1784  2007-01-07 17:18  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IO\portio.Uv2

     文件        489  2005-03-20 15:46  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\IOBit\02.c

     文件       5898  2005-03-22 10:28  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\PC键代码\38.c

     文件       5217  2005-03-22 10:34  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\R-2R DAC\42.c

     文件       1750  2005-03-21 16:35  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\VB串行通信\12.c

     文件       2714  2005-03-22 10:24  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\两线通信协议\30.c

     文件        491  2000-11-26 20:29  DOFLY_mini80E开发板原理图及程序\40多个参考样例\code\串口通信\abstract.txt

............此处省略917个文件信息

评论

共有 条评论