The purpose of this lab is to control and program the MC8051 Counters of the micro-controller in a given sequence. The program displays current count of Counter 0 on port 1 (P1) and Counter 1 on port 2 (P2). The initial THO value is FOH and TH1 is E1H. Counter0 and Counter1 are programmed in mode 2 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; P1, P2, and P3. The Main program starts at code memory address 40H. The main program only function is updating P1 & P2 and displaying the two overflow flags on port 3. 2. Second, in the main program configure the two Counters for Mode 2 with the given initial two counts. Start Counterro & Counter1, initiate the external clock pulses on your Keil simulator, and display its accumulated count values on P1 & P2. Continue updating the status of TFO & TF1 on P3.0 & 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 external pin clocks. The clock window can be used to control the CPU clock speed, which can help during the debugging process. 4. Run the program and monitor all displayed windows. Verify the operation of the two Counters, TFO & TF1, and the three display ports. 5. Test and debug your program. Also, document and submit your final report along with the well documented list file. You can slow the Counters and Ports update by controlling the MC clock using the clock window in the PREPHERALS selection.
The purpose of this lab is to control and program the MC8051 Counters of the micro-controller in a given sequence. The program displays current count of Counter 0 on port 1 (P1) and Counter 1 on port 2 (P2). The initial THO value is FOH and TH1 is E1H. Counter0 and Counter1 are programmed in mode 2 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; P1, P2, and P3. The Main program starts at code memory address 40H. The main program only function is updating P1 & P2 and displaying the two overflow flags on port 3. 2. Second, in the main program configure the two Counters for Mode 2 with the given initial two counts. Start Counterro & Counter1, initiate the external clock pulses on your Keil simulator, and display its accumulated count values on P1 & P2. Continue updating the status of TFO & TF1 on P3.0 & 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 external pin clocks. The clock window can be used to control the CPU clock speed, which can help during the debugging process. 4. Run the program and monitor all displayed windows. Verify the operation of the two Counters, TFO & TF1, and the three display ports. 5. Test and debug your program. Also, document and submit your final report along with the well documented list file. You can slow the Counters 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
Related questions
Question
100%
Hello, can you please help me do this exercise. Using Keil uVision 5. Thanks
Expert Solution
Step 1: Introduction
Assembly code is a low level programming language which is between high level language and machine level language.
Step by step
Solved in 4 steps
Knowledge Booster
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.Recommended textbooks for you
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education