资源简介

Proteus仿真:LCD液晶屏显示.rar

资源截图

代码片段和文件信息

#include“LCD.h“

void LCD_Delay1ms(uint c)
{
uchar ab;
for(;c>0;c--)
for(b=199;b>0;b--)
{
for(a=1;a>0;a--);
}
}

#ifndef LCD_4Pins
void LCD_Init()
{
LCD_Write_Com(0x38);
LCD_Write_Com(0x0c);
LCD_Write_Com(0x06);
LCD_Write_Com(0x01);
LCD_Write_Com(0x80);

}
#else
void LCD_Init()
{
LCD_Write_Com(0x32);
LCD_Write_Com(0x28);
LCD_Write_Com(0x0c);
LCD_Write_Com(0x06);
LCD_Write_Com(0x01);
LCD_Write_Com(0x80);
}
#endif

#ifndef LCD_4Pins
void LCD_Write_Com(uchar com)
{
e=0;
rs=0;
rw=0;

LCD_Date_Pins=com;
LCD_Delay1ms(1);
e=1;
LCD_Delay1ms(5);
e=0;
}
#else
void LCD_Write_Com(uchar com)
{
e=0;
rs=0;
rw=0;

LCD_Date_Pins=com;
LCD_Delay1ms(1);
e=1;
LCD_Delay1ms(5);
e=0;

LCD_Date_Pins=com<<4;
LCD_Delay1ms(1);
e=1;
LCD_Delay1ms(5);
e=0;
}
#endif

#ifndef LCD_4Pins
void LCD_Write_Data(uchar dat)
{
e=0;
rs=1;
rw=0;

LCD_Date_Pins=dat;
LCD_Delay1ms(1);
e=1;
LCD_Delay1ms(5);
e=0;
}
#else
void LCD_Write_Data(uchar dat)
{
e=0;
rs=1;
rw=0;

LCD_Date_Pins=dat;
LCD_Delay1ms(1);
e=1;
LCD_Delay1ms(5);
e=0;

LCD_Date_Pins=dat<<4;
LCD_Delay1ms(1);
e=1;
LCD_Delay1ms(5);
e=0;
}
#endif

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

     文件       1241  2020-07-25 08:23  Proteus仿真:LCD液晶屏显示\Keil4\LCD.c

     文件        374  2020-07-25 08:23  Proteus仿真:LCD液晶屏显示\Keil4\LCD.h

     文件       3953  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\LCD.LST

     文件       3442  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\LCD.OBJ

     文件          0  2020-07-24 22:04  Proteus仿真:LCD液晶屏显示\Keil4\mainc

     文件        868  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\main.c

     文件       2975  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\main.LST

     文件       4013  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\main.OBJ

     文件       1116  2020-07-25 09:56  Proteus仿真:LCD液晶屏显示\Keil4\tem.c

     文件        335  2020-07-25 09:55  Proteus仿真:LCD液晶屏显示\Keil4\tem.h

     文件       3378  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\tem.LST

     文件       5729  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\tem.OBJ

     文件      11668  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\Template

     文件       2686  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\Template.hex

     文件         53  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\Template.lnp

     文件      14318  2020-07-25 10:41  Proteus仿真:LCD液晶屏显示\Keil4\Template.M51

     文件        216  2020-07-29 08:00  Proteus仿真:LCD液晶屏显示\Keil4\Template.plg

     文件      58152  2020-07-29 08:10  Proteus仿真:LCD液晶屏显示\Keil4\Template.uvopt

     文件      13548  2020-07-25 10:10  Proteus仿真:LCD液晶屏显示\Keil4\Template.uvproj

     文件      58148  2020-07-29 07:30  Proteus仿真:LCD液晶屏显示\Keil4\Template_uvopt.bak

     文件      13384  2020-07-24 22:31  Proteus仿真:LCD液晶屏显示\Keil4\Template_uvproj.bak

     文件      20639  2020-07-25 13:42  Proteus仿真:LCD液晶屏显示\Proteus\Backup Of 新工程.pdsbak

     文件      17788  2020-12-05 19:47  Proteus仿真:LCD液晶屏显示\Proteus\Last Loaded 新工程.pdsbak

     文件      20838  2020-07-30 08:11  Proteus仿真:LCD液晶屏显示\Proteus\新工程.pdsprj

     文件       1139  2020-12-05 19:47  Proteus仿真:LCD液晶屏显示\Proteus\新工程.pdsprj.DESKTOP-7M3HI5T.Administrator.workspace

     文件       2950  2020-07-30 08:17  Proteus仿真:LCD液晶屏显示\Proteus\新工程.pdsprj.LAPTOP-FMM4J9B4.86150.workspace

     目录          0  2020-10-21 13:27  Proteus仿真:LCD液晶屏显示\Keil4

     目录          0  2020-12-05 19:47  Proteus仿真:LCD液晶屏显示\Proteus

     目录          0  2020-10-21 13:27  Proteus仿真:LCD液晶屏显示

----------- ---------  ---------- -----  ----

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

评论

共有 条评论