MSP430 F149 MCU code lock pocket handle board

Completed
1. Password lock
Task requirements:
When entering a password (at least 6 digits), the OLED display will display the entered numbers (or characters). When the number of digits of the password is entered and press the confirm key, the entered password and settings Set the password for comparison (you can use the peripheral keyboard). The main functions are as follows:
Grading rules:

  1. The screen shows the password input (20 minutes);
  2. Each time you press a button, the buzzer emits a short beep (10 minutes);
  3. If the password is entered correctly, the display shows a prompt that the password is entered correctly, and the buzzer emits a short tone (20 minutes);
  4. If the password is entered incorrectly, the display will show the prompt of incorrect password input, the buzzer will emit a long warning tone, and the water lamp module will flash (20 minutes);
  5. With input cancel button, when the wrong button is pressed, there is cancel function (15 points);
  6. Entering errors three times in a row, the keyboard is frozen for 1 minute, you cannot enter within this minute. (15 marks).
    [Note]
    P15 on the pocket development board is the cancel key, and P16 is the confirm key. MSP430, STM32 single-chip microcomputer password input keys are P11, P12, P13, P14 four keys, a total of four numbers (or characters); STC89C51 single-chip microcomputer password input keys are P13, P14 two keys, a total of two numbers (or characters). Which key represents what number (or character), the user can customize.

Involved MCU content and pocket development board module:
MCU: I/O function, interrupt system, timing\counting, display interface
Pocket development board: water lamp, independent buttons, buzzer, OLED display

Guess you like

Origin blog.csdn.net/x1131230123/article/details/108468794