0% found this document useful (0 votes)
18 views

19ES4CCMCS

Uploaded by

rohit adhikary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

19ES4CCMCS

Uploaded by

rohit adhikary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Question Paper

Exam Date & Time: 13-Oct-2020 (09:30 AM - 01:00 PM)

BMS COLLEGE OF ENGINEERING

Autonomous Institute Affiliated to VTU, Supplementary Semester End Examination October 2020
Microcontrollers [19ES4CCMCS]
Marks: 100 Duration: 210 mins.

ECE, IV SEM
Answer all the questions.
Instructions: 1. Answer Five Full questions using given internal choices.

2. Missing data, if any, may be suitably assumed.

1) With necessary block diagrams explain the salient features of a Microcontroller. (7)

a)
b) What are the different buses present in a microcontroller? Explain bus structure (6)
with a diagram.
c) What is stack? Illustrate with example the PUSH and POP operations. (7)
2) Illustrate with examples the various addressing modes of 8051. (8)

a)
b) Perform the following using appropriate instructions and addressing modes (6)

1. Copy a byte from A to internal RAM address 50h using direct and indirect addressing modes
2. Copy a byte from C:9004h to X: 9000h using indexed and indirect addressing modes

c) Indicate whether the following instructions of 8051 are valid? If not, correct the instruction (6)
(i) ADD @R0,A (ii) MOVC DPTR, #9000h (iii) MOV R0,R1
(iv) XCH A,@R1 (V)JMP @R0+DPTR (vi) PUSH ACC
[OR] Explain the following Jump instructions with suitable examples. (8)
3) i) JC radd (ii) CJNE A,add,radd (iii) DJNZ add,radd (iv) JNZ radd
a)
b) WAP to find the largest element in an array stored in the internal RAM. (6)
Explain the logic
c) Explain how jump instructions are classified? (6)
4) Explain how interrupts are classified? (6)

a)
b) Explain TMOD and SCON registers with format. (10)
c) Write an 8051 C program to get bit P1.0 and send it to P2.7 after inverting it. (4)
[OR] Explain the steps to program timer 0 in mode 1. (8)
5)

Page #1
a)
b) Write an ALP to generate a square wave of frequency 72Hz on pin P1.0. (6)
c) Assume that a 1-Hz external clock is being fed into pin T1 (P3.5). Write a C program for counter 1 in (6)
mode 2 to count up and display the state of the TL1 count on P1. Start the count at 0H.
6) Explain how the 8kB RAM memory decoding circuitry can be developed using logic gates. (8)

a)
b) The word "MICRO" has been burned in the external data ROM locations starting from 4100h. Write (6)
a program to read this data into data RAM locations of an 8031 (which does not have on-chip ROM)
starting from 80h.
c) An external ROM uses the 8051 data space to store the look-table (starting at 100h) for DAC data. (6)
Write a C program to read 30 bytes of table data and send it to P1
7) Write a ALP program to display a string "BMSCE" using LCD (16 X 2) (8)

a)
b) Write an embedded C program to rotate a stepper motor in the clockwise and anti clockwise (6)
directions
c) Write an ALP to generate a triangular wave using DAC. Show the 8051 connection to DAC. (6)

-----End-----

Page #2

You might also like