Overview The purpose of this lab is to control and program the MC8051 Timers of the micro-controller in a given sequence. The program reads port 1 (P1) and outputs its initial status on port 2 (P2). The initial P1 input is incremented at a controlled rate and displayed on P2. Display update takes place once at the end of a sequence including Timer0 overflow followed by Timer1 overflow. Timero and Timer1 are programmed using the polling mode, no interrupts. The status of TFO and TF1 are displayed on Port 3 bit 0 (P3.0) and bit 1 (P3.1) respectively. Steps 1. First, configure and initialize the required parallel ports; Timer 0 to mode 1, and Timer1 to mode 1. The Main program starts at code memory address 40H, The main program only function is reading P1, updating P2, and displaying the two overflow flags on port 3. 2. Second, in the main program configure the two timers, Timero and Timer1, for Mode 1 with maximum possible delay time. Enable the Timero and Timer1 interrupts, start Timero, read port P1, and display its initial value on P2. Continue updating port P2 and the status of TFO & TF1 on P3.0 and P3.1. 3. Third, configure the debugger display to include the Timer0, Timer1, P1, P2, P3, and the Clock Control windows. Make sure that the Timers windows are configured for no external interrupts and no external pin clocks. The clock window can be used to control the CPU clock speed, which can help during the debugging process. 4. Fourth, set port 1 (P1) to the desired input value for the up counting on port 2 (P2). Run the program and monitor all displayed windows. Verify the operation of the two timers, TFO & TF1, and the two display ports. Repeat for different initial P1 value and a varying values during the program execution. 5. Test and debug your program. Also document and submit your final report along with the well documented list file. You can slow the Timers and Ports update by controlling the MC clock using the clock window in the PREPHERALS selection.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Hello, can you please help me do this lab using a program called Uvision 5. I attached a screenshot of the logo of the program so you know which one it is exactly

### Keil uVision5

The image is an icon for the software "Keil uVision5." This software is widely used in embedded systems development to create, debug, and optimize applications for microcontrollers. The icon features a green background with a white "μ" (mu) symbol prominently displayed, representing "micro," accompanied by the number "5." This indicates the version of the software, which is uVision5. Below the icon is the text "Keil uVision5," which is the name of the software package. 

Keil uVision5 offers a comprehensive development environment, including code editing, compiling, and debugging tools tailored for ARM Cortex-M microcontrollers. It's widely used by engineers and developers for creating and testing embedded applications due to its robust feature set and ease of integration with other tools and platforms.
Transcribed Image Text:### Keil uVision5 The image is an icon for the software "Keil uVision5." This software is widely used in embedded systems development to create, debug, and optimize applications for microcontrollers. The icon features a green background with a white "μ" (mu) symbol prominently displayed, representing "micro," accompanied by the number "5." This indicates the version of the software, which is uVision5. Below the icon is the text "Keil uVision5," which is the name of the software package. Keil uVision5 offers a comprehensive development environment, including code editing, compiling, and debugging tools tailored for ARM Cortex-M microcontrollers. It's widely used by engineers and developers for creating and testing embedded applications due to its robust feature set and ease of integration with other tools and platforms.
**Overview**

The purpose of this lab is to control and program the MC8051 Timers of the microcontroller in a given sequence. The program reads port 1 (P1) and outputs its initial status on port 2 (P2). The initial P1 input is incremented at a controlled rate and displayed on P2. Display updates take place once at the end of a sequence including Timer0 overflow followed by Timer1 overflow. Timer0 and Timer1 are programmed using the polling mode, with no interrupts. The status of TF0 and TF1 are displayed on Port 3 bit 0 (P3.0) and bit 1 (P3.1) respectively.

**Steps**

1. **Initialization:**
   - Configure and initialize the required parallel ports; set Timer0 to mode 1, and Timer1 to mode 1.
   - The main program starts at code memory address 40H. Its function is to read P1, update P2, and display the two overflow flags on port 3.

2. **Configuration:**
   - In the main program, configure the two timers, Timer0 and Timer1, for Mode 1 with maximum possible delay time.
   - Enable the Timer0 and Timer1 interrupts, start Timer0, read port P1, and display its initial value on P2.
   - Continue updating port P2 and the status of TF0 & TF1 on P3.0 and P3.1.

3. **Debugger Setup:**
   - Configure the debugger display to include the windows for Timer0, Timer1, P1, P2, P3, and the Clock Control.
   - Ensure that the Timers windows are configured for no external interrupts and no external pin clocks.
   - Use the Clock window to control the CPU clock speed, aiding the debugging process.

4. **Execution:**
   - Set port 1 (P1) to the initial input value for the up counting on port 2 (P2).
   - Run the program and monitor all displayed windows.
   - Verify the operation of the two timers, TF0 & TF1, and the two display ports.
   - Repeat for different initial P1 values and varying values during the program execution.

5. **Testing and Documentation:**
   - Test and debug your program.
   - Document and submit your final report along with the well-documented list file.
   - You can slow
Transcribed Image Text:**Overview** The purpose of this lab is to control and program the MC8051 Timers of the microcontroller in a given sequence. The program reads port 1 (P1) and outputs its initial status on port 2 (P2). The initial P1 input is incremented at a controlled rate and displayed on P2. Display updates take place once at the end of a sequence including Timer0 overflow followed by Timer1 overflow. Timer0 and Timer1 are programmed using the polling mode, with no interrupts. The status of TF0 and TF1 are displayed on Port 3 bit 0 (P3.0) and bit 1 (P3.1) respectively. **Steps** 1. **Initialization:** - Configure and initialize the required parallel ports; set Timer0 to mode 1, and Timer1 to mode 1. - The main program starts at code memory address 40H. Its function is to read P1, update P2, and display the two overflow flags on port 3. 2. **Configuration:** - In the main program, configure the two timers, Timer0 and Timer1, for Mode 1 with maximum possible delay time. - Enable the Timer0 and Timer1 interrupts, start Timer0, read port P1, and display its initial value on P2. - Continue updating port P2 and the status of TF0 & TF1 on P3.0 and P3.1. 3. **Debugger Setup:** - Configure the debugger display to include the windows for Timer0, Timer1, P1, P2, P3, and the Clock Control. - Ensure that the Timers windows are configured for no external interrupts and no external pin clocks. - Use the Clock window to control the CPU clock speed, aiding the debugging process. 4. **Execution:** - Set port 1 (P1) to the initial input value for the up counting on port 2 (P2). - Run the program and monitor all displayed windows. - Verify the operation of the two timers, TF0 & TF1, and the two display ports. - Repeat for different initial P1 values and varying values during the program execution. 5. **Testing and Documentation:** - Test and debug your program. - Document and submit your final report along with the well-documented list file. - You can slow
Expert Solution
Step 1: Introduction

Assembly code is a low level programming language which is between high level language and machine level language. 

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Analysis of Performance Measurement
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education