Electrical And Electronics (Semester 5)
Total marks: 80
Total time: 3 Hours
INSTRUCTIONS
(1) Answer any FIVE full questions, choosing one full question from each module
Module-1
1.a.
Explain the various internal blocks of a CPU with necessary block diagram.
(8 marks)
00
1.b.
Explain the various addressing modes of 8051 with an example for each.
(8 marks)
00
OR
2.a.
Discuss the internal memory organization of 8051 microcontroller.
(6 marks)
00
2.b.
Identify the addressing modes of source operand in the following instructions.
i) MOV A , #2CH
ii) MOV A @R0
iii) ADD A , 50h
iv) MOVC A, @A+DPTR
(4 marks)
00
2.c.
Design an memory interface to correct 4 KB ROM memory using 74L5138 decoder with address space 4000h-4fffh.
(6 marks)
00
Module-2
3.a.
Explain the operation of following instruction of 8051:
i)MOVX A, @DPTR
ii) DJN2 R3,RPT
iii) ADDC A , 40H
(6 marks)
00
3.b.
Write ad 8051 ALP to find average of marks scored by student in 6 subjects { Max per subject = 20 } Assume the marks are stored from location 40h and the average is to be stored at location 50h
(6 marks)
00
3.c.
Write an 8051 ALP to read content of Port 1 and send it to Port 2 after inversion. The operation should be continuous
(4 marks)
00
OR
4.a.
Discuss CALL and JUMP instruction types and ranges of branching in each case.
(6 marks)
00
4.b.
Write an 8051 ALP to convert a 2 digit BCD number to its equivalent binary (Hexadecimal) value.
(6 marks)
00
4.c.
How many IO ports are available in 8051? Give the usage of all the IO ports mentioning any alternate use if they have
(4 marks)
00
Module-3
5.a.
What are the various data types supported by 8051C? Mention the range of representation in each case
(6 marks)
00
5.b.
Explain TMOD-SFR with necessary format
(4 marks)
00
5.c.
Write an 8051-C program to realize a square wave of frequency 2KHz on P2.0. Use timer 1. mode for the operation. take crystal frequency as 11.0592 MHz
(6 marks)
00
OR
6.a.
Write an 8051C program to toggle bits of port 1 with arbitrary delay. the operation has to be continuous.
(6 marks)
00
6.b.
Write a program segment to configure timer 1 in 16-bit counting mode to count internal clock and timer 0 in 8-bit auto reload mode to count internal clock. Assume software control for the operation.
(4 marks)
00
6.c.
Write on 8051 C program to generate square wave of frequency 2.5KHz on P1.0 using Timer 1 mode 2 . take crystal frequency of 1 MHz
(6 marks)
00
Module-4
7.a.
Explain the use of various bits of SCON-SFR.
(4 marks)
00
7.b.
Write an 8051 C program to transmit a message "VTU Belagavi" serially at a baud rate of 9600. use 8 bit data with one stop and one start.
(8 marks)
00
7.c.
What are the various interrupts available in 8051? Mention vector ROM address and priority of each of the interrupts
(4 marks)
00
OR
8.a.
Expain the need for MAX 232 line driver for connecting RS232 to 8051. Show the interface of RS232 to 8051 using MAX232
(6 marks)
00
8.b.
The value of IP-SFR is 00001100b. Explain the priority of interrupts
(4 marks)
00
8.c.
Write an 8051 program to receive a data byte serially and send to P1. Use baud rate of 4800.
(6 marks)
00
Module-5
9.a.
Interface an DAC to 8051 and write an program to generate triangular wave using DAC interface.
(8 marks)
00
9.b.
The direction of a DC motor is controlled by using a H-bridge as shown below in figure

SW A is connected to P1.0. SW B to P1.1, SW C to P1.2 and SW D to P1.3. Write a program to monitor a switch at P2.0.
If switch = 0 rotate motor in a direction = 1 rotate motor in opposite direction.
(8 marks)
00
OR
10.a.
Explain the various fields of 8255 control word format.Draw the control word format.
(6 marks)
00
10.b.
Interface an LCD to 8051 and write a program using 8051-C to display message "Good day"
(10 marks)
00