You are on page 1of 1

Roll No.

-----------------------------

GALGOTIAS COLLEGE OF ENGINEERING AND TECHNOLOGY


1, Knowledge Park-II, Greater Noida, U.P.

II-Sessional Examination
Session
Branch
Semester
Subject
Paper Code

: Even Semester (2015-16)


: ECE
: VI
: Microcontroller and its application
: NEC 022

Max. Marks: 30
Time: 90 minutes

Answer any FIVE questions from Part-A and any FOUR from Part-B
Assume suitable data if required. Do not write anything on the Question Paper.
PART- A

(5 2 = 10 Marks)

1. What is the difference between LCALL and ACALL instructions?


2. Find the time delay generated by the following routine if the XTAL=22 MHz.
HERE: MOV R0, #64H
AGAIN: DJNZ R0, AGAIN
RET
3. Name all interrupts of the 8051.
4. What are the steps to program timers in mode 2?
5. What do you mean by Checksum byte in ROM? Explain with an example.
6. Explain TMOD register.
PART-B

(4 5 = 20 Marks)

7. Ten hex numbers are stored in RAM locations 50H onwards. Write a program to find the smallest
number in the set. The smallest number should finally be saved in 60H.
8. With a frequency of 22 MHz, generate a frequency of 100 KHz on pin P2.3. Use Timer 1 in Mode1.
9. Write a program to generate two square waves, one of 5 KHz frequency at the pin P1.3, and another
of the frequency 25 KHz at pin P2.3. Assume XTAL= 22 MHz.
10. Explain all the steps Carried out while microcontroller getting an interrupt?
11. Define Interrupt Vector Table and Interrupt Service Routine of 8051.

You might also like