Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Here is my homework can you help me for this homework A combination lock is installed on the entrance door of a room to ensure
Here is my homework can you help me for this homework
A combination lock is installed on the entrance door of a room to ensure that only authorized
persons can enter. This lock is microprocessor controlled and its circuit is shown below. The red LED
used in the circuit is used to give the user a wait signal to log in The green LED is used to indicate
that the entered password is correct. The solenoid used in the lock is connected to the PC port. A
fourdigit password is used. The password is entered by pressing four keys in sequence. Assume that
the password information is stored in consecutive addresses starting from the PASSWORD address.
The debounce time of the keys is ms Assume that the DEBOUNCE subroutine, which provides a
delay of this duration, is ready.
ADDRESS PASSWORD DIGIT
PASSWORD DIGIT
PASSWORD DIGIT
PASSWORD DIGIT
PASSWORD DIGIT
a Design the address decoder circuit suitable for the memory and IO Map design you choose. Use
the minimum number of switching elements for the decoder circuit. The onboard memory will
be used to store the necessary variables. The stack region will also be in the same RAM.
b Write the command words required to program the PIA.
c Write a program named FINDBUTTON that returns the code of the pressed button in register
A
d Write an program that compares the digit password information entered using the keypad
with the fourdigit password information stored in memory starting from the PASSWORD address,
and when the correct password is entered, turns on the green LED and sends the necessary signal to
the solenoid driver.
D D: Germanium or small signal silicon diode
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started