Introduction - If you have any usage issues, please Google them yourself
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.