• 大小: 0.08M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: 其他
  • 标签: 其他  

资源简介


包括keil源程序、Proteus仿真元件图,可直接运行仿真

资源截图

代码片段和文件信息

/***** LCD 12864 with KS0108B controller display driver *****/

#define uchar unsigned char
#include
#include
bit verify=0;
bit cursor=1;
bit modify_flag=0modify=0;
uint time_counter=0;
uchar counter=0j=0ik;
uchar PASS[8]={12345678};
uchar PW[8]={00000000};
uchar PW_NULL[8]={00000000};
uchar MODIFY_BUF[8]={00000000};


/****************************verify pw  ************************/
bit VerifyAray(void)
{
uchar i;
bit temp=FAULSE;
for(i=0;i<8;i++)
{
if(PW[i]==PASS[i])temp=TRUE;

   else 
   {
         temp=FAULSE;
 i=8;                       //end for loop
 }
 }
    return(temp);
}


/*********************** main ************************/

void main(void)
{
E=1;
DspOn();
ClearLCD();

// IT0=1;
// IT1=1;
// EX0=1;
// EX1=1;

TMOD=0x10;
ET1=1;
EA=1;
TH1=0x00;
TL1=0x00;
TR1=1;

while(1)
{
        /******************fist line

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

     文件      33777  2007-07-28 16:37  8-password-LCD\12864lcd

     文件      15331  2007-07-28 16:37  8-password-LCD\12864lcd.hex

     文件         28  2007-07-28 16:37  8-password-LCD\12864lcd.lnp

     文件      33251  2007-07-28 16:37  8-password-LCD\12864lcd.M51

     文件       1893  2007-07-28 17:16  8-password-LCD\12864lcd.Opt

     文件        911  2007-07-28 17:16  8-password-LCD\12864lcd.plg

     文件       2119  2007-07-28 17:16  8-password-LCD\12864lcd.Uv2

     文件      15561  2007-07-23 14:30  8-password-LCD\character.h

     文件       3326  2007-07-15 15:27  8-password-LCD\character2.h

     文件       3712  2007-07-23 14:41  8-password-LCD\drive_functions.h

     文件        884  2007-07-16 23:48  8-password-LCD\get_keys.h

     文件      68638  2007-07-10 01:40  8-password-LCD\Last Loaded LCD.DBK

     文件     102390  2007-07-16 02:29  8-password-LCD\Last Loaded password-LCD.DBK

     文件       9837  2007-07-23 14:55  8-password-LCD\lcd.c

     文件      28802  2007-07-28 16:37  8-password-LCD\lcd.LST

     文件      39777  2007-07-28 16:37  8-password-LCD\lcd.OBJ

     文件        359  2014-04-18 23:02  8-password-LCD\lcd.pjw

     文件       1028  2007-07-14 23:19  8-password-LCD\LCD.PWI

     文件     102951  2007-07-23 15:04  8-password-LCD\password-LCD.DSN

     文件       1102  2014-04-20 10:18  8-password-LCD\password-LCD.PWI

     目录          0  2014-04-20 10:18  8-password-LCD

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

               465677                    21


评论

共有 条评论