Electrical And Electronics (Semester 5)
Total marks: 80
Total time: 3 Hours
INSTRUCTIONS
(1) Answer any FIVE full questions, choosing one full ONE question
Module-1
1.a.
Discuss the need for stack memory in microcontroller. how stack is operated in 805 $\mu c$? What is the default location of stack>
(6 marks)
00
1.b.
With an example explain the various addressing modes used in 8051 $\mu c$(any four)
(6 marks)
00
1.c.
Explain RISC and CISC micro controllers.
(4 marks)
00
OR
2.a.
Explain the bit pattern of program states word.
(6 marks)
00
2.b.
With a neat diagram, explain the steps to interface 8K bytes of program RDM and 6K bytes of data ROM to 8031 based system
(6 marks)
00
2.c.
Identify the addressing modes of the following instructions
i)MOV C,A, @A+DPTR
ii) MOV DPTR, #1234
iii)MOV A,4
iv)CLR C
(4 marks)
00
Module-2
3.a.
Write a program to find the square root of a number
(6 marks)
00
3.b.
With a neat diagram explain the range of UMP and CALL instructions.
(8 marks)
00
3.c.
Explain the following instructions:
i) DA A,
ii) ANL C,P2.5
(2 marks)
00
OR
4.a.
What are assembler directives?Explain any four of them with an example.
(6 marks)
00
4.b.
Assume that register 'A' is loaded with number 'N' (any integer value from 0 to 255).Write a program to count the number of ones in even numbered bits of accumulator.
(5 marks)
00
4.c.
Write a program to complement the content of accumulator 62500 times.
(5 marks)
00
Module-3
5.a.
Explain the different data types supported by 8051C microcontroller
(8 marks)
00
5.b.
Write a program to create a square wave of 100 Hz with a duty cycle of 80% on port 1.1. Use timer'0 and operate that timer '0' in mode '1' . Assume XTAL fmov = 12 MHz
(8 marks)
00
OR
6.a.
A switch is connected to pin P1.2. Write on 801 program to monitor 'SW' and create the following frequencies on pin P1.7.
SW = 0 : 500 Hz
SW = 1 : 750 Hz
Use timer '0'. mode '1' for both of them. Assume crystal frequency = 11.0592 MHz.
(8 marks)
00
6.b.
Write an 8051C program to them bit P1.5 ON and OFF 50000 times.
(3 marks)
00
6.c.
Write a program for counter '1' in mode '2' to count the clock pulse and display the state of the TL, count on P2
(5 marks)
00
Module-4
7.a.
Write a program to retrieve the data serially and out them in P1. Set the band rate at 4800 . 8 bit data and come stop bit.
(6 marks)
00
7.b.
Write an 8051C program to transfer the message "INDIA' serially at 9600 band rate, 8 bit data and one stop bit, continuously.
(6 marks)
00
7.c.
Explain the importance of T1 and R1 flags.
(4 marks)
00
OR
8.a.
What is an interrupt ? List the various interrupts of the 8051 with their corresponding vector address
(6 marks)
00
8.b.
Write a program that continuously gets 8-bit data from 'PO' and sends it to 'P1" where simultaneously creating a square wave of 200 $\mu s$ period on pin P2.1. USe timer '0' to createsquare wave, Assume KTAL = 11.0952 MHz.
(7 marks)
00
8.c.
Explain simplex, half duplex and full duplex serial data transfer.
(3 marks)
00
Module-5
9.a.
A switch is connected to pin P2.7. Write a 'C' program to monitor the status of 'SW' and perform the following:
i0 If SW = 0 : the stepper motor moves clock wise.
ii) If SW = 1 : the stepper motor moves counter clock wise
(10 marks)
00
9.b.
Explain the control word format of 8255
(6 marks)
00
OR
10.a.
Explain the various modes of 8255 and find the control word for following configurations:
i) all ports of A, B and C are O/I ports (mode '0')
ii) PA = IN , PB = OUT , PCL = OUT and PCH = OUT.
(8 marks)
00
10.b.
Explain the steps to interface ADC 0808 to the 8051 microcontroller.
(8 marks)
00