You are on page 1of 5

Model Question paper

RAJAGIRI SCHOOL OF ENGINEERING & TECHNOLOGY


(AUTONOMOUS)
FOURTH SEMESTER B.TECH DEGREE EXAMINATION

101001/ EC400D Computer Architecture And Microcontrollers

Max. Marks: 100 Duration: 3 Hours

PART A
Answer All Questions. Questions carry 3 marks
each.

1. Explain the memory hierarchy of a processor.

2. What is a bus? Explain the different buses in a general processor architecture.

3. Why program memory and data memory are separate in 8051 microcontroller?

4. List the components of 8051 microcontroller.

5. Write the operations happening in the following instructions:

ADD A, 56

XCHD A, @R1

DJNZ R6, LABEL

DIV AB

XRL A, #0FFH

JB P1.2, LABEL

6. List the different modes and give corresponding uses of timers in 8051 microcontroller.

7. Write an embedded C program for 8051 microcontroller to continuously rotate a stepper


motor clockwise.

8. Explain the role of SBUF register in serial data transmission and reception.

9. Explain the I/O functions of Arduino.

10. Explain the status registers of ARM7 microprocessor.


PART B
Answer one question each from all modules
Module – 1
11. a) Differentiate Harvard and Von Neumann architectures. (4 marks)
b) Explain Instruction Cycle with a sample timing diagram (10 marks)

OR
12. a) With relevant diagrams illustrate the functioning of a basic (non – pipelined)
processor. (9 marks)

b) Explain direct mapping of cache memory with an example. (5 marks)

Module – 2

13. a) Illustrate the complete memory organization of 8051 microcontroller


(10 marks)
b) Differentiate microprocessors and microcontrollers. (4 marks)

OR
14. a) Explain about the Addressing Modes of 8051 microcontroller with examples.
(7 marks)
b) Classify the instructions of 8051 according to their functions and write at least
2 instructions with description in each group as examples. (7 marks)

Module – 3

15. a) Write an assembly language program for 8051 microcontroller to sort N


number in ascending order. Assume that the numbers are stored in
continuous locations starting from 0x4321 onwards. (7 marks)

b) Write an assembly language program for 8051 microcontroller to find the


cube
of an 8-bit number. (7 marks)

OR

16. a) Assuming that XTAL is 11.0592 MHz, write an embedded C program to


generate a square wave of frequency 1 KHz on pin P1.5 using Timer1.
(7 marks)

b) Eight LEDs are connected to the eight pins of port0. Write an assembly
language program to turn these LEDs ON and turn OFF one by one
continuously with a delay of 1 msec. (7 marks)
Module – 4
17. a) Write an embedded C program for 8051 microcontroller to read an analogue
signal from an ADC and reproduce the same using a DAC. (9 marks)

b) Explain the steps involved in transferring data serially from an 8051


microcontroller. (5 marks)

OR

18. a) Write an embedded C program for 8051 microcontroller to repeatedly display


the sequence 1,5,8,0,2,6,4,9,3,7 using a 7 – segment display with a delay of 1.5
seconds between each number. (9 marks)

b) Write an embedded C program for 8051 microcontroller to blink P2.5 every 2


seconds. (5 marks)

Module – 5

19. a) Which are the different features of ARM processor that make it suitable for
embedded applications. (8 marks)

b) Describe the ARM 7 register architecture (6 marks)

OR

20. a) Design a light activated alarm system using Arduino UNO board with
Necessary diagrams. (7 marks)

b) Draw and explain the block diagram of ATmega328P microcontroller.


(7 marks)

You might also like