KEMBAR78
Task 5 | PDF
0% found this document useful (0 votes)
12 views1 page

Task 5

The document outlines a series of assignments for a Microprocessors and Microcontrollers Lab course at Vellore Institute of Technology. It includes tasks such as writing 8051 assembly programs to manage data transfer between ports, utilize interrupts for various operations, and generate specific waveforms using timers. The assignments focus on practical applications of microcontroller programming and interrupt handling techniques.

Uploaded by

Rachneet Kaur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Task 5

The document outlines a series of assignments for a Microprocessors and Microcontrollers Lab course at Vellore Institute of Technology. It includes tasks such as writing 8051 assembly programs to manage data transfer between ports, utilize interrupts for various operations, and generate specific waveforms using timers. The assignments focus on practical applications of microcontroller programming and interrupt handling techniques.

Uploaded by

Rachneet Kaur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Vellore Institute of Technology

School of Electronics Engineering


BECE204P Microprocessors and Microcontrollers Lab
Assignment-5

1. Write an 8051 program to get data from port P0 and send it to port P1 continuously
while an interrupt will do the following:
Timer 0 will toggle the P2.1 bit every 50 microseconds.
2. Write a program using interrupts to do the following simultaneously
a. Receive data serially and send it to P0.
b. Have P1 port read and transmitted serially, and a copy given to P2.
c. Make timer 0 generate a square wave of 20 kHz on P0.1.
d. Assume that XTAL frequency is 11.0592 MHz and baud rate is 4800.
3. With the help of interrupt programming, develop an ALP of 8051 microcontrollers
to perform the following tasks; continuously get numeric data from P0 and send it
to P1. If the data is even, serially send it through port P2 with a baud rate of 19200.
Otherwise, the data will be sent through P2 with a baud rate of 9600.
4. Assume that the INT1 pin is connected to a switch that is normally high. Whenever
it goes low, it should turn on an LED. The LED is connected to P1.3 and is normally
off. As long as the switch is pressed low, the LED should stay on. Simultaneously
perform a toggle operation in P1.5 with the delay of 500ms.
5. Write an 8051-assembly program using timer 0 to generate a 500 Hz waveform
and timer 1 to generate a 7 kHz square wave frequency on P1.0 and P1.1
respectively using timer interrupts.

You might also like