Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Step: 3

blur-text-image

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 Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions