Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

image text in transcribed

(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, 3 byte 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, 3 byte 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions