Description: 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.
To Search:
File list (Check if you may need any files):
66 Key Lock
...........\Key Lock (2)
...........\Key Lock (2).asm
...........\Key Lock (2).DSN
...........\Key Lock (2).hex
...........\Key Lock (2).lnp
...........\Key Lock (2).LST
...........\Key Lock (2).M51
...........\Key Lock (2).OBJ
...........\Key Lock (2).Opt
...........\Key Lock (2).plg
...........\Key Lock (2).PWI
...........\Key Lock (2).Uv2
...........\Key Lock (2)_Opt.Bak
...........\Key Lock (2)_Uv2.Bak
...........\Last Loaded Key Lock (2).DBK
...........\new66.c
...........\new66.LST
...........\new66.OBJ