GTU Electronics and Communication Engineering (Semester 5)
Microcontroller And Interfacing
December 2015
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


Solve the followings(Four Marks each)
1(a)i Explain AVR status register in detail.
4 M
1(b)ii Compare Microprocessor with Microcontroller.
3 M

2(a) Explain following terms related to AVR:
i) Harvard Architecture
ii) RISC
iii) DDR
iv) I2C
7 M
Solved any one question from Q.2(b) & Q.2(c)
2(b) Explain following instructions with example:
i) CP
ii) POP
iii) LDS
iv) SBRS
v) SWAP
vi)CBI
vii)ASR
7 M
2(c) Explain Addressing modes of AVR with example.
7 M

Solved any one question from Q.3 & Q.4
3(a) Explain RTC interfacing and Programming
7 M
3(b) Explain SPI bus Protocol in detail.
7 M

4(a) List the features of ADC peripheral of the Atmega32.
7 M

5(a) A switch is connected to pin PB0 and an LED to pin PB7.Write a program (in Assembly or C) to get the status of Switch and send it to LED.
7 M
Solved any one question from Q.5 & Q.6
5(b) Write a program (in Assembly or C) to copy a block of 5 bytes of data from data memory location starting at $130 to RAM location starting at $60.
7 M

6(a) Explain Programming steps to transfer and receive data serially from AVR.
7 M
6(b) Write an assembly language program that finds the number of 1s in a given byte.
7 M

7(a) Write a program to generate a delay of 1920μ s. (consider XTAL= 8 MHz, Timer 2) .
7 M
7(b) Explain interfacing of LCD with AVR using sample program.
7 M

8(a) Write a program (in Assembly or C) that toggles pin PORTB.5 every 40 μ s, while (a) at the same time transferring data from PORTC to PORTD. Assume XTAL = 1Mhz and use Timer0 with Interrupt.
7 M
8(b) Explain the connection of Stepper motor with AVR. And write a program to rotate it continuously.
7 M



More question papers from Microcontroller And Interfacing
SPONSORED ADVERTISEMENTS