0% found this document useful (0 votes)
5 views2 pages

B Tech (ECE-Dual) VIII C Based Embedded System Design - Out

Uploaded by

Harsh roy
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)
5 views2 pages

B Tech (ECE-Dual) VIII C Based Embedded System Design - Out

Uploaded by

Harsh roy
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

ENROLLMENT NUMBER

Marking Scheme
Amity University Haryana
B.Tech. (ECE/ECE+MBA)
Eighth Semester End Term Examinations – April-May, 2019
Course Title– C Based Embedded System Design

Course Code: ECE2801/ECE6801


Exam Dept. Ref.: K289KW
Time: 3 Hours Maximum Marks: 70
Note: This question paper has three sections : Section A, Section B and Section C.
Attempt (i) Any FIVE from Sec.-A.
(ii) Any TWO from Sec.-B.
(iii) Section-C is compulsory.

Section –A (Attempt any five questions) 30 Marks


(Each question carries 6 marks)

1. What are various data types in embedded C? Write advantages of Programming


8051 microcontroller in embedded C.
Answer: data types=3, advantages=3.

2. How various logical operations are performed in embedded C? Explain with


examples.
Answer: bitwise operators=3, bitwise shift operator=3.

3. Write subroutine in 8051 microcontrollers to generate 55ms delay.


Answer: Resister value=3, Program=3.

4. How many addressing modes are supported by 8051? Explain with example.
Answer: addressing mode explanation=3, examples=3.

5. Make block diagram of 8051 microcontroller and discuss the function of each
block of 8051 microcontrollers.
Answer: block diagram=3, explanation=3.

6. What is interrupt latency? Write factors affecting it?


Answer: Explanation=3, Factors=3.

Page 1 of 2
Section – B (Attempt any two questions) 20 Marks
(Each question carries 10 marks)

7. A switch(SW) is connected to pin P2.1. Write a C program to monitor the status of SW


and perform the following:

i) If SW=0, the stepper motor moves counterclockwise.


ii) If SW=1, the stepper motor moves clockwise.
Answer- Introduction=2, Circuit diagram=3, Program=5.

8. In detail, explain the SCON register with the diagram. Also write a program in assembly
language for 8051 to transfer the message “HELLO” serially at 4800 band rate, 8-bit
data, 1 stop bit.
Answer- Introduction=2, calculations=3, program=5.

9. What is importance of TMOD resister? Write 8051 C program to toggle only bit P1.5
continuously every 50ms. Use Timer 0, Mode 1 to create the delay.
Answer- Introduction=2, calculations=3, program=5.

Section C (Compulsory) 20 Marks

10. a) Explain interfacing of DAC with 8051 microcontrollers with help of suitable
diagram.
Answer- Introduction=2, circuit diagram=3, program=5.

b) Interface 8051 microcontroller with LCD and make circuit diagram. Write C
program for to display ‘AMITY’ on LCD.
Answer- Introduction=2, circuit diagram=3, program=5.

Page 2 of 2

You might also like