• 大小: 130KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-02
  • 语言: 其他
  • 标签: keil  C51  

资源简介

一种基于AT89C51单片机的门禁系统设计,利用LCD-12864与4X4矩阵键盘进行显示与交互,内含proteus 7的电路设计文件,涵盖了中断,串口通信等等单片机应用。

资源截图

代码片段和文件信息

#include
#define uchar unsigned char
#define page_start 0xb8
#define lie_start 0x40
#define start_line 0xc0
sbit RW=P2^1;
sbit RS=P2^0;
sbit E=P2^7;
sbit cs1=P2^3;
sbit cs2=P2^2;
sbit p3_2=P3^2;
sbit p3_3=P3^3;
sbit p3_4=P3^4;
sbit p3_5=P3^5;
sbit p2_5=P2^5;
sbit p2_4=P2^4;
uchar idata true_key[6]={012345};
uchar real_Key[6];
uchar num_key=0;
uchar change_key=0;
/*屏幕0*/
//欢迎光临!
uchar code hellow[]={
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x040x240x440x840x640x9C0x400x300x0F0xC80x080x080x280x180x000x00
0x400x400x420xCC0x000x000xFC0x040x020x000xFC0x040x040xFC0x000x00
0x400x400x420x440x580xC00x400x7F0x400xC00x500x480x460x400x400x00
0x000xF80x000x000xFF0x400x200x180x0F0x180x680x080x080x080x080x00
0x000x000x000xFE0x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x100x080x060x010x820x4C0x200x180x060x010x060x180x200x400x800x00
0x000x400x200x1F0x200x400x4F0x440x420x400x7F0x420x440x430x400x00
0x800x800x400x200x180x070x000x000x000x3F0x400x400x400x400x780x00
0x000x1F0x000x000xFF0x000x000x7F0x210x210x3F0x210x210x7F0x000x00
0x000x000x000x330x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
};
//密码正确!
uchar code right[]={
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x100x8C0x440x040xE40x040x950xA60x440x240x140x840x440x940x0C0x00
0x040x840xE40x5C0x440xC40x000x020xF20x820x820x820xFE0x800x800x00
0x000x020x020xC20x020x020x020xFE0x820x820x820x820x820x020x000x00
0x040x840xE40x5C0x440xC40x200x100xE80x270x240xE40x340x2C0xE00x00
0x000x000x000xFE0x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x020x020x7A0x410x410x430x420x7E0x420x420x420x430xF80x000x000x00
0x020x010x7F0x100x100x3F0x000x080x080x080x080x480x880x400x3F0x00
0x400x400x400x7F0x400x400x400x7F0x400x400x400x400x400x400x400x00
0x020x010x7F0x100x100x3F0x800x600x1F0x090x090x3F0x490x890x7F0x00
0x000x000x000x330x000x000x00

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

     文件        808  2018-06-05 13:54  test7\info.txt

     文件     119015  2018-06-21 15:49  test7\ISIS.DSN

     文件       1054  2018-06-21 15:49  test7\ISIS.PWI

     文件     112031  2018-06-08 22:41  test7\Last Loaded ISIS.DBK

     文件      25691  2018-06-08 22:39  test7\Listings\test.lst

     文件      25315  2018-06-08 22:39  test7\Listings\TEST.m51

     文件         19  2018-06-20 20:14  test7\objects\ExtDll.iex

     文件      22267  2018-06-08 22:39  test7\objects\TEST

     文件       1475  2018-06-08 22:39  test7\objects\TEST.build_log.htm

     文件      11564  2018-06-08 22:39  test7\objects\TEST.hex

     文件         73  2018-06-08 22:39  test7\objects\TEST.lnp

     文件      26580  2018-06-08 22:39  test7\objects\test.obj

     文件      16485  2018-06-08 22:41  test7\test.c

    .......    166733  2019-03-26 22:41  test7\TEST.uvgui.Administrator

     文件     166057  2018-06-08 22:41  test7\TEST.uvgui.liurui

    .......      5890  2019-03-07 12:20  test7\TEST.uvopt

    .......     13868  2019-03-07 12:20  test7\TEST.uvproj

     文件      29934  2018-06-06 17:21  test7\新建文件夹\Last Loaded TEST.DBK

     文件      12862  2018-06-06 17:34  test7\新建文件夹\Listings\test.lst

     文件      10608  2018-06-06 17:34  test7\新建文件夹\Listings\TEST.m51

     文件         19  2018-06-20 13:04  test7\新建文件夹\objects\ExtDll.iex

     文件       8409  2018-06-06 17:34  test7\新建文件夹\objects\TEST

     文件       1075  2018-06-06 17:34  test7\新建文件夹\objects\TEST.build_log.htm

     文件       3881  2018-06-06 17:34  test7\新建文件夹\objects\TEST.hex

     文件         73  2018-06-06 17:34  test7\新建文件夹\objects\TEST.lnp

     文件       9586  2018-06-06 17:34  test7\新建文件夹\objects\test.obj

     文件       8280  2018-06-06 17:36  test7\新建文件夹\test.c

     文件      29934  2018-06-06 17:32  test7\新建文件夹\TEST.DSN

     文件       1054  2018-06-20 13:03  test7\新建文件夹\TEST.PWI

     文件     166710  2018-06-20 13:04  test7\新建文件夹\TEST.uvgui.Administrator

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

评论

共有 条评论