This task designs a simple access control system including 4 buttons and 1 7-segment display driver. The basic functions are as follows: 4 buttons, respectively representing the numbers 0,1,2.3 The password is set in advance in the program, with the number between 0 and 3 The 7-segment tube displays "-", indicating waiting for password input When the password is entered correctly, the character "P" is displayed about 3s, and the lock is opened through P3.0; Otherwise, the character "E" is displayed, about 3s, and the lock remains locked.