66KeyLock

所属分类:FlashMX/Flex源码
开发工具:C/C++
文件大小:54KB
下载次数:1
上传日期:2009-04-30 16:53:54
上 传 者xwl163
说明:  此题目是通过键盘来实现密码输入是否正确,正确的时候数码管亮,否则发出报警声。 判断是按键还是干扰是非常有用的,它体现了一个系统的抗干扰能力。高低电平在瞬间的变换是很正常的,如果没有这条语句,系统很容易出错。 其中2秒是由定时器0来完成的。 在程序的定时器中断中,用switch代替了if else结构,使得程序的可读性大大增强。 TH0 = (65536-50000) / 256 TL0 = (65536-50000) 256 使得TH0 = 3CH, TL0 = B0H,由于该单片机的晶振为12MHz 因此定时时间就为0.05ms.在定时器中断服务程序中用FLASH计数,当计数达到40时正好是2秒。
(This topic is through the keyboard to realize the correct password is correct, when GuanLiang digital alarm sound, otherwise. Judgment is a key or interference is very useful, it reflects the anti-interference ability of a system. High level in the instant transformation is very normal, if not this statement, the system is very easy to make a mistake. 2 seconds is accomplished by the timer 0. In the process of the timer interrupt, switch with replaced if else structure, make the readability of the procedures enhanced greatly. TH0 = (65536-50000)/256, TL0 = (65536-50000) 256, Make TH0 3CH, TL0 = = B0H, because the MCU crystals for 12MHz, So regularly time is 0.05 ms in timer interrupt service routines, when using FLASH counting 40 count when exactly 2 seconds.)

文件列表:
66 Key Lock\Key Lock (2) (12391, 2008-11-26)
66 Key Lock\Key Lock (2).asm (5661, 2008-11-25)
66 Key Lock\Key Lock (2).DSN (64101, 2006-11-01)
66 Key Lock\Key Lock (2).hex (3009, 2008-11-26)
66 Key Lock\Key Lock (2).lnp (34, 2008-11-26)
66 Key Lock\Key Lock (2).LST (24088, 2008-11-20)
66 Key Lock\Key Lock (2).M51 (18315, 2008-11-26)
66 Key Lock\Key Lock (2).OBJ (3037, 2008-11-20)
66 Key Lock\Key Lock (2).Opt (1204, 2008-11-26)
66 Key Lock\Key Lock (2).plg (5016, 2008-11-26)
66 Key Lock\Key Lock (2).PWI (742, 2008-12-06)
66 Key Lock\Key Lock (2).Uv2 (2129, 2008-11-26)
66 Key Lock\Key Lock (2)_Opt.Bak (1219, 2008-11-26)
66 Key Lock\Key Lock (2)_Uv2.Bak (2147, 2008-11-25)
66 Key Lock\Last Loaded Key Lock (2).DBK (64101, 2006-11-01)
66 Key Lock\new66.c (4617, 2008-11-26)
66 Key Lock\new66.LST (14593, 2008-11-26)
66 Key Lock\new66.OBJ (15344, 2008-11-26)
66 Key Lock (0, 2008-12-06)

近期下载者

相关文件


收藏者