This download link is referred from the post: GTU BE 2020 Summer Question Papers || Gujarat Technological University
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER- IV EXAMINATION ā SUMMER 2020
--- Content provided by FirstRanker.com ---
Subject Code: 3141008 Date:02/11/2020
Subject Name: Microprocessor & Microcontroller
Time: 10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
- Attempt all questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
--- Content provided by FirstRanker.com ---
Q.1 | (a) List the applications in which microcontrollers are used. | 03 |
(b) Explain the functions of following pins of 8085.
--- Content provided by FirstRanker.com --- | 04 | |
(c) Discuss the flag register of 8085. | 07 | |
Q.2 | (a) Differentiate between Microprocessor and Microcontroller. | 03 |
(b) What is the use of stack and stack pointer in ATMega32? How many locations of stack are used when CALL and RCALL instructions are executed? | 04 | |
(c) List the features of RISC Architecture. | 07 | |
OR | ||
(a) Explain ATMega32 Data memory in detail. | 07 | |
Q.3 | (a) Write a program to get status of PB3 pin and put it on PBO pin. | 03 |
(b) Write a program to generate square wave with 80% duty cycle on bit PC7. | 04 | |
(c) Explain following instructions:
--- Content provided by FirstRanker.com --- | 07 | |
OR | ||
(a) Write a program to find no of 1s in given byte. | 03 | |
Q.4 | (b) How many fuse bits are available in ATMega32? How are they used? | 04 |
(c) Explain addressing modes of ATMega32 with the example. | 07 | |
(a) List some of the interrupt sources in ATMega32. | 03 | |
(b) What is the difference between RET and RETT instructions? Explain why we cannot use RET instead of RETTI as the last instruction of interrupt service routine (ISR). | 04 | |
(c) Assuming clock pulses are fed into pin T1 (PB1) of ATmega32.Write a program for counter 1 in normal mode to count the pulses on falling edge and display the status of TCNT1 count on PORT C and PORT D. | 07 | |
OR | ||
(a) Write down the steps:to program Timer 0 in Normal Mode. | 03 | |
Q.5 | (b) Write a program for ATMega32 to transfer letter āZā serially at 9600 baud rate continuously-Assume XTAL=8 MHz. | 04 |
(c) Write a program in C to generate a square wave of 16 KHz on pin PORTB.3.USE XTAL= 8 MHz. Use timer 0 in CTC Mode. | 07 | |
(a) What is the use of input capturing? Which timers of ATMega32 can be used for input capturing? | 03 | |
(b) Write the steps for reading data from SPI Device in single byte mode. | 04 | |
(c) Explain the connection of stepper motor with ATMega32.Write a program to rotate it continuously. | 07 | |
OR | ||
(a) What is clock stretching with reference to I2C protocol? | 03 | |
(b) Draw the necessary circuit for 8 bit data transfer between ATMega32 and LCD.Use PORT A of ATMega32 for 8 bit data. | 04 | |
(c) State the features of ADC of ATMega32 and discuss steps of ADC programming. | 07 |
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE 2020 Summer Question Papers || Gujarat Technological University