CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - 93c66.a51
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - 93c66.a51 - List
[
SCM
]
key
DL : 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.*/
Update
: 2025-02-17
Size
: 86kb
Publisher
:
林羽
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.