Question: HW #4 CpE-363: Introduction to Embedded Systems Spring 2019/2020 Submit solution of Q4 only!! 1) Compute the time delay for the given delay routine for

 HW #4 CpE-363: Introduction to Embedded Systems Spring 2019/2020 Submit solution

HW #4 CpE-363: Introduction to Embedded Systems Spring 2019/2020 Submit solution of Q4 only!! 1) Compute the time delay for the given delay routine for an 8051 system operating with frequency of 4 MHz Show all your computations DELAY: MOV RS, #100 BACK: MOV R2. #200 AGAIN: MOV R3, #250 HERE NOP NOP DEC R3 CUNE R3, 100, HERE DJNZ R2, AGAIN DJNZ RS, BACK 2) Write a subroutine that provides a delay of exactly one millisecond (ms) using a crystal speed of 24MHz. Make sure that all used registers keep their original values that they had before the call 3) Write an 8051 program to generate a 50 KHz square wave of 50% duty cycle on PO 2. Assume the operating frequency for the microcontroller is 12 MHz. Verify your program by running it on the lab-center simulator tool. For this question, submit the following: a) The design file b) The assembly file 4) Design a traffic light system that works automatically only to manage an intersection of three different directions. Each light should be green for approximately three seconds, orange for second and red for the rest of the time. Your system should include three traffic lights. For this question, submit print out of your design and your code. Make a video of your system and send it using WhatsApp if requested 5) What is an addressing mode? Identify the addressing mode for each of the following instructions (both for the source and destination operandis where it applies). b. MOV PI, #30H C. ADD A, 420 d.MOV R7, A c.MOV RO, A INC DPTR 8. ORL 20H, W30H h. CINE A 30H, NEXT i DJNZ R4. BACK JMPA+DPTR k. ACALL DELAY LMOV 20H. OOH m MOV OHL GRO n. MOVCA, ADPTR MOVX A. GDPTR PUSH 20H 4. SJMP FORWARD HW #4 CpE-363: Introduction to Embedded Systems Spring 2019/2020 Submit solution of Q4 only!! 1) Compute the time delay for the given delay routine for an 8051 system operating with frequency of 4 MHz Show all your computations DELAY: MOV RS, #100 BACK: MOV R2. #200 AGAIN: MOV R3, #250 HERE NOP NOP DEC R3 CUNE R3, 100, HERE DJNZ R2, AGAIN DJNZ RS, BACK 2) Write a subroutine that provides a delay of exactly one millisecond (ms) using a crystal speed of 24MHz. Make sure that all used registers keep their original values that they had before the call 3) Write an 8051 program to generate a 50 KHz square wave of 50% duty cycle on PO 2. Assume the operating frequency for the microcontroller is 12 MHz. Verify your program by running it on the lab-center simulator tool. For this question, submit the following: a) The design file b) The assembly file 4) Design a traffic light system that works automatically only to manage an intersection of three different directions. Each light should be green for approximately three seconds, orange for second and red for the rest of the time. Your system should include three traffic lights. For this question, submit print out of your design and your code. Make a video of your system and send it using WhatsApp if requested 5) What is an addressing mode? Identify the addressing mode for each of the following instructions (both for the source and destination operandis where it applies). b. MOV PI, #30H C. ADD A, 420 d.MOV R7, A c.MOV RO, A INC DPTR 8. ORL 20H, W30H h. CINE A 30H, NEXT i DJNZ R4. BACK JMPA+DPTR k. ACALL DELAY LMOV 20H. OOH m MOV OHL GRO n. MOVCA, ADPTR MOVX A. GDPTR PUSH 20H 4. SJMP FORWARD

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!