2015 (1) - Merged
2015 (1) - Merged
2
3
RefNo : EXlEEI51TI32J I20J6
B. KIN ELECTRICAL ENGINEERING (EVENING) EXAMINATION, 2016
3rd Year, 2nd Semester
(b) Mention a single instruction of 8085 for each of the following operations: 7
(i) Complement the content of Accumulator;
(ii) Load the content of HL register pair into the Program Counter;
(iii) Compare the content of Accumulator with 74H;
(iv) Exchange the content ofHL registers with the top of the stack;
(v) Go back to the main program after completing a subroutine;
(vi) Load the data 8151 H into the register pair Be.
(c) The initial content of Accumulator of 8085 is considered to be D6H and all the 7
bits of the flag register are reset. Write the content of Accumulator and the flag
register after execution of each of the following instructions:
(i) RAR, (ii) CPI 23H, (iii) ADI 75H, (iv) MOY B,A, (v) OCR A, (vi) ORl35H,
(vii) CMA.
2.(a) Draw in details the timing diagram for STA 8500H, the hex code for STA being 7
32H.
(d) What are the opera t ing modes of 8255 ? Specify the functions of Port C in Mode 5
I of 8255 ?
4. Write the complete format of the following instructions with at least one 4 x5
example for each of the instructions and mention the effects of these instructions
on flags.
(i) CJNE, (ii) MUL, (iii) SUBB , (iv) ANL, (v) ADDC.
5. Write the bit formats offollowing SFRs and mention in short their functions : 4 x5
(i) IP, (ii) TCON, (iii) IE, (iv) TMOD, (v) SCaN.
6.(a) Assume that RAM locations 60H - 66H have following values: 46H, A2H, 10
EFH, 8DH, ABH and D9H, C3H. Write a program to find slim of values. A and
R6 should contain lower and higher byte, respectively.
(b) Write a program to add two 16-bit numbers. The numbers are 3B5EH and 10
B4A3H. Store the sum in R8 and R7; R7 should have lower byte .
7.(a) What are the various modes in connection with timer operation of 8051? Discu ss 10
in details.
(b) How do you interface low-current LEDs and High-current LED s with 10
microcontroller 8051 ? Explain with appropriate schematic diagram.
2. a. Write an assembly language program to sort 8 single byte data stored 10+ 10
in consecutive memory locations in descending order and save data
in the same block of memory location.
b. Draw a detailed timing diagram with relevant CPU signals and show
that the execution of the instruction "STA 8050" of Intel 8085
requires 4 machine cycles and 13 T - states. Also explain in details
what is happening in each T - state.
4. a. What are the different addressing modes of 805l? Explain with 10+ 10
necessary examples.
b. Draw an appropriate hardware diagram showing the interface of a 7-
segment display module with microcontroller and write a program to
display the character' A'.
RefNo: EXlEE/5/T/321 /2017(old)
B. E. IN ELECTRICAL ENGINEERING (EVENING) EXAMINAnON, 2017
3rd Year, 2nd Semester (old)
5. a. Write a program to receive a block of 20 data through the serial port 10+10
and store them in internal memory starting from the address 40h
onwards. Assume 9-bit data and a baud rate of 4800. Write
appropriate comment in favour of your solution.
b. Write a program to blink LED every lOOms using timer -I in mode-l
using interrupt driven method. Assume that the LED is connected to
Pl.5 ofthe micro controller.
7. a. Write the name of flags and the way they are affected after the 10+10
following instructions are executed.
i) DIV ii) CJNE iii) SUBB iv) MOV v) MUL
b. Write the commands of various' branching instructions available in
8051 microcontroller. Mention their complete formats, range of
jumps and associated constraints.
5. a. What are the different addressing modes of 8051 ? Explain with necessary 10+10
examples.
b. Draw an appropriate hardware diagram showing the interface of a 7-
segment display module with microcontroller and write a program to
display the character' A'.
6. a. Write a program to receive a block of 20 data through the serial port and 10+10
store them in internal memory starting from the address 40h onwards.
Assume 9-bit data and a baud rate of 4800. Write appropriate comment in
favour of your solution.
b. Write a program to blink LED every lOOms using timer-l in mode-l
using interrupt driven method. Assume that the LED is connected to P 1.5
of the microcontroller.
RefNo: EX/EE/5/T/321 /2017
B. E. IN ELECTRICAL ENGINEERING (EVENING) EXAMINAnON, 2017
3rd Year, 2nd Semester
7. a. Write the name of flags and the way they are affected after the following I 0+ 10
instructions are executed.
i) DIV ii) CJNE iii) SUBB iv) MOV v) MUL
b. Write the commands of various branching instructions available in 8051
microcontroller. Mention their complete formats, range of jumps and
associated constraints.