文件名称:key
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 86kb
- 下载次数:
- 0次
- 提 供 者:
- 林*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
这里有一个单片机密码锁的程序,具体功能是
这个范例说明如何使用8051, LCD显示器和4ⅹ4的小键盘,制作一个密
码锁。PORT 1 连接到LCD显示器的数据线。PORT 3 的P3.3,P3.4和P3.5分别
连接到LCD显示器的控制线。PORT 2连接到4ⅹ4的小键盘,可以输入密码。
执行修改密码或是时间的程序时,首先让LCD显示器显示出时间和日期。
当用户按下4ⅹ4小键盘的按钮 A 时,可以输入密码。如果密码正确时,就
会让 P3.6的 LED 闪烁,表示打开锁。如果密码不正确时,LCD显示器就会
显示出
"PASSWORD WRONG"。
当用户按下4ⅹ4小键盘的按钮 B时,可以修改时间。
当用户按下4ⅹ4小键盘的按钮 C时,可以修改密码。*/
编译环境 Keil uVision3,系统 winxp3-There is a single chip program lock, the specific function is
This example illustrates how to use the 8051, LCD monitor and 4 ⅹ 4 small keyboard, making a
Close
Code lock. PORT 1 LCD monitor connected to the data lines. PORT 3 of the P3.3, P3.4 and P3.5 points
Do not
LCD monitor connected to the control line. PORT 2 is connected to 4 ⅹ 4 keypad, you can enter the password.
Implementation of the procedures or time to change the password, the first LCD monitors to display the time and date.
4 ⅹ 4 when the user presses the button A small keyboard, you can enter the password. If the password is correct, it
The LED will flash P3.6, that opens the lock. If the password is not correct, LCD display will
Show
"PASSWORD WRONG".
When the user presses the 4 ⅹ 4 button keypad, B, can be modified.
4 ⅹ 4 when the user presses the button on the keypad C, you can change your password.*/
这个范例说明如何使用8051, LCD显示器和4ⅹ4的小键盘,制作一个密
码锁。PORT 1 连接到LCD显示器的数据线。PORT 3 的P3.3,P3.4和P3.5分别
连接到LCD显示器的控制线。PORT 2连接到4ⅹ4的小键盘,可以输入密码。
执行修改密码或是时间的程序时,首先让LCD显示器显示出时间和日期。
当用户按下4ⅹ4小键盘的按钮 A 时,可以输入密码。如果密码正确时,就
会让 P3.6的 LED 闪烁,表示打开锁。如果密码不正确时,LCD显示器就会
显示出
"PASSWORD WRONG"。
当用户按下4ⅹ4小键盘的按钮 B时,可以修改时间。
当用户按下4ⅹ4小键盘的按钮 C时,可以修改密码。*/
编译环境 Keil uVision3,系统 winxp3-There is a single chip program lock, the specific function is
This example illustrates how to use the 8051, LCD monitor and 4 ⅹ 4 small keyboard, making a
Close
Code lock. PORT 1 LCD monitor connected to the data lines. PORT 3 of the P3.3, P3.4 and P3.5 points
Do not
LCD monitor connected to the control line. PORT 2 is connected to 4 ⅹ 4 keypad, you can enter the password.
Implementation of the procedures or time to change the password, the first LCD monitors to display the time and date.
4 ⅹ 4 when the user presses the button A small keyboard, you can enter the password. If the password is correct, it
The LED will flash P3.6, that opens the lock. If the password is not correct, LCD display will
Show
"PASSWORD WRONG".
When the user presses the 4 ⅹ 4 button keypad, B, can be modified.
4 ⅹ 4 when the user presses the button on the keypad C, you can change your password.*/
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ex6-1\93C66.C
.....\93C66.ls1
.....\93C66.SRC
.....\93C66.__i
.....\delay100us.c
.....\delay100us.ls1
.....\delay100us.SRC
.....\delay100us.__i
.....\EX6-1.C
.....\ex6-1.hex
.....\ex6-1.lnp
.....\ex6-1.M51
.....\ex6-1_Uv2.Bak
.....\keypad.c
.....\lcd.c
.....\lcd.h
.....\ex6-1.plg
.....\ex6-1.Uv2
.....\keypad.LST
.....\keypad.OBJ
.....\lcd.LST
.....\lcd.OBJ
.....\EX6-1.LST
.....\EX6-1.OBJ
.....\delay100us.LST
.....\delay100us._ia
.....\93C66._ia
.....\93C66.OBJ
.....\93C66.LST
.....\ex6-1_Opt.Bak
.....\STARTUP.A51
.....\111.plg
.....\keypad1.c
.....\lcd1.c
.....\delay100us1.c
.....\EX6-11.C
.....\93C661.C
.....\93C661.SRC
.....\93C661.ls1
.....\delay100us1.__i
.....\delay100us1.SRC
.....\111.lnp
.....\111.M51
.....\EX6-11.__i
.....\keypad1.__i
.....\lcd1.__i
.....\delay100us1._ia
.....\STARTUP.OBJ
.....\STARTUP.LST
.....\93C661.LST
.....\93C661.OBJ
.....\delay100us1.LST
.....\EX6-11.LST
.....\EX6-11.OBJ
.....\keypad1.LST
.....\keypad1.OBJ
.....\lcd1.LST
.....\lcd1.OBJ
.....\111_Uv2.Bak
.....\111.Uv2
.....\111.Opt
.....\ex6-1.Opt
ex6-1
.....\93C66.ls1
.....\93C66.SRC
.....\93C66.__i
.....\delay100us.c
.....\delay100us.ls1
.....\delay100us.SRC
.....\delay100us.__i
.....\EX6-1.C
.....\ex6-1.hex
.....\ex6-1.lnp
.....\ex6-1.M51
.....\ex6-1_Uv2.Bak
.....\keypad.c
.....\lcd.c
.....\lcd.h
.....\ex6-1.plg
.....\ex6-1.Uv2
.....\keypad.LST
.....\keypad.OBJ
.....\lcd.LST
.....\lcd.OBJ
.....\EX6-1.LST
.....\EX6-1.OBJ
.....\delay100us.LST
.....\delay100us._ia
.....\93C66._ia
.....\93C66.OBJ
.....\93C66.LST
.....\ex6-1_Opt.Bak
.....\STARTUP.A51
.....\111.plg
.....\keypad1.c
.....\lcd1.c
.....\delay100us1.c
.....\EX6-11.C
.....\93C661.C
.....\93C661.SRC
.....\93C661.ls1
.....\delay100us1.__i
.....\delay100us1.SRC
.....\111.lnp
.....\111.M51
.....\EX6-11.__i
.....\keypad1.__i
.....\lcd1.__i
.....\delay100us1._ia
.....\STARTUP.OBJ
.....\STARTUP.LST
.....\93C661.LST
.....\93C661.OBJ
.....\delay100us1.LST
.....\EX6-11.LST
.....\EX6-11.OBJ
.....\keypad1.LST
.....\keypad1.OBJ
.....\lcd1.LST
.....\lcd1.OBJ
.....\111_Uv2.Bak
.....\111.Uv2
.....\111.Opt
.....\ex6-1.Opt
ex6-1