• 大小: 172KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-14
  • 语言: 其他
  • 标签: PG12864  

资源简介

基于51单片机的PG12864的电梯设计的仿真实验、有代码以及仿真图

资源截图

代码片段和文件信息

#include 
#define uchar unsigned char
#define uint unsigned int

sbit wr=P2^0;
sbit rd=P2^1;
sbit ce=P2^2;
sbit cd=P2^3;
sbit rst=P2^4;
sbit KEY1=P1^0;    //定义P1口按键
sbit KEY2=P1^1;    
sbit KEY3=P1^2;
sbit KEY4=P1^3;
sbit LED=P3^3;
sbit SPEAK=P3^6;
uchar i=0;
uchar x=0;
void delay(uint t);
void init_12864();
void write_data(uchar dat);
void write_cmd1(uchar cmd);
void write_cmd2(uchar datuchar cmd);
void write_cmd3(uchar data1uchar data2uchar cmd);
uchar read_status();
void check_status();
void clear_screen();
void display_char(uchar xuchar yuchar ch);//注意汉字数组要加code放到外部存储器中,如果不加code则空间不够
uchar code HZ0[][32]={
      0x000x000x000x000x000x000x000x00
      0x010x000x060x000x1E0x000x3F0xFE
      0x1E0x000x060x000x010x000x000x00
      0x000x000x000x000x000x000x000x00
  

      0x000x000x000x000x000x000x000x00
      0x010x000x060x000x1E0x000x3F0xFE
      0x1E0x000x060x000x010x000x000x00
      0x000x000x000x000x000x000x000x00

      0x000x000x000x000x000x000x000x00
      0x010x000x060x000x1E0x000x3F0xFE
      0x1E0x000x060x000x010x000x000x00
      0x000x000x000x000x000x000x000x00

  
      0x000x000x000x000x000x000x000x00
      0x010x000x060x000x1E0x000x3F0xFE
      0x1E0x000x060x000x010x000x000x00
      0x000x000x000x000x000x000x000x00
  

    0x100x400x120x480x110x500x100x44
      0xFF0xFE0x110x500x3A0x4C0x340x44
      0x500x800x5F0xFE0x910x080x120x08
      0x110xB00x100x400x110xB00x160x08   




0x000x000x000x00 0x000x000x000x00
0x000x000x000x00 0x000x000x000x00
0x000x000x000x00 0x000x000x000x00
0x000x000x000x00 0x000x000x000x00



};
uchar code HZ1[][32]={
0x000x000x000x000x000x000x000x00
      0x000x000x000x000x000x040xFF0xFE
      0x000x000x000x000x000x000x000x00
      0x000x000x000x000x000x000x000x00

      0x000x000x000x000x000x100x3F0xF8
      0x000x000x000x000x000x000x000x00
      0x000x000x000x000x000x000x000x04
      0xFF0xFE0x000x000x000x000x000x00

      0x000x000x000x080x7F0xFC0x000x00
      0x000x000x000x000x000x100x3F0xF8
      0x000x000x000x000x000x000x000x00
      0x000x040xFF0xFE0x000x000x000x00

     0x000x000x000x040x7F0xFE0x440x44
      0x440x440x440x440x440x440x440x44
      0x440x440x440x3C0x480x040x500x04
      0x400x040x7F0xFC0x400x040x000x00
  

    0x100x400x120x480x110x500x100x44
      0xFF0xFE0x110x500x3A0x4C0x340x44
      0x500x800x5F0xFE0x910x080x120x08
      0x110xB00x100x400x110xB00x160x08   




0x000x000x000x00 0x000x000x000x00
0x000x000x000x00 0x000x000x000x00
0x000x000x000x00 0x000x000x000x00
0x

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

     文件       8389  2014-06-16 16:06  单片机电梯\369\1.c

     文件      19461  2014-06-16 16:07  单片机电梯\369\1.LST

     文件       8897  2014-06-16 16:07  单片机电梯\369\1.OBJ

     文件          0  2014-06-11 19:47  单片机电梯\369\1.txt

     文件       5439  2014-06-16 16:07  单片机电梯\369\12864

     文件       6970  2014-06-12 13:14  单片机电梯\369\12864.c

     文件       5279  2014-06-16 16:07  单片机电梯\369\12864.hex

     文件         23  2014-06-16 16:07  单片机电梯\369\12864.lnp

     文件      15939  2014-06-12 13:14  单片机电梯\369\12864.LST

     文件      21717  2014-06-16 16:07  单片机电梯\369\12864.M51

     文件      18766  2014-06-12 13:14  单片机电梯\369\12864.OBJ

     文件       1068  2014-06-16 16:07  单片机电梯\369\12864.Opt

     文件       3745  2014-06-16 16:07  单片机电梯\369\12864.plg

     文件       2054  2014-06-12 15:19  单片机电梯\369\12864.Uv2

     文件       1067  2014-06-16 12:48  单片机电梯\369\12864_Opt.Bak

     文件       2054  2014-06-12 11:24  单片机电梯\369\12864_Uv2.Bak

     文件     193024  2014-06-11 18:05  单片机电梯\369\PG12864F汉字显示.doc

     文件       6376  2005-03-22 15:22  单片机电梯\369\STARTUP.A51

     文件      14048  2014-06-12 13:14  单片机电梯\369\STARTUP.LST

     文件        749  2014-06-12 13:14  单片机电梯\369\STARTUP.OBJ

     文件      16499  2014-06-12 13:14  单片机电梯\369\电梯

     文件       3827  2014-06-12 13:14  单片机电梯\369\电梯.hex

     文件         57  2014-06-12 13:14  单片机电梯\369\电梯.lnp

     文件      22814  2014-06-12 13:14  单片机电梯\369\电梯.M51

     文件       1103  2014-06-16 16:02  单片机电梯\369\电梯.Opt

     文件        215  2014-06-16 16:02  单片机电梯\369\电梯.plg

     文件       2147  2014-06-12 10:44  单片机电梯\369\电梯.Uv2

     文件       1101  2014-06-12 15:02  单片机电梯\369\电梯_Opt.Bak

     文件          0  2014-06-12 09:48  单片机电梯\369\电梯_Uv2.Bak

     文件     100521  2014-06-16 15:58  单片机电梯\45.DSN

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

评论

共有 条评论

相关资源