• 大小: 100KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-12
  • 语言: C/C++
  • 标签:

资源简介

基于51单片机,12864显示模块,C语言代码

资源截图

代码片段和文件信息

/*
题目:基于8051单片机的电子密码锁防盗系统的设计
时间:2013年10月12日18:18:30
作者:yarcl(原名:肖志)
注意:本文件包含LCDINIT.H和OWNMATH.C文件,LCDINIT.H主要是包含位定义,全局变量,函数声明等
  而OWNMATH.C文件主要是包含12864液晶显示屏的写数据、写指令函数。
  本程序当中最核心的程序部分应该是键盘扫描函数,读者可以细细品味其中的优点,在此不作叙述!
  对了,修改密码的函数是采用中断方式1的模式进行的,大家也可以细细品味。
*/
#include < reg52.h > //包含头文件
#include “LcdInit.h“ //包含本地文件LcdInit.h
#include “ownmath.c“ //包含本地文件ownmath.c

static uchar mima[6] = {123789}; //存入的密码
uchar shuru[6]; //将输入的密码存入到shuru这个数组当中去

//函数声明
uchar key_scan();

//字模数据(依次顺序为“居民小区:请输入密码:位数重新”)
uchar code data_shuju[15][32] = {
0x000x000xFE0x920x920x920x920x920xF20x920x920x920x9E0x800x800x00
0x400x300x0F0x000xFC0x440x440x440x470x440x440x440xFC0x000x000x00/*“居“0*/
0x000x000xFE0x220x220x220x220x220xE20x220x220x220x3E0x000x000x00
0x000x000xFF0x410x210x110x010x010x030x0D0x110x210x410xF10x000x00/*“民“1*/
0x000x000x000xE00x000x000x000xFF0x000x000x000x200x400x800x000x00
0x080x040x030x000x000x400x800x7F0x000x000x000x000x000x010x0E0x00/*“小“2*/
0x000xFE0x020x020x020x120x220x420x820x420x220x1A0x020x020x000x00
0x000x7F0x400x400x480x440x420x410x400x410x420x4C0x400x400x400x00/*“区“3*/
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x360x360x000x000x000x000x000x000x000x000x000x000x000x00/*“:“4*/
0x400x420xCC0x000x000x440x540x540x540x7F0x540x540x540x440x400x00
0x000x000x7F0x200x100x000xFF0x150x150x150x550x950x7F0x000x000x00/*“请“5*/
0x880x680x1F0xC80x080x100xC80x540x520xD10x120x940x080xD00x100x00
0x090x190x090xFF0x050x000xFF0x120x920xFF0x000x5F0x800x7F0x000x00/*“输“6*/
0x000x000x000x000x000x010xE20x1C0xE00x000x000x000x000x000x000x00
0x800x400x200x100x0C0x030x000x000x000x030x0C0x300x400x800x800x00/*“入“7*/
0x100x8C0x440x040xE40x040x950xA60x440x240x140x840x440x940x0C0x00
0x020x020x7A0x410x410x430x420x7E0x420x420x420x430xF80x000x000x00/*“密“8*/
0x040x840xE40x5C0x440xC40x000x020xF20x820x820x820xFE0x800x800x00
0x020x010x7F0x100x100x3F0x000x080x080x080x080x480x880x400x3F0x00/*“码“9*/
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x360x360x000x000x000x000x000x000x000x000x000x000x000x00/*“:“10*/
0x000xC00x300xEC0x030x2A0xC80x090x0A0x0E0x080xE80x480x080x000x00
0x010x000x000x7F0x200x200x200x270x200x300x2E0x210x200x200x200x00/*“位“11*/
0x100x920x540x380xFF0x380x540x520x800xF00x1F0x120x100xF00x100x00
0x420x420x2A0x2E0x130x1A0x260x020x400x200x130x0C0x330x600x200x00/*“数“12*/
0x080x080x0A0xEA0xAA0xAA0xAA0xFF0xA90xA90xA90xE90x080x080x080x00
0x400x400x480x4B0x4A0x4A0x4A0x7F0x4A0x4A0x4A0x4B0x480x400x400x00/*“重“13*/
0x20

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

     文件     118508  2013-10-12 18:55  仿真\GJC.DSN

     文件       1028  2013-10-12 18:55  仿真\GJC.PWI

     文件     118509  2013-10-10 12:52  仿真\Last Loaded GJC.DBK

     文件        328  2013-10-09 13:15  字模方式.txt

     文件      33052  2013-10-12 18:55  程序\1

     文件      27645  2013-10-10 00:53  程序\1.bak

     文件      29043  2013-10-12 18:55  程序\1.c

     文件      13574  2013-10-12 18:55  程序\1.hex

     文件         34  2013-10-12 18:55  程序\1.lnp

     文件      53811  2013-10-12 18:55  程序\1.LST

     文件      29578  2013-10-12 18:55  程序\1.M51

     文件      44828  2013-10-12 18:55  程序\1.OBJ

     文件       1679  2013-10-12 18:55  程序\1.plg

     文件        885  2013-10-09 13:18  程序\1.PWI

    .......     57002  2013-10-12 18:55  程序\1.uvopt

     文件      13217  2013-10-09 19:20  程序\1.uvproj

    .......     56996  2013-10-12 12:50  程序\1_uvopt.bak

     文件      13213  2013-10-09 13:16  程序\1_uvproj.bak

     文件       1625  2013-10-10 00:49  程序\LcdInit.bak

     文件       1796  2013-10-12 18:52  程序\LcdInit.h

     文件       7248  2013-10-10 00:45  程序\OwnMath.bak

     文件       6091  2013-10-10 00:53  程序\OwnMath.c

     目录          0  2013-10-12 18:55  仿真

     目录          0  2013-10-12 18:55  程序

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

               629690                    24


评论

共有 条评论