Question: 1/2 100% + For all questions below, submit a soft-copy of all programs developed in a separate file along with your solution. Please use any

 1/2 100% + For all questions below, submit a soft-copy of
all programs developed in a separate file along with your solution. Please
use any file compression software to submit a single (ZIP) file containing

1/2 100% + For all questions below, submit a soft-copy of all programs developed in a separate file along with your solution. Please use any file compression software to submit a single (ZIP) file containing your assembly files as well as your homework solution as a pdf. 1. (5 points) What is the maximum delay that can be implemented using the timers using mode 1 and mode 2 (ie, a single timer run) assuming the 8051 is connected to a 12 Mhz crystal. Show your work 2. (8 points) Write a procedure that implements al second delay using the on-chip timers using mode 1. Assume the 8051 is connected to a 12Mhz crystal. Give a short paragraph that describes your solution and give a flow diagram that shows the implementation of your solution. Hint: you may need to run the timer multiple times 3. (5 points) Find the command byte that must be sent to the LCD to accomplish each of the following: (a) Set interface size=4-bit, number of display line =1, font 5x10 dots (b) Turn OFF the LCD display (c) Turn ON the LCD display, with cursor on, but not blinking (d) Shift the display to the left (without changing DDRAM content) (e) Set DDRAM address to first position on the second line (assuming 2-line mode is in 4. (10 points) Using the example "hw5.lod asm" (attached with the assignment) as a starting point, write an LCD code that will display your name on the LCD in the EdSim51 simulator Your first name should be displayed on the first line, and your last name on the second line. 5. (7 points) Modify your code from problem (4) to make your name flashes. The name should be ON for a period of time OFF for the same period. For the purpose of this problem, use an update frequency of 200 in the simulator. Homework 5 1 Due Feb 16 Fall 2020 CpE 363 / Sec. 03 6. (5 points) Assume a keypad is connected to 8051 as shown. If the content of register A after executing the code sequence below is equal to OFAH, identify the key(s) pressed if any. Explain your answer 8051 Keypad Mov Po, OFF P 0 MOV PIWOBDH 123 MOV A.PO 89 AB C D E F P 2 / 2 79% + 7. (5 points) Assume 8051 is connected to keypad as given in problem 6, if procedure "Test" below was called (i.e. by main program), explain when it will returns to main program. Be specific. Hint: your answer should be related to keypad key(8) status. Test: MOV PO,#OPFH MOV P1,#0FBH LOOP: MOV A.PO ANL A,#OFH CINE A #OFH,NEXT SJMP LOOP NEXT: RET 8. 10 points) Consider the keypad program attached to this assignment called "hw5 keypad.asm" (using the connection as given in the code), what will be the value returned in register R7 for each of the following cases: (a) keys "2" and "5" are pressed simultaneously. (b) keys "4" and "5" are pressed simultaneously. Your answer should be based on analyzing the code and not by using the simulator. Explain your answer for each of the cases given

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!