USN : _____________________________
P A COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS &
COMMUNICATION ENGINEERING
II - INTERNAL ASSESSMENT
Semester: 4-CBCS 2022 Date: 31 Jul 2024
Subject: MICROCONTROLLERS (BEC405A) Time: 09:30 AM - 10:30 AM
Max Marks: 25
Instructions to Students:
Answer any 2 full questions.
Answer any 2 Question(s)
Marks CO BT/CL
1a. Explain the bit contents of TCON and TMOD registers.
[6.0] [3] [1]
1b. Write a C program to transfer "YES" serially at 9600 baud rate, 8 bit data, 1 stopbit, do this
continuously.
[6.5] [3] [3]
OR
2a. Assuming XTAL frequency as 11.0592Mhz, write a program to generate 4Khzsquare wave
on P2.1. Use timer 0 in model show all the calculations.
[6.5] [3] [3]
2b. Explain how interrupt priority can be changed using IP register. Also explain thedefault
priorities assigned to interrupts in 8051 microcontroller.
[6.0] [4] [2]
3a. Write a program to display "HELLO WORLD" by interfacing LCD display to8051
microcontroller.
[6.5] [5] [3]
3b. With neat diagram write an assembly language program to interface DAC to8051
microcontroller.
[6.0] [5] [3]
OR
4a. Explain the bit pattern of SCON register with diagram and also explain RS232 in serial
communication using 8051 microcontroller
[7.0] [3] [2]
4b. Explain full duplex, half duplex and simplex in serial communication and also explain the bit
contents of IE register.
[5.5] [4] [2]