Question: Write an assembly language program for PIC18f452, which performs the following task: A security door is only opened if a specific code is entered. The
Write an assembly language program for PIC18f452, which performs the following task: A security door is only opened if a specific code is entered. The code is entered using two buttons. If the correct code is entered the door is opened (Turn on LED for 3 seconds), but if the code is incorrect, then a red LED turns on for 3 seconds indicating that the code entered is incorrect, and the door does not open. The correct pattern is B1+B1+B2+B1. If the buttons are pressed in any other order the code is considered incorrect. B1 = button1 B2 = button2
Requirements: 1. The buttons are monitored through interrupts 2. 3 seconds delay is generated using Timer0 3. Delay should be exactly 3 seconds, use proper calculations. 4. Code should be properly commented.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
