Connect an LCD and a Keypad to 8051. Write a program to read two
16-bit numbers in the hexadecimal radix from the keypad (from
0000-FFFF) and then asks the user to select one of the logical
operation AND, OR,XOR and NOR. The program should compute the result and display it in both binary and hexadecimal.For Entering a hexadecimal number by using a keypad, consider /key as digit A,* key as digit B,- key as digit C,+ key as digit D,=key a digit E and ON/C key as digit F.
The output of the program should be as follows:
Step 1:Number 1=AB 75(on the 1st line of LCD)
Number2=E27F (on the 2nd line of LCD)
(Clear LCD)
Step 2:
Select Operator (on the 1st line of LCD)
(Clear LCD after 2 seconds)
Step 3:
1-AND 2-OR (on the 1st line of LCD)
3-XOR 4-NOR (on the 2nd line of LCD)
Step 4:
Result=XXXX(on the 1st line of LCD)
xxxxxxxxxxxxxxxx (on the 2nd line of LCD)
Can you explain the drawing of the diagram step by step and write the code.