0% found this document useful (0 votes)
3 views6 pages

Bece204l Cat 2 B1 2023 2024

BECE204L-CAT-2-B1-2023-2024

Uploaded by

lakshnaa.22
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)
3 views6 pages

Bece204l Cat 2 B1 2023 2024

BECE204L-CAT-2-B1-2023-2024

Uploaded by

lakshnaa.22
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/ 6

SCHOOL OF ELECTRONICS ENGINEERING (SENSE)

Continuous Assessment Test – II


Winter Semester -2023-24
Programme Name & Branch : B.Tech ECE
Course Name & Code : BECE204L- Microprocessors and Microcontrollers

Slot: B1 Answer all the questions Exam Duration:50 Minutes

S.No Question Mar CO BL


ks

1 Assume a switch is connected to port P2.0, LED is connected to P1.1 and


buzzer is connected to P2.2 of 8051 microcontroller. Write a program to
perform the following operations
10 CO4 L2
Input Switch(P2.0) Output

0 Buzzer is ON for 15ms


1 LED is ON for 20 ms
2 Pin P1.0 of 8051 is connected to a switch. If the switch is closed (logic 0),
then write an 8051 assembly language program to transmit “CLOSED”
serially at the baud rate 19200. If the switch is open (logic 1), then
serially transmit “OPEN” at the baud rate 9600. Assume “CLOSED” is 10 CO4 L3
stored in ROM location 200H onwards and “OPEN” in 300H location
onwards.

3 Write an assembly program using interrupt of 8051 microcontroller to


simultaneously create 7 KHz and 500 Hz square waves on port pin P1.7 10 CO4 L3
and P1.6.

4. 8051 microcontroller is connected to water level sensor through ADC0808


which gives 5V when the water tank is 100% full. Develop an assembly
program with suitable interfacing diagram to interface ADC0808 with
8051 to compare the water level stored in accumulator(A) with threshold
value “E6H”. If A>E6H send a message ‘HIGH LEVEL’ through serial 10 CO4 L2
port at a baud rate of 2400. Assume ‘HIGH LEVEL’ is stored in ROM
location 500H onwards.
5. Write an 8051 assembly program to interface 16x2 LCD display with
suitable diagram. Assume the string “HELLO” stored in ROM location
from 300H onwards. A switch is connected to port pin P2.7. If the switch
input is 1, display the string in line 1 otherwise display the string in reverse
order in line 2 as shown below.

If switch P2.7=1 display


H E L L O
10 CO4 L3

If switch P2.7=0 display

O L L E H

You might also like