Question: ASM code 25. Estimate the time wasted in CSE, NSU, and EEE sub-routines for the following ASM code, given that MCU is connected with 16

ASM code 25. Estimate the time wasted in CSE, NSU, and EEE sub-routines for the following ASM code, given that MCU is connected with 16 MHz crystal oscillator: CSE-Sub-Routine MCS NSU-Sub-Routine MCS RISH-Sub-Routine MCS MOV RO, # 100 2 MOV RO, # 90 H 2 MOV RO, # 90 H 2 LX: MOV R1, #10 2 LX: MOV R1, #05 H 2 EEE: MOV R1, # 50 2 LY: NOP 1 LY: NOP 1 LY: NOP NOP NOP NOP NOP 1 NOP NOP DJNZ R1, LY 3 DJNZ R1, LY 3 DJNZ R1, LY DJNZ RO, LX DJNZ RO, LX DJNZ RO, EEE RET 2 RET RET 1 1 1 1 1 1 3 3 3 3 2 2 26. An array of 8 LEDs are connected with MCU 8051 through port 1. The MCU 8051 also is connected to a 16 MHz crystal oscillator. Write an ASM code to blink all the LEDs in an alternative pattern (i.e. two consecutive LEDs will be at different states) with a time delay of 1.5 ms. for 600 times. ASM code 25. Estimate the time wasted in CSE, NSU, and EEE sub-routines for the following ASM code, given that MCU is connected with 16 MHz crystal oscillator: CSE-Sub-Routine MCS NSU-Sub-Routine MCS RISH-Sub-Routine MCS MOV RO, # 100 2 MOV RO, # 90 H 2 MOV RO, # 90 H 2 LX: MOV R1, #10 2 LX: MOV R1, #05 H 2 EEE: MOV R1, # 50 2 LY: NOP 1 LY: NOP 1 LY: NOP NOP NOP NOP NOP 1 NOP NOP DJNZ R1, LY 3 DJNZ R1, LY 3 DJNZ R1, LY DJNZ RO, LX DJNZ RO, LX DJNZ RO, EEE RET 2 RET RET 1 1 1 1 1 1 3 3 3 3 2 2 26. An array of 8 LEDs are connected with MCU 8051 through port 1. The MCU 8051 also is connected to a 16 MHz crystal oscillator. Write an ASM code to blink all the LEDs in an alternative pattern (i.e. two consecutive LEDs will be at different states) with a time delay of 1.5 ms. for 600 times
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
