"Tutorial 5" 1. Discuss what happens if interrupts TFI, INTO, and TFO are activated at the same time. Assume priority levels were set by the power-up reset and the extemal hardwarc interrupts are cdge-triggered. 2. Write a progranm that continuotusly get 8-bit data from P1 and sends it to Po while simultancously creating a squre wave of 400 us period on pin P1.2 Use timer I to create the Nare wave. 3. Write a program using interupis o simultaneously crcate 6 kHz and 300 Hz square waves on P0,2 and PO.3, 4. Write a program using internpes to continually transnit the ASCII code set to a terminal attached to S051's serial port two character per second. 5. Write a progran in which the 8051 gets data from PO and sends it to PI continuously while incoming data froem the serial port is seat to PO. Set the haud rata at 1200, 6. Assume that dhe INTO pin is connecied to a switch that is nomally high. Whenever it goes low, it should tum on an LED. The LED is connected to P2.5 and is ormually off. When it is tumed os it should stay on for a fraction of a second As long as the switch is prested low, the LED should stay on.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
"Tutorial 5"
1. Discuss what happerts if interupts TFI, INTO, and TFO are activated at
the same time. Assume priority levels were set by the power-up reset and
the extemal hardware intemupts are edge-riggered.
2. Write a program that continuotusly ger 8-bit data from P2 and sends it to
Po while simultancously creating a square wave of 400 us period on pin
P1.2 Use timer I to create the square wave.
3. Write a program using interupis to siaultaneously create 6 kHz und 300
Hz square waves on P0,2 and PO.3,
4. Write a program using internupts to continually transmit the ASCII code
set to a terminal attiachod to 8051's serial port two character per second.
5. Write a progran in which the 8051 gets data from PO and sends it to PI
sontinuously while incoming dala from the serial porn is sent 1o Pa Set
the haud rata at 1200.
6. Assume that the INT) pin is connected to a switch that is normally high.
Whenever it goes low, it should tarm on an LED. The LED is connected
o P2.5 and is narmally off. When it is tumed on it should stay on for a
fraction of a second As long as the switch is prested low, the LED
should stay on.
Transcribed Image Text:"Tutorial 5" 1. Discuss what happerts if interupts TFI, INTO, and TFO are activated at the same time. Assume priority levels were set by the power-up reset and the extemal hardware intemupts are edge-riggered. 2. Write a program that continuotusly ger 8-bit data from P2 and sends it to Po while simultancously creating a square wave of 400 us period on pin P1.2 Use timer I to create the square wave. 3. Write a program using interupis to siaultaneously create 6 kHz und 300 Hz square waves on P0,2 and PO.3, 4. Write a program using internupts to continually transmit the ASCII code set to a terminal attiachod to 8051's serial port two character per second. 5. Write a progran in which the 8051 gets data from PO and sends it to PI sontinuously while incoming dala from the serial porn is sent 1o Pa Set the haud rata at 1200. 6. Assume that the INT) pin is connected to a switch that is normally high. Whenever it goes low, it should tarm on an LED. The LED is connected o P2.5 and is narmally off. When it is tumed on it should stay on for a fraction of a second As long as the switch is prested low, the LED should stay on.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY