Question: 3.6.1 Part 1: a. Test the following code on the KEIL software IDE, ; Project Exp-03 part-01 ; Name: XXXXXXXXX ID:NNNNNN Sec: XX ; Date

3.6.1 Part 1: a. Test the following code on the KEIL software IDE, ; Project Exp-03 part-01 ; Name: XXXXXXXXX ID:NNNNNN Sec: XX ; Date Tuesday, February 9th 2021 ORG 0000H ; Directive LOOP: SETB P1.0 ; Set Pin 0 of Port 1 to high (1 mc) GNOP ; No Operation (1 me) CLR P1.0 ; Set Pin 0 of Port 1 to low (1 mc) SJMP LOOP ; Short Jump to beginning (2 mc) END ; Directive b. Using the debugging tool, a. find with good accuracy the clock cycle of the system. b. Show your work using an illustration. c. Modify the code to generate a square wave signal with a duty cycle equal to 50 %. Show the output signal. d. Using assembly programming, and signals of duty cycle as mentioned above, what is the highest frequency that can be generated on pin 0 of Port 1? e. Generate the executable file (file with hex extension). The hex file is found in the "Objects folder. The file contains a preamble and opcode of the different instructions. a. Separate the two parts, b. Identify the opcode of each instruction. c. Do all instructions have the same code length? d. What do you think the extra bytes at the beginning of the hex file are used for? 3.6.1 Part 1: a. Test the following code on the KEIL software IDE, ; Project Exp-03 part-01 ; Name: XXXXXXXXX ID:NNNNNN Sec: XX ; Date Tuesday, February 9th 2021 ORG 0000H ; Directive LOOP: SETB P1.0 ; Set Pin 0 of Port 1 to high (1 mc) GNOP ; No Operation (1 me) CLR P1.0 ; Set Pin 0 of Port 1 to low (1 mc) SJMP LOOP ; Short Jump to beginning (2 mc) END ; Directive b. Using the debugging tool, a. find with good accuracy the clock cycle of the system. b. Show your work using an illustration. c. Modify the code to generate a square wave signal with a duty cycle equal to 50 %. Show the output signal. d. Using assembly programming, and signals of duty cycle as mentioned above, what is the highest frequency that can be generated on pin 0 of Port 1? e. Generate the executable file (file with hex extension). The hex file is found in the "Objects folder. The file contains a preamble and opcode of the different instructions. a. Separate the two parts, b. Identify the opcode of each instruction. c. Do all instructions have the same code length? d. What do you think the extra bytes at the beginning of the hex file are used for
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
