Question: (3) (A) Show the waveform by identifying the level by each instruction. Find the period, T, and the duty cycle, DC. (13pts.) (B) Convert the

(3) (A) Show the waveform by identifying the level by each instruction. Find the period, T, and the duty cycle, DC. (13pts.) (B) Convert the SJMP ST instruction (ONLY SJMP) into the hex code. You must show the calculation of the offset. (7pts.) ST: SETB P1.0 ADD A, ACC CLR P1.0 MOV PO, #20H ,2cycle, 3byte SJMP ST ;2cycle : (C) Change the program for the 50% duty cycle by inserting a minimum number of NOP instructions. For this case, the period will change. Show the complete program. (5pts.) (5) Write a sequence of instructions to implement the following: (15pts) (4) Rewrite the following program by using indirect addressing. (You are not allowed to use direct addressing anywhere. Your program must be functionally equivalent to the original.) (15pts.) MOV A, 55H ADD A, 56H ADD A, 57H MOV 59H, A IF (content of R5) = negative THEN Execute "SETB P1.0" ELSE Execute "SETB P1.7" (3) (A) Show the waveform by identifying the level by each instruction. Find the period, T, and the duty cycle, DC. (13pts.) (B) Convert the SJMP ST instruction (ONLY SJMP) into the hex code. You must show the calculation of the offset. (7pts.) ST: SETB P1.0 ADD A, ACC CLR P1.0 MOV PO, #20H ,2cycle, 3byte SJMP ST ;2cycle : (C) Change the program for the 50% duty cycle by inserting a minimum number of NOP instructions. For this case, the period will change. Show the complete program. (5pts.) (5) Write a sequence of instructions to implement the following: (15pts) (4) Rewrite the following program by using indirect addressing. (You are not allowed to use direct addressing anywhere. Your program must be functionally equivalent to the original.) (15pts.) MOV A, 55H ADD A, 56H ADD A, 57H MOV 59H, A IF (content of R5) = negative THEN Execute "SETB P1.0" ELSE Execute "SETB P1.7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
